How do i check if DHCP is enabled?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












I have a VM running Debian 9 and the latest version of VirtualBox. I have VirtualBox configured to use the bridged adapter and it was working fine yesterday. But when I came and got on it this morning... I am unable to access the network from it or the internet. Here is the output of ip address show



ip address show output







share|improve this question




















  • Just systemctl restart networking.service, and to verify if your dhclient is still running: ps -elf | grep dhclient
    – NarÅ«nasK
    Oct 20 '17 at 13:22














up vote
2
down vote

favorite












I have a VM running Debian 9 and the latest version of VirtualBox. I have VirtualBox configured to use the bridged adapter and it was working fine yesterday. But when I came and got on it this morning... I am unable to access the network from it or the internet. Here is the output of ip address show



ip address show output







share|improve this question




















  • Just systemctl restart networking.service, and to verify if your dhclient is still running: ps -elf | grep dhclient
    – NarÅ«nasK
    Oct 20 '17 at 13:22












up vote
2
down vote

favorite









up vote
2
down vote

favorite











I have a VM running Debian 9 and the latest version of VirtualBox. I have VirtualBox configured to use the bridged adapter and it was working fine yesterday. But when I came and got on it this morning... I am unable to access the network from it or the internet. Here is the output of ip address show



ip address show output







share|improve this question












I have a VM running Debian 9 and the latest version of VirtualBox. I have VirtualBox configured to use the bridged adapter and it was working fine yesterday. But when I came and got on it this morning... I am unable to access the network from it or the internet. Here is the output of ip address show



ip address show output









share|improve this question











share|improve this question




share|improve this question










asked Oct 20 '17 at 13:05









Bryan Pruett

114




114











  • Just systemctl restart networking.service, and to verify if your dhclient is still running: ps -elf | grep dhclient
    – NarÅ«nasK
    Oct 20 '17 at 13:22
















  • Just systemctl restart networking.service, and to verify if your dhclient is still running: ps -elf | grep dhclient
    – NarÅ«nasK
    Oct 20 '17 at 13:22















Just systemctl restart networking.service, and to verify if your dhclient is still running: ps -elf | grep dhclient
– NarÅ«nasK
Oct 20 '17 at 13:22




Just systemctl restart networking.service, and to verify if your dhclient is still running: ps -elf | grep dhclient
– NarÅ«nasK
Oct 20 '17 at 13:22










1 Answer
1






active

oldest

votes

















up vote
1
down vote













In order to get a new IP address through DHCP, dhclient must be running. Run in manually to confirm it works.



Then check your /etc/network/interfaces file, it should contain a line like:



iface enp0s3 inet dhcp


if it doesn't, add it and restart the netwrok with



systemctl network restart





share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f399339%2fhow-do-i-check-if-dhcp-is-enabled%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    In order to get a new IP address through DHCP, dhclient must be running. Run in manually to confirm it works.



    Then check your /etc/network/interfaces file, it should contain a line like:



    iface enp0s3 inet dhcp


    if it doesn't, add it and restart the netwrok with



    systemctl network restart





    share|improve this answer
























      up vote
      1
      down vote













      In order to get a new IP address through DHCP, dhclient must be running. Run in manually to confirm it works.



      Then check your /etc/network/interfaces file, it should contain a line like:



      iface enp0s3 inet dhcp


      if it doesn't, add it and restart the netwrok with



      systemctl network restart





      share|improve this answer






















        up vote
        1
        down vote










        up vote
        1
        down vote









        In order to get a new IP address through DHCP, dhclient must be running. Run in manually to confirm it works.



        Then check your /etc/network/interfaces file, it should contain a line like:



        iface enp0s3 inet dhcp


        if it doesn't, add it and restart the netwrok with



        systemctl network restart





        share|improve this answer












        In order to get a new IP address through DHCP, dhclient must be running. Run in manually to confirm it works.



        Then check your /etc/network/interfaces file, it should contain a line like:



        iface enp0s3 inet dhcp


        if it doesn't, add it and restart the netwrok with



        systemctl network restart






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 20 '17 at 13:35









        Alex Austin

        1756




        1756



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f399339%2fhow-do-i-check-if-dhcp-is-enabled%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay