#sw1配置
#
vlan batch 2 to 3
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
undo shutdown
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 2
undo shutdown
#
interface GigabitEthernet0/0/3
port link-type access
port default vlan 3
undo shutdown
#sw2配置
#
vlan batch 2 to 3
#
interface Vlanif2
ip address 192.168.2.254 255.255.255.0
undo shutdown
#
interface Vlanif3
ip address 192.168.3.254 255.255.255.0
undo shutdown
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
undo shutdown