LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-12-2009, 01:32 AM   #1
renuaseri
Member
 
Registered: Mar 2009
Posts: 39

Rep: Reputation: 15
eth0 show "failed to bring up " on static address but not on dhcp


hi all,
i am struggling to bring up eth0 on static address.
my /etc/network/interfaces is look like :

auto lo
iface lo inet loopback

iface eth0 inet6 static
address 2001:468::3
netmask 64
auto eth0

#ifconfig
show error :Failed to bring up eth0.

but when i change /etc/network/interface file like this:

auto lo
iface lo inet loopback

iface eth0 inet dhcp

auto eth0


then it doesn't show any error and getting internet on eth0.
plz help me.......
 
Old 06-12-2009, 02:01 AM   #2
bluepenguine
LQ Newbie
 
Registered: Mar 2008
Posts: 16

Rep: Reputation: 1
Wink

Quote:
Originally Posted by renuaseri View Post
hi all,
i am struggling to bring up eth0 on static address.
my /etc/network/interfaces is look like :

auto lo
iface lo inet loopback

iface eth0 inet6 static
address 2001:468::3
netmask 64
auto eth0

#ifconfig
show error :Failed to bring up eth0.

but when i change /etc/network/interface file like this:

auto lo
iface lo inet loopback

iface eth0 inet dhcp

auto eth0


then it doesn't show any error and getting internet on eth0.
plz help me.......
Hello ,, ,..Do u know the MAC address of that NIC.....


If No then open ur cabinate and search on LAN card....

then edit /etc/udev/rules.d/NUMBER-persistent-net.rules

(where number can be 70 or 25...for me in ubuntu is 70 and in debian its 25..)

look for the string

#SUBSYSTEM--"net", ACTION=="add" , DRIVERS=="?*", ATTR{address}=="xx.xx.xx.xx.xx.xx", ATTR{type}=="1", KERNEL=="ethY", NAME="ethY"


look for ur mac address in xx.xx.xx.xx..... field and when found go to end of that line and replace "ethY" by "eth0" (Y can be any number on ur pc)..then reboot ..then try ifconfig eth0 up
 
Old 06-12-2009, 03:41 AM   #3
renuaseri
Member
 
Registered: Mar 2009
Posts: 39

Original Poster
Rep: Reputation: 15
million thank .......

i search this file:-/etc/udev/rules.d/NUMBER-persistent-net.rules
and found this line for eth0.

#SUBSYSTEM--"net", ACTION=="add" , DRIVERS=="?*", ATTR{address}=="00.19.d1.1e.e0.cc", ATTR{type}=="1", KERNEL=="ethY", NAME="eth0"

this file contents are same at dhcp and static address.

but when eth0 is static and when i go
system->Adminstrator-> Network-tool->Devices->


Network device: eth0

Hardware address: not available
Multicast: not available
MTU: not available

Link speed: not available

State: not available

but when eth0 having dhcp than

Hardware address: 00.19.d1.1e.e0.cc
Multicast: Enabled
MTU: 1500

Link speed: not available

State: Active


so what to do?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"wmaster0 unknown address type 801" and failed DHCP with wireless on home portal silencestone Linux - Wireless Networking 8 12-31-2008 08:11 PM
"failed to bring up eth0" problem! AdykOSu Linux - Newbie 5 12-27-2005 02:55 PM
Eth0 set up for Static, obtaining DHCP address?! IndustrialGeek Linux - Networking 2 01-03-2005 01:39 AM
Mandrake 10.1: "Please test Sagem ADSL modem (DHCP or static) with eagle-usb" Proud Mandriva 3 09-29-2004 04:17 PM
"Determining IP information for eth0... failed." (DHCP problem) einnocent Linux - Networking 4 10-20-2003 01:59 AM


All times are GMT -5. The time now is 10:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration