交换机配置
[SW1]vlan batch 100 200
[SW1]int g0/0/1
[SW1-GigabitEthernet0/0/1]port link-type access
[SW1-GigabitEthernet0/0/1]port default vlan 100
[SW1-GigabitEthernet0/0/1]int g0/0/2
[SW1-GigabitEthernet0/0/2]port link-type access
[SW1-GigabitEthernet0/0/2]port default vlan 200
[SW1-GigabitEthernet0/0/2]int vlanif100
[SW1-Vlanif100]ip address 192.168.100.1 24
[SW1-Vlanif100]int vlanif200
[SW1-Vlanif200]ip address 192.168.200.1 24
标签:vlan,int,VLAN,GigabitEthernet0,间通信,交换机,SW1,port
From: https://www.cnblogs.com/xl4ng/p/16807140.html