1-ip route <Destination Network> <Subnet Mask><Next-Hop points to IP address >
2-ip route <Destination Network><Subnet Mask><Next-Hop points to outgoing interface or
exit interface>
1. If you configured static route point to next hop IP address ,
for every destination forwarding router requires only L2 address
of next hop IP address to rewrite L2 frame.
2. If you configured static route point to outgoing interface ,
forwarding router assume destination address is directly connected
to that interface and router will try to find L2 address of destination
by sending ARP request out of the interface to destination address .
R1(config)#do sh run | s route
ip route 10.1.13.0 255.255.255.0 10.1.12.2 ( more prefer )
ip route 10.1.14.0 255.255.255.0 fastEthernet 0/0
R2#sh run | s route
ip route 10.1.14.0 255.255.255.0 10.1.13.3
R3#sh run | s route
ip route 10.1.12.0 255.255.255.0 10.1.13.2
R4#sh run | s route
ip route 10.1.12.0 255.255.255.0 10.1.14.3
ip route 10.1.13.0 255.255.255.0 10.1.14.3
R1(config)#do sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
10.0.0.0/24 is subnetted, 3 subnets
S 10.1.14.0 is directly connected, FastEthernet0/0
S 10.1.13.0 [1/0] via 10.1.12.2
C 10.1.12.0 is directly connected, FastEthernet0/0
The S represents the static route with the administrative distance of 1.
The router gives priority to static routes over dynamic routes, where 0 is best and 255 is worst!
To verify the connectivity, Ping from R1 to R4
R1#ping 10.1.14.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.14.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 220/268/316 ms
No comments:
Post a Comment