R1配置:
sysname R1
ip route-static 0.0.0.0 0.0.0.0 12.0.0.2
ip route-static 0.0.0.0 0.0.0.0 21.0.0.2
interface GigabitEthernet0/0/0
ip address 21.0.0.1 255.255.255.0
interface LoopBack0
ip address 192.168.1.1 255.255.255.0
interface Tunnel0/0/0
ip address 192.168.7.1 255.255.255.0
tunnel-protocol gre p2mp
source 21.0.0.1
ospf network-type p2mp
nhrp entry multicast dynamic
nhrp network-id 100
interface Tunnel0/0/1
ip address 192.168.2.1 255.255.255.0
tunnel-protocol gre p2mp
source 12.0.0.1
ospf network-type broadcast
nhrp entry multicast dynamic
nhrp network-id 100
nhrp entry 192.168.2.3 23.0.0.1 register
nhrp entry 192.168.2.4 24.0.0.1 register
ospf 1 router-id 1.1.1.1
area 0.0.0.0
network 12.0.0.0 0.0.0.255
network 21.0.0.0 0.0.0.255
network 192.168.1.0 0.0.0.255
network 192.168.2.0 0.0.0.255
network 192.168.7.0 0.0.0.255
R3:
ip route-static 0.0.0.0 0.0.0.0 23.0.0.2
sysname R3
interface Tunnel0/0/0
ip address 192.168.2.3 255.255.255.0
tunnel-protocol gre p2mp
source 23.0.0.1
ospf network-type broadcast
nhrp entry multicast dynamic
nhrp network-id 100
nhrp entry 192.168.2.1 12.0.0.1 register
nhrp entry 192.168.2.4 24.0.0.1 register
interface GigabitEthernet0/0/0
ip address 23.0.0.1 255.255.255.0
ospf 1 router-id 3.3.3.3
area 0.0.0.0
network 23.0.0.0 0.0.0.255
network 192.168.2.0 0.0.0.255
network 192.168.3.0 0.0.0.255
R4:
sysname R4
ip route-static 0.0.0.0 0.0.0.0 24.0.0.2
interface Tunnel0/0/0
ip address 192.168.2.4 255.255.255.0
tunnel-protocol gre p2mp
source 24.0.0.1
ospf network-type broadcast
nhrp entry multicast dynamic
nhrp network-id 100
nhrp entry 192.168.2.1 12.0.0.1 register
nhrp entry 192.168.2.3 23.0.0.1 register
ospf 1 router-id 4.4.4.4
area 0.0.0.0
network 24.0.0.0 0.0.0.255
network 192.168.2.0 0.0.0.255
network 192.168.4.0 0.0.0.255
R5:
ip route-static 0.0.0.0 0.0.0.0 25.0.0.2
sysname R5
interface GigabitEthernet0/0/0
ip address 25.0.0.1 255.255.255.0
interface Tunnel0/0/0
ip address 192.168.7.5 255.255.255.0
tunnel-protocol gre p2mp
source GigabitEthernet0/0/0
ospf network-type p2mp
nhrp entry multicast dynamic
nhrp network-id 100
nhrp entry 192.168.7.1 21.0.0.1 register
ospf 1 router-id 5.5.5.5
area 0.0.0.0
network 25.0.0.0 0.0.0.255
network 192.168.5.0 0.0.0.255
network 192.168.7.0 0.0.0.255
R6:
sysname R6
ip route-static 0.0.0.0 0.0.0.0 26.0.0.2
interface GigabitEthernet0/0/0
ip address 26.0.0.1 255.255.255.0
interface Tunnel0/0/0
ip address 192.168.7.6 255.255.255.0
tunnel-protocol gre p2mp
source GigabitEthernet0/0/0
ospf network-type p2mp
nhrp entry multicast dynamic
nhrp network-id 100
nhrp entry 192.168.7.1 21.0.0.1 register
ospf 1 router-id 6.6.6.6
area 0.0.0.0
network 26.0.0.0 0.0.0.255
network 192.168.6.0 0.0.0.255
network 192.168.7.0 0.0.0.255
R2:
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 21.0.0.2/24 up up
GigabitEthernet0/0/1 12.0.0.2/24 up up
GigabitEthernet0/0/2 23.0.0.2/24 up up
GigabitEthernet4/0/0 24.0.0.2/24 up up
GigabitEthernet4/0/1 25.0.0.2/24 up up
GigabitEthernet4/0/2 26.0.0.2/24 up up
GigabitEthernet4/0/3 unassigned down down
NULL0 unassigned up up(s)
检验: