ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    CentOS 7: eth0 down after reboot

    IT Discussion
    5
    11
    2.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • FATeknollogeeF
      FATeknollogee
      last edited by FATeknollogee

      Network configuration file in /etc/sysconfig/network-scripts/ is set to 'ONBOOT=yes'
      I still need to restart the network service after a reboot.

      Anyone have any idea why this is like this?
      I just did a clean install & this issue still exists.

      The vm's boot up & grab IP addresses but you can't SSH even though the SSH service is running.
      Once I re-start the network service then I can SSH in.

      1 Reply Last reply Reply Quote 1
      • black3dynamiteB
        black3dynamite
        last edited by black3dynamite

        NetworkManager is running after reboot?

        systemctl status NetworkManager
        
        FATeknollogeeF 1 Reply Last reply Reply Quote 0
        • FATeknollogeeF
          FATeknollogee @black3dynamite
          last edited by

          @black3dynamite said in CentOS 7: eth0 down after reboot:

          NetworkManager is running after reboot?

          systemctl status NetworkManager
          

          Yes, active & running

          1 Reply Last reply Reply Quote 0
          • black3dynamiteB
            black3dynamite
            last edited by

            Here's my settings in ifcfg-eth0

            TYPE=Ethernet
            PROXY_METHOD=none
            BROWSER_ONLY=no
            BOOTPROTO=dhcp
            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=eth0
            UUID=4c942ade-7461-438c-96e8-2cc3eb15cdf7
            DEVICE=eth0
            ONBOOT=yes
            IPV6_PRIVACY=no
            ZONE=public
            
            FATeknollogeeF 1 Reply Last reply Reply Quote 0
            • FATeknollogeeF
              FATeknollogee @black3dynamite
              last edited by

              @black3dynamite Mine looks the same.

              1 Reply Last reply Reply Quote 0
              • ObsolesceO
                Obsolesce
                last edited by

                I always end up disabling Network Manager in CentOS because of dumb issues like this. Then it works great afterwards.

                black3dynamiteB 1 Reply Last reply Reply Quote 1
                • black3dynamiteB
                  black3dynamite @Obsolesce
                  last edited by

                  @obsolesce said in CentOS 7: eth0 down after reboot:

                  I always end up disabling Network Manager in CentOS because of dumb issues like this. Then it works great afterwards.

                  I’ve never had issues with Network Manager. The only reason I would disable it because some weird applications doesn’t play nice with Network Manager.

                  1 Reply Last reply Reply Quote 0
                  • dafyreD
                    dafyre
                    last edited by

                    I've recently had issues with Nic's being renamed from something like eth0 to something like enp2s0 and vice versa at reboots.

                    coliverC 1 Reply Last reply Reply Quote 0
                    • coliverC
                      coliver @dafyre
                      last edited by

                      @dafyre said in CentOS 7: eth0 down after reboot:

                      I've recently had issues with Nic's being renamed from something like eth0 to something like enp2s0 and vice versa at reboots.

                      There is a Red hat in article about that.

                      1 Reply Last reply Reply Quote 0
                      • FATeknollogeeF
                        FATeknollogee
                        last edited by

                        Adding this line (suggestion by Squeakz on #ovirt IRC) fixed the issue.
                        Each host has 4 nics, I only made the change on the first nic. When I tried on all 4 nics, none of them worked after reboot..

                        NM_CONTROLLED=no
                        
                        ObsolesceO 1 Reply Last reply Reply Quote 1
                        • ObsolesceO
                          Obsolesce @FATeknollogee
                          last edited by

                          @fateknollogee said in CentOS 7: eth0 down after reboot:

                          Adding this line (suggestion by Squeakz on #ovirt IRC) fixed the issue.
                          Each host has 4 nics, I only made the change on the first nic. When I tried on all 4 nics, none of them worked after reboot..

                          NM_CONTROLLED=no
                          

                          My point exactly. Get Network Manager out of the equation on CentOS, things always start working.

                          1 Reply Last reply Reply Quote 0
                          • 1 / 1
                          • First post
                            Last post