88
Figure 33 Network diagram
Configuration procedure
1.
Assign an IP address and subnet mask for each interface, as shown in
. (Details not
shown.)
2.
Configure OSPF on all the switches. (Details not shown.)
3.
Configure a GRE tunnel:
# On Switch A, create service loopback group 1, and specify the unicast tunnel service for the
group.
<SwitchA> system-view
[SwitchA] service-loopback group 1 type tunnel
# Add HundredGigE 1/0/3 to service loopback group 1. (HundredGigE 1/0/3 does not belong to
VLAN 100 or VLAN 101.)
[SwitchA] interface hundredgige 1/0/3
[SwitchA-HundredGigE1/0/3] port service-loopback group 1
[SwitchA-HundredGigE1/0/3] quit
# Create a GRE tunnel interface Tunnel 2, and specify the tunnel mode as GRE/IPv4.
[SwitchA] interface tunnel 2 mode gre
# Assign an IP address to interface Tunnel 2, and specify its source and destination addresses.
[SwitchA-Tunnel2] ip address 50.1.1.1 24
[SwitchA-Tunnel2] source 20.1.1.1
[SwitchA-Tunnel2] destination 30.1.1.2
[SwitchA-Tunnel2] quit
# On Switch C, create service loopback group 1, and specify the unicast tunnel service for the
group.
<SwitchC> system-view
[SwitchC] service-loopback group 1 type tunnel
# Add HundredGigE 1/0/3 to service loopback group 1. HundredGigE 1/0/3 does not belong to
VLAN 200 or VLAN 102.
[SwitchC] interface hundredgige 1/0/3
[SwitchC-HundredGigE1/0/3] port service-loopback group 1
[SwitchC-HundredGigE1/0/3] quit
# Create a GRE tunnel interface Tunnel 2, and specify the tunnel mode as GRE/IPv4.
[SwitchC] interface tunnel 2 mode gre
# Assign an IP address for interface Tunnel 2, and specify its source and destination addresses.
[SwitchC-Tunnel2] ip address 50.1.1.2 24
[SwitchC-Tunnel2] source 30.1.1.2
Multicast router
Switch A
Vlan-int101
20.1.1.1/24
Vlan-int102
30.1.1.1/24
Vlan-int102
30.1.1.2/24
Vlan-int101
20.1.1.2/24
Source
Receiver
40.1.1.100/24
Vlan-int200
40.1.1.1/24
10.1.1.100/24
Vlan-int100
10.1.1.1/24
GRE tunnel
Tunnel2
50.1.1.1/24
Tunnel2
50.1.1.2/24
Unicast router
Switch B
Multicast router
Switch C
Member port of a service loopback group
HGE1/0/3
HGE1/0/3