题目
地址配置
R1:
R2:
R3:
R4:
R5:
ISP:
R1/2/3的星型拓扑结构
R1配置:
interface Tunnel0/0/0
ip address 192.168.6.1 255.255.255.0
tunnel-protocol gre p2mp
source 200.1.1.1
ospf network-type broadcast
nhrp entry multicast dynamic
nhrp network-id 100
R2配置:
interface Tunnel0/0/0
ip address 192.168.6.2 255.255.255.0
tunnel-protocol gre p2mp
source GigabitEthernet0/0/0
ospf network-type broadcast
nhrp network-id 100
nhrp entry 192.168.6.1 200.1.1.1 register
R3配置:
interface Tunnel0/0/0
ip address 192.168.6.3 255.255.255.0
tunnel-protocol gre p2mp
source GigabitEthernet0/0/0
ospf network-type broadcast
nhrp network-id 100
nhrp entry 192.168.6.1 200.1.1.1 register
R1/4/5的全连拓扑结构
R1配置
interface Tunnel0/0/1
ip address 192.168.7.1 255.255.255.0
tunnel-protocol gre p2mp
source 200.11.1.1
ospf network-type broadcast
nhrp entry multicast dynamic
nhrp entry 192.168.7.5 200.1.5.1 register
nhrp entry 192.168.7.4 200.1.4.1 register
R4配置:
interface Tunnel0/0/1
ip address 192.168.7.4 255.255.255.0
tunnel-protocol gre p2mp
source 200.1.4.1
ospf network-type broadcast
nhrp entry multicast dynamic
nhrp entry 192.168.7.5 200.11.1.1 register
nhrp entry 192.168.7.4 200.1.5.1 register
R5配置:
interface Tunnel0/0/1
ip address 192.168.7.5 255.255.255.0
tunnel-protocol gre p2mp
source 200.1.5.1
ospf network-type broadcast
nhrp entry multicast dynamic
nhrp entry 192.168.7.5 200.11.1.1 register
nhrp entry 192.168.7.4 200.1.4.1 register
OSPF协议
R1:
ospf 1 router-id 1.1.1.1
area 0.0.0.0
network 192.168.1.0 0.0.0.255
network 192.168.6.0 0.0.0.255
network 192.168.7.0 0.0.0.255
R2:
ospf 1 router-id 2.2.2.2
area 0.0.0.0
network 192.168.2.0 0.0.0.255
network 192.168.6.0 0.0.0.255ospf dr-priority 0
R3:
ospf 1 router-id 3.3.3.3
area 0.0.0.0
network 192.168.3.0 0.0.0.255
network 192.168.6.0 0.0.0.255ospf dr-priority 0
R4:
ospf 1
area 0.0.0.0
network 192.168.4.0 0.0.0.255
network 192.168.7.0 0.0.0.255
R5:
ospf 1
area 0.0.0.0
network 192.168.5.0 0.0.0.255
network 192.168.7.0 0.0.0.255
结果
R1
R2
R3
R4
R5