Figure 28 Network diagram
Configuration procedure
1.
Assign an IP address and subnet mask to each interface according to
shown.)
2.
Configure OSPF on switches to meet the following requirements: (Details not shown.)
The switches are interoperable at the network layer.
The switches can dynamically update their routing information.
3.
Configure a GRE tunnel:
# On Switch A, create service loopback group 1, and specify its service type as Tunnel.
<SwitchA> system-view
[SwitchA] service-loopback group 1 type tunnel
# Add Ten-GigabitEthernet 1/1/7 to service loopback group 1. Ten-GigabitEthernet 1/1/7 does
not belong to VLAN 100 or VLAN 101.
[SwitchA] interface ten-gigabitethernet 1/1/7
[SwitchA-Ten-GigabitEthernet1/1/7] port service-loopback group 1
[SwitchA-Ten-GigabitEthernet1/1/7] quit
# Create interface Tunnel 0, and specify the tunnel encapsulation mode as GRE over IPv4.
[SwitchA] interface tunnel 0 mode gre
# Assign an IP address to interface Tunnel 0, 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
# On Switch C, create service loopback group 1, and specify its service type as Tunnel.
<SwitchC> system-view
[SwitchC] service-loopback group 1 type tunnel
# Add Ten-GigabitEthernet 1/1/7 to service loopback group 1. Ten-GigabitEthernet 1/1/7 does
not belong to VLAN 200 or VLAN 102.
[SwitchC] interface ten-gigabitethernet 1/1/7
[SwitchC-Ten-GigabitEthernet1/1/7] port service-loopback group 1
[SwitchC-Ten-GigabitEthernet1/1/7] quit
# Create interface Tunnel 0, and specify the tunnel encapsulation mode as GRE over IPv4.
[SwitchC] interface tunnel 0 mode gre
67
Figure
28. (Details not