ensp如何給vlan配置網關?
創建vlan:
[sw1]vlan 10 //創建VLAN10
[sw1-vlan10]vlan 20 //創建VLAN20
配置access:
[sw1]interface Ethernet 0/0/1 //進入以太網接口0/0/1
[sw1-Ethernet0/0/1]port link-type access //配置接口類型為Access
[sw1-Ethernet0/0/1]port default vlan 10 //分配接口給VLAN10
配置trunk:
[sw1]interface Ethernet 0/0/4
[sw1-Ethernet0/0/4]port link-type trunk //配置接口類型為trunk
[sw1-Ethernet0/0/4]port trunk allow-pass vlan 10 20//trunk口允許通過的VLAN