CCNP帧中继OSPF点到多点(广播)实验配置

 

CCNP帧中继OSPF点到多点(广播)实验配置_第1张图片 

实验拓扑图如上:

本文属于个人学习笔记整理,

帧中继OSPF点到多点模式(广播):

配置步骤:1、配置FR,强制支持广播;2、配置OSPF;3、修改模式为点到多点;

实验目的:达到全网互通!

转载请注明出处,谢谢^_^

=================================================================

首先帧中继FR配置:

Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hos HR
HR(config)#frame-relay switching  开启帧中继
HR(config)#int s0/0
HR(config-if)#encapsulation frame-relay
HR(config-if)#frame-relay intf-type dce 帧中继接口都配置为DCE
HR(config-if)#clock rate 64000   DCE别忘记设置时钟频率
HR(config-if)#frame-relay route 103 int s0/1 301
HR(config-if)#frame-relay route 104 int s0/2 401
HR(config-if)#no shu
HR(config-if)#exit
HR(config)#int s0/1
HR(config-if)#encapsulation frame-relay
HR(config-if)#frame-relay intf-type 
HR(config-if)#frame-relay intf-type  dce
HR(config-if)#clock rate 64000
HR(config-if)#frame-relay route 301 int s0/0 103
HR(config-if)#no shu
HR(config-if)#exit
HR(config)#int s0/2
HR(config-if)#encapsulation frame-relay
HR(config-if)#frame-relay intf-type dce
HR(config-if)#clock rate 64000
HR(config-if)#frame-relay route 401 int s0/0 104
HR(config-if)#no shu
HR(config-if)#exit

=====================================================

R1配置:

Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hos R1
R1(config)#int lo
R1(config)#int loopback 0
R1(config-if)#ip add 1.1.1.1 255.255.255.0
R1(config-if)#no shu
R1(config-if)#exit
R1(config)#int s0/0
R1(config-if)#encapsulation frame-relay
R1(config-if)#ip add 192.168.1.1 255.255.255.0
R1(config-if)#encapsulation frame-relay      
R1(config-if)#no frame-relay inverse-arp 禁用帧中继反向地址解析
R1(config-if)#frame-relay map ip 192.168.1.3 103 broadcast  强制FR支持广播
R1(config-if)#frame-relay map ip 192.168.1.4 104 broadcast
R1(config-if)#ip ospf network point-to-multipoint 修改模式为点到多点模式
R1(config-if)#no shu
R1(config-if)#exit
R1(config)#router ospf 10
R1(config-router)#net 1.1.1.0 0.0.0.255 area 0
R1(config-router)#net 192.168.1.0 0.0.0.255 area 0
R1(config-router)#exit
R1(config)#exit
R1#
R1#show 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
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/65] via 192.168.1.3, 00:00:39, Serial0/0
     4.0.0.0/32 is subnetted, 1 subnets
O       4.4.4.4 [110/65] via 192.168.1.4, 00:00:39, Serial0/0
     192.168.1.0/24 is variably subnetted, 3 subnets, 2 masks
C       192.168.1.0/24 is directly connected, Serial0/0
O       192.168.1.3/32 [110/64] via 192.168.1.3, 00:00:39, Serial0/0
O       192.168.1.4/32 [110/64] via 192.168.1.4, 00:00:39, Serial0/0
R1#show ip ospf nei

Neighbor ID     Pri   State           Dead Time   Address         Interface
4.4.4.4           0   FULL/  -        00:01:34    192.168.1.4     Serial0/0
3.3.3.3           0   FULL/  -        00:01:36    192.168.1.3     Serial0/0
R1#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/44/64 ms
R1#ping 4.4.4.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/29/44 ms
R1#

==============================================================

R3配置:

Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hos R3
R3(config)#int lo
R3(config)#int loopback 0
R3(config-if)#ip add 3.3.3.3 255.255.255.0
R3(config-if)#no shu
R3(config-if)#exit
R3(config)#int s0/0
R3(config-if)#ip add 192.168.1.3 255.255.255.0
R3(config-if)#encapsulation fram
R3(config-if)#encapsulation frame-relay
R3(config-if)#no frame-relay inverse-arp
R3(config-if)#frame-relay map ip 192.168.1.1 301 broadcast
R3(config-if)#ip ospf network point-to-multipoint
R3(config-if)#no shu
R3(config-if)#exit
R3(config)#
R3(config)#router ospf 10
R3(config-router)#net 3.3.3.0 0.0.0.255 area 0
R3(config-router)#net 192.168.1.0 0.0.0.255 area 0
R3(config-router)#exit
R3(config)#exit
R3#
R3#show 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/32 is subnetted, 1 subnets
O       1.1.1.1 [110/65] via 192.168.1.1, 00:01:02, Serial0/0
     3.0.0.0/24 is subnetted, 1 subnets
C       3.3.3.0 is directly connected, Loopback0
     4.0.0.0/32 is subnetted, 1 subnets
O       4.4.4.4 [110/129] via 192.168.1.1, 00:01:02, Serial0/0
     192.168.1.0/24 is variably subnetted, 3 subnets, 2 masks
O       192.168.1.1/32 [110/64] via 192.168.1.1, 00:01:02, Serial0/0
C       192.168.1.0/24 is directly connected, Serial0/0
O       192.168.1.4/32 [110/128] via 192.168.1.1, 00:01:02, Serial0/0
R3#show ip ospf nei

Neighbor ID     Pri   State           Dead Time   Address         Interface
1.1.1.1           0   FULL/  -        00:01:41    192.168.1.1     Serial0/0
R3#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 = 8/35/68 ms
R3#ping 4.4.4.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/61/136 ms
R3#

=============================================================

R4配置:

Router>
Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R4(config)#int loopback 0
R4(config-if)#ip add 4.4.4.4 255.255.255.0
R4(config-if)#no shu
R4(config-if)#exit
R4(config)#int s0/0
R4(config-if)#ip add 192.168.1.4 255.255.255.0
R4(config-if)#encapsulation frame-relay
R4(config-if)#no frame-relay inverse-arp
R4(config-if)#frame-relay map ip 192.168.1.1 401 bro
R4(config-if)#frame-relay map ip 192.168.1.1 401 broadcast
R4(config-if)#ip ospf network point-to-multipoint
R4(config-if)#no shu
R4(config-if)#exit
R4(config)#router ospf 10
R4(config-router)#net 4.4.4.0 0.0.0.255 area 0
R4(config-router)#net 192.168.1.0 0.0.0.255 area 0
R4(config-router)#exit
R4(config)#exit
R4#
R4#show 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/32 is subnetted, 1 subnets
O       1.1.1.1 [110/65] via 192.168.1.1, 00:01:13, Serial0/0
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/129] via 192.168.1.1, 00:01:13, Serial0/0
     4.0.0.0/24 is subnetted, 1 subnets
C       4.4.4.0 is directly connected, Loopback0
     192.168.1.0/24 is variably subnetted, 3 subnets, 2 masks
O       192.168.1.1/32 [110/64] via 192.168.1.1, 00:01:13, Serial0/0
C       192.168.1.0/24 is directly connected, Serial0/0
O       192.168.1.3/32 [110/128] via 192.168.1.1, 00:01:13, Serial0/0
R4#show ip ospf nei

Neighbor ID     Pri   State           Dead Time   Address         Interface
1.1.1.1           0   FULL/  -        00:01:55    192.168.1.1     Serial0/0
R4#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 = 12/34/56 ms
R4#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 = 8/51/116 ms
R4#
============================================================

至此,已经达到全网互通,嘿嘿^_^

你可能感兴趣的:(广播,实验,ospf,ccnp,帧中继)