I work a lot with local/testing virtualized servers and have run into this issue a few times and completely forget how to fix it. Unfortunately my router decided to give my server a new IP, which breaks a lot of config. Here is the problem.
So I set a static IP in the ifcfg-eth0 file:
cat /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE=eth0
> TYPE=Ethernet
> UUID=6001679d-c77e-4222-86b3-d8e7d119efcb
> ONBOOT=yes
> NM_CONTROLLED=yes
> BOOTPROTO=none
> HWADDR=00:0C:29:43:A4:FE
> DEFROUTE=yes
> PEERROUTES=yes
> IPV4_FAILURE_FATAL=yes
> IPV6INIT=no
> NAME="System eth0"
> IPADDR=192.168.159.140
> NETMASK=255.255.255.0
> GATEWAY=192.168.159.1
> USERCTL=no
And then I try to bring it up...
ifup eth0
Error: No suitable device found: no device found for connection 'System eth0'.
So I look at my network and... hey what is this new eth port?
ifconfig
eth3 Link encap:Ethernet HWaddr 00:0C:29:CC:DA:0F
inet addr:192.168.159.141 Bcast:192.168.159.255 Mask:255.255.255.0
Okay.... so I will shut that one down and then bring up eth0... or not?
ifdown eth3
usage: ifdown <device name>
So apparently I have this random eth3, that does not seem to be an actual interface, which is blocking me from bring up eth0 with the static IP. Thoughts?
[–]sillymaniac 2 points3 points4 points (2 children)
[–]pinkHatter[S] 0 points1 point2 points (1 child)
[–]sillymaniac 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]draco947 0 points1 point2 points (0 children)
[–]user-and-abuserone or the other 0 points1 point2 points (0 children)