diagnose ip route
Use these commands to manage static routes:
diagnose ip route list <arguments> Display the routing table. If no arguments are specified, all entries are listed. diagnose ip route add <interface_name> <IPv4_address> <IP network mask> <next_hop_IPv4_address> <route_distance> <route_priority> verify Add a static route. The range for the route distance is 1-255. The range of the route priority is 0-4294967295. diagnose ip route delete <interface_name> <IPv4_address> <IP network mask> <next_hop_IPv4_address> <route_distance> <route_priority> verify Delete the specified static route. diagnose ip route verify <interface_name> <IPv4_address> <IP network mask> <next_hop_IPv4_address> <route_distance> <route_priority> Verify the specified static route.
Example output
This is sample output of the diagnose ip route list command:
# diagnose ip route list
tab=100 vf=0 scope=254 type=2 proto=3 prio=0 0.0.0.0/0.0.0.0/0->0.0.0.0/0 pref=0.0.0.0 gwy=0.0.0.0 dev=1(lo)
tab=254 vf=745222198 scope=0 type=1 proto=20 prio=0 0.0.0.0/0.0.0.0/0->0.0.0.0/0 pref=0.0.0.0 gwy=172.18.20.71 dev=13(port1)
tab=254 vf=1769234796 scope=253 type=1 proto=2 prio=0 0.0.0.0/0.0.0.0/0->10.1.1.0/24 pref=10.1.1.2 gwy=0.0.0.0 dev=14(port2)
tab=254 vf=1769234796 scope=0 type=1 proto=20 prio=0 0.0.0.0/0.0.0.0/0->10.3.1.0/24 pref=0.0.0.0 gwy=172.18.20.62 dev=13(port1)
tab=254 vf=1881944112 scope=253 type=1 proto=2 prio=0 0.0.0.0/0.0.0.0/0->172.18.20.0/24 pref=172.18.20.63 gwy=0.0.0.0 dev=13(port1)
tab=255 vf=540024939 scope=253 type=3 proto=2 prio=0 0.0.0.0/0.0.0.0/0->10.1.1.0/32 pref=10.1.1.2 gwy=0.0.0.0 dev=14(port2)
tab=255 vf=790638947 scope=254 type=2 proto=2 prio=0 0.0.0.0/0.0.0.0/0->10.1.1.2/32 pref=10.1.1.2 gwy=0.0.0.0 dev=14(port2)
tab=255 vf=746025504 scope=253 type=3 proto=2 prio=0 0.0.0.0/0.0.0.0/0->10.1.1.255/32 pref=10.1.1.2 gwy=0.0.0.0 dev=14(port2)
tab=255 vf=1869491319 scope=253 type=3 proto=2 prio=0 0.0.0.0/0.0.0.0/0->127.0.0.0/32 pref=127.0.0.1 gwy=0.0.0.0 dev=1(lo)
tab=255 vf=1163413837 scope=254 type=2 proto=2 prio=0 0.0.0.0/0.0.0.0/0->127.0.0.0/8 pref=127.0.0.1 gwy=0.0.0.0 dev=1(lo)
tab=255 vf=1650750255 scope=254 type=2 proto=2 prio=0 0.0.0.0/0.0.0.0/0->127.0.0.1/32 pref=127.0.0.1 gwy=0.0.0.0 dev=1(lo)
tab=255 vf=1633954930 scope=253 type=3 proto=2 prio=0 0.0.0.0/0.0.0.0/0->127.255.255.255/32 pref=127.0.0.1 gwy=0.0.0.0 dev=1(lo)
tab=255 vf=0 scope=253 type=3 proto=2 prio=0 0.0.0.0/0.0.0.0/0->172.18.20.0/32 pref=172.18.20.63 gwy=0.0.0.0 dev=13(port1)
tab=255 vf=0 scope=254 type=2 proto=2 prio=0 0.0.0.0/0.0.0.0/0->172.18.20.63/32 pref=172.18.20.63 gwy=0.0.0.0 dev=13(port1)
tab=255 vf=0 scope=253 type=3 proto=2 prio=0 0.0.0.0/0.0.0.0/0->172.18.20.255/32 pref=172.18.20.63 gwy=0.0.0.0 dev=13(port1)