R1>ena
R1#conf t
R1(config)#int s0/0
R1(config-if)#no shu
R1(config-if)#encap fram
R1(config-if)#int s0/0.12 point-to-point
R1(config-subif)#ip add 12.12.12.1 255.255.255.0
R1(config-subif)#fram interface-dlci
R1(config-fr-dlci)#fram interface-dlci 102
R1(config-fr-dlci)#int s0/0.13 point-to-point
R1(config-subif)#ip add 13.13.13.1 255.255.255.0
R1(config-subif)#fram interface-dlci 103
R1(config-fr-dlci)#int lo0
R1(config-if)#ip add 1.1.1.1 255.255.255.255
R2>
R2>ena
R2#conf t
R2(config)#int s0/0
R2(config-if)#encap fram
R2(config-if)#no shu
R2(config-if)#int s0/0.12 point
R2(config-subif)#ip add 12.12.12.2 255.255.255.0
R2(config-subif)#frame-relay interface-dlci 201
R2(config-fr-dlci)#int lo0
R2(config-if)#ip add 2.2.2.2 255.255.255.255
R3>
R3>en
R3#conf t
R3(config)#int s0/0
R3(config-if)#encap fram
R3(config-if)#no shu
R3(config-if)#int s0/0.13 point
R3(config-subif)#ip add 13.13.13.3 25
R3(config-subif)#ip add 13.13.13.3 255.255.255.0
R3(config-subif)#fram int 301
R3(config-fr-dlci)#int lo0
R3(config-if)#ip add 3.3.3.3 255.255.255.255
Let’s check frame-relay mapping! Make sure the frame map is in active
R1(config-if)#do sh fram map
Serial0/0.12 (up): point-to-point dlci, dlci 102(0x66,0x1860), broadcast
status defined, active
Serial0/0.13 (up): point-to-point dlci, dlci 103(0x67,0x1870), broadcast
status defined, active
R2(config-if)#do sh fram map
Serial0/0.12 (up): point-to-point dlci, dlci 201(0xC9,0x3090), broadcast
status defined, active
R3(config-if)#do sh fram map
Serial0/0.13 (up): point-to-point dlci, dlci 301(0x12D,0x48D0), broadcast
status defined, active
Now let’s activate OSPF in all router
R1(config-if)#router ospf 1
R1(config-router)#router-id 1.1.1.1
R1(config-router)#net 1.1.1.1 0.0.0.0 are 0
R1(config-router)#net 12.12.12.1 0.0.0.0 are 0
R1(config-router)#net 13.13.13.1 0.0.0.0 are 0
R2(config-if)#router ospf 2
R2(config-router)#router- 2.2.2.2
R2(config-router)#net 2.2.2.2 0.0.0.0 are 0
R2(config-router)#net 12.12.12.2 0.0.0.0 are 0
R3(config-if)#router ospf 3
R3(config-router)#router- 3.3.3.3
R3(config-router)#net 3.3.3.3 0.0.0.0 are 0
R3(config-router)#net 13.13.13.3 0.0.0.0 are 0
Check ip ospf type and routing table
R3(config-router)#do sh ip rou
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/32 is subnetted, 1 subnets
O 1.1.1.1 [110/65] via 13.13.13.1, 00:01:34, Serial0/0.13
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/129] via 13.13.13.1, 00:01:34, Serial0/0.13
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
12.0.0.0/24 is subnetted, 1 subnets
O 12.12.12.0 [110/128] via 13.13.13.1, 00:01:34, Serial0/0.13
13.0.0.0/24 is subnetted, 1 subnets
C 13.13.13.0 is directly connected, Serial0/0.13
R3(config-router)#do sh ip ospf int s0/0.13
Serial0/0.13 is up, line protocol is up
Internet Address 13.13.13.3/24, Area 0
Process ID 3, Router ID 3.3.3.3, Network Type POINT_TO_POINT, Cost: 64
Transmit Delay is 1 sec, State POINT_TO_POINT
Make sure the ping is ok
R3(config-router)#do ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/40/72 ms
R3(config-router)#do ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/31/72 ms
R2(config-router)#do ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/20/48 ms
R2(config-router)#do ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/49/84 ms
No comments:
Post a Comment