[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Correct place for networking commands in Debian?



On 15 Dec 2003, Andr? Carezia wrote:
> Anthony Campbell wrote:
> 
> >To set up my ADSL router I have to do:
> >
> > ifconfig eth0  192.168.1.1 netmask 255.0.0.0 up
> > route add default gw 192.168.1.2 eth0
> >
> >
> >Where is the correct Debian place to put these - /etc/network/interfaces
> >perhaps, or should they go in rc.local?
> >
> Add this to /etc/network/interfaces:
> 
> auto eth0
> iface eth0 inet static
>        address 192.168.1.1
>        netmask 255.0.0.0
>        gateway 192.168.1.2
> 
> --
> Andr? Carezia
> Eng. de Telecomunica??es
> Carezia Consultoria - www.carezia.eng.br


At present mine reads:


# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
# automatically added when upgrading
auto lo eth0
iface lo inet loopback
 	address 127.0.0.1
	netmask 255.0.0.0
	network 127.0.0.0
	broadcast 127.0.0.255
	gateway 127.0.0.1


Should some of these be deleted before adding your lines?

Anthony


-- 
ac@acampbell.org.uk    ||  http://www.acampbell.org.uk
using Linux GNU/Debian ||  for book reviews, electronic 
Windows-free zone      ||  books and skeptical articles



Reply to: