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

Professor being mistaken for a grad student

How to explain that I do not want to visit a country due to personal safety concern?

How Did the Space Junk Stay in Orbit in Wall-E?

Does the statement `int val = (++i > ++j) ? ++i : ++j;` invoke undefined behavior?

Pinhole Camera with Instant Film

Old race car problem/puzzle

Where is the 1/8 CR apprentice in Volo's Guide to Monsters?

How to answer questions about my characters?

Russian cases: A few examples, I'm really confused

My adviser wants to be the first author

Rejected in 4th interview round citing insufficient years of experience

Font with correct density?

2D counterpart of std::array in C++17

Is Mortgage interest accrued after a December payment tax deductible?

I need to drive a 7/16" nut but am unsure how to use the socket I bought for my screwdriver

Why do Australian milk farmers need to protest supermarkets' milk price?

Counting certain elements in lists

Have researchers managed to "reverse time"? If so, what does that mean for physics?

Why are there 40 737 Max planes in flight when they have been grounded as not airworthy?

Do I need life insurance if I can cover my own funeral costs?

At what level can a dragon innately cast its spells?

Employee lack of ownership

Humanity loses the vast majority of its technology, information, and population in the year 2122. How long does it take to rebuild itself?

Theorems like the Lovász Local Lemma?



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













0















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










share|improve this question
























  • 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
    11 mins ago
















0















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










share|improve this question
























  • 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
    11 mins ago














0












0








0








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










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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
    11 mins 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











  • Did you get it working? What did you do? You should see Delete right underneath your question.

    – heynnema
    11 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
11 mins ago






Did you get it working? What did you do? You should see Delete right underneath your question.

– heynnema
11 mins ago











2 Answers
2






active

oldest

votes


















0














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





share|improve this answer

























  • 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


















0














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





share|improve this answer

























  • 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 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











  • @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










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
);



);













draft saved

draft discarded


















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









0














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





share|improve this answer

























  • 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















0














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





share|improve this answer

























  • 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













0












0








0







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





share|improve this answer















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






share|improve this answer














share|improve this answer



share|improve this answer








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

















  • 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













0














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





share|improve this answer

























  • 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 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











  • @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















0














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





share|improve this answer

























  • 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 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











  • @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













0












0








0







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





share|improve this answer















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






share|improve this answer














share|improve this answer



share|improve this answer








edited 3 hours ago

























answered 4 hours ago









heynnemaheynnema

20.4k22258




20.4k22258












  • 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 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











  • @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












  • @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












  • 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

















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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

Are there any comparative studies done between Ashtavakra Gita and Buddhim?How is it wrong to believe that a self exists, or that it doesn't?Can you criticise or improve Ven. Bodhi's description of MahayanaWas the doctrine of 'Anatta', accepted as doctrine by modern Buddhism, actually taught by the Buddha?Relationship between Buddhism, Hinduism and Yoga?Comparison of Nirvana, Tao and Brahman/AtmaIs there a distinction between “ego identity” and “craving/hating”?Are there many differences between Taoism and Buddhism?Loss of “faith” in buddhismSimilarity between creation in Abrahamic religions and beginning of life in Earth mentioned Agganna Sutta?Are there studies about the difference between meditating in the morning versus in the evening?Can one follow Hinduism and Buddhism at the same time?Are there any prohibitions on participating in other religion's practices?Psychology of 'flow'

Where else does the Shulchan Aruch quote an authority by name?Parashat Metzora+HagadolPesach/PassoverShulchan Aruch UTF-8Anonymous glosses in the Shulchan AruchWhy is the Shulchan Aruch definitive?Siman 32, Kitzur Shulchan Aruch: UntranslatedLitvaks/Yeshivish and Shulchan AruchBuying a Shulchan AruchEnglish version of SHULCHAN ARUCHIs there any place where Shulchan Aruch rules with the Rosh against the Rif and Rambam?Are there practices where Sepharadim do not hold by Shulchan Aruch?5th part of the shulchan aruch

fallocate: fallocate failed: Text file busy in Ubuntu 17.04? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)defragmenting and increasing performance of old lubuntu system with swap partitionIssue with increasing the root partition from the swapthis /usr/bin/dpkg returned error || ubuntu-16.04, 64bitDefault 17.04 swap file locationHow to Resize Ubuntu 17.04 Zesty Swap file size?Ubuntu freezes from online formsMy Laptop is not starting after upgrade ubuntu 16.04 (Kernel 4.8.0-38 to 04.10.0-36)hcp: ERROR: FALLOCATE FAILED!Not sure my swap is being usedWine 3.0 asking for more virtual free swap