LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Network Interfaces wont take proper IP assignment (https://www.linuxquestions.org/questions/linux-newbie-8/network-interfaces-wont-take-proper-ip-assignment-658063/)

anadarwheels 07-24-2008 04:49 PM

Network Interfaces wont take proper IP assignment
 
When I reboot my server both eth0 and eth1 have the same ip address. A clip of my dmesg shows:

eth0: RealTek RTL8139 at 0xf88c4c00, 00:0e:2e:5a:33:52, IRQ 19
eth0: Identified 8139 chip type 'RTL-8100B/8139D'

forcedeth 0000:00:07.0: ifname eth1, PHY OUI 0x20 @ 1, addr 00:1d:92:e1:9d:2d

udev: renamed network interface eth1 to eth0
udev: renamed network interface eth0_rename to eth1

why is my eth1 being forced, and causing the interfaces to be renamed.

Traffic seems to move normal but both eth0 and eth1 are reporting as the same IP address

trickykid 07-24-2008 05:09 PM

What distribution? Do you have the HWADDR specified in the ifcfg scripts for each device?

anadarwheels 07-24-2008 07:45 PM

New Install Fedora 9
 
I've tried it with and without HWADDR specified, either way Both eth0 and eth1 have the same ip address. It is a clean install of Fedora 9 running openvpn and shorewall

ynilesh 07-25-2008 07:07 AM

Does your system having 2 NIC cards ?
Try moving /etc/network-scripts/ifcfg-eth1 to some other and then restart restart network service. See if it still detects second NIC card which you moved.

- nilesh

farslayer 07-25-2008 08:28 AM

Check the udev rules for your network interfaces...

http://reactivated.net/writing_udev_...#example-netif

you can use rules to force a specific name to a specific interface, which may help resolve your IP addressing issue.
There is probably a dynamically generated rule in place that is causing the interface rename currently.

You may want to take a look at /etc/udev/rules.d/z25_persistent-net.rules

anadarwheels 07-25-2008 02:33 PM

Just when you think you've got it....
 
Well this is new to me. It seems anaconda wrote to /etc/udev/70-persistent-net.rules rules that are causing the interfaces to reassign after boot which was causing the issue, I fixed the rules all is well now. Thanks for help.

Bill


All times are GMT -5. The time now is 01:05 AM.