All of lore.kernel.org
 help / color / mirror / Atom feed
* Default Gateway for a system v/s Default gateway per Interface
@ 2020-04-24 15:06 Ratan Gupta
  2020-04-24 15:21 ` Patrick Williams
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Ratan Gupta @ 2020-04-24 15:06 UTC (permalink / raw)
  To: wak, johnathanx.mantey, openbmc

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2020-06-23 12:57 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-24 15:06 Default Gateway for a system v/s Default gateway per Interface Ratan Gupta
2020-04-24 15:21 ` Patrick Williams
2020-04-24 17:45   ` William Kennington
2020-04-27 11:11     ` Ratan Gupta
2020-04-27 19:30       ` Johnathan Mantey
2020-04-28 15:16         ` Ratan Gupta
2020-04-28 18:49           ` Johnathan Mantey
2020-05-04 13:38             ` Ratan Gupta
2020-05-04 16:14               ` Johnathan Mantey
2020-05-06 15:24                 ` Patrick Williams
2020-05-08  6:35                 ` Ratan Gupta
2020-05-08 17:42                   ` Johnathan Mantey
2020-04-28 21:18       ` Patrick Williams
2020-05-04 11:02       ` Andrew Jeffery
2020-06-16 18:02 ` Johnathan Mantey
2020-06-19 22:40 ` Alexander Amelkin
2020-06-23  9:10   ` Ratan Gupta
2020-06-23 10:56     ` 郁雷
2020-06-23 12:57       ` Ratan Gupta

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.