Setting up an external DHCP server causes Huawei B310 to stop responding
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
add a comment |
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
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 the192.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 usewireshark
to see what exact exchange of packets causes the router to stop working.
– dirkt
Dec 2 '17 at 18:06
add a comment |
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
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
linux networking router dhcp dhcp-server
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 the192.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 usewireshark
to see what exact exchange of packets causes the router to stop working.
– dirkt
Dec 2 '17 at 18:06
add a comment |
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 the192.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 usewireshark
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
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Dec 8 at 17:34
Matas Razgūnas
1
1
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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