Skip to main content

eth0 up but ifcfg-eth0 missing

Comments

5 comments

  • 24x7server
    Hi, You will have to check what ethernet actually system has made an entry of. Use the below command to check what ethernet device is named by the system: # ip addr show Check if it is eth, ens or any other.
    0
  • carock
    Hi, You will have to check what ethernet actually system has made an entry of. Use the below command to check what ethernet device is named by the system: # ip addr show Check if it is eth, ens or any other.

    It also says eth0, notice it's a /24 and the additional IP's are the correct /29 #ip addr show 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 5a:37:82:63:6e:12 brd ff:ff:ff:ff:ff:ff inet 68.90.69.102/24 brd 68.90.69.255 scope global noprefixroute eth0 valid_lft forever preferred_lft forever inet 68.90.69.108/29 brd 68.90.69.111 scope global eth0:cp1 valid_lft forever preferred_lft forever inet 68.90.69.98/29 brd 68.90.69.103 scope global eth0:cp3 valid_lft forever preferred_lft forever inet 68.90.69.107/29 brd 68.90.69.111 scope global secondary eth0:cp2 valid_lft forever preferred_lft forever inet 68.90.69.101/29 brd 68.90.69.103 scope global secondary eth0:cp4 valid_lft forever preferred_lft forever inet6 fe80::5837:82ff:fe63:6e12/64 scope link valid_lft forever preferred_lft forever 3: eth1: mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 96:25:1e:80:9a:b5 brd ff:ff:ff:ff:ff:ff .. ... Directory list of /etc/sysconfig/network-scripts/ drwxr-xr-x. 2 root root 4096 May 19 00:19 ./ drwxr-xr-x. 6 root root 4096 May 19 00:19 ../ -rw------- 1 root root 335 Oct 21 2017 ifcfg-eth1 -rw------- 1 root root 272 Apr 4 15:49 ifcfg-eth1:0 -rw-r--r-- 1 root root 254 Jan 2 10:29 ifcfg-lo -rw-r--r-- 1 root root 421 Oct 21 2017 ifcfg-Wired_connection_1 lrwxrwxrwx 1 root root 24 May 11 00:21 ifdown -> ../../../usr/sbin/ifdown* -rwxr-xr-x 1 root root 654 Jan 2 10:29 ifdown-bnep* -rwxr-xr-x 1 root root 6569 Jan 2 10:29 ifdown-eth* -rwxr-xr-x 1 root root 6190 May 16 06:18 ifdown-ib* -rwxr-xr-x 1 root root 781 Jan 2 10:29 ifdown-ippp* -rwxr-xr-x 1 root root 4540 Jan 2 10:29 ifdown-ipv6* lrwxrwxrwx 1 root root 11 May 11 00:21 ifdown-isdn -> ifdown-ippp* -rwxr-xr-x 1 root root 2102 Jan 2 10:29 ifdown-post* -rwxr-xr-x 1 root root 1068 Jan 2 10:29 ifdown-ppp* -rwxr-xr-x 1 root root 870 Jan 2 10:29 ifdown-routes* -rwxr-xr-x 1 root root 1456 Jan 2 10:29 ifdown-sit* -rwxr-xr-x 1 root root 1621 Mar 17 2017 ifdown-Team* -rwxr-xr-x 1 root root 1556 Mar 17 2017 ifdown-TeamPort* -rwxr-xr-x 1 root root 1462 Jan 2 10:29 ifdown-tunnel* lrwxrwxrwx 1 root root 22 May 11 00:21 ifup -> ../../../usr/sbin/ifup* -rwxr-xr-x 1 root root 12415 Jan 2 10:29 ifup-aliases* -rwxr-xr-x 1 root root 910 Jan 2 10:29 ifup-bnep* -rwxr-xr-x 1 root root 13442 Jan 2 10:29 ifup-eth* -rwxr-xr-x 1 root root 10114 May 16 06:18 ifup-ib* -rwxr-xr-x 1 root root 12075 Jan 2 10:29 ifup-ippp* -rwxr-xr-x 1 root root 11893 Jan 2 10:29 ifup-ipv6* lrwxrwxrwx 1 root root 9 May 11 00:21 ifup-isdn -> ifup-ippp* -rwxr-xr-x 1 root root 650 Jan 2 10:29 ifup-plip* -rwxr-xr-x 1 root root 1064 Jan 2 10:29 ifup-plusb* -rwxr-xr-x 1 root root 4981 Jan 2 10:29 ifup-post* -rwxr-xr-x 1 root root 4154 Jan 2 10:29 ifup-ppp* -rwxr-xr-x 1 root root 2001 Jan 2 10:29 ifup-routes* -rwxr-xr-x 1 root root 3303 Jan 2 10:29 ifup-sit* -rwxr-xr-x 1 root root 1755 Mar 17 2017 ifup-Team* -rwxr-xr-x 1 root root 1876 Mar 17 2017 ifup-TeamPort* -rwxr-xr-x 1 root root 2711 Jan 2 10:29 ifup-tunnel* -rwxr-xr-x 1 root root 1836 Jan 2 10:29 ifup-wireless* -rwxr-xr-x 1 root root 5419 Jan 2 10:29 init.ipv6-global* -rw-r--r-- 1 root root 19948 Jan 2 10:29 network-functions -rw-r--r-- 1 root root 31027 Jan 2 10:29 network-functions-ipv6 -rw-r--r-- 1 root root 157 Oct 21 2017 route-eth1
    0
  • cPanelLauren
    Hi @carock The name of the file doesn't necessarily mean it's the "device name" whats the output of the following: grep -r DEVICE /etc/sysconfig/network-scripts/ifcfg-*
    Thanks!
    0
  • carock
    Hi @carock The name of the file doesn't necessarily mean it's the "device name" whats the output of the following: grep -r DEVICE /etc/sysconfig/network-scripts/ifcfg-*
    Thanks!

    /etc/sysconfig/network-scripts/ifcfg-eth1:DEVICE=eth1 /etc/sysconfig/network-scripts/ifcfg-eth1:0:DEVICE=eth1:0 /etc/sysconfig/network-scripts/ifcfg-lo:DEVICE=lo I found the recommendation today about disabling Network Manager for cPanel installations. I disabled it and created that ifcfg-eth0 file. Restarted the network services, but nothing changed. I'm going to try a reboot tonight and see if that helps.
    0
  • 24x7server
    Hi, Create ifcff-eth0 file with HWADDR as 5a:37:82:63:6e:12 and then try to restart the network daemon.
    0

Please sign in to leave a comment.