Netplan - Ethernet when available, wifi when not. Reconnect if neededHow I made my new ubuntu server 17.10 installation only use WiFinetplan with multiple vlans on single interface - help neededUnable to activate the ethernet connection after upgrading to Ubuntu 18.04Ubuntu Server Netplan for Wifi and EthernetHow to setup static ip on Ubuntu Server 18.04 in VMWare Workstation 14Problem with an external monitor and ethernet connection plugged into a displaylink on ubuntu 18.04How to change default interface for internet?Unable to ping 18.04 desktop unless this machine first pings the client, when using networkd instead of network-managernetplan + WiFi: link is not ready (18.04 Server)WiFi problem on lenovo E520 ubuntu 18.04.1
Happy pi day, everyone!
Why did it take so long to abandon sail after steamships were demonstrated?
PTIJ: Who should pay for Uber rides: the child or the parent?
Why are there 40 737 Max planes in flight when they have been grounded as not airworthy?
In-house repeater?
Professor being mistaken for a grad student
Is having access to past exams cheating and, if yes, could it be proven just by a good grade?
What is IP squat space
An Accountant Seeks the Help of a Mathematician
Schematic conventions for different supply rails
Old race car problem/puzzle
Using "wallow" verb with object
Replacing Windows 7 security updates with anti-virus?
Welcoming 2019 Pi day: How to draw the letter π?
Making a sword in the stone, in a medieval world without magic
It's a yearly task, alright
Check this translation of Amores 1.3.26
How could a scammer know the apps on my phone / iTunes account?
Did CPM support custom hardware using device drivers?
Humanity loses the vast majority of its technology, information, and population in the year 2122. How long does it take to rebuild itself?
Can hydraulic brake levers get hot when brakes overheat?
Can the damage from a Talisman of Pure Good (or Ultimate Evil) be non-lethal?
Why is "das Weib" grammatically neuter?
Can elves maintain concentration in a trance?
Netplan - Ethernet when available, wifi when not. Reconnect if needed
How I made my new ubuntu server 17.10 installation only use WiFinetplan with multiple vlans on single interface - help neededUnable to activate the ethernet connection after upgrading to Ubuntu 18.04Ubuntu Server Netplan for Wifi and EthernetHow to setup static ip on Ubuntu Server 18.04 in VMWare Workstation 14Problem with an external monitor and ethernet connection plugged into a displaylink on ubuntu 18.04How to change default interface for internet?Unable to ping 18.04 desktop unless this machine first pings the client, when using networkd instead of network-managernetplan + WiFi: link is not ready (18.04 Server)WiFi problem on lenovo E520 ubuntu 18.04.1
Note: this question has changed while investigating problem to stay up to date.
Note 2: This question is invalid, the described problem is gone. Askubuntu prevents me from deleting it.
Here is my /etc/netplan/01.yaml config on my new 18.04 headless server. The file describes two of my hardware interfaces i may use:
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
optional: true
dhcp4: yes
wifis:
wlx0013eff10948:
access-points:
"the-network":
password: "the-password"
dhcp4: yes
The problem is that Wifi connection sometimes can die. Or there is no connectivity at boot time. The same conditions are for Ethernet interface.
How can i tweak my system to adapt routing table and and etc to these changes? For now, it seems that any hardware change breaks system's "default gateway".
As a result, i can have one or both my interfaces with an assigned IP addresses without working ping in my system. And there is not problem with access point or router behind cable - my setup just cannot survive "changes" and switches..
ifconfig summary
docker0
(br)
enp2s0
(no inet)
lo
tun0
(openvpn - there is client daemon that needs to be connected to my VPN)
wlx0013eff10948
(inet 192.168.1.x) = shows as connected, but internet is not working
Less relevant information
wlx0013eff10948 is rtl8192cu USB dongle. I only installed linux-generic-hwe-18.04 for it to appear and work (tested with wicd-curses). As it turns out, there is no problem with WIFI - just the way system handles the lost wifi (or cable) connection.
Sometimes i can see this output appearing in machine's tty:
[ 232.2332] rtlwifi: AP off, try to reconnect now
Exactly at the state when i don't have wifi cable and wifi connection has died, but should be re-established. Which is not happening
server 18.04 netplan
add a comment |
Note: this question has changed while investigating problem to stay up to date.
Note 2: This question is invalid, the described problem is gone. Askubuntu prevents me from deleting it.
Here is my /etc/netplan/01.yaml config on my new 18.04 headless server. The file describes two of my hardware interfaces i may use:
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
optional: true
dhcp4: yes
wifis:
wlx0013eff10948:
access-points:
"the-network":
password: "the-password"
dhcp4: yes
The problem is that Wifi connection sometimes can die. Or there is no connectivity at boot time. The same conditions are for Ethernet interface.
How can i tweak my system to adapt routing table and and etc to these changes? For now, it seems that any hardware change breaks system's "default gateway".
As a result, i can have one or both my interfaces with an assigned IP addresses without working ping in my system. And there is not problem with access point or router behind cable - my setup just cannot survive "changes" and switches..
ifconfig summary
docker0
(br)
enp2s0
(no inet)
lo
tun0
(openvpn - there is client daemon that needs to be connected to my VPN)
wlx0013eff10948
(inet 192.168.1.x) = shows as connected, but internet is not working
Less relevant information
wlx0013eff10948 is rtl8192cu USB dongle. I only installed linux-generic-hwe-18.04 for it to appear and work (tested with wicd-curses). As it turns out, there is no problem with WIFI - just the way system handles the lost wifi (or cable) connection.
Sometimes i can see this output appearing in machine's tty:
[ 232.2332] rtlwifi: AP off, try to reconnect now
Exactly at the state when i don't have wifi cable and wifi connection has died, but should be re-established. Which is not happening
server 18.04 netplan
ah... turn off VPN and see if wi-fi works then... the question keeps changing here...
– heynnema
3 hours ago
i had to rewrite the question
– Croll
2 hours ago
Did you get it working? What did you do? You should see Delete right underneath your question.
– heynnema
4 mins ago
add a comment |
Note: this question has changed while investigating problem to stay up to date.
Note 2: This question is invalid, the described problem is gone. Askubuntu prevents me from deleting it.
Here is my /etc/netplan/01.yaml config on my new 18.04 headless server. The file describes two of my hardware interfaces i may use:
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
optional: true
dhcp4: yes
wifis:
wlx0013eff10948:
access-points:
"the-network":
password: "the-password"
dhcp4: yes
The problem is that Wifi connection sometimes can die. Or there is no connectivity at boot time. The same conditions are for Ethernet interface.
How can i tweak my system to adapt routing table and and etc to these changes? For now, it seems that any hardware change breaks system's "default gateway".
As a result, i can have one or both my interfaces with an assigned IP addresses without working ping in my system. And there is not problem with access point or router behind cable - my setup just cannot survive "changes" and switches..
ifconfig summary
docker0
(br)
enp2s0
(no inet)
lo
tun0
(openvpn - there is client daemon that needs to be connected to my VPN)
wlx0013eff10948
(inet 192.168.1.x) = shows as connected, but internet is not working
Less relevant information
wlx0013eff10948 is rtl8192cu USB dongle. I only installed linux-generic-hwe-18.04 for it to appear and work (tested with wicd-curses). As it turns out, there is no problem with WIFI - just the way system handles the lost wifi (or cable) connection.
Sometimes i can see this output appearing in machine's tty:
[ 232.2332] rtlwifi: AP off, try to reconnect now
Exactly at the state when i don't have wifi cable and wifi connection has died, but should be re-established. Which is not happening
server 18.04 netplan
Note: this question has changed while investigating problem to stay up to date.
Note 2: This question is invalid, the described problem is gone. Askubuntu prevents me from deleting it.
Here is my /etc/netplan/01.yaml config on my new 18.04 headless server. The file describes two of my hardware interfaces i may use:
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
optional: true
dhcp4: yes
wifis:
wlx0013eff10948:
access-points:
"the-network":
password: "the-password"
dhcp4: yes
The problem is that Wifi connection sometimes can die. Or there is no connectivity at boot time. The same conditions are for Ethernet interface.
How can i tweak my system to adapt routing table and and etc to these changes? For now, it seems that any hardware change breaks system's "default gateway".
As a result, i can have one or both my interfaces with an assigned IP addresses without working ping in my system. And there is not problem with access point or router behind cable - my setup just cannot survive "changes" and switches..
ifconfig summary
docker0
(br)
enp2s0
(no inet)
lo
tun0
(openvpn - there is client daemon that needs to be connected to my VPN)
wlx0013eff10948
(inet 192.168.1.x) = shows as connected, but internet is not working
Less relevant information
wlx0013eff10948 is rtl8192cu USB dongle. I only installed linux-generic-hwe-18.04 for it to appear and work (tested with wicd-curses). As it turns out, there is no problem with WIFI - just the way system handles the lost wifi (or cable) connection.
Sometimes i can see this output appearing in machine's tty:
[ 232.2332] rtlwifi: AP off, try to reconnect now
Exactly at the state when i don't have wifi cable and wifi connection has died, but should be re-established. Which is not happening
server 18.04 netplan
server 18.04 netplan
edited 1 hour ago
Croll
asked 5 hours ago
CrollCroll
365317
365317
ah... turn off VPN and see if wi-fi works then... the question keeps changing here...
– heynnema
3 hours ago
i had to rewrite the question
– Croll
2 hours ago
Did you get it working? What did you do? You should see Delete right underneath your question.
– heynnema
4 mins ago
add a comment |
ah... turn off VPN and see if wi-fi works then... the question keeps changing here...
– heynnema
3 hours ago
i had to rewrite the question
– Croll
2 hours ago
Did you get it working? What did you do? You should see Delete right underneath your question.
– heynnema
4 mins ago
ah... turn off VPN and see if wi-fi works then... the question keeps changing here...
– heynnema
3 hours ago
ah... turn off VPN and see if wi-fi works then... the question keeps changing here...
– heynnema
3 hours ago
i had to rewrite the question
– Croll
2 hours ago
i had to rewrite the question
– Croll
2 hours ago
Did you get it working? What did you do? You should see Delete right underneath your question.
– heynnema
4 mins ago
Did you get it working? What did you do? You should see Delete right underneath your question.
– heynnema
4 mins ago
add a comment |
2 Answers
2
active
oldest
votes
How about this version, which will use the preferred network to route packets if it is present? Should this work:
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
dhcp4: yes
optional: true
dhcp-overrides:
route-metric: 100
wifis:
wlx0013xxx:
access-points:
"the-network":
password: "the-password"
dhcp4: true
dhcp4-overrides:
route-metric: 200
see my updated answer... it's more correct :-)
– heynnema
3 hours ago
Your both answers are wrong because route-metric is not supported at this time (for dhcp mode)
– Croll
3 hours ago
Yes, it is set up that way in netplan.io/examples . I will fix it, but now it is obsoleted.
– gmt42
3 hours ago
@Croll I have not actually tried route-metric, I have only seen it as a fancy gizmo from the manual. I hope the solution will propagate to Ubuntu 18.04.2 LTS and we won't have to wait until next LTS release :-/
– gmt42
3 hours ago
@gmt42 you may wish to consider deleting your answer, since it's the same as mine... :-)
– heynnema
3 hours ago
|
show 5 more comments
Try...
An optional device is not required for booting. Normally, networkd will wait some time for device to become configured before proceeding with booting. However, if a device is marked as optional, networkd will not wait for it. This is only supported by networkd, and the default is false.
Source: https://netplan.io/reference
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
dhcp4: yes
dhcp4-overrides: # possibly not functional yet
route-metric: 100 # possibly not functional yet
optional: true
wifis:
wlx0013xxx:
access-points:
"the-network":
password: "the-password"
dhcp4: true
dhcp4-overrides: # possibly not functional yet
route-metric: 200 # possibly not functional yet
Is there a way to changeroutemetrics throughnetplanso ethernet is preferred whenever a wired connection is present?
– gmt42
3 hours ago
@gmt42 yes, see netplan.io/examples See the update to my answer.
– heynnema
3 hours ago
@gmt42 in netplan 0.95, where isdhcp-overrides.route-metric: xsection support in syntax (still yaml file version 2), but it is not released yet and will render real file invalid. This was a pain to discover
– Croll
3 hours ago
The real problem, as it turns out, is that when i am on wifi, wifi connection to the AP dies after some (idle) time and reconnection is not happening. This feels much more troubling to my server right now.
– Croll
3 hours ago
@Croll Note that systemd-networkd does not natively support wifi, so you need wpasupplicant installed if you let the networkd renderer handle wifi.
– heynnema
3 hours ago
|
show 11 more comments
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%2f1125704%2fnetplan-ethernet-when-available-wifi-when-not-reconnect-if-needed%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
How about this version, which will use the preferred network to route packets if it is present? Should this work:
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
dhcp4: yes
optional: true
dhcp-overrides:
route-metric: 100
wifis:
wlx0013xxx:
access-points:
"the-network":
password: "the-password"
dhcp4: true
dhcp4-overrides:
route-metric: 200
see my updated answer... it's more correct :-)
– heynnema
3 hours ago
Your both answers are wrong because route-metric is not supported at this time (for dhcp mode)
– Croll
3 hours ago
Yes, it is set up that way in netplan.io/examples . I will fix it, but now it is obsoleted.
– gmt42
3 hours ago
@Croll I have not actually tried route-metric, I have only seen it as a fancy gizmo from the manual. I hope the solution will propagate to Ubuntu 18.04.2 LTS and we won't have to wait until next LTS release :-/
– gmt42
3 hours ago
@gmt42 you may wish to consider deleting your answer, since it's the same as mine... :-)
– heynnema
3 hours ago
|
show 5 more comments
How about this version, which will use the preferred network to route packets if it is present? Should this work:
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
dhcp4: yes
optional: true
dhcp-overrides:
route-metric: 100
wifis:
wlx0013xxx:
access-points:
"the-network":
password: "the-password"
dhcp4: true
dhcp4-overrides:
route-metric: 200
see my updated answer... it's more correct :-)
– heynnema
3 hours ago
Your both answers are wrong because route-metric is not supported at this time (for dhcp mode)
– Croll
3 hours ago
Yes, it is set up that way in netplan.io/examples . I will fix it, but now it is obsoleted.
– gmt42
3 hours ago
@Croll I have not actually tried route-metric, I have only seen it as a fancy gizmo from the manual. I hope the solution will propagate to Ubuntu 18.04.2 LTS and we won't have to wait until next LTS release :-/
– gmt42
3 hours ago
@gmt42 you may wish to consider deleting your answer, since it's the same as mine... :-)
– heynnema
3 hours ago
|
show 5 more comments
How about this version, which will use the preferred network to route packets if it is present? Should this work:
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
dhcp4: yes
optional: true
dhcp-overrides:
route-metric: 100
wifis:
wlx0013xxx:
access-points:
"the-network":
password: "the-password"
dhcp4: true
dhcp4-overrides:
route-metric: 200
How about this version, which will use the preferred network to route packets if it is present? Should this work:
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
dhcp4: yes
optional: true
dhcp-overrides:
route-metric: 100
wifis:
wlx0013xxx:
access-points:
"the-network":
password: "the-password"
dhcp4: true
dhcp4-overrides:
route-metric: 200
edited 3 hours ago
answered 3 hours ago
gmt42gmt42
1215
1215
see my updated answer... it's more correct :-)
– heynnema
3 hours ago
Your both answers are wrong because route-metric is not supported at this time (for dhcp mode)
– Croll
3 hours ago
Yes, it is set up that way in netplan.io/examples . I will fix it, but now it is obsoleted.
– gmt42
3 hours ago
@Croll I have not actually tried route-metric, I have only seen it as a fancy gizmo from the manual. I hope the solution will propagate to Ubuntu 18.04.2 LTS and we won't have to wait until next LTS release :-/
– gmt42
3 hours ago
@gmt42 you may wish to consider deleting your answer, since it's the same as mine... :-)
– heynnema
3 hours ago
|
show 5 more comments
see my updated answer... it's more correct :-)
– heynnema
3 hours ago
Your both answers are wrong because route-metric is not supported at this time (for dhcp mode)
– Croll
3 hours ago
Yes, it is set up that way in netplan.io/examples . I will fix it, but now it is obsoleted.
– gmt42
3 hours ago
@Croll I have not actually tried route-metric, I have only seen it as a fancy gizmo from the manual. I hope the solution will propagate to Ubuntu 18.04.2 LTS and we won't have to wait until next LTS release :-/
– gmt42
3 hours ago
@gmt42 you may wish to consider deleting your answer, since it's the same as mine... :-)
– heynnema
3 hours ago
see my updated answer... it's more correct :-)
– heynnema
3 hours ago
see my updated answer... it's more correct :-)
– heynnema
3 hours ago
Your both answers are wrong because route-metric is not supported at this time (for dhcp mode)
– Croll
3 hours ago
Your both answers are wrong because route-metric is not supported at this time (for dhcp mode)
– Croll
3 hours ago
Yes, it is set up that way in netplan.io/examples . I will fix it, but now it is obsoleted.
– gmt42
3 hours ago
Yes, it is set up that way in netplan.io/examples . I will fix it, but now it is obsoleted.
– gmt42
3 hours ago
@Croll I have not actually tried route-metric, I have only seen it as a fancy gizmo from the manual. I hope the solution will propagate to Ubuntu 18.04.2 LTS and we won't have to wait until next LTS release :-/
– gmt42
3 hours ago
@Croll I have not actually tried route-metric, I have only seen it as a fancy gizmo from the manual. I hope the solution will propagate to Ubuntu 18.04.2 LTS and we won't have to wait until next LTS release :-/
– gmt42
3 hours ago
@gmt42 you may wish to consider deleting your answer, since it's the same as mine... :-)
– heynnema
3 hours ago
@gmt42 you may wish to consider deleting your answer, since it's the same as mine... :-)
– heynnema
3 hours ago
|
show 5 more comments
Try...
An optional device is not required for booting. Normally, networkd will wait some time for device to become configured before proceeding with booting. However, if a device is marked as optional, networkd will not wait for it. This is only supported by networkd, and the default is false.
Source: https://netplan.io/reference
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
dhcp4: yes
dhcp4-overrides: # possibly not functional yet
route-metric: 100 # possibly not functional yet
optional: true
wifis:
wlx0013xxx:
access-points:
"the-network":
password: "the-password"
dhcp4: true
dhcp4-overrides: # possibly not functional yet
route-metric: 200 # possibly not functional yet
Is there a way to changeroutemetrics throughnetplanso ethernet is preferred whenever a wired connection is present?
– gmt42
3 hours ago
@gmt42 yes, see netplan.io/examples See the update to my answer.
– heynnema
3 hours ago
@gmt42 in netplan 0.95, where isdhcp-overrides.route-metric: xsection support in syntax (still yaml file version 2), but it is not released yet and will render real file invalid. This was a pain to discover
– Croll
3 hours ago
The real problem, as it turns out, is that when i am on wifi, wifi connection to the AP dies after some (idle) time and reconnection is not happening. This feels much more troubling to my server right now.
– Croll
3 hours ago
@Croll Note that systemd-networkd does not natively support wifi, so you need wpasupplicant installed if you let the networkd renderer handle wifi.
– heynnema
3 hours ago
|
show 11 more comments
Try...
An optional device is not required for booting. Normally, networkd will wait some time for device to become configured before proceeding with booting. However, if a device is marked as optional, networkd will not wait for it. This is only supported by networkd, and the default is false.
Source: https://netplan.io/reference
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
dhcp4: yes
dhcp4-overrides: # possibly not functional yet
route-metric: 100 # possibly not functional yet
optional: true
wifis:
wlx0013xxx:
access-points:
"the-network":
password: "the-password"
dhcp4: true
dhcp4-overrides: # possibly not functional yet
route-metric: 200 # possibly not functional yet
Is there a way to changeroutemetrics throughnetplanso ethernet is preferred whenever a wired connection is present?
– gmt42
3 hours ago
@gmt42 yes, see netplan.io/examples See the update to my answer.
– heynnema
3 hours ago
@gmt42 in netplan 0.95, where isdhcp-overrides.route-metric: xsection support in syntax (still yaml file version 2), but it is not released yet and will render real file invalid. This was a pain to discover
– Croll
3 hours ago
The real problem, as it turns out, is that when i am on wifi, wifi connection to the AP dies after some (idle) time and reconnection is not happening. This feels much more troubling to my server right now.
– Croll
3 hours ago
@Croll Note that systemd-networkd does not natively support wifi, so you need wpasupplicant installed if you let the networkd renderer handle wifi.
– heynnema
3 hours ago
|
show 11 more comments
Try...
An optional device is not required for booting. Normally, networkd will wait some time for device to become configured before proceeding with booting. However, if a device is marked as optional, networkd will not wait for it. This is only supported by networkd, and the default is false.
Source: https://netplan.io/reference
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
dhcp4: yes
dhcp4-overrides: # possibly not functional yet
route-metric: 100 # possibly not functional yet
optional: true
wifis:
wlx0013xxx:
access-points:
"the-network":
password: "the-password"
dhcp4: true
dhcp4-overrides: # possibly not functional yet
route-metric: 200 # possibly not functional yet
Try...
An optional device is not required for booting. Normally, networkd will wait some time for device to become configured before proceeding with booting. However, if a device is marked as optional, networkd will not wait for it. This is only supported by networkd, and the default is false.
Source: https://netplan.io/reference
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
dhcp4: yes
dhcp4-overrides: # possibly not functional yet
route-metric: 100 # possibly not functional yet
optional: true
wifis:
wlx0013xxx:
access-points:
"the-network":
password: "the-password"
dhcp4: true
dhcp4-overrides: # possibly not functional yet
route-metric: 200 # possibly not functional yet
edited 3 hours ago
answered 4 hours ago
heynnemaheynnema
20.4k22258
20.4k22258
Is there a way to changeroutemetrics throughnetplanso ethernet is preferred whenever a wired connection is present?
– gmt42
3 hours ago
@gmt42 yes, see netplan.io/examples See the update to my answer.
– heynnema
3 hours ago
@gmt42 in netplan 0.95, where isdhcp-overrides.route-metric: xsection support in syntax (still yaml file version 2), but it is not released yet and will render real file invalid. This was a pain to discover
– Croll
3 hours ago
The real problem, as it turns out, is that when i am on wifi, wifi connection to the AP dies after some (idle) time and reconnection is not happening. This feels much more troubling to my server right now.
– Croll
3 hours ago
@Croll Note that systemd-networkd does not natively support wifi, so you need wpasupplicant installed if you let the networkd renderer handle wifi.
– heynnema
3 hours ago
|
show 11 more comments
Is there a way to changeroutemetrics throughnetplanso ethernet is preferred whenever a wired connection is present?
– gmt42
3 hours ago
@gmt42 yes, see netplan.io/examples See the update to my answer.
– heynnema
3 hours ago
@gmt42 in netplan 0.95, where isdhcp-overrides.route-metric: xsection support in syntax (still yaml file version 2), but it is not released yet and will render real file invalid. This was a pain to discover
– Croll
3 hours ago
The real problem, as it turns out, is that when i am on wifi, wifi connection to the AP dies after some (idle) time and reconnection is not happening. This feels much more troubling to my server right now.
– Croll
3 hours ago
@Croll Note that systemd-networkd does not natively support wifi, so you need wpasupplicant installed if you let the networkd renderer handle wifi.
– heynnema
3 hours ago
Is there a way to change
route metrics through netplan so ethernet is preferred whenever a wired connection is present?– gmt42
3 hours ago
Is there a way to change
route metrics through netplan so ethernet is preferred whenever a wired connection is present?– gmt42
3 hours ago
@gmt42 yes, see netplan.io/examples See the update to my answer.
– heynnema
3 hours ago
@gmt42 yes, see netplan.io/examples See the update to my answer.
– heynnema
3 hours ago
@gmt42 in netplan 0.95, where is
dhcp-overrides.route-metric: x section support in syntax (still yaml file version 2), but it is not released yet and will render real file invalid. This was a pain to discover– Croll
3 hours ago
@gmt42 in netplan 0.95, where is
dhcp-overrides.route-metric: x section support in syntax (still yaml file version 2), but it is not released yet and will render real file invalid. This was a pain to discover– Croll
3 hours ago
The real problem, as it turns out, is that when i am on wifi, wifi connection to the AP dies after some (idle) time and reconnection is not happening. This feels much more troubling to my server right now.
– Croll
3 hours ago
The real problem, as it turns out, is that when i am on wifi, wifi connection to the AP dies after some (idle) time and reconnection is not happening. This feels much more troubling to my server right now.
– Croll
3 hours ago
@Croll Note that systemd-networkd does not natively support wifi, so you need wpasupplicant installed if you let the networkd renderer handle wifi.
– heynnema
3 hours ago
@Croll Note that systemd-networkd does not natively support wifi, so you need wpasupplicant installed if you let the networkd renderer handle wifi.
– heynnema
3 hours ago
|
show 11 more comments
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%2f1125704%2fnetplan-ethernet-when-available-wifi-when-not-reconnect-if-needed%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
ah... turn off VPN and see if wi-fi works then... the question keeps changing here...
– heynnema
3 hours ago
i had to rewrite the question
– Croll
2 hours ago
Did you get it working? What did you do? You should see Delete right underneath your question.
– heynnema
4 mins ago