Here's how to configure Static Routes on your Dell Enterprise SONiC Device. Static routes are manually configured routes that define specific paths for network traffic. They're used to direct traffic in a network, and are an alternative to dynamic routing protocols.
They don't scale well, so they're typically only recommended for very small networks. First, access your Dell SONiC device via the Command Line Interface. You can do this though a console connection or SSH. Use the 'sonic-cli' command to move from the legacy CLI, to Dell's custom management framework CLI. Next run 'configure' to enter configuration mode.
To add an IPv4 static route enter 'ip route' then the destination network with subnet, followed by the next hop address. To add an IPv6 static route use 'ipv6 route' with the same syntax. Enter 'do show running-configuration | grep route' to verify your configuration.
To view the routing table run 'show ip route' or 'show ipv6 route'. Optionally, use the 'static' modifier to only display static routes. Use 'ping' or 'ping6' to ping the next hop address to confirm the route is operational. When you're happy with your configuration run 'write memory' to save it.
Thanks for watching