LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 07-24-2008, 04:49 PM   #1
anadarwheels
LQ Newbie
 
Registered: Oct 2004
Posts: 10

Rep: Reputation: 0
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
 
Old 07-24-2008, 05:09 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
What distribution? Do you have the HWADDR specified in the ifcfg scripts for each device?
 
Old 07-24-2008, 07:45 PM   #3
anadarwheels
LQ Newbie
 
Registered: Oct 2004
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
Old 07-25-2008, 07:07 AM   #4
ynilesh
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Rep: Reputation: 0
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
 
Old 07-25-2008, 08:28 AM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
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
 
Old 07-25-2008, 02:33 PM   #6
anadarwheels
LQ Newbie
 
Registered: Oct 2004
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
  


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
two nics; inconsistent network interface number assignment schatoor Linux - General 2 02-14-2007 09:25 AM
Realtek Network Card - IP Assignment Problem qs_tahmeed Solaris / OpenSolaris 13 02-02-2006 01:38 AM
network interface assignment, how? Oxyacetylene Linux - Networking 0 06-18-2004 10:47 AM
S/W Packaging wont show proper rpm DB pgmer6809 Mandriva 0 05-01-2004 06:57 PM
Network interfaces assignment problem Perdido Linux - Networking 5 04-24-2004 03:25 PM


All times are GMT -5. The time now is 02: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