Three switches configured cross- VLAN communication
experimental report
1. Experimental requirements
Cross- vlan communication
2. Experimental topology
3. Protocol
1. Set all PC 's IP and gateway
PC1 to PC8 the IP addresses are
192.168.1.2 192.168.1.1 (gateway 192.168.1.3 )
192.168.2.2 192.168.2.1 (gateway 192.168.2.3 )
192.168.3.2 192.168.3.1 (gateway 192.168.3.3 )
192.168.4.2 192.168.4.1 (gateway 192.168.4.3)
Other PC empathy
2. For the switcher Switch1 and Switch2 , create vlan , the switch interface vlan partition, configuration truck
Swith1
2.1 Creating vlan
2.2 the switch interface vlan partition
2.3 View vlan
View privileged mode vlan
Switch>
Switch>enable
Switch#show vlan brief
2.4 Configuring trunk
Similarly, for Switch2 configuration is as follows :
3. For three switches Switch3 , create vlan , to vlan set ip , open route, three switches interface configuration truck
3.1 Creating vlan
3.2 to vlan configuration ip
View different privileged mode vlan zone ip
3.3 open routes
3.4 three switches interface configuration truck
Switch (config) #interface Range F0 / 1-2 (to enter the interface configuration mode)
Switch (config-IF-Range) #switchport Trunk encapsulation dot1q (select package type 802.1Q )
Switch (config-IF-Range) #switchport MODE Trunk (the interface is set to Trunk)
Switch(config-if-range)#
4. China Unicom test
4.1 for PC1 were the same segment test
4.2 for PC1 were extraordinary network test
5. summary
Precautions
Remember, vlan 1 exists by default, but also off by default, if you are using an interface not assigned to other vlan, which is attributable to the default vlan 1, you should keep in mind that open vlan 1
Switch(config)#interface vlan 1
Switch(config-if)#no shutdown
Switcher default 802.1q encapsulation type , may be provided directly to trunk
Three switches to be set for the front interface encapsulation type 802.1q