User's Manual

Table Of Contents
22-40
The configuration procedure is as follows:
Switch1(config)#interface vlan 1
Switch1(Config-if-Vlan1)#ip address 192.168.1.1 255.255.255.0
Switch1(config)#interface vlan 2
Switch1(Config-if-Vlan2)#ip address 192.168.2.1 255.255.255.0
Switch1(Config-if-Vlan2)#exit
Switch1(config)#ip route 192.168.3.0 255.255.255.0 192.168.2.2
Switch2(config)#interface vlan 2
Switch2(Config-if-Vlan2)#ip address 192.168.2.2 255.255.255.0
Switch2(config)#interface vlan 3
Switch2(Config-if-Vlan3)#ip address 192.168.3.1 255.255.255.0
Switch2(Config-if-Vlan3)#exit
Switch2(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.1
22.2.3.2 Configuration Examples of IPv6
Example 1:
Figure 22-2 IPv6 configuration example
The user’s configuration requirements are: Configure IPv6 address of different network segments on Switch1
and Switch2, configure static routing and validate reachability using ping6 function.
Configuration Description:
1 Configure two VLANs on Switch1, namely, VLAN1 and VLAN2.
2 Configure IPv6 address 2001::1/64 in VLAN1 of Switch1, and configure IPv6 address 2002::1/64 in
VLAN2.
3 Configure 2 VLANs on Switch2, namely, VLAN2 and VLAN3.
4 Configure IPv6 address 2002::2/64 in VLAN2 of Switch2, and configure IPv6 address 2003::1/64 in
VLAN3.
5 The IPv6 address of PC1 is 2001::11/64, and the IPv6 address of PC2 is 2003::33/64.
6 Configure static routing 2003:33/64 on Switch1, and configure static routing 2001::11/64 on Switch2.
7 ping6 each other among PCs.
Switch2
Switch1
PC2
PC1