<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Ratan,<br>
    <br>
    In the email trail for this topic on 27 April you indicated you were
    going to start work on the per NIC gateway.<br>
    What is the current state of implementing this feature?<br>
    <br>
    <div class="moz-cite-prefix">On 4/24/20 8:06 AM, Ratan Gupta wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:fd2978a9-bd4b-a8ba-67ac-94a8537a9fcf@linux.vnet.ibm.com">Hi
      All,
      <br>
      <br>
      Currently, OpenBMC stack allows a single default gateway for the
      system. Latest kernel allows to configure multiple default
      gateways.
      <br>
      <br>
      Eg: In a system with two interfaces eth0 and eth1,
      <br>
      <br>
      eth0 configured with static address and having
      gateway(192.168.2.1)
      <br>
      eth1 configured with DHCP and gets Gateway from DHCP server
      (10.10.10.1)
      <br>
      ~~~~~~~~~~~~~
      <br>
      Kernel IP routing table
      <br>
      Destination     Gateway         Genmask         Flags   MSS
      Window  irtt Iface
      <br>
      0.0.0.0         19.168.2.1      0.0.0.0         UG        0
      0          0 eth0
      <br>
      0.0.0.0         10.10.10.1      0.0.0.0         UG        0
      0          0 eth1
      <br>
      ~~~~~~~~~~~~~~
      <br>
      <br>
      Kernel will first try using the default gateway having higher
      metric value and then fall back to the lower.
      <br>
      <br>
      More references:
<a class="moz-txt-link-freetext" href="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-configuring_the_default_gateway">https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-configuring_the_default_gateway</a><br>
      <br>
      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.
      <br>
      <br>
      Ethernet Interface Schema =>
      <br>
      <br>
<a class="moz-txt-link-freetext" href="https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Network/EthernetInterface.interface.yaml">https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Network/EthernetInterface.interface.yaml</a>
      <br>
      <br>
      System Configuration Schema =>
      <br>
      <br>
<a class="moz-txt-link-freetext" href="https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Network/SystemConfiguration.interface.yaml">https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Network/SystemConfiguration.interface.yaml</a>
      <br>
      <br>
      <br>
      Please let me know your suggestions.
      <br>
      <br>
      Regards
      <br>
      Ratan Gupta
      <br>
      <br>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <title></title>
      <font color="#1F497D"><font face="Century Gothic">Johnathan Mantey<br>
          <small>Senior Software Engineer</small><br>
          <big><font color="#555555"><small><b>azad te</b><b>chnology
                  partners</b></small><br>
              <small><font color="#1F497D"><small>Contributing to
                    Technology Innovation since 1992</small></font><small><br>
                  <font color="#1F497D">Phone: (503) 712-6764<br>
                    Email: <a href="mailto:johnathanx.mantey@intel.com">johnathanx.mantey@intel.com</a></font></small><br>
                <br>
              </small></font></big></font></font> </div>
  </body>
</html>