Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Technical Support _ eth0 does not come up on boot (Linux Mint)

Posted by: watty62 Jan 20 2013, 11:57 AM

I recently installed Linux Mint 14, and went to edit the /etc/network/interfaces to set a static IP.

My file reads:

###################################
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.0.12
netmask 255.255.255.0
gateway 192.168.0.1
####################################

If I run this command manually:

sudo ifup eth0

then it attaches to my router with 192.168.0.12 as IP and I can get internet access.

If I reboot the system then it doesn't process that - and I have no net access.

Running this

sudo ifup eth0

manually always works.

What is the right way to solve this - so that it is processed on startup and is assigned the right IP address?

Thanks

Watty

Posted by: michaelk Jan 20 2013, 12:42 PM

If you add auto eth0 to the interfaces file eth0 should automatically start at boot time.

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.0.12
netmask 255.255.255.0
gateway 192.168.0.1

Posted by: watty62 Jan 20 2013, 12:56 PM

Michael

Thanks very much - that solved it. smile.gif

Still rusty in Linux.

Enough knowledge to get myself into problems - not enough to get myself out if them!

Cheers

Watty


QUOTE (michaelk @ Jan 20 2013, 05:42 PM) *
If you add auto eth0 to the interfaces file eth0 should automatically start at boot time.

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.0.12
netmask 255.255.255.0
gateway 192.168.0.1


Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)