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

    Solved dhclient preventing network.service from starting

    IT Discussion
    centos services linux
    3
    5
    999
    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.
    • DustinB3403D
      DustinB3403
      last edited by

      So a user who operates on a centos box had an issue today that I was able to fix, but I'm uncertain of what happened / was changed to have caused it in the first place.

      To summarize the system has 2 NICs installed, one for the network and the other for a target device. The Target device is attached to eth0 on the user system.

      I was told the system was acting funny and rebooted in a hopes to correct the funny-ness. I was called immediately afterwards.

      I checked the NIC interfaces to see if they were up and eth0 didn't have the assigned IP address, which I knew was the issue.

      I attempted to start the network service with systemctl start network.service which failed, because dhclient was running. (error 1)

      I killed the process by confirming it with this ps ax | grep [d]cli then sudo killall dhclient and lastly systemctl start network.service, so what would've changed or caused dhclient to start on the system? What is the fix to keeping dhclient disabled and allowing network.service to manage the interfaces?

      RomoR 1 Reply Last reply Reply Quote 0
      • RomoR
        Romo @DustinB3403
        last edited by

        @dustinb3403 Does the system have an static ip assigned? Because if it does not, if I am not mistaken, NetworkManager should be managing dhclient by default .

        You could have tried

        sudo dhclient -r eth0
        sudo dhclient eth0
        

        or restarting NetworkManager.service, it should have fixed your problem.

        1 Reply Last reply Reply Quote 2
        • DustinB3403D
          DustinB3403
          last edited by

          Both interfaces are statically assigned. Eth0 directly connects to a server using a preassigned IP address (that isn't in our scope) nor browseable.

          1 Reply Last reply Reply Quote 0
          • DustinB3403D
            DustinB3403
            last edited by

            Disabled network manager and the issue appears to be resolved. @Romo thanks for the help.

            travisdh1T 1 Reply Last reply Reply Quote 1
            • travisdh1T
              travisdh1 @DustinB3403
              last edited by

              @dustinb3403 said in dhclient preventing network.service from starting:

              Disabled network manager and the issue appears to be resolved. @Romo thanks for the help.

              After all these years, it's still a pain in the neck.

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