Udev swapping the network interfaces [solved?]

After a recent upgrade my network devices (eth0 and eth1) seem to be randomly assigned at boot. This obviously causes problems for the network scripts. I tried to rectify this by specifying the device names via udev:
/etc/udev/rules.d/10-network.rules
KERNEL="eth*", SYSFS{address}="00:0d:70:a8:63:12", NAME="eth0"
KERNEL="eth*", SYSFS{address}="00:0b:a1:18:80:ba", NAME="eth1"
but this does not seem to have any effect on the device names. Anyone aware of how to fix this problem or what exactly is causing it?
*note*
I manually searched through the first couple of pages of this forum before posting this because I figured others would have this problem and forum search currently does not work for me. Sorry if this is a duplicate.

brain0 wrote:
KERNEL="eth*", SYSFS{address}="00:0d:70:a8:63:12", NAME="eth0"
This is your udev line. And now compare it to this one:
KERNEL=="eth*", SYSFS{address}=="00:0d:70:a8:63:12", NAME="eth0"
See the difference? Stare at it until you see it.
I'd also reommend this change:
SUBSYSTEM=="net", SYSFS{address}=="00:0d:70:a8:63:12", NAME="eth0"
It makes this rule more general and even works if the interface is named completely different by the kernel.
Thank you! I copied that bit I had above (except for the MACs) from a howto page on udev. I guess they changed some things recently to require double equals for comparison? I had to go back and change some of my rules for other things as well.

Similar Messages

  • Getting the network interface up in solaris 10

    Hi,
    I am a solaris newbie and am trying to get the network interface up on solaris 10. I have set the required details in
    /etc/hostname.if
    /etc/hosts
    /etc/inet/ipnodes
    /etc/inet/netmasks
    /etc/defaultrouter
    yet on the startup i get a message "failed to bring up IPv4 interfaces : interfacename"
    And when the server starts up after giving the command "ifconfig if up"
    the network interface comes up.
    I need to get the interface up on the startup itself.
    can anyone help me on this ?????
    Thanks in advance,

    ... and of course, you need compatible hardware.
    But you failed to tell anyone what Ethernet adapter you're trying to use.
    Is it on the HCL ? http://www.sun.com/bigadmin/hcl/
    If it requires third party driver software, did you install that as well ?
    You failed to tell anyone whether you're installing to Solaris x86 or to Solaris SPARC.
    ( For example, a PeeCee NIC will generally just not work in a SPARC system. )

  • CRS-5008: Invalid attribute value: ce0 for the network interface

    Hi all,
    we try to install grid infrastructure 11GR2 (11.2.0.1) into Solaris Zone with shared network interface.
    We also modified scirpt racgvip, so it will be able to login (via ssh with key authorization) to the global zone and add or remove interface on zone. Script itself works fine.
    But it seems that orarootagent some how checks the interface, and returned error.
    In the log of the orarootagent I can see error:
    2010-10-01 21:38:49.573: [ AGFW][9] CHECK initiated by timer for: ora.net1.network sapdr2db2 1
    2010-10-01 21:38:50.473: [ora.net1.network][17] [check] NetworkAgent::checkLink returned false
    2010-10-01 21:38:50.474: [ora.net1.network][17] [check] NetInterface::sGetIpAddress {
    2010-10-01 21:38:50.474: [ora.net1.network][17] [check] netInterfaceName empty.
    2010-10-01 21:38:50.474: [ora.net1.network][17] [check] NetInterface::sGetIpAddress }
    2010-10-01 21:38:50.474: [ AGFW][17] check for resource: ora.net1.network sapdr2db2 1 completed with status: OFFLINE
    2010-10-01 21:38:50.476: [ AGFW][17] Executing command: check for resource: ora.net1.network sapdr2db2 1
    2010-10-01 21:38:50.477: [ora.net1.network][17] [check] NetworkAgent::init enter {
    2010-10-01 21:38:50.478: [ora.net1.network][17] [check] Checking if ce0 Interface is fine
    2010-10-01 21:38:50.479: [ora.net1.network][17] [check] NetInterface::scheckNetInterface returned 0
    2010-10-01 21:38:50.480: [ora.net1.network][17] [check] CRS-5008: Invalid attribute value: ce0 for the network interface
    2010-10-01 21:38:50.480: [ora.net1.network][17] [check] NetworkAgent::init exit }
    2010-10-01 21:38:50.480: [ora.net1.network][17] [check] NetInterface::scheckNetInterface returned 0
    2010-10-01 21:38:50.480: [ora.net1.network][17] [check] NetworkAgent::checkInterface returned false
    Does anybody know how the orarootagent checks for the network resource?
    It seems that there are some procedures (NetworkAgent::checkLink, NetInterface::sGetIpAddress) inside it. But the problem is that this file is binary.
    Or may be there are some ways to track how orarootagent checks?

    >
    2010-10-18 18:11:07.589: [ora.net1.network][9] {0:2:8} [check] Checking if ce0 Interface is fine
    2010-10-18 18:11:07.589: [ora.net1.network][9] {0:2:8} [check] NetInterface::scheckNetInterface returned 0
    2010-10-18 18:11:07.590: [   AGENT][9] {0:2:8} UserErrorException: Locale is
    2010-10-18 18:11:07.591: [ora.net1.network][9] {0:2:8} [check] CRS-5008: Invalid attribute value: ce0 for the network interface
    >
    Is there anything I can do with it? Will appreciate any help!Is ce0 a valid interface on the machine? (has the global zone done "ifconfig ce0 plumb"?)
    Is the zone correctly configured (check output of the export sub-command of zonecfg)?
    --Sowmini                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How does the terminal name the network interfaces?

    I want to know the logic of the bash terminal for name the network interfaces. When I do an ifconfig there are showed multiples interfaces and I don't know which one is the WiFI, which one the Ethernet...
    Thank you!

    When I do an ifconfig I get this output:
    lo0 Guess this is the loopback address
    gif0 Don't know what is this
    stf0 Don't know what is this
    en0 Is the network, now in my case the wifi
    en1 & en2 Guess, reading your explanation that this are the ethernet thunderbolt ports
    p2p0 Don't know what is this
    awd10 Don't know what is this
    bridge0 Don't know what is this
    Do you know what are this interfaces? If it helps I have VMware Fusion and VirtualBox installed.

  • Transmit periodical frames via the Network Interface

    Hi,
    Does anybody know how to transmit periodical frames via the CAN Network Interface?
    I am using NI USB-8473 (CAN-USB Interface).
    Thank You
    Monogram

    The device itself has no CPU and therefore does not allow to run periodic objects on the hardware. The only chance is to use a timed while loop to run the write net function periodicaly in software. If that doesn't work out because of jitter or latency then only the PCMCIA device can help for a notebook solution for example.
    DirkW

  • Configuring the Network interface settings in E250

    Hi All ,
    I have installed a Solaris 9 in E250. We are not able to bring that in network.
    We are able to ping the local ip address and not able to reach the gateway address.
    I checked the NIC settings, the link_mode is half duplex and link_status is 0 and link_speed is 10 mbps.
    and also i have checked the port status in Layer 3 Switch, the port is half duplex and speed 10 mbps.
    Please advice how to resove this is issue. Your reply is highly appreciable.
    Regards.
    R. Rajesh Kannan.

    Try setting ur layer 3 switch port settings to 100FD and autonegotiate.

  • HT201974 i can not find my Airport on the network interface no anywhere, how do i bring m Airport back

    help can't find my Airport anywhere? can not bring it back on or up, it doesn't appear anywhere?

    Since you have an OS X 10.6.8 Snow Leopard question......and we handle questions about the AirPort routers here...... your best resource would be the Snow Leopard support community forum.
    I suggest that you post in that location. The link is here:
    Mac OS X v10.6 Snow Leopard

  • 3rd network interface unknown and not found - udev renaming

    I have an Arch linux based firewall with 3 wired network interfaces, one on the mobo.
    In a thunderstorm one of the pci-based interfaces died.
    Upon changing that one to another with the same chipset (realtek 8139) as the one on the mobo, udev hangs a long time on boot and the latter (eth2) becomes unknown and not found.
    Looking at the kernel log I find the following before change:
    kernel: udev[435]: renamed network interface eth1 to eth1-eth2
    kernel: udev[426]: renamed network interface eth2 to eth1
    kernel: udev[435]: renamed network interface eth1-eth2 to eth2
    And after the change just this:
    kernel: udev[426]: renamed network interface eth2 to eth2-eth1
    What is going on and how can I avoid this?
    Thanks

    Could you post the output of sudo lspci -v  ?? I am wondering if the chipsets are conflicting with each other's resources.  They shouldn't, but it sounds like one of them might have been a little traumatized and may be a little brain damaged. (Pardon my anthropomorphisms)

  • How many network interfaces the Airport Extreme (a/b/g/n with USB) has?

    I am trying to use an SNMP client on the computer to monitor my network traffic.
    I using the Airport Extreme (AEBS) to connect to the internet using PPPoE. wifi and ethernet (RJ45) ports are used for LAN
    Now after setting up the SNMP client, it shows so many interfaces the AEBS has, and most names of the interfaces cant give me a clue about what they are:
    1: mgi0
    2. mgi1
    3. mv0
    4. mv1
    5. lo0
    6. wlan0
    7. wlan1
    8. pppoe0
    9. bridge0
    The "pppoe0" interface is self evident. That's the overall traffic in and out of the router to the Internet.
    But I also want to monitor the traffic on my local computer, which is a Macbook Pro connected thru wifi. I also have a few other windows boxes on the LAN using wifi or ethernet connect.
    So I need to what those interfaces are.
    Is there any documentation regarding the network interfaces of the AEBS?

    Gabriel Dillaine wrote:
    Now after setting up the SNMP client, it shows so many interfaces the AEBS has, and most names of the interfaces cant give me a clue about what they are:
    This post on another forum will explain some of those:
    http://forums.macrumors.com/showthread.php?t=846079

  • [Solved] Network interfaces change places after every reboot.

    This has been bugging me for a while, it seems that in Arch every time the system reboots, the network interfaces are recognized in a random order.
    So what was eth0 in the last reboot will be eth1 in this reboot, and sometimes it will remain for several reboots and then flip again.
    This does not occur in Fedora on the same machine ever.., does any one know how to work around this problem?
    Last edited by daf666 (2009-08-01 09:33:53)

    fukawi2 wrote:Because we have no way of knowing what your network card drivers and/or MAC addresses are...?
    I meant why is 75-persistent-net-generator.rules.optional optional? or why for example on Fedora this is never an issue?

  • Time Machine could not be configured. The built-in network interface could

    Time Machine could not be configured. The built-in network interface could not be found.
    This is driving me crazy just suddenly happened, any ideas?, have tried the network interface.plist thing without success.

    iblastoff wrote:
    glad im not the only one with this issue...
    i've been able to do one single time machine back up. tried to backup today and i am getting the "time machine could not be configured. the built-in network interface blah blah blah" crap.
    Besides this "me, too" complaint with no information, what have you done about it?
    Have you tried this: http://support.apple.com/kb/HT3275#5
    What is your backup destination?
    What sort of Mac do you have (please update your profile)?

  • External ip adress at the server network interface behind the router

    Hello to all!
    I am installing MacOSX Snow Leopard Server and using it behind my AirPort router as a mail and web server. I was setup Airport at the NAT section with 'Enable default host at' option and all services workning well, but one thing that i want to understand is the 'network interfaces' at the 'Server admin' of Leopard Server. There is listed only internal ip adress (10.0.1.2) that use the my server, but there is no my static external ip adress. Is it correct ? Or i should manualy also to add a external ip adress which is now actually used with my AirPort router?
    If i should, so how do it correctly, using virtual interfaces at the network section or somewhere else?

    So, with any Airport routers i can't to route my public static IP adress to the MacOSX Server machine? I need another router device for this, am i right?
    Your Airport uses your public static IP address.
    Your Airport is typically then configured to port-forward inbound traffic along to your server at your own private static IP address via NAT. The mechanism known as port-forwarding is (once it is configured) how traffic routing to your public static IP address gets routed to your private static IP address.
    In general (and unless something like NAT is involved), there's only one host box active at one IP address at a time.
    I am not sure, but i think that at the server network interface i should has a public static IP adress, but with this configuration i can't see it.
    If you would so kind as to tell me what particular part(s) of [this article|http://labs.hoffmanlabs.com/node/275] are confusing and why, and I'll see if I can address the confusion and to update the article.

  • HP LaserJet P1505n stops printing and blocks network interface

    I have been using my P1505n for over two years without any problem. But it suddenly stopped printing. The scenario is as follows:
    1. The P1505n is connected to a wired home network with reserved IP address in the DHCP server.
    2. The P1505n is used from Ubuntu 10.4, 11.4 , Windows XP and Windows 7 without any previous problems.
    3. The last partial successful print job stopped in the middle of a page leaving the rest blank: no paper jam.
    4. I have reset the printer several times: turn off + press Cancel & Go + turn on while holding the two buttons down.
    5. The first reset was successful: the toner level going from 40 to 100%. The next ones may have been successfull too.
    6. After each reset and also after each power-on, I can ping and access the embedded web server.
    7. Whenever I send a print job, the print queue on the computer (all OS behave identically) says "printing" and stops. I can cancel/remove the jobs from Ubuntu.
    8. After the printer receives the print job, it silently blocks the network interface (no ping nor web) and doesn't print anything. No movementsm no LED blinking either: just nothing happens.
    What is the reason for this problem? And how do I solve it?

    Hi firedude007,
    Welcome to the HP Forums!
    I see that your HP Laserjet P1102w stops printing files from your Mac but not on Windows, and I am happy to help!
    For further assistance, I will need to know the following information:
    The version number of the Mac Operating System. To find the exact version, visit this link. Whatsmyos.
    If the printer is connected, Wireless, or USB.
    If the printer is able to make copies by itself.
    In the meantime, I would try the following:
    Reset the printing system. Mac OS X: How to reset the printing system.
    Verify and repair disk permissions. Disk Utility 12.x: Repair disk permissions.
    Hope to hear from you, and thank you for posting!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • Ix4-300d network interface going off-line

    I just got a new ix4-300d to use as an iSCSI target in a relatively low-performance requirement file server.
    I have used ix4-200d and ix4-300d in the past for iSCSI targets in disk-based backup scenarios wihtout issues. 
    I am having problems with this one, though. I am attempting to copy data to this new unit (with a VHD mounted from the iSCSI connection to the system), and while data seems to copy OK, at some point the network interface quits working somehow. 
    When this occurs, the unit still thinks that the interface is configured, and everything seems OK, I just cannot connect. Obviously, this causes my iSCSI initiators to die, and the VM hosted crashes hard. At that point, I have to restart the storage unit, and then reconnect my initiators, and then bring everything back online.
    I've updated the firmware to the latest, but it wasn't that far out of date. I've found an article titled "Network storage device is not assigned an IP address" in the knowledgebase that points ot a problem with the software in the 4.0.2 series, and I was at 4.0.6, and am now current in 4.0.8. I am testing the process again, but wanted to check with the community to see if anyone has experienced anything similar and/or could offer some idea of why this interface quits working.
    For what it's worth, the other units I have worked with were all in the 3.x series of software.
    Thanks for any help/information anyone can provide.
    Solved!
    Go to Solution.

    Hi chloeroxymax,
    Do you have discovery enabled?
    If not, check the box for "Enable discovery with iSNS" under the iSCSI settings and select "Use local iSNS server".
    Then, on your iSCSI Initiator, go to the Discovery tab. Click "Add Server" under iSNS servers and enter the IP address of the NAS.
    The device should show up under the Targets tab (you may have to click the refresh button)
    On your other NAS devices, go to the iSCSI settings page and select "Enable discovery with iSNS" but select "Use external iSNS server" and type in the IP address of the ix4-300d NAS.
    This may help things run smoothly. If the device is still disconnecting, I would recommend contacting technical support since this is a new device and you are covered by the warranty for support.
    Have questions and need answers?
    Search the database for answers to FAQ's, software/driver downloads, tutorials, news, features and more!
    LenovoEMC Support & Downloads
    LenovoEMC North America Support Contact Page

  • Ghost network interfaces installed

    Some failed installation process have managed to setup > 1000 "Local Area Connections" on  my Windows 7 64-bit installation.
    These do not show using device manager, devcon or other Windows tools. Even if I display hidden ones.
    The only way I can list them is to use the GetIFTable function from the Windows iphlpapi library. When I list the devides, the output is typical like this for one of the > 1000 interfaces:
    Index[484]:      499
    InterfaceName[484]: \DEVICE\TCPIP_{D8911FFA-82B2-4A3D-83B2-D97EC9740F9E}
    Description[484]:
    Type[484]:       Other
    Mtu[484]:                0
    Speed[484]:      0
    Physical Addr:
    Admin Status[484]:       2
    Oper Status[484]:        Non Operational
    I have tried to remove these by searching for the ID in the name (D8911FFA-82B2-4A3D-83B2-D97EC9740F9E) in registry.
    I find typically this entry matching the above ID:
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\{D8911FFA-82B2-4A3D-83B2-D97EC9740F9E}]
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\{D8911FFA-82B2-4A3D-83B2-D97EC9740F9E}\Connection]
    "DefaultNameResourceId"=dword:00000709
    "DefaultNameIndex"=dword:000001f4
    "Name"="Local Area Connection* 500"
    I delete all the registry value/keys matching D8911FFA-82B2-4A3D-83B2-D97EC9740F9E in registry. After I have deleted all, I do a search and find no entries matching this.
    My thought is that this interface should now be gone. I do another registry search to ensure that there are nothing matching D8911FFA-82B2-4A3D-83B2-D97EC9740F9E in registry.
    BUT the problem is that the interface is still there when I run GetIFTable - with the same ID. Even if I reboot the computer it is there.
    Where is this interface defined? If it is not in registry - where can I find it to delete it? I've done a search for file name and file content with the ID but can not find any match - except in some old log file (setupapi.app), where the device was first
    installed:
    >>>  [DIF_INSTALLDEVICE - ROOT\DNI_DNEMP\0000]
    >>>  Section start 2012/11/14 08:08:30.360
          cmd: C:\Windows\system32\svchost.exe -k netsvcs
         cci: NdisCoinst: Guid of the adapter is {D8911FFA-82B2-4A3D-83B2-D97EC9740F9E}
         cci: NdisCoinst: IfType 1, Characteristics 0x29, IsIrdaDevice 0, PhysicalMediaType -1, MediaType -1, IsBridge 0, FoundGuidInDownlevel 0, EnableDhcp 2
         cci: NdisCoinst: Connection name is Local Area Connection* 500
         cci: NdisCoinst: Allocated NetLuidIndex is 1
         dvi: {Writing Device Properties}
    !!!  dvi: Add Service: Binary 'C:\Windows\system32\DRIVERS\dne64x.sys' for service 'DNE' is not present.
    !!!  inf: {Install Inf Section [DneMP.ndi.NTamd64.Services] exit(0xe0000217)}
    !!!  inf: Error 0xe0000217: A service installation section in this INF is invalid.
    !!!  dvi: Error while installing services.
    !!!  dvi: Error 0xe0000217: A service installation section in this INF is invalid.
    !!!  dvi: Cleaning up failed installation
    !!!  dvi: Error 0xe0000217: A service installation section in this INF is invalid.
    !!!  dvi: Cleaning up failed installation (e0000217)
    !!!  dvi: Class installer: failed(0xe0000217)!
    !!!  dvi: Error 0xe0000217: A service installation section in this INF is invalid.
    !!!  cci: NdisCoinst: NcipOpenDriverRegistryKey failed with error code 0xe0000204
    !!!  cci: NdisCoinst: NcipOpenDriverRegistryKey failed with error code 0xe0000204
    !!!  cci: NdisCoinst: DIF_INSTALLDEVICE Post-processing called with InstallResult 0xe0000217
    <<<  Section end 2012/11/14 08:08:30.421
    <<<  [Exit status: FAILURE(0xe0000217)]
    Any ideas? I would like to delete these non-working interfaces. They slow down the computer on certain software using GetIFTable function.

    Good news : the problem seems to be solved. Less good news (for those who encounter the same problem)...I am not sure how I did it :S
    I don't remember doing anything special between when I wrote the previous post and now, except that at some point, I went into Control Panel -> Network and Sharing Center -> Change Adapter Settings. Then I right-clicked the adapter "Microsoft Virtual
    WiFi Miniport Adapter" and selected "Disable".
    I did this because I saw in another forum, that this would prevent it from creating more 6to4 Adapters. However, right after doing it, I checked and the ISATAP Adapters were still here. It was only some moments later, I was checking the network interface
    properties again with a test program using GetIfTable2, when I noticed the ISATAP adapters had disappeared. And even after a reboot, they haven't come back, and my programs now start in a reasonable time. So, the problem seems to be solved for me.
    So, to anyone encountering this problem, maybe you could try disabling the Virtual WiFi Miniport, and then reboot or wait like 1 hour. If that doesn't work...then I don't know :S

Maybe you are looking for

  • Anyone seeing form field display glitches in Safari 6?

    Things like text that disappears as you type (but it's really still there) in heavily styled form fields. Might be a CSS issue. It seems to crop up after running the app for several hours and can be helped by restarting.

  • Windows Application - PDF Viewer

    Hi, We are using windows application PDF viewer with Acrobat API. The pdf document is loading correctly without issues but the Tool menu is not displayed. How to include tool menu in wondows form (PDF Viewer).

  • Show/hide in an ADDT form

    has anyone successfully used a show/hide script of any kind in an ADDT form? What I'm trying to do is, I've got Yes and No radio buttons.  If Yes is clicked, a text box appears in the row below. If No is clicked, no change occurs. I had one that was

  • Special characters in file names and directories

    I'm building a site that lets users create directories to which they give the name they want. Using PHP, is there one universal solution to avoid any special characters in directories, yet will display the directory/file names in html the way the use

  • Has anyone created a lottery number generator within Labview & if so can I have a copy please?

    I would like to study the program of a lottery number generator for Labview if anyone has created or knows where I can get this.