拓撲
system-view
#
vlan batch 11 12 //創建VLAN
#
interface Vlanif11 //創建VLANIF接口
ip address 11.1.1.1 255.255.255.0 //相同VLAN內PC終端的網關地址
#
interface Vlanif12
ip address 12.1.1.1 255.255.255.0
#
interface Ethernet0/0/0
port link-type access //和PC終端相連,接口類型爲Access
port default vlan 11 //接口加入VLAN
#
interface Ethernet0/0/1
port link-type access
port default vlan 12