Default Gateway for a system v/s Default gateway per Interface

Patrick Williams patrick at stwcx.xyz
Wed Apr 29 07:18:22 AEST 2020


On Mon, Apr 27, 2020 at 04:41:15PM +0530, Ratan Gupta wrote:
> >     I'm not seeing us with an interface to adjust the metric for an
> >     interface.  I think we need to add that at the same time?
> >
> Not now, As per my testing if metric value is not defined and both the 
> routes
> 
> having same metric then kernel tries one after other. We can bring the 
> metric
> 
> later.
> 
> >     Otherwise, I
> >     don't think we have a way to specify which interface
> >     outside-the-subnet
> >     should go (vs today we can set the default-gateway to the desired
> >     interface's gateway).
> >     -- 

Hi Ratan,

I just want to reiterate that by not doing metric I think you end up with
a slight regression in functionality.  I'm not sure if anyone cares though.

Today, if I have two NICs attached, I can set the gateway to NIC1's
gateway and my traffic will go out NIC1 (if it isn't on NIC0's subnet).
Without the metric, we have no way to specify this behavior and the
kernel will likely default to NIC0.

-- 
Patrick Williams
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200428/5228b558/attachment.sig>


More information about the openbmc mailing list