ensp如何給vlan配置網(wǎng)關(guān)?
創(chuàng)建vlan:
[sw1]vlan 10 //創(chuàng)建VLAN10
[sw1-vlan10]vlan 20 //創(chuàng)建VLAN20
配置access:
[sw1]interface Ethernet 0/0/1 //進(jìn)入以太網(wǎng)接口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