LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   eth0 show "failed to bring up " on static address but not on dhcp (https://www.linuxquestions.org/questions/linux-newbie-8/eth0-show-failed-to-bring-up-on-static-address-but-not-on-dhcp-732385/)

renuaseri 06-12-2009 12:32 AM

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.......

bluepenguine 06-12-2009 01:01 AM

Quote:

Originally Posted by renuaseri (Post 3571347)
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

renuaseri 06-12-2009 02:41 AM

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?


All times are GMT -5. The time now is 07:18 PM.