Re: Force default gateway for a specific connection?



On Wed, 2012-01-18 at 12:23 +0100, Thomas Bechtold wrote:
> Hi,
> 
> is it possible to tell NM to use a specific connection always as default 
> gateway?
> in my case, i use a modem and a lan cable and i want to use always the 
> modem as default gateway. the reason is, that sometimes a firewall 
> blocks some LAN traffic so i always want to use the modem connection as 
> default gw.

Yes it's quite possible, though the terminology is opposite than what
you're talking about.  Every connection in NM by can grab the default
route and will do so by default since that's the most common case.

What you want to do here is to mark the connections you *don't* want to
have the default route as "never-default" (in keyfile config files) or,
in the UI, "Use this connection only for resources on its network" (in
the Routes dialog of nm-connection-editor).

Dan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]