Setting up an external DHCP server causes Huawei B310 to stop responding












1














I have moved houses, and thereby internet providers. Choosing a 4G connection rather than a landline, I bought a Huawei B310 for my home network. My LAN is unusual in that I run my own DHCP and DNS in order to run all my traffic over a VPN. In my previous home, this all worked perfectly on Virgin Media.



After ensuring everything is on the correct subnet (192.168.1.0/24), I plugged the B310 into my unmanaged switch and very quickly lost access to the web UI. After tracing to my server, and then to the specific service that kicked the router offline, I was very surprised to see it is isc-dhcp-server (4.3.1-6+deb8u2, running on Debian v8 Jessie). Reproducibly, starting up the daemon causes the router to cease responding to ping after 2-3 seconds.



I have switched off DHCP on the router and this does not cause any problems, but as soon as I switch on my own, the router stops working - it seems to drop all traffic. I have run nmap -Pn 192.168.1.1 and this returns the expected ports, showing them as 'filtered', but the router does not respond to anything. Shutting off DHCP, unplugging ethernet and plugging it back in brings it back.



My question to you network people is - is this actually possible? If so, how? I don't understand how or why the router would care about DHCP working externally. If it's a setting I've gotten wrong, I could accept that, but my understanding of DHCP is that the server simply waits for a request, and at this point everything connected to the switch had an IP assigned. I'm very confused.










share|improve this question






















  • Which information does your DHCP server send out? Does it include the gateway and nameserver? It's possible that this somehow confuses the router setup (test by removing this information). Does the DHCP server assign the static 192.168.1.1 address to the router, or a dynamic address? Do you have shell access to the router?
    – dirkt
    Dec 2 '17 at 7:06










  • Getting shell access to the Huawei B593.
    – dirkt
    Dec 2 '17 at 7:07










  • @dirkt I use DHCP to override gateway, DNS and domain name, yes. The gateway is the VPN VM that then forwards all traffic. I can try removing it. The DHCP range is .32 onwards and deliberately does not go near .1. This is assigned statically in the router config. I don't have shell access at present but will try your link for the B593 - hopefully the firmware is similar enough.
    – Gargravarr
    Dec 2 '17 at 18:03










  • I meant: Does it assign the 192.168.1.1 to the router if the router does a DHCP request (the router does a DHCP request, does it? You checked the logs)? If not, it may screw up the internal config.
    – dirkt
    Dec 2 '17 at 18:05










  • In general, it might be a good idea to use wireshark to see what exact exchange of packets causes the router to stop working.
    – dirkt
    Dec 2 '17 at 18:06
















1














I have moved houses, and thereby internet providers. Choosing a 4G connection rather than a landline, I bought a Huawei B310 for my home network. My LAN is unusual in that I run my own DHCP and DNS in order to run all my traffic over a VPN. In my previous home, this all worked perfectly on Virgin Media.



After ensuring everything is on the correct subnet (192.168.1.0/24), I plugged the B310 into my unmanaged switch and very quickly lost access to the web UI. After tracing to my server, and then to the specific service that kicked the router offline, I was very surprised to see it is isc-dhcp-server (4.3.1-6+deb8u2, running on Debian v8 Jessie). Reproducibly, starting up the daemon causes the router to cease responding to ping after 2-3 seconds.



I have switched off DHCP on the router and this does not cause any problems, but as soon as I switch on my own, the router stops working - it seems to drop all traffic. I have run nmap -Pn 192.168.1.1 and this returns the expected ports, showing them as 'filtered', but the router does not respond to anything. Shutting off DHCP, unplugging ethernet and plugging it back in brings it back.



My question to you network people is - is this actually possible? If so, how? I don't understand how or why the router would care about DHCP working externally. If it's a setting I've gotten wrong, I could accept that, but my understanding of DHCP is that the server simply waits for a request, and at this point everything connected to the switch had an IP assigned. I'm very confused.










share|improve this question






















  • Which information does your DHCP server send out? Does it include the gateway and nameserver? It's possible that this somehow confuses the router setup (test by removing this information). Does the DHCP server assign the static 192.168.1.1 address to the router, or a dynamic address? Do you have shell access to the router?
    – dirkt
    Dec 2 '17 at 7:06










  • Getting shell access to the Huawei B593.
    – dirkt
    Dec 2 '17 at 7:07










  • @dirkt I use DHCP to override gateway, DNS and domain name, yes. The gateway is the VPN VM that then forwards all traffic. I can try removing it. The DHCP range is .32 onwards and deliberately does not go near .1. This is assigned statically in the router config. I don't have shell access at present but will try your link for the B593 - hopefully the firmware is similar enough.
    – Gargravarr
    Dec 2 '17 at 18:03










  • I meant: Does it assign the 192.168.1.1 to the router if the router does a DHCP request (the router does a DHCP request, does it? You checked the logs)? If not, it may screw up the internal config.
    – dirkt
    Dec 2 '17 at 18:05










  • In general, it might be a good idea to use wireshark to see what exact exchange of packets causes the router to stop working.
    – dirkt
    Dec 2 '17 at 18:06














1












1








1







I have moved houses, and thereby internet providers. Choosing a 4G connection rather than a landline, I bought a Huawei B310 for my home network. My LAN is unusual in that I run my own DHCP and DNS in order to run all my traffic over a VPN. In my previous home, this all worked perfectly on Virgin Media.



After ensuring everything is on the correct subnet (192.168.1.0/24), I plugged the B310 into my unmanaged switch and very quickly lost access to the web UI. After tracing to my server, and then to the specific service that kicked the router offline, I was very surprised to see it is isc-dhcp-server (4.3.1-6+deb8u2, running on Debian v8 Jessie). Reproducibly, starting up the daemon causes the router to cease responding to ping after 2-3 seconds.



I have switched off DHCP on the router and this does not cause any problems, but as soon as I switch on my own, the router stops working - it seems to drop all traffic. I have run nmap -Pn 192.168.1.1 and this returns the expected ports, showing them as 'filtered', but the router does not respond to anything. Shutting off DHCP, unplugging ethernet and plugging it back in brings it back.



My question to you network people is - is this actually possible? If so, how? I don't understand how or why the router would care about DHCP working externally. If it's a setting I've gotten wrong, I could accept that, but my understanding of DHCP is that the server simply waits for a request, and at this point everything connected to the switch had an IP assigned. I'm very confused.










share|improve this question













I have moved houses, and thereby internet providers. Choosing a 4G connection rather than a landline, I bought a Huawei B310 for my home network. My LAN is unusual in that I run my own DHCP and DNS in order to run all my traffic over a VPN. In my previous home, this all worked perfectly on Virgin Media.



After ensuring everything is on the correct subnet (192.168.1.0/24), I plugged the B310 into my unmanaged switch and very quickly lost access to the web UI. After tracing to my server, and then to the specific service that kicked the router offline, I was very surprised to see it is isc-dhcp-server (4.3.1-6+deb8u2, running on Debian v8 Jessie). Reproducibly, starting up the daemon causes the router to cease responding to ping after 2-3 seconds.



I have switched off DHCP on the router and this does not cause any problems, but as soon as I switch on my own, the router stops working - it seems to drop all traffic. I have run nmap -Pn 192.168.1.1 and this returns the expected ports, showing them as 'filtered', but the router does not respond to anything. Shutting off DHCP, unplugging ethernet and plugging it back in brings it back.



My question to you network people is - is this actually possible? If so, how? I don't understand how or why the router would care about DHCP working externally. If it's a setting I've gotten wrong, I could accept that, but my understanding of DHCP is that the server simply waits for a request, and at this point everything connected to the switch had an IP assigned. I'm very confused.







linux networking router dhcp dhcp-server






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 1 '17 at 21:16









Gargravarr

224212




224212












  • Which information does your DHCP server send out? Does it include the gateway and nameserver? It's possible that this somehow confuses the router setup (test by removing this information). Does the DHCP server assign the static 192.168.1.1 address to the router, or a dynamic address? Do you have shell access to the router?
    – dirkt
    Dec 2 '17 at 7:06










  • Getting shell access to the Huawei B593.
    – dirkt
    Dec 2 '17 at 7:07










  • @dirkt I use DHCP to override gateway, DNS and domain name, yes. The gateway is the VPN VM that then forwards all traffic. I can try removing it. The DHCP range is .32 onwards and deliberately does not go near .1. This is assigned statically in the router config. I don't have shell access at present but will try your link for the B593 - hopefully the firmware is similar enough.
    – Gargravarr
    Dec 2 '17 at 18:03










  • I meant: Does it assign the 192.168.1.1 to the router if the router does a DHCP request (the router does a DHCP request, does it? You checked the logs)? If not, it may screw up the internal config.
    – dirkt
    Dec 2 '17 at 18:05










  • In general, it might be a good idea to use wireshark to see what exact exchange of packets causes the router to stop working.
    – dirkt
    Dec 2 '17 at 18:06


















  • Which information does your DHCP server send out? Does it include the gateway and nameserver? It's possible that this somehow confuses the router setup (test by removing this information). Does the DHCP server assign the static 192.168.1.1 address to the router, or a dynamic address? Do you have shell access to the router?
    – dirkt
    Dec 2 '17 at 7:06










  • Getting shell access to the Huawei B593.
    – dirkt
    Dec 2 '17 at 7:07










  • @dirkt I use DHCP to override gateway, DNS and domain name, yes. The gateway is the VPN VM that then forwards all traffic. I can try removing it. The DHCP range is .32 onwards and deliberately does not go near .1. This is assigned statically in the router config. I don't have shell access at present but will try your link for the B593 - hopefully the firmware is similar enough.
    – Gargravarr
    Dec 2 '17 at 18:03










  • I meant: Does it assign the 192.168.1.1 to the router if the router does a DHCP request (the router does a DHCP request, does it? You checked the logs)? If not, it may screw up the internal config.
    – dirkt
    Dec 2 '17 at 18:05










  • In general, it might be a good idea to use wireshark to see what exact exchange of packets causes the router to stop working.
    – dirkt
    Dec 2 '17 at 18:06
















Which information does your DHCP server send out? Does it include the gateway and nameserver? It's possible that this somehow confuses the router setup (test by removing this information). Does the DHCP server assign the static 192.168.1.1 address to the router, or a dynamic address? Do you have shell access to the router?
– dirkt
Dec 2 '17 at 7:06




Which information does your DHCP server send out? Does it include the gateway and nameserver? It's possible that this somehow confuses the router setup (test by removing this information). Does the DHCP server assign the static 192.168.1.1 address to the router, or a dynamic address? Do you have shell access to the router?
– dirkt
Dec 2 '17 at 7:06












Getting shell access to the Huawei B593.
– dirkt
Dec 2 '17 at 7:07




Getting shell access to the Huawei B593.
– dirkt
Dec 2 '17 at 7:07












@dirkt I use DHCP to override gateway, DNS and domain name, yes. The gateway is the VPN VM that then forwards all traffic. I can try removing it. The DHCP range is .32 onwards and deliberately does not go near .1. This is assigned statically in the router config. I don't have shell access at present but will try your link for the B593 - hopefully the firmware is similar enough.
– Gargravarr
Dec 2 '17 at 18:03




@dirkt I use DHCP to override gateway, DNS and domain name, yes. The gateway is the VPN VM that then forwards all traffic. I can try removing it. The DHCP range is .32 onwards and deliberately does not go near .1. This is assigned statically in the router config. I don't have shell access at present but will try your link for the B593 - hopefully the firmware is similar enough.
– Gargravarr
Dec 2 '17 at 18:03












I meant: Does it assign the 192.168.1.1 to the router if the router does a DHCP request (the router does a DHCP request, does it? You checked the logs)? If not, it may screw up the internal config.
– dirkt
Dec 2 '17 at 18:05




I meant: Does it assign the 192.168.1.1 to the router if the router does a DHCP request (the router does a DHCP request, does it? You checked the logs)? If not, it may screw up the internal config.
– dirkt
Dec 2 '17 at 18:05












In general, it might be a good idea to use wireshark to see what exact exchange of packets causes the router to stop working.
– dirkt
Dec 2 '17 at 18:06




In general, it might be a good idea to use wireshark to see what exact exchange of packets causes the router to stop working.
– dirkt
Dec 2 '17 at 18:06










1 Answer
1






active

oldest

votes


















0














I have solved this problem by setting Ethernet connection mode to "LAN only". Setting can be found here Settings->Ethernet->Ethernet settings.



If it is set to auto it detects DHCP server on LAN port and switches to WAN mode.






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1273536%2fsetting-up-an-external-dhcp-server-causes-huawei-b310-to-stop-responding%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I have solved this problem by setting Ethernet connection mode to "LAN only". Setting can be found here Settings->Ethernet->Ethernet settings.



    If it is set to auto it detects DHCP server on LAN port and switches to WAN mode.






    share|improve this answer


























      0














      I have solved this problem by setting Ethernet connection mode to "LAN only". Setting can be found here Settings->Ethernet->Ethernet settings.



      If it is set to auto it detects DHCP server on LAN port and switches to WAN mode.






      share|improve this answer
























        0












        0








        0






        I have solved this problem by setting Ethernet connection mode to "LAN only". Setting can be found here Settings->Ethernet->Ethernet settings.



        If it is set to auto it detects DHCP server on LAN port and switches to WAN mode.






        share|improve this answer












        I have solved this problem by setting Ethernet connection mode to "LAN only". Setting can be found here Settings->Ethernet->Ethernet settings.



        If it is set to auto it detects DHCP server on LAN port and switches to WAN mode.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 8 at 17:34









        Matas Razgūnas

        1




        1






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1273536%2fsetting-up-an-external-dhcp-server-causes-huawei-b310-to-stop-responding%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            If I really need a card on my start hand, how many mulligans make sense? [duplicate]

            Alcedinidae

            Can an atomic nucleus contain both particles and antiparticles? [duplicate]