【实验目的】:
在本次实验中,你将在复杂的帧中继网络中配置OSPF。
在完成本次实验之后,你需要完成下列任务:
- 使用点对多点网络类型配置OSPF
- 使用点对点网络类型配置OSPF
- 连接核心中的其他设备
如果出现任何问题,可以向在值的辅导老师提出并请求提供帮助。
命令 |
描述 |
(config)#default interface s0 |
恢复S0接口到默认配置 |
(config-subif)#frame-relay interface-dlci 122 |
给点对点连接指定DLCI |
(config)#internface s0/0.1 multipoint | point-to-point |
创建一个点对点(点对多点)子接口 |
(config-subif)#ip ospf network Point-to-multipoint |
强制指定OSPF接口类型为点对多点。缺省是NBMA。 |
(config-router)#network 172.31.0.0 0.0.255.255 area 0 |
指定符合这个网络范围的接口运行在这个指定的OSPF区域 |
(config-if)#no frame-relay inverse-arp |
关闭此接口的帧中继反向ARP解析 |
【任务一】:配置OSPF多区域和帧中继网络点对多点、点对点
实验过程:
例如:P3R2,这个帧中继映射语句应该是:
frame-relay map ip 172.31.33.4 232 broadcast
P3R1,这个帧中继映射语句应该是:
frame-relay map ip 172.31.33.4 231 broadcast
你的路由器输出应该与下列类似:
P1R1#sh ip os nei
172.31.11.4 1 FULL/BDR 00:01:55 172.31.11.4 Serial0.1
172.31.1.3 100 FULL/DR 00:01:54 172.31.1.3 Serial0
10.200.200.13 1 FULL/DR 00:00:37 10.1.1.3 Ethernet0
P1R1#
从边界路由器PING BBR2路由器的以太网接口10.254.0.2,以验证与核心建立了正确的连接。你的输出应该与下列类似:
router#ping 10.254.0.2
Sending 5, 100-byte ICMP Echos to 10.254.0.2, timeout is 2 seconds:
!!!!!
Success rate is 80 Percent(4/5), round-trip min/avg/max =
例如, P3R1和P3R2路由器的连接,配置如下所示:
P3R1(config)#interface Serial0.2 point-to-point
P3R1(config-subif)#ip address
P3R1(config-subif)#frame-relay interface-dlci 122
P3R2(config)#interface Serial0.2 point-to-point
P3R2(config-subif)#ip address 10.33.0.2 255.255.255.0
P3R2(config-subif)#frame-relay interface-dlci 221
router#ping
Sending 5, 100-byte ICMP Echos to
!!!!!
Success rate is 80 Percent(4/5), round-trip min/avg/max =
P1R1#sh ip os int
Serial0.1 is up, line protocol is up
Internet Address 172.31.11.1/24, Area 0
Process ID 1, Router ID
Transmit Delay is 1 sec, State POINT_TO_MULTIPOINT,
Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5
oob-resync timeout 120
Hello due in 00:00:11
Index 2/4, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 3
Last flood scan time is 4 msec, maximum is 4 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 172.31.11.4
Suppress hello for 0 neighbor(s)
(Output Omitted)
Serial0.2 is up, line protocol is up
Internet Address 10.11.0.1/24, Area 1
Process ID 1, Router ID 10.1.0.1, Network Type POINT_TO_POINT, Cost: 64
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:06
Index 3/5, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 2, maximum is 3
Last flood scan time is 4 msec, maximum is 4 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 10.1.0.2
Suppress hello for 0 neighbor(s)
(Output Omitted)
P1R1#sh ip os nei
172.31.11.4 0 FULL/ - 00:01:31 172.31.11.4 Serial0.1
10.1.0.2 0 FULL/ - 00:00:33 10.1.0.2 Serial1
10.200.200.13 1 FULL/DR 00:00:34 10.1.1.3 Ethernet0
P1R1#
P1R1#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
C 172.31.1.0/24 is directly connected, Serial
O 172.31.11.2/32 [110/128] via 172.31.11.4, 00:03:47, Serial0.1
O 172.31.11.4/32 [110/64] via 172.31.11.4, 00:03:47, Serial0.1
C 10.11.0.0 is directly connected, Serial0.2
O 10.1.3.0 [110/74] vi
O 10.1.2.0 [110/74] vi
[110/74] vi
O E2 10.254.0.0 [110/20] via 172.31.11.4, 00:03:38, Serial0.1
P1R1#
P1R3#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
O IA 172.31.1.0/24 [110/74] vi
O IA 172.31.11.1/32 [110/10] vi
O IA 172.31.11.2/32 [110/74] vi
[110/74] vi
O IA 172.31.11.4/32 [110/74] vi
10.0.0.0/8 is variably subnetted, 7 subnets, 2 masks
O 10.11.0.0/24 [110/74] vi
O 10.1.2.0/24 [110/74] vi
O 10.1.0.0/24 [110/74] vi
O E2 10.254.0.0/24 [110/20] vi
P1R3#
P1R3#sh ip pro
Routing Protocol is "ospf 1"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 10.200.200.13
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
Routing Information Sources:
Gateway Distance Last Update
10.200.200.14 110 01:45:09
10.200.200.13 110 00:10:37
10.1.0.2 110 00:06:30
10.1.0.1 110 00:06:29
10.1.1.1 110 02:32:18
172.31.1.3 110 00:10:37
172.31.11.4 110 00:06:24
Distance: (default is 110)
Routing Protocol is "ospf 1"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID
It is an area border router
Number of areas in this router is 2. 2 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
10.1.0.0 0.0.255.255 area 1
10.11.0.0 0.0.0.255 area 1
172.31.1.0 0.0.0.255 area 0
172.31.11.0 0.0.0.255 area 0
Routing Information Sources:
Gateway Distance Last Update
10.200.200.14 110 01:46:31
10.200.200.13 110 00:11:59
10.1.0.2 110 00:07:51
10.1.0.1 110 00:07:51
10.1.1.1 110 02:33:39
172.31.1.3 110 00:11:59
172.31.11.4 110 00:07:41
Distance: (default is 110)
成功完成整个实验,你需要完成下列任务:
- 你有在点对多点和点对点网络配置OSPF。
- 你能够PING通BBR2路由器。
hostname P1R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
no ip domain lookup
!
!
!
!
interface Ethernet0
ip address
!
interface Serial0
ip address 172.31.1.1 255.255.255.0
encapsulation frame-relay
frame-relay map ip 172.31.1.3 111 broadcast
no frame-relay inverse-arp
!
interface Serial0.1
ip ospf network point-to-multipoint
frame-relay map ip 172.31.11.4 211 broadcast
no frame-relay inverse-arp
!
interface Serial0.2 point-to-point
ip address 10.11.0.1 255.255.255.0
frame-relay interface-dlci 122
!
interface Serial1
ip address 10.1.0.1 255.255.255.0
clockrate 64000
!
router ospf 1
router-id 10.1.0.1
log-adjacency-changes
network 10.1.0.0 0.0.255.255 area 1
network 10.11.0.0 0.0.0.255 area 1
network 172.31.1.0 0.0.0.255 area 0
network 172.31.11.0 0.0.0.255 area 0
!
no ip http server
ip classless
!
!
!
!
line con 0
exec-timeout 30 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
End
hostname P1R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
no ip domain lookup
!
!
!
!
interface Ethernet0
ip address
!
interface Serial0
ip address 172.31.1.2 255.255.255.0
encapsulation frame-relay
ip ospf priority 0
frame-relay map ip 172.31.1.3 112 broadcast
no frame-relay inverse-arp
!
interface Serial0.1
ip ospf network point-to-multipoint
frame-relay map ip 172.31.11.4 212 broadcast
no frame-relay inverse-arp
!
interface Serial0.2 point-to-point
ip address 10.11.0.2 255.255.255.0
frame-relay interface-dlci 221
!
interface Serial1
ip address 10.1.0.2 255.255.255.0
!
router ospf 1
router-id 10.1.0.2
log-adjacency-changes
network 10.1.0.0 0.0.255.255 area 1
network 10.11.0.0 0.0.0.255 area 1
network 172.31.1.0 0.0.0.255 area 0
network 172.31.11.0 0.0.0.255 area 0
!
no ip http server
ip classless
!
!
!
!
line con 0
exec-timeout 30 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
End
hostname P1R3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
!
!
interface Loopback0
ip address 10.200.200.13 255.255.255.255
!
interface Ethernet0
ip address
!
interface Serial0
ip address 10.1.3.3 255.255.255.0
clockrate 64000
!
interface Serial1
no ip address
shutdown
!
router ospf 1
log-adjacency-changes
network 10.1.0.0 0.0.255.255 area 1
!
no ip http server
ip classless
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
End
hostname P1R4
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
!
!
interface Loopback0
ip address 10.200.200.14 255.255.255.255
!
interface Ethernet0
ip address
ip ospf priority 0
!
interface Serial0
ip address 10.1.3.4 255.255.255.0
!
interface Serial1
no ip address
shutdown
!
router ospf 1
log-adjacency-changes
network 10.1.0.0 0.0.255.255 area 1
!
no ip http server
ip classless
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end