PDA

View Full Version : [ubuntu] Network Interface (eth0)


pg.phatman
September 9th, 2009, 08:07 PM
Hi Everyone

I am a newbie to Ubuntu, I recently installed Ubuntu Server 9.04 (32-bit). However every time I reboot the box, the network interface (Eth0) goes down and also looses its static IP Address, here is how my /etc/network/interfaces config file looks like

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 10.1.2.220
netmask 255.255.255.0
network 10.1.2.0
broadcast 10.1.2.255
gateway 10.1.2.1

My question is why do I have to manually put the ip address every time and bring the interface up, is there a (network) start up script that I can use?

pg.phatman
September 9th, 2009, 08:08 PM
Hi Everyone

I am a newbie to Ubuntu, I recently installed Ubuntu Server 9.04 (32-bit). However every time I reboot the box, the network interface (Eth0) goes down and also looses its static IP Address, here is how my /etc/network/interfaces config file looks like

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 10.1.2.220
netmask 255.255.255.0
network 10.1.2.0
broadcast 10.1.2.255
gateway 10.1.2.1

My question is why do I have to manually put the ip address every time and bring the interface up, is there a (network) start up script that I can use?

pg.phatman
September 9th, 2009, 08:09 PM
Hi Everyone

I am a newbie to Ubuntu, I recently installed Ubuntu Server 9.04 (32-bit). However every time I reboot the box, the network interface (Eth0) goes down and also looses its static IP Address, here is how my /etc/network/interfaces config file looks like

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 10.1.2.220
netmask 255.255.255.0
network 10.1.2.0
broadcast 10.1.2.255
gateway 10.1.2.1

My question is why do I have to manually put the ip address every time and bring the interface up, is there a (network) start up script that I can use?

nandemonai
September 9th, 2009, 08:25 PM
Hi Everyone

I am a newbie to Ubuntu, I recently installed Ubuntu Server 9.04 (32-bit). However every time I reboot the box, the network interface (Eth0) goes down and also looses its static IP Address, here is how my /etc/network/interfaces config file looks like

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 10.1.2.220
netmask 255.255.255.0
network 10.1.2.0
broadcast 10.1.2.255
gateway 10.1.2.1

My question is why do I have to manually put the ip address every time and bring the interface up, is there a (network) start up script that I can use?

auto eth0
iface eth0 inet static
address 10.1.2.220
netmask 255.255.255.0
network 10.1.2.0
broadcast 10.1.2.255
gateway 10.1.2.1

nandemonai
September 9th, 2009, 09:08 PM
*** Double Post ***

Please refer to my answer in the Absolute Beginners Forum.

cariboo907
September 9th, 2009, 11:05 PM
If you are running a gui, remove use network-manager to set your static ip address. If you are running from the command line, remove dhcp3-client.