Skip to main content
added 3 characters in body; edited tags
Source Link
Gilles 'SO- stop being evil'
  • 865.3k
  • 205
  • 1.8k
  • 2.3k

So this has been driving me nuts for a good couple of hours, so I thought I'd ask about it here (let me know if there's a better forum for this question).

I have a CentOS Virtual Machine on ESXi. I was trying to configure the network interface because it wasn't working, so I changed the file /etc/sysconfig/network-scripts/ifcfg-eth0/etc/sysconfig/network-scripts/ifcfg-eth0 to the right IP address/gateway/netmask/MAC ID etc. After restarting the network this has fixed my connection problem (I can ping the default gateway and other VMs). However, when I type "ifconfig" I don't get the listing of "eth0" as an interface, but I get "eth2" and "eth3"instead, even though the files /etc/sysconfig/network-scripts/ifcfg-eth2/etc/sysconfig/network-scripts/ifcfg-eth and /etc/sysconfig/network-scripts/ifcfg-eth3/etc/sysconfig/network-scripts/ifcfg-eth3 do not exist.

This makes me think that "ifconfig" gets its interface list from somewhere else, and I'm not really clear on how it does this. I tried editing /etc/udev/rules.d/70-persistent-net.rules/etc/udev/rules.d/70-persistent-net.rules to see if deleting the entries for 'eth2'eth2 and 'eth3'eth3 would fix this, but it doesn't.

So if anyone knows why I'm getting this behavior for ifconfig, let me know. Thanks!

So this has been driving me nuts for a good couple of hours, so I thought I'd ask about it here (let me know if there's a better forum for this question).

I have a CentOS Virtual Machine on ESXi. I was trying to configure the network interface because it wasn't working, so I changed the file /etc/sysconfig/network-scripts/ifcfg-eth0 to the right IP address/gateway/netmask/MAC ID etc. After restarting the network this has fixed my connection problem (I can ping the default gateway and other VMs). However, when I type "ifconfig" I don't get the listing of "eth0" as an interface, but I get "eth2" and "eth3"instead, even though the files /etc/sysconfig/network-scripts/ifcfg-eth2 and /etc/sysconfig/network-scripts/ifcfg-eth3 do not exist.

This makes me think that "ifconfig" gets its interface list from somewhere else, and I'm not really clear on how it does this. I tried editing /etc/udev/rules.d/70-persistent-net.rules to see if deleting the entries for 'eth2' and 'eth3' would fix this, but it doesn't.

So if anyone knows why I'm getting this behavior for ifconfig, let me know. Thanks!

So this has been driving me nuts for a good couple of hours, so I thought I'd ask about it here (let me know if there's a better forum for this question).

I have a CentOS Virtual Machine on ESXi. I was trying to configure the network interface because it wasn't working, so I changed the file /etc/sysconfig/network-scripts/ifcfg-eth0 to the right IP address/gateway/netmask/MAC ID etc. After restarting the network this has fixed my connection problem (I can ping the default gateway and other VMs). However, when I type "ifconfig" I don't get the listing of "eth0" as an interface, but I get "eth2" and "eth3"instead, even though the files /etc/sysconfig/network-scripts/ifcfg-eth and /etc/sysconfig/network-scripts/ifcfg-eth3 do not exist.

This makes me think that "ifconfig" gets its interface list from somewhere else, and I'm not really clear on how it does this. I tried editing /etc/udev/rules.d/70-persistent-net.rules to see if deleting the entries for eth2 and eth3 would fix this, but it doesn't.

So if anyone knows why I'm getting this behavior for ifconfig, let me know. Thanks!

Source Link

Network Interface Names output from ifconfig

So this has been driving me nuts for a good couple of hours, so I thought I'd ask about it here (let me know if there's a better forum for this question).

I have a CentOS Virtual Machine on ESXi. I was trying to configure the network interface because it wasn't working, so I changed the file /etc/sysconfig/network-scripts/ifcfg-eth0 to the right IP address/gateway/netmask/MAC ID etc. After restarting the network this has fixed my connection problem (I can ping the default gateway and other VMs). However, when I type "ifconfig" I don't get the listing of "eth0" as an interface, but I get "eth2" and "eth3"instead, even though the files /etc/sysconfig/network-scripts/ifcfg-eth2 and /etc/sysconfig/network-scripts/ifcfg-eth3 do not exist.

This makes me think that "ifconfig" gets its interface list from somewhere else, and I'm not really clear on how it does this. I tried editing /etc/udev/rules.d/70-persistent-net.rules to see if deleting the entries for 'eth2' and 'eth3' would fix this, but it doesn't.

So if anyone knows why I'm getting this behavior for ifconfig, let me know. Thanks!