Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
> eth0 does not come up on boot (Linux Mint)
watty62
post Jan 20 2013, 11:57 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 20-January 13
Member No.: 18,077



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
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
michaelk
post Jan 20 2013, 12:42 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,796
Joined: 23-January 03
Member No.: 360



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
Go to the top of the page
 
+Quote Post
watty62
post Jan 20 2013, 12:56 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 20-January 13
Member No.: 18,077



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

Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th October 2017 - 02:51 AM