Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=intel.com (client-ip=134.134.136.24; helo=mga09.intel.com; envelope-from=johnathanx.mantey@intel.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=intel.com Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 499vyt4rhbzDqbX for ; Tue, 28 Apr 2020 05:31:10 +1000 (AEST) IronPort-SDR: 1rP5gp28cDoPnFJ/8e/cx4+EAcpkvUEYyGUhNoOS9wTvYPcuT2FCjcblx43LXQFnellEYD4OQ1 NFm9T33LG7xQ== X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2020 12:30:40 -0700 IronPort-SDR: RZDpHvFsor0vWZWcY012mbdSkdmxpnfA1F2Fq4vQ6U0/43KXEPh2xgbSONd+zYLhP4UPJHF+nQ 2ttB86LMnAYg== X-IronPort-AV: E=Sophos;i="5.73,325,1583222400"; d="asc'?scan'208,217";a="458501435" Received: from jmanteyx-desk.jf.intel.com ([10.54.51.75]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2020 12:30:40 -0700 Subject: Re: Default Gateway for a system v/s Default gateway per Interface To: Ratan Gupta , openbmc@lists.ozlabs.org References: <20200424152120.GD26818@heinlein.lan.stwcx.xyz> <32f161d2-784e-8fe5-a00b-e9bec181a265@linux.vnet.ibm.com> From: Johnathan Mantey Autocrypt: addr=johnathanx.mantey@intel.com; prefer-encrypt=mutual; keydata= mQENBFija08BCAC60TO2X22b0tJ2Gy2iQLWx20mGcD7ugBpm1o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bXQqOseDM1zZXln/m7 BFbJ6VUn1zWcrt0c82GTMqkeGUheUhDiYLQ7xwARAQABiQEfBBgBCAAJBQJYo2tPAhsMAAoJ ENBH74k93x8JKEUH/3UPZryjmM0F3h8I0ZWuruxAxiqvksLOOtarU6RikIAHhwjvluEcTH4E JsDjqtRUvBMU907XNotpqpW2e9jN8tFRyR4wW9CYkilB02qgrDm9DXVGb2BDtC/MY+6KUgsG k5Ftr9uaXNd0K4IGRJSyU6ZZn0inTcXlqD+NgOE2eX9qpeKEhDufgF7fKHbKDkS4hj6Z09dT Y8eW9d6d2Yf/RzTBJvZxjBFbIgeUGeykbSKztp2OBe6mecpVPhKooTq+X/mJehpRA6mAhuQZ 28lvie7hbRFjqR3JB7inAKL4eT1/9bT/MqcPh43PXTAzB6/Iclg5B7GGgEFe27VL0hyqiqc= Message-ID: <7c9a2b08-1224-9828-9175-41566532602a@intel.com> Date: Mon, 27 Apr 2020 12:30:10 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <32f161d2-784e-8fe5-a00b-e9bec181a265@linux.vnet.ibm.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hU5WAafVXP6oS3F9wF1gW2OEn78mCDyoi" X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2020 19:31:19 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --hU5WAafVXP6oS3F9wF1gW2OEn78mCDyoi Content-Type: multipart/mixed; boundary="ZoZqJH8qda6VERYfLRAxZEBQygpa4d8hk" --ZoZqJH8qda6VERYfLRAxZEBQygpa4d8hk Content-Type: multipart/alternative; boundary="------------10626905FC84B6190C019B32" Content-Language: en-US This is a multi-part message in MIME format. --------------10626905FC84B6190C019B32 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ratan, Can you provide more info about how you plan to implement this? The Redfish schemas already have a per IP addr Gateway entry, which OBMC is ignoring. Is it better to modify the existing D-Bus schema (i.e. versioning discussion), or just use what is presently in existence? That said, doing as you propose melds better with how IPMI (i.e Set LAN Configuration Parameter 12) works. As Patrick pointed out, there's no IPMI or Redfish control over the routing metric parameter. What are your thoughts on how to reconcile applying a metric value? I've long been desirous of getting Williams submission merged: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-networkd/+/20799 as it can be used to improve the collection of netlink stats. Redfish exacerbates this whole problem by allowing a collection of static IP addresses (and a DHCP addr) per NIC, unlike IPMI which was very one to one with IP addr/NIC. Thanks for investigating this and working to implement a solution. On 4/27/20 4:11 AM, Ratan Gupta wrote: > > Thanks Patrick, William for sharing the feedbacks > > I will start working on the changes. > > > On 4/24/20 11:15 PM, William Kennington wrote: >> Sounds good to me, we have needed this for a long time because the >> current gateway configuration breaks our v6 stack with multiple NICs. >> >> On Fri, Apr 24, 2020 at 8:21 AM Patrick Williams > > wrote: >> >> On Fri, Apr 24, 2020 at 08:36:26PM +0530, Ratan Gupta wrote: >> > ~~~~~~~~~~~~~ >> > Kernel IP routing table >> > Destination=C2=A0=C2=A0=C2=A0=C2=A0 Gateway=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 Genmask=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 Flags=C2=A0=C2=A0 MSS >> Window=C2=A0 irtt >> > Iface >> > 0.0.0.0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 19.168.2= =2E1=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0.0.0.0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 UG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 >> 0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 >> > eth0 >> > 0.0.0.0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 10.10.10= =2E1=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0.0.0.0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 UG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 >> 0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 >> > eth1 >> > ~~~~~~~~~~~~~~ >> > >> > Kernel will first try using the default gateway having higher >> metric >> > value and then fall back to the lower. >> >> I'm not seeing us with an interface to adjust the metric for an >> interface.=C2=A0 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. > >> =C2=A0 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). >> --=20 >> Patrick Williams >> --=20 Johnathan Mantey Senior Software Engineer *azad te**chnology partners* Contributing to Technology Innovation since 1992 Phone: (503) 712-6764 Email: johnathanx.mantey@intel.com --------------10626905FC84B6190C019B32 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ratan,

Can you provide more info about how you plan to implement this?

The Redfish schemas already have a per IP addr Gateway entry, which OBMC is ignoring. Is it better to modify the existing D-Bus schema (i.e. versioning discussion), or just use what is presently in existence?

That said, doing as you propose melds better with how IPMI (i.e Set LAN Configuration Parameter 12) works.

As Patrick pointed out, there's no IPMI or Redfish control over the routing metric parameter. What are your thoughts on how to reconcile applying a metric value?
I've long been desirous of getting Williams submission merged: https://gerrit.openbmc-proj= ect.xyz/c/openbmc/phosphor-networkd/+/20799
as it can be used to improve the collection of netlink stats.

Redfish exacerbates this whole problem by allowing a collection of static IP addresses (and a DHCP addr) per NIC, unlike IPMI which was very one to one with IP addr/NIC.

Thanks for investigating this and working to implement a solution.
On 4/27/20 4:11 AM, Ratan Gupta wrote:=

Thanks Patrick, William for sharing the feedbacks

I will start working on the changes.


On 4/24/20 11:15 PM, William Kennington wrote:
Sounds good to me, we have needed this for a lon= g time because the current gateway configuration breaks our v6 stack with multiple NICs.

On Fri, Apr 24, 2020 at 8= :21 AM Patrick Williams <patrick@stwcx.xyz> wrote:
On Fri, Apr 24, 2020 at 08:36:26PM +0530, Ratan Gupta wrote:
> ~~~~~~~~~~~~~
> Kernel IP routing table
> Destination=C2=A0=C2=A0=C2=A0=C2=A0 Gateway=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Genmask=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 Flags=C2=A0=C2=A0 MSS Window=C2=A0 irtt
> Iface
> 0.0.0.0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = 19.168.2.1=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0.0.0.0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 UG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0
> eth0
> 0.0.0.0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = 10.10.10.1=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0.0.0.0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 UG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0
> eth1
> ~~~~~~~~~~~~~~
>
> Kernel will first try using the default gateway having higher metric
> value and then fall back to the lower.

I'm not seeing us with an interface to adjust the metric for an
interface.=C2=A0 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.

=C2=A0 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).
--
Patrick Williams

--
Johnathan Man= tey
Senior Software Engineer
azad technology partners
Contributing to Technology Innovation since 1992
Phone: (503) 712-6764
Email: johnathanx.mantey@intel.com


--------------10626905FC84B6190C019B32-- --ZoZqJH8qda6VERYfLRAxZEBQygpa4d8hk-- --hU5WAafVXP6oS3F9wF1gW2OEn78mCDyoi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEVa822oZtYaVqAzq50EfviT3fHwkFAl6nMsIACgkQ0EfviT3f HwnV6wf/dfe3YV8pbCEbRBUQYCLMSz7XPGgbE3Rh6pdvwtaAUFGbv1i3h8nwOeCv 18d+gbm3hQllwWshIwtzGMcnRex84Ej0aJ2mveBr9zmqHlJIkpZN70aBcb+NnQJc w5XfYL1PMJA1KAEUAVckplTS7bBWOCye55eTEcJ34RZGJ5Gezz4fiAia1+IwEtAJ FUt4eSl/qhHOCdDQMKFsK45mWziADV3WBNWgJ8lIB6Kv9RDaLCXVeyYJeW6iP1QS sIJBCc3lPUttbf++AT8FHANLQi4niAdPObHCa9HwlAgYQZyxssUL041FFltCa0f2 YX6+yhpoLfPlvxNf+j4jGkJXbew0Og== =nD6U -----END PGP SIGNATURE----- --hU5WAafVXP6oS3F9wF1gW2OEn78mCDyoi--