Route configuration command-ip route command
Router (config) # ip route <Directory Network or subnet number> [subnet mask] <next vroute ip address | address from the local egress> [management distance 0 ~ 255, 1 by default] Note: static address configuration)
Route configuration command -- ip default-network command
Router (config) # ip default-network <target network number> (Note: use one of the Dynamic Route numbers as the default route configuration in combination with the routing Service)
Router (config) # ip route 0.0.0.0 0.0.0.0 <next vro ip address | address from the local egress> (Note: configuration on the egress vro when there is only one public ip address)
Routing Protocol-internal routing selection Protocol
Use the router and network commands
- Router (config) # router <routing protocol rip | igrp | ospf | is-is, etc.> [Autonomous System number]
- Router (config-router) # network <network ID of the route protocol used for direct connection>
- Router (config-router) # network <network ID of the route protocol used for direct connection>
Route Protocol-route information protocol RIP
- Router (config) # router rip
- Router (config-router) # network <type network numbers that are directly connected to the rip Protocol>
- Router # show ip protocols
- Router # show ip route
- Router # debug ip rip
Routing Protocol-Internal Gateway Routing Protocol IGRP
- Router (config) # router igrp <autonomous system number>
- Router (config-router) # network <type network numbers that are directly connected using the igrp protocol>
- Router # show ip interface
- Router # show ip protocols
- Router # show ip route
- Router # debug ip rip
Route troubleshooting-overall model
- Router # ping <faulty host | faulty IP address>
- Router # show ip route
- Router # show interface <faulty interface>
- Router # show run
Route troubleshooting-IP fault troubleshooting
Check available routes
- Router # show ip route <faulty ip address>
- 27.4.4 trace the Route)
- SUN-A> traceroute <faulty host | faulty IP address>
- C: \ windows \> winipcfg
- C: \ windows \> ipconfig
- C: \ windows \> ipconfig/all
- C: \ windows \> tracert <faulty host | faulty IP address>
Use extended ping to track connectivity
Router # ping
Route troubleshooting-other possible faults
An address parsing ARP fault
- Router # show arp
- Router # show interface <faulty interface>
- C: \ windows \> arp-
- SUN-A> arp-
Verify the route table of the Terminal System
- C: \ windows \> netstat-rn
- C: \ windows \> route-f add 0.0.0.0 mask 0.0.0.0 <gateway address to be added>
- C: \ windows \> route [-f] [[print | add | delete | change] [destination] [mask
-
- Netmask] [gateway]
- C: \ windows \> route add mask <network mask> <gateway IP address>
- C: \ windows \> route delete mask <network mask> <gateway IP address>
- C: \ windows \> nbtstat <corresponding parameter>
- SUN-A> netstat-rn Router
Do you understand the troubleshooting of routing faults and the description of routing protocols? These two aspects are both a typical and basic part of the basic knowledge of routing, and hope that readers can master them.