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

Re: [newbie] Setting up network



Aryan Ameri said:
> Hi there:
>
> Untill now, I only got online using a dial up connection. Now i am going
> to  dormitory, and in order to get online I have to connect to my
> dormitory's  LAN. I can setup the network using the following two
> commands:
>
> ifconfig eth0 my.ip.add.ress up
> route add default gw my.gw.ip.address
>
> but it is so frustrating to issue these commands whenever I reboot my
> computer. I know there are ways to automate this proccess and there are
> progrms which setup the network on each boot. But I am not able to find
> out  how. Can anyone please help?

/etc/network/interfaces

man interfaces

sample:

auto eth0
auto eth1
auto eth0:1
auto eth0:2
iface eth0 inet static
	address 216.39.174.24
	netmask 255.255.255.0
	broadcast 216.39.174.255
	gateway 216.39.174.1
	network 216.39.174.0
iface eth0:1 inet static
	address 216.39.174.26
	netmask 255.255.255.255
#iface eth0:2 inet static
#	address 216.39.174.27
#	netmask 255.255.255.255
iface eth1 inet static
	address 10.10.10.1
	netmask 255.255.255.0
	network 10.10.10.0
	broadcast 10.10.10.255

nate





Reply to: