HPE 3100 Configuration Manual page 229

Table of Contents

Advertisement

# Configure the source address of the tunnel interface Tunnel0 as the IP address of interface
VLAN-interface 101.
[SwitchA-Tunnel0] source 2002::1:1
# Configure the destination address of the tunnel interface Tunnel0 as the IP address of
interface VLAN-interface 101 on Switch B.
[SwitchA-Tunnel0] destination 2001::2:1
# Apply service loopback group 1 to the tunnel in tunnel interface view.
[SwitchA-Tunnel0] service-loopback-group 1
[SwitchA-Tunnel0] quit
# Configure a static route from Switch A through the tunnel interface Tunnel0 to Group 2.
[SwitchA] ip route-static 10.1.3.0 255.255.255.0 tunnel 0
2.
Configure Switch B:
<SwitchB> system-view
# Enable IPv6.
[SwitchB] ipv6
# Configure interface VLAN-interface 100.
[SwitchB] vlan 100
[SwitchB-vlan100] port Ethernet 1/0/1
[SwitchB-vlan100] quit
[SwitchB] interface vlan-interface 100
[SwitchB-Vlan-interface100] ip address 10.1.3.1 255.255.255.0
[SwitchB-Vlan-interface100] quit
# Configure interface VLAN-interface 101, the physical interface of the tunnel.
[SwitchB] vlan 101
[SwitchB-vlan101] port Ethernet 1/0/2
[SwitchB-vlan101] quit
[SwitchB] interface vlan-interface 101
[SwitchB-Vlan-interface101] ipv6 address 2001::2:1 64
[SwitchB-Vlan-interface101] quit
# Create service loopback group 1, and configure the service type as tunnel.
[SwitchB] service-loopback group 1 type tunnel
# Add port Ethernet 1/0/3 to service loopback group 1, and disable STP, NDP, and LLDP on the
port.
[SwitchB] interface Ethernet 1/0/3
[SwitchB-Ethernet1/0/3] undo stp enable
[SwitchB-Ethernet1/0/3] undo ndp enable
[SwitchB-Ethernet1/0/3] undo lldp enable
[SwitchB-Ethernet1/0/3] port service-loopback group 1
[SwitchB-Ethernet1/0/3] quit
# Create a tunnel interface Tunnel0.
[SwitchB] interface tunnel 0
# Configure an IPv4 address for the tunnel interface Tunnel0.
[SwitchB-Tunnel0] ip address 10.1.2.2 255.255.255.0
# Configure the tunnel encapsulation mode as GRE over IPv6.
[SwitchB-Tunnel0] tunnel-protocol gre ipv6
# Configure the source address of the tunnel interface Tunnel0 as the IP address of interface
VLAN-interface 101.
[SwitchB-Tunnel0] source 2001::2:1
219

Advertisement

Table of Contents
loading

Table of Contents