1. 程式人生 > >HUAWEI 路由器vlanif vlan間路由

HUAWEI 路由器vlanif vlan間路由

拓撲

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