Re: Default Gateway with Manual Setting



On Mon, 2009-10-05 at 13:07 -0400, John Mahoney wrote:
> 
> 
> On Sun, Oct 4, 2009 at 1:56 AM, Martyn J. Pearce
> <fluffy sixears co uk> wrote:
>         Apogolies if re-asked, I have searched the mailing-list
>         archive to no avail.
>         
>         I am running a new ubuntu install on a netbook (Eeepc surf),
>         with wired &
>         wireless networking available, both domestic
>         manually-configured networks (no
>         dhcp).  I have added Manual profiles to both wired &
>         wireless.  I cannot get
>         the default gateway (192.168.0.12) to configure, however.
>         
>         I add two routes in the route config panel; one for
>         192.168.0.0/255.255.255.0
>         (no gateway), and one for 0.0.0.0/0.0.0.0 (gateway
>         192.168.0.12).  Having left
>         the edit dialogue, and applied, there is no difference to the
>         routing table as
>         displayed with route -n.  If I re-enter the routes edit panel,
>         I find that
>         it's collapsed the routes into one, being
>         192.168.0.0/255.255.255.0 (gateway
>         192.168.0.12); but there's no hint of the gateway in the route
>         config.
>         
> 
> Did you try adding the Default gateway to the Addresses section of the
> ipv4 settings tab instead of the routes section.
> Also, If you have both wired and wireless interfaces active, I
> believe, it will always use the wired default route first if possible.

The routes dialog doesn't take 0.0.0.0, because that's the default
route, and  NM manages the default route.  Here's what you do...

Set up your IP address and static routes.  By default, the wired device
will always get the default route.  If there is a device (any device)
that you do *not* want to have the default route at any point, check the
"Use this connection only for resources on its network" checkbox in the
"Routes" dialog of the IPv4 page.

That checkbox ensures that that connection (and thus any device that has
been activated using that connection) will not be the default route.

Dan





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