CCNA Experiment 19 static and default routes
Environment: Windows XP , Packet Tracert 5.3
Purpose: To understand the use of static routes and default routes
Description
static routing refers to routing information that is manually configured by the network administrator. When the topology of the network or the state of the link changes, it is necessary to manually modify the relevant static routing information in the router. Static routing information is private by default and is not passed to other routers. The router can be set up to be shared. Static routing is generally suitable for relatively simple network environments. The managed distance for static routes is 1. (Note that the direct-attached interface manages the distance 0 the less management distance, the more reliable.
The default route is a special static route that refers to the last choice the router can make when there are no matching table entries in the routing table with the destination address of the package.
Steps:
Packet Tracert To create a topology:
650) this.width=650; "src=" Http://hi.csdn.net/attachment/201011/21/0_1290343913G68Z.gif "/>
Configuration R1 :
router>en
Router#conf T
Router (config) #host R1
R1 (config) #int fa0/0
R1 (config-if) #ip add 192.168.1.254 255.255.255.0
R1 (config-if) #no sh
R1 (config-if) #exit
R1 (config) #int s0/0/0
R1 (config-if) #ip add 192.168.2.1 255.255.255.0
R1 (config-if) #no sh
R1 (config-if) #exit
R1 (config) #ip Route 192.168.3.0 255.255.255.0 192.168.2.2// Configure a static route to the target network 192.168.3.0 And is sent out from the next hop route.
Configuration R2 :
router>en
Router#conf T
Router (config) #host R2
R2 (config) #int fa0/0
R2 (config-if) #ip add 192.168.3.254 255.255.255.0
R2 (config-if) #no sh
R2 (config-if) #exit
R2 (config) #int s0/0/0
R2 (config-if) #ip add 192.168.2.2 255.255.255.0
R2 (config-if) #clock rate 64000//Because it is a serial link and R2 as a DCE, the clock frequency is provided.
R2 (config-if) #no sh
R2 (config-if) #exit
R2 (config) #ip Route 0.0.0.0 0.0.0.0 192.168.2.1// adds a default route to the next-hop address.
View R1 and the R2 The routing table:
650) this.width=650; "src=" Http://hi.csdn.net/attachment/201011/21/0_129034406346Ha.gif "/>
650) this.width=650; "src=" Http://hi.csdn.net/attachment/201011/21/0_1290344070W1ZA.gif "/>
Test link connectivity and track routing:
650) this.width=650; "src=" Http://hi.csdn.net/attachment/201011/21/0_1290344191OLqz.gif "/>
The experiment is complete.
This article from "Liu Fengyuan" blog, declined reprint!
CCNA Experiment 19 static and default routes