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

Re: [newbie] Setting up network



On Tue, Mar 11, 2003 at 12:32:27AM +0200, Aryan Ameri wrote:
> 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?

Edit:
/etc/network/interfaces

Mine on my lan:

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

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
	address 192.168.1.2
	netmask 255.255.255.0
	network 192.168.1.0
	broadcast 192.168.1.255
	gateway 192.168.1.1

-- 
~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ +++++
        Osamu Aoki <osamu@debian.org>   Cupertino CA USA, GPG-key: A8061F32
 .''`.  Debian Reference: post-installation user's guide for non-developers
 : :' : http://qref.sf.net and http://people.debian.org/~osamu
 `. `'  "Our Priorities are Our Users and Free Software" --- Social Contract



Reply to: