User's Manual

Table Of Contents
22-39
(6) Configure Tunnel Mode
Command
Explanation
Global 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
<tnl-id>}
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
address 192.168.2.1 255.255.255.0 in VLAN2.
3 Configure two VLANs on Switch2, respectively VLAN2 and VLAN3.
4 Configure IPv4 address 192.168.2.2 255.255.255.0 in VLAN2 of Switch2, and configure IPv4
address 192.168.3.1 255.255.255.0 in VLAN3.
5 The IPv4 address of PC1 is 192.168.1.100 255.255.255.0, and the IPv4 address of PC2 is
192.168.3.100 255.255.255.0.
6 Configure static routing 192.168.3.0/24 on Switch1, and configure static routing 192.168.1.0/24 on
Switch2.
7 Ping each other among PCs.
Note: First make sure PC1 and Switch1 can access each other by ping, and PC2 and Switch2 can access
each other by ping.
Switch2
Switch1
PC2
PC1