Figure 20 Network diagram
Configuration procedure
Configure the IP address and subnet mask for each interface as shown in
1.
shown.)
Enable OSPF on switches to make sure the network-layer among the switches is interoperable and
2.
the routing information among the switches can be dynamically updated. (Details not shown.)
Configure a GRE tunnel:
3.
# Create service loopback group 1 on Switch A and specify its service type as Tunnel.
<SwitchA> system-view
[SwitchA] service-loopback group 1 type tunnel
# Disable STP and NDP on interface Ten-GigabitEthernet 1/0/3 of Switch A, and add the
interface to service loopback group 1. Ten-GigabitEthernet 1/0/3 does not belong to VLAN 100
or VLAN 101.
[SwitchA] interface ten-gigabitethernet 1/0/3
[SwitchA-Ten-GigabitEthernet1/0/3] undo stp enable
[SwitchA-Ten-GigabitEthernet1/0/3] undo lldp enable
[SwitchA-Ten-GigabitEthernet1/0/3] port service-loopback group 1
[SwitchA-Ten-GigabitEthernet1/0/3] quit
# Create interface Tunnel 0 on Switch A and specify the tunnel encapsulation mode as GRE over
IPv4.
[SwitchA] interface tunnel 0 mode gre
# Configure the IP address for interface Tunnel 0 on Switch A and specify its source and
destination addresses.
[SwitchA-Tunnel0] ip address 50.1.1.1 24
[SwitchA-Tunnel0] source 20.1.1.1
[SwitchA-Tunnel0] destination 30.1.1.2
[SwitchA-Tunnel0] quit
# Create service loopback group 1 on Switch C and specify its service type as Tunnel.
<SwitchC> system-view
[SwitchC] service-loopback group 1 type tunnel
# Disable STP and NDP on interface Ten-GigabitEthernet 1/0/3 of Switch C, and add the
interface to service loopback group 1. Ten-GigabitEthernet 1/0/3 does not belong to VLAN 200
or VLAN 102.
[SwitchC] interface ten-gigabitethernet 1/0/3
45
Figure
20. (Details not