PLANET XGS3-24040 User Manual
Page 181

Chapter 21 Layer 3 Forward Configuration
21-11
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.
First make sure PC1 and Switch can access each other by ping, and PC2 and
Switch2 can access each other by ping.
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.2550
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