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

Johnathan Mantey johnathanx.mantey at intel.com
Wed Jun 17 04:02:40 AEST 2020


Ratan,

In the email trail for this topic on 27 April you indicated you were
going to start work on the per NIC gateway.
What is the current state of implementing this feature?

On 4/24/20 8:06 AM, Ratan Gupta wrote:
> Hi All,
>
> Currently, OpenBMC stack allows a single default gateway for the
> system. Latest kernel allows to configure multiple default gateways.
>
> Eg: In a system with two interfaces eth0 and eth1,
>
> eth0 configured with static address and having gateway(192.168.2.1)
> eth1 configured with DHCP and gets Gateway from DHCP server (10.10.10.1)
> ~~~~~~~~~~~~~
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags   MSS Window 
> irtt Iface
> 0.0.0.0         19.168.2.1      0.0.0.0         UG        0 0         
> 0 eth0
> 0.0.0.0         10.10.10.1      0.0.0.0         UG        0 0         
> 0 eth1
> ~~~~~~~~~~~~~~
>
> Kernel will first try using the default gateway having higher metric
> value and then fall back to the lower.
>
> More references:
> https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-configuring_the_default_gateway
>
> I'm proposing to make this change in the openBMC D-bus interfaces to
> tie the gateway property with the Ethernet interface schema instead of
> System configuration.
>
> Ethernet Interface Schema =>
>
> https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Network/EthernetInterface.interface.yaml
>
>
> System Configuration Schema =>
>
> https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Network/SystemConfiguration.interface.yaml
>
>
>
> Please let me know your suggestions.
>
> Regards
> Ratan Gupta
>

-- 
Johnathan Mantey
Senior Software Engineer
*azad te**chnology partners*
Contributing to Technology Innovation since 1992
Phone: (503) 712-6764
Email: johnathanx.mantey at intel.com <mailto:johnathanx.mantey at intel.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200616/9242fcbb/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200616/9242fcbb/attachment-0001.sig>


More information about the openbmc mailing list