Ubuntu 18.04 booting to old DHCP address despite being set to static
I added a security system with 4 network IP cameras to my network, so I switched my computer and modem to use static IP's (MAC filtering). When I boot up Ubuntu is not connected to LAN. I go into network settings and see 3 Eno1 connections and one Wired Connection. The IP it's trying to use is my old (dynamic) ip address (192.blah.blah). Once I click into one of the other connections, the IP is suddenly right (10.blah.blah), Ubuntu connects to the LAN, and 2 of the 3 Eno1 connections disappear. I'm a little confused because there is no /etc/netplan/*.yaml file (even after I run sudo netplan generate) and my /etc/network/interfaces is as follows. Everything works right after I click into one of the four networks settings, it's just trying to boot with an old IP, one my router shouldn't be sending.
# interfaces(5) file used by ifup(8) and ifdown(8)
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 10.10.10.2
netmask 255.255.255.0
gateway 10.10.10.1
dns-nameservers 208.67.222.222 208.67.220.220
What to do?
networking network-manager dhcp
add a comment |
I added a security system with 4 network IP cameras to my network, so I switched my computer and modem to use static IP's (MAC filtering). When I boot up Ubuntu is not connected to LAN. I go into network settings and see 3 Eno1 connections and one Wired Connection. The IP it's trying to use is my old (dynamic) ip address (192.blah.blah). Once I click into one of the other connections, the IP is suddenly right (10.blah.blah), Ubuntu connects to the LAN, and 2 of the 3 Eno1 connections disappear. I'm a little confused because there is no /etc/netplan/*.yaml file (even after I run sudo netplan generate) and my /etc/network/interfaces is as follows. Everything works right after I click into one of the four networks settings, it's just trying to boot with an old IP, one my router shouldn't be sending.
# interfaces(5) file used by ifup(8) and ifdown(8)
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 10.10.10.2
netmask 255.255.255.0
gateway 10.10.10.1
dns-nameservers 208.67.222.222 208.67.220.220
What to do?
networking network-manager dhcp
add a comment |
I added a security system with 4 network IP cameras to my network, so I switched my computer and modem to use static IP's (MAC filtering). When I boot up Ubuntu is not connected to LAN. I go into network settings and see 3 Eno1 connections and one Wired Connection. The IP it's trying to use is my old (dynamic) ip address (192.blah.blah). Once I click into one of the other connections, the IP is suddenly right (10.blah.blah), Ubuntu connects to the LAN, and 2 of the 3 Eno1 connections disappear. I'm a little confused because there is no /etc/netplan/*.yaml file (even after I run sudo netplan generate) and my /etc/network/interfaces is as follows. Everything works right after I click into one of the four networks settings, it's just trying to boot with an old IP, one my router shouldn't be sending.
# interfaces(5) file used by ifup(8) and ifdown(8)
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 10.10.10.2
netmask 255.255.255.0
gateway 10.10.10.1
dns-nameservers 208.67.222.222 208.67.220.220
What to do?
networking network-manager dhcp
I added a security system with 4 network IP cameras to my network, so I switched my computer and modem to use static IP's (MAC filtering). When I boot up Ubuntu is not connected to LAN. I go into network settings and see 3 Eno1 connections and one Wired Connection. The IP it's trying to use is my old (dynamic) ip address (192.blah.blah). Once I click into one of the other connections, the IP is suddenly right (10.blah.blah), Ubuntu connects to the LAN, and 2 of the 3 Eno1 connections disappear. I'm a little confused because there is no /etc/netplan/*.yaml file (even after I run sudo netplan generate) and my /etc/network/interfaces is as follows. Everything works right after I click into one of the four networks settings, it's just trying to boot with an old IP, one my router shouldn't be sending.
# interfaces(5) file used by ifup(8) and ifdown(8)
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 10.10.10.2
netmask 255.255.255.0
gateway 10.10.10.1
dns-nameservers 208.67.222.222 208.67.220.220
What to do?
networking network-manager dhcp
networking network-manager dhcp
asked Feb 10 at 3:15
J.V.J.V.
11
11
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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%2faskubuntu.com%2fquestions%2f1117045%2fubuntu-18-04-booting-to-old-dhcp-address-despite-being-set-to-static%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f1117045%2fubuntu-18-04-booting-to-old-dhcp-address-despite-being-set-to-static%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