ENSP实验五——三层交换机+二层交换机

时间:2025-03-26 16:38:10

LSW1:

sy

sy sw1

vlan batch 10 20   

int g0/0/4 

port link-type access  

port default vlan 10  

int g0/0/3

port link-type access

port default vlan 20

int g0/0/1

port link-type trunk   

port trunk allow-pass vlan all    

int g0/0/2

port link-type trunk

port trunk allow-pass vlan all

int vlan 10   

ip address 192.168.1.254 24   

un sh  

int vlan 20

ip address 192.168.2.254 24

un sh

LSW2:

sy

sy sw2

vlan batch 10 20

int g0/0/2

port link-type access

port default vlan 10

int g0/0/3

port link-type access

port default vlan 20

int g0/0/1

port link-type trunk

port trunk allow-pass vlan all

LSW3:

sy

sy sw3

vlan batch 10 20

int g0/0/2

port link-type access

port default vlan 10

int g0/0/3

port link-type access

port default vlan 20

int g0/0/1

port link-type trunk

port trunk allow-pass vlan all