22-38
Tunnel Configuration Mode
tunnel destination {<ipv4-address> |
<ipv6-address>}
no tunnel destination
Configure tunnel destination end
IPv4/IPv6 address. The NO command
deletes the IPv4/IPv6 address of tunnel
(5) Configure Tunnel Next-Hop
Tunnel Configuration Mode
tunnel nexthop <ipv4-address>
no tunnel nexthop
Configure tunnel next-hop IPv4 address.
The NO command deletes the IPv4
address of tunnel next-hop end.
(6) Configure Tunnel Mode
ipv6 route <ipv6-address/prefix-length>
{<interface-type interface-number> | tunnel
<tnl-id>}
no ipv6 route <ipv6-address/prefix-length>
{<interface-type interface-number> | tunnel
Configure tunnel routing. The NO
command clears tunnel routing.
22.2.3 IP Configuration Examples
22.2.3.1 Configuration Examples of IPv4
Figure 22-1 IPv4 configuration example
The user’s configuration requirements are: Configure IP address of different network segments on Switch1
and Switch2, configure static routing and validate accessibility using ping function.
Configuration Description:
1. Configure two VLANs on Switch1, namely, VLAN1 and VLAN2.
2. Configure IPv4 address 192.168.1.1 255.255.255.0 in VLAN1 of Switch1, and configure IPv4