三层交换机实现VLAN间通信及应用

image

交换机配置

[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
posted @ 2022-10-19 17:58  xl4ng  阅读(34)  评论(0编辑  收藏  举报