Owners Manual
$ ip route show
default dev eth0 scope link
3.3.3.0/24 dev e101-003-0 proto kernel scope link src 3.3.3.1
11.10.10.0/24 dev e101-003-0 scope link
Congure static route with next-hop
$ ip route add 30.30.30.0/24 via 3.3.3.3
$ ip route show
default dev eth0 scope link
3.3.3.0/24 dev e101-003-0 proto kernel scope link src 3.3.3.1
30.30.30.0/24 via 3.3.3.3 dev e101-003-0
Delete static route
$ ip route delete 11.10.10.0/24
$ ip route show
default dev eth0 scope link
3.3.3.0/24 dev e101-003-0 proto kernel scope link src 3.3.3.1
To add a persistent static route that is saved after a reboot, congure the route in the /etc/network/interfaces conguration le.
See Application examples in the OpenSwitch OPX Developers Guide for more information on how to congure routing using the CPS API.
IPv6 routing
Add, delete, or modify IPv6 routes and next-hops in the routing table.
Add IPv4 route
$ ip -6 route add 5::5/64 via 3::3
View IPv6 route
$ ip -6 route show
3::/64 dev e101-003-0 proto kernel metric 256
5::/64 via 3::3 dev e101-003-0 metric 1024
Monitor IPv6 routing
$ ip monitor
30.30.30.0/24 via 3.3.3.3 dev e00-3
3::/64 via 3::3 dev e101-003-0 metric 1024
5::/64 via 3::3 dev e101-003-0 metric 1024
See Application examples in the OpenSwitch OPX Developers Guide for more information on how to congure routing using the CPS API.
Neighbor table entries
OpenSwitch OPX uses ARP and neighbor table entries to resolve adjacencies by using the host IP address-to-MAC address binding. The
ARP table is used for IPv4 routing—the neighbor table is used for IPv6 routing.
View kernel ARP table entries
$ arp -n
Address HWtype HWaddress Flags Mask Iface 3.3.3.4 ether 90:b1:1c:f4:9d:44 C e101-003-0
View IPv6 neighbor table
$ ip -6 neighbor
14
Layer 3 routing










