-2

I have a virtual machine with Mandriva 2007.0 (yes, old - unfortunately we do not have a choice here). Anyway, the problem:

Before reboot: active network interface = eth0. No other interfaces present, and network manager confirms this. Static IP address set to 172.31.2.22. No issues, everything working properly, routing et al.

-------Reboot---------

After reboot: active network interface = eth1, with a DHCP address. Network manager shows eth0 as disconnected, and not connectable. When I try to set eth1 up with the static IP address (same one), it says "In Use". I then tried ifconfig eth0 172.31.2.29 just to free it up from the eth0 interface so I could use it with eth1 (since this is connected).

Result:

ifconfig eth0 172.31.2.29
SIOCSIFADDR: No such device
eth0: unknown interface: No such device

Nothing else changed. Any ideas what could be happening, or at least how I can get my IP address back?

Sagar
  • 524
  • 3
  • 7
  • 20

4 Answers4

1

What do you get if you try this?

ifconfig eth1 172.31.2.22

Also, what does

route -n

show? Do you have a route for that network? Via what interface?

And finally, what happens if you try to ping the address and then look it up on the arp table with arp -an?

Eduardo Ivanec
  • 14,531
  • 1
  • 35
  • 42
0

Guessing here (been a while since I saw Mandriva) but if this was Redhat I'd check that you do not have a HWADDR= line in the /etc/sysconfig/network-scripts/ifcfg-eth0. If that line exists it will not apply the eth0 configuration to a network adapter with a different MAC address.

mfarver
  • 2,576
  • 13
  • 16
0

If Kudzu is installed on your system, try removing it. If the MAC address of your interface has changed for some reason, Kudzu will interpret this as a new network card and result in the behavior that you've described.

Before you reboot, you may also need to modify a file somewhere under /etc/udev. Try this:

grep -rl 'eth[01]' /etc/udev

And then remove any matching lines. Whereby "remove" I mean "remove them from the file but preserve them for posterity in case you remove the wrong things".

larsks
  • 41,276
  • 13
  • 117
  • 170
0

Also see: NIC reordering on RHEL5/CentOS 5

ewwhite
  • 194,921
  • 91
  • 434
  • 799
  • Well, there was only one NIC in that system, so it shouldn't have reordered. Anyway, I rebuilt the system. Thanks though! – Sagar Apr 13 '11 at 13:21