Jump to content

Setting network priority for multiple network interfaces?


Guest

Recommended Posts

Hello everyone,

I have a nanopi r2s running the latest minimal focal image, and I'm having trouble with the network configuration.

 

Context:

I have an intranet connected to the LAN port (lan0), and my home network connected to the WAN port (eth0). The intranet does not connect to the internet, and both networks have functional DHCP servers on different IP ranges. For some reason the system thinks it should try to access the internet via my intranet, which is definitely not going to work.

 

Suppose the intranet is 10.0.0.0/24, how can I tell the system to use this interface if and only if I'm accessing addresses that falls under this address space, and route everything else to the other interface? I've tired "nmcli c mod $CONNECTION ipv4.never-default true" but it only gave me an error: "Error: Failed to modify connection 'Ifupdown (lan0)': failed to update connection: settings plugin does not support modifying connections".

Link to comment
Share on other sites

Please verify the configuration of the DHCP servers. The "intranet" one should offer the correct address range and subnet mask for "intranet" but it must "not" offer a default gateway. The home one should offer the correct default gateway for reaching the internet.

 

hth, gnasch

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines