309
2
、
Configure IPv6 address 192.168.1.1 255.255.255.0 in vlan1 of SwitchA, and
configure IPv4 address 192.168.2.1 255.255.255.0 in vlan2.
3
、
Configure two vlans on SwitchB, respectively vlan2 and vlan3
4
、
Configure IPv4 address 192.168.2.2 255.255.255.0 in vlan2 of SwitchB, and
configure IPv4 address 192.168.3.1 255.255.255.0 in vlan2.
5
、
The IPv4 address of PC-A is 192.168.1.100, and the IPv4 address of PC-B is
192.168.3.100
6
、
Configure static routing 192.168.3.0/24 on SwitchA, and configure static routing
192.168.1.0/24 on SwitchB.
7
、
Ping each other among PCs.
Note: First make sure PC-A and Switch can access each other by ping, and PC-B
and SwitchB can access each other by ping.
The configuration procedure is as follows:
SwitchA(Config)#interface vlan 1
SwitchA(Config-if-Vlan1)#IP address 192.168.1.1 255.255.255.0
SwitchA(Config)#interface vlan 2
SwitchA(Config-if-Vlan2)#IP address 192.168.2.1 255.255.255.0
SwitchA(Config-if-Vlan2)#exit
SwitchA(Config)#IP route 192.168.3.0 255.255.255.0 192.168.2.1
SwitchB(Config)#interface vlan 2
SwitchB(Config-if-Vlan2)#IP address 192.168.2.2 255.255.2550
SwitchB(Config)#interface vlan 3
SwitchB(Config-if-Vlan3)#IP address 192.168.3.1 255.255.255.0
SwitchB(Config-if-Vlan3)#exit
SwitchB(Config)#IP route 192,168.1.0 255.255.255.0 192.168.2.1
10.2.4.2 Configuration Examples of IPv6
Example 1:
SwitchA
PC-A
PC-B
SwitchB