HPE FlexNetwork 10500 Series Configuration Manual page 261

Layer 3-ip services
Table of Contents

Advertisement

# Add GigabitEthernet 1/0/2 (the physical interface of the tunnel) to VLAN 100.
<SwitchA> system-view
[SwitchA] vlan 100
[SwitchA-vlan100] port gigabitethernet 1/0/2
[SwitchA-vlan100] quit
# Specify an IPv4 address for VLAN-interface 100.
[SwitchA] interface vlan-interface 100
[SwitchA-Vlan-interface100] ip address 2.1.1.1 255.255.255.0
[SwitchA-Vlan-interface100] quit
# Add GigabitEthernet 1/0/1 to VLAN 101.
[SwitchA] vlan 101
[SwitchA-vlan101] port gigabitethernet 1/0/1
[SwitchA-vlan101] quit
# Specify a 6to4 address for VLAN-interface 101.
[SwitchA] interface vlan-interface 101
[SwitchA-Vlan-interface101] ipv6 address 2002:0201:0101:1::1/64
[SwitchA-Vlan-interface101] quit
# Create service loopback group 1, and specify its service type as tunnel.
[SwitchA] service-loopback group 1 type tunnel
# Assign GigabitEthernet 1/0/3 to service loopback group 1.
[SwitchA] interface gigabitethernet 1/0/3
[SwitchA-GigabitEthernet1/0/3] port service-loopback group 1
[SwitchA-GigabitEthernet1/0/3] quit
# Create 6to4 tunnel interface Tunnel 1.
[SwitchA] interface tunnel 1 mode ipv6-ipv4 6to4
# Specify an IPv6 address for the tunnel interface.
[SwitchA-Tunnel1] ipv6 address 2002:0201:0101::1/64
# Specify the source interface as VLAN-interface 100 for the tunnel interface.
[SwitchA-Tunnel1] source vlan-interface 100
[SwitchA-Tunnel1] quit
# Configure a static route destined for the 6to4 relay switch.
[SwitchA] ipv6 route-static 2002:0601:0101:: 64 tunnel 1
# Configure a default route to reach the IPv6 network, which specifies the 6to4 address of the
6to4 relay switch as the next hop.
[SwitchA] ipv6 route-static :: 0 2002:0601:0101::1
Configure Switch B:
# Add GigabitEthernet 1/0/2 (the physical interface of the tunnel) to VLAN 100.
<SwitchB> system-view
[SwitchB] vlan 100
[SwitchB-vlan100] port gigabitethernet 1/0/2
[SwitchB-vlan100] quit
# Specify an IPv4 address for VLAN-interface 100.
[SwitchB] interface vlan-interface 100
[SwitchB-Vlan-interface100] ip address 6.1.1.1 255.255.255.0
[SwitchB-Vlan-interface100] quit
# Add GigabitEthernet 1/0/1 to VLAN 101.
[SwitchB] vlan 101
250

Advertisement

Table of Contents
loading

Table of Contents