HUAWEI 路由器vlanif vlan间路由

来源:互联网 发布:有个活好的男朋友知乎 编辑:程序博客网 时间:2024/06/12 12:53

拓扑

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



0 0
原创粉丝点击