Skip to main content

after of install cPanel my CentOs don't have /etc/sysconfig/network-scripts/ifcfg-eth0 is dangerous?

Comments

6 comments

  • Jack Banka

    Seems so.  Tried to upgrade and got this message: 

    Unable to rename eth0 to cpeth0. The line beginning with 'DEVICE' in /etc/sysconfig/network-scripts/ifcfg-eth0 was not found.

    0
  • Andrew

    The name is probably "ensX" instead? What files you see under network-scripts?

    Andrew N. - cPanel Plesk VMWare Certified Professional
    Do you need immediate assistance? 20 minutes response time!* Open a ticket
    EmergencySupport - Professional Server Management and One-time Services

    0
  • Jack Banka

    I see both eth0 and eth1.  Contents have;

    # Generated by dracut initrd
    NAME="eth0"
    HWADDR="ac:1f:6b:fd:58:62"
    ONBOOT="no"
    NETBOOT=yes
    UUID="10ae8a49-a6c8-4324-ae84-809db3f0c684"
    IPV6INIT=yes
    BOOTPROTO="none"
    TYPE=Ethernet
    DNS1="8.8.8.8"
    DEFROUTE=no

    As you can see there is no line with DEVICE, thus causing the error.

    0
  • Jack Banka

    eth1 contains:

    TYPE=Ethernet
    PROXY_METHOD=none
    BROWSER_ONLY=no
    BOOTPROTO="static"
    DEFROUTE=yes
    IPV4_FAILURE_FATAL=no
    IPV6INIT=yes
    IPV6_AUTOCONF=yes
    IPV6_DEFROUTE=yes
    IPV6_FAILURE_FATAL=no
    IPV6_ADDR_GEN_MODE=stable-privacy
    NAME=eth1
    UUID=45d76463-5607-499a-912e-d445aa063635
    DEVICE=eth1
    ONBOOT="yes"

    0
  • Andrew
    Translate

    Please don't hijack the thread. The OP issue is:

    hello, after of install cPanel my OS CentOs don"t have the file /etc/sysconfig/network-scripts/ifcfg-eth0 that is problematic?

    Andrew N. - cPanel Plesk VMWare Certified Professional
    Do you need immediate assistance? 20 minutes response time!* Open a ticket
    EmergencySupport - Professional Server Management and One-time Services

     

    0
  • Jack Banka

    My apologies.  I had the same issue when I tried to rename my network interface to find there are no files in there.  It was only after I rebooted and failed Stage 2 of Elevate that I was able to see those files.  I am also running CentOS 7.9.  As you can see, those files are generated by dracut initrd so the OP may want to look at those modules.  I have no clue why they were not there before I ran elevate and are there now.

    0

Please sign in to leave a comment.