Routing Table Tools
show route
show route,show ip route,show ipv4 route, or similar show route commands will output the active routing table- output shows:
- destination
- gateway
- AD/metric
- interface
- source of the route
- identified as a letter code
- C = connected, S = static, R = RIP, B = BGP, D = EIGRP, O = OSPF, etc.
- identified as a letter code
show arp
- a router keeps a cache of IP address that have been resolved to MAC addresses via the Address Resolution Protocol (ARP)
- inspecting the ARP cache table is useful for discovering:
- duplicate IP addresses
- IP misconfigurations
- routing protocol misconfigurations
show arporshow ip arpto view ARP cache
route and ip route
The route command is used to view and modify the routing table of end system Windows and Linux hosts.
- routing table for an end system generally contains a single entry for the default route
- is represented as the destination
0.0.0.0/0 - any traffic that is not address to the local subnet is sent over this
- is represented as the destination
- to show the routing table:
- In Windows, run
route print - In Linux,
routeis part of deprecated package of tools- use
ip route showandip route add
- In Windows, run