Switch Trunk link configuration, switch trunk Link
Experiment process:
1. Configure the PC
PC1: 192.168.2.1 PC2: 192.168.1.2
PC3: 192.168.2.3 PC4: 192.168.1.4
2. Configure Switch (SW1 is used as an example)
SW1 (config) # vlan13
SW1 (config-vlan) # namePC1PC3
SW1 (config-vlan) # exit
SW1 (config) # vlan24
SW1 (config-vlan) # namePC2PC4
SW1 (config-vlan) # exit
SW1 (config) # interf0/1
SW1 (config-if) # noshutdown
SW1 (config-if) # switchportmodeaccess
SW1 (config-if) # switchportaccessvlan13
SW1 (config-if) # exit
SW1 (config) # interf0/2
SW1 (config-if) # noshutdown
SW1 (config-if) # switchportmodeaccess
SW1 (config-if) # switchportaccessvlan24
SW1 (config-if) # exit
SW1 (config) # interf0/13
SW1 (config-if) # noshutdown
SW1 (config-if) # switchportmodetrunk
Experiment results:
PC1 and PC3, PC2 and PC4 can communicate with each other.
Different vlan hosts, such as PC1 and pc2.