18.04 - does it force netplan or can I still use resolved.conf?
I kept getting timeout errors on 18.04 Bionic Beaver, until I switched to OpenDNS using these commands
sudo rm -f /etc/resolv.conf
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
sudo nano /etc/systemd/resolved.conf
# with body
nameserver 208.67.222.222
Should I really be doing this OpenDNS configuration with Netplan? I tried the following but it doesn't work.
# Create a netplan file
sudo vi /etc/netplan/50-cloud-init.yaml
.
# Put this in the body
nameservers:
addresses: [208.67.222.222, 208.67.220.220]
I also tried this syntax in the body to no avail, but maybe it because I'm on wifi and I called out 'ethernet'??? wlo1 is my wifi logical name when I sudo lshw -C network
.
network:
ethernet:
wlo1:
nameservers:
addresses: [208.67.222.222, 208.67.220.220]
networking 18.04 network-manager dns netplan
add a comment |
I kept getting timeout errors on 18.04 Bionic Beaver, until I switched to OpenDNS using these commands
sudo rm -f /etc/resolv.conf
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
sudo nano /etc/systemd/resolved.conf
# with body
nameserver 208.67.222.222
Should I really be doing this OpenDNS configuration with Netplan? I tried the following but it doesn't work.
# Create a netplan file
sudo vi /etc/netplan/50-cloud-init.yaml
.
# Put this in the body
nameservers:
addresses: [208.67.222.222, 208.67.220.220]
I also tried this syntax in the body to no avail, but maybe it because I'm on wifi and I called out 'ethernet'??? wlo1 is my wifi logical name when I sudo lshw -C network
.
network:
ethernet:
wlo1:
nameservers:
addresses: [208.67.222.222, 208.67.220.220]
networking 18.04 network-manager dns netplan
1
You first have to make a decision to use NetworkManager or netplan. If you connect wi-fi to various wireless networks, then NetworkManager is probably the better choice. Netplan is best used in servers, where the configuration doesn't change much. See netplan.io/examples.
– heynnema
Dec 3 '18 at 20:52
@heynnema is this NetworkManager? Or is it something else? Please see this image linuxconfig.org/images/…
– stackinator
Dec 3 '18 at 21:01
1
That's NetworkManager. netplan has no GUI... only files in /etc/netplan, and the netplan CLI. However, if you're using NetworkManager, there's still one relevant .yaml file in /etc/netplan.
– heynnema
Dec 3 '18 at 21:20
@heynnema and correct me if I'm wrong but I'll need to enable NetworkManager for 18.04 in my/etc/netplan
file like this:network:n [TAB]version: 2 [TAB]renderer: NetworkManager
and then I runnetplan generate && netplan apply
.
– stackinator
Dec 3 '18 at 21:55
1
That's correct. Indentation is important. See my answer, below, or the examples site that I quoted earlier. Use spaces, not tabs.
– heynnema
Dec 3 '18 at 22:58
add a comment |
I kept getting timeout errors on 18.04 Bionic Beaver, until I switched to OpenDNS using these commands
sudo rm -f /etc/resolv.conf
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
sudo nano /etc/systemd/resolved.conf
# with body
nameserver 208.67.222.222
Should I really be doing this OpenDNS configuration with Netplan? I tried the following but it doesn't work.
# Create a netplan file
sudo vi /etc/netplan/50-cloud-init.yaml
.
# Put this in the body
nameservers:
addresses: [208.67.222.222, 208.67.220.220]
I also tried this syntax in the body to no avail, but maybe it because I'm on wifi and I called out 'ethernet'??? wlo1 is my wifi logical name when I sudo lshw -C network
.
network:
ethernet:
wlo1:
nameservers:
addresses: [208.67.222.222, 208.67.220.220]
networking 18.04 network-manager dns netplan
I kept getting timeout errors on 18.04 Bionic Beaver, until I switched to OpenDNS using these commands
sudo rm -f /etc/resolv.conf
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
sudo nano /etc/systemd/resolved.conf
# with body
nameserver 208.67.222.222
Should I really be doing this OpenDNS configuration with Netplan? I tried the following but it doesn't work.
# Create a netplan file
sudo vi /etc/netplan/50-cloud-init.yaml
.
# Put this in the body
nameservers:
addresses: [208.67.222.222, 208.67.220.220]
I also tried this syntax in the body to no avail, but maybe it because I'm on wifi and I called out 'ethernet'??? wlo1 is my wifi logical name when I sudo lshw -C network
.
network:
ethernet:
wlo1:
nameservers:
addresses: [208.67.222.222, 208.67.220.220]
networking 18.04 network-manager dns netplan
networking 18.04 network-manager dns netplan
edited Dec 3 '18 at 16:02
stackinator
asked Dec 3 '18 at 3:09
stackinatorstackinator
506317
506317
1
You first have to make a decision to use NetworkManager or netplan. If you connect wi-fi to various wireless networks, then NetworkManager is probably the better choice. Netplan is best used in servers, where the configuration doesn't change much. See netplan.io/examples.
– heynnema
Dec 3 '18 at 20:52
@heynnema is this NetworkManager? Or is it something else? Please see this image linuxconfig.org/images/…
– stackinator
Dec 3 '18 at 21:01
1
That's NetworkManager. netplan has no GUI... only files in /etc/netplan, and the netplan CLI. However, if you're using NetworkManager, there's still one relevant .yaml file in /etc/netplan.
– heynnema
Dec 3 '18 at 21:20
@heynnema and correct me if I'm wrong but I'll need to enable NetworkManager for 18.04 in my/etc/netplan
file like this:network:n [TAB]version: 2 [TAB]renderer: NetworkManager
and then I runnetplan generate && netplan apply
.
– stackinator
Dec 3 '18 at 21:55
1
That's correct. Indentation is important. See my answer, below, or the examples site that I quoted earlier. Use spaces, not tabs.
– heynnema
Dec 3 '18 at 22:58
add a comment |
1
You first have to make a decision to use NetworkManager or netplan. If you connect wi-fi to various wireless networks, then NetworkManager is probably the better choice. Netplan is best used in servers, where the configuration doesn't change much. See netplan.io/examples.
– heynnema
Dec 3 '18 at 20:52
@heynnema is this NetworkManager? Or is it something else? Please see this image linuxconfig.org/images/…
– stackinator
Dec 3 '18 at 21:01
1
That's NetworkManager. netplan has no GUI... only files in /etc/netplan, and the netplan CLI. However, if you're using NetworkManager, there's still one relevant .yaml file in /etc/netplan.
– heynnema
Dec 3 '18 at 21:20
@heynnema and correct me if I'm wrong but I'll need to enable NetworkManager for 18.04 in my/etc/netplan
file like this:network:n [TAB]version: 2 [TAB]renderer: NetworkManager
and then I runnetplan generate && netplan apply
.
– stackinator
Dec 3 '18 at 21:55
1
That's correct. Indentation is important. See my answer, below, or the examples site that I quoted earlier. Use spaces, not tabs.
– heynnema
Dec 3 '18 at 22:58
1
1
You first have to make a decision to use NetworkManager or netplan. If you connect wi-fi to various wireless networks, then NetworkManager is probably the better choice. Netplan is best used in servers, where the configuration doesn't change much. See netplan.io/examples.
– heynnema
Dec 3 '18 at 20:52
You first have to make a decision to use NetworkManager or netplan. If you connect wi-fi to various wireless networks, then NetworkManager is probably the better choice. Netplan is best used in servers, where the configuration doesn't change much. See netplan.io/examples.
– heynnema
Dec 3 '18 at 20:52
@heynnema is this NetworkManager? Or is it something else? Please see this image linuxconfig.org/images/…
– stackinator
Dec 3 '18 at 21:01
@heynnema is this NetworkManager? Or is it something else? Please see this image linuxconfig.org/images/…
– stackinator
Dec 3 '18 at 21:01
1
1
That's NetworkManager. netplan has no GUI... only files in /etc/netplan, and the netplan CLI. However, if you're using NetworkManager, there's still one relevant .yaml file in /etc/netplan.
– heynnema
Dec 3 '18 at 21:20
That's NetworkManager. netplan has no GUI... only files in /etc/netplan, and the netplan CLI. However, if you're using NetworkManager, there's still one relevant .yaml file in /etc/netplan.
– heynnema
Dec 3 '18 at 21:20
@heynnema and correct me if I'm wrong but I'll need to enable NetworkManager for 18.04 in my
/etc/netplan
file like this: network:n [TAB]version: 2 [TAB]renderer: NetworkManager
and then I run netplan generate && netplan apply
.– stackinator
Dec 3 '18 at 21:55
@heynnema and correct me if I'm wrong but I'll need to enable NetworkManager for 18.04 in my
/etc/netplan
file like this: network:n [TAB]version: 2 [TAB]renderer: NetworkManager
and then I run netplan generate && netplan apply
.– stackinator
Dec 3 '18 at 21:55
1
1
That's correct. Indentation is important. See my answer, below, or the examples site that I quoted earlier. Use spaces, not tabs.
– heynnema
Dec 3 '18 at 22:58
That's correct. Indentation is important. See my answer, below, or the examples site that I quoted earlier. Use spaces, not tabs.
– heynnema
Dec 3 '18 at 22:58
add a comment |
1 Answer
1
active
oldest
votes
You first have to make a decision to use NetworkManager or netplan. If you connect wi-fi to various wireless networks, then NetworkManager is probably the better choice. Netplan is best used in servers, where the configuration doesn't change much. See https://netplan.io/examples.
/etc/netplan .yaml example to enable NetworkManager...
network:
version: 2
renderer: NetworkManager
In terminal
...
sudo netplan --debug generate
# generate config files
sudo netplan apply
# apply the new config
reboot
# reboot to confirm network operation
add a comment |
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%2f1098052%2f18-04-does-it-force-netplan-or-can-i-still-use-resolved-conf%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
You first have to make a decision to use NetworkManager or netplan. If you connect wi-fi to various wireless networks, then NetworkManager is probably the better choice. Netplan is best used in servers, where the configuration doesn't change much. See https://netplan.io/examples.
/etc/netplan .yaml example to enable NetworkManager...
network:
version: 2
renderer: NetworkManager
In terminal
...
sudo netplan --debug generate
# generate config files
sudo netplan apply
# apply the new config
reboot
# reboot to confirm network operation
add a comment |
You first have to make a decision to use NetworkManager or netplan. If you connect wi-fi to various wireless networks, then NetworkManager is probably the better choice. Netplan is best used in servers, where the configuration doesn't change much. See https://netplan.io/examples.
/etc/netplan .yaml example to enable NetworkManager...
network:
version: 2
renderer: NetworkManager
In terminal
...
sudo netplan --debug generate
# generate config files
sudo netplan apply
# apply the new config
reboot
# reboot to confirm network operation
add a comment |
You first have to make a decision to use NetworkManager or netplan. If you connect wi-fi to various wireless networks, then NetworkManager is probably the better choice. Netplan is best used in servers, where the configuration doesn't change much. See https://netplan.io/examples.
/etc/netplan .yaml example to enable NetworkManager...
network:
version: 2
renderer: NetworkManager
In terminal
...
sudo netplan --debug generate
# generate config files
sudo netplan apply
# apply the new config
reboot
# reboot to confirm network operation
You first have to make a decision to use NetworkManager or netplan. If you connect wi-fi to various wireless networks, then NetworkManager is probably the better choice. Netplan is best used in servers, where the configuration doesn't change much. See https://netplan.io/examples.
/etc/netplan .yaml example to enable NetworkManager...
network:
version: 2
renderer: NetworkManager
In terminal
...
sudo netplan --debug generate
# generate config files
sudo netplan apply
# apply the new config
reboot
# reboot to confirm network operation
edited 5 mins ago
answered Dec 3 '18 at 22:53
heynnemaheynnema
18.7k22155
18.7k22155
add a comment |
add a comment |
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%2f1098052%2f18-04-does-it-force-netplan-or-can-i-still-use-resolved-conf%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
1
You first have to make a decision to use NetworkManager or netplan. If you connect wi-fi to various wireless networks, then NetworkManager is probably the better choice. Netplan is best used in servers, where the configuration doesn't change much. See netplan.io/examples.
– heynnema
Dec 3 '18 at 20:52
@heynnema is this NetworkManager? Or is it something else? Please see this image linuxconfig.org/images/…
– stackinator
Dec 3 '18 at 21:01
1
That's NetworkManager. netplan has no GUI... only files in /etc/netplan, and the netplan CLI. However, if you're using NetworkManager, there's still one relevant .yaml file in /etc/netplan.
– heynnema
Dec 3 '18 at 21:20
@heynnema and correct me if I'm wrong but I'll need to enable NetworkManager for 18.04 in my
/etc/netplan
file like this:network:n [TAB]version: 2 [TAB]renderer: NetworkManager
and then I runnetplan generate && netplan apply
.– stackinator
Dec 3 '18 at 21:55
1
That's correct. Indentation is important. See my answer, below, or the examples site that I quoted earlier. Use spaces, not tabs.
– heynnema
Dec 3 '18 at 22:58