华为配置基于协议划分VLAN示例.docx

上传人:scccc 文档编号:13950402 上传时间:2022-01-27 格式:DOCX 页数:6 大小:67.45KB
返回 下载 相关 举报
华为配置基于协议划分VLAN示例.docx_第1页
第1页 / 共6页
华为配置基于协议划分VLAN示例.docx_第2页
第2页 / 共6页
华为配置基于协议划分VLAN示例.docx_第3页
第3页 / 共6页
华为配置基于协议划分VLAN示例.docx_第4页
第4页 / 共6页
华为配置基于协议划分VLAN示例.docx_第5页
第5页 / 共6页
点击查看更多>>
资源描述

《华为配置基于协议划分VLAN示例.docx》由会员分享,可在线阅读,更多相关《华为配置基于协议划分VLAN示例.docx(6页珍藏版)》请在三一文库上搜索。

1、配置基于协议划分 VLAN例组网需求某企业拥有多种业务,如IPTV、VoIP、Internet等,每种业务所采用的协议各不相同.为了便于治理,现需要将同一种类型业务划分到同一VLAN中,不同类型的业务划分到不同VLAN中.如图1所示,Sw让ch收到的用户报文有多种业务,所采用的协议各不相同.VLAN10 中的用户采用IPv4协议与远端用户通信,而 VLAN2N的用户采用IPv6协议与 远端效劳器通信.现需要将不同类型的业务划分到不同的VLAN中,通过不同的VLAN ID分流到不同的远端效劳器上以实现业务互通.配置思路采用如下的思路配置基于协议划分 VLAN1 .创立VLAN确定每种业务所属的V

2、LAN2 .关联协议和VLAN实现根据接口接收到的报文所属的协议族类型给 报文分配不同的 VLAN ID.3 .配置接口参加VLAN允许基于协议的VLANS过当前接口.4 .关联接口和协议VLAN当有关联的协议进入关联的接口时,系统自动为 该协议分配已经划分好的 VLAN ID.操作步骤1 .创立VLAN2 . HUAWEI:system-view3 . HUAWEI sysname Switch1Switch1 vlan batch 10 204 .配置基于协议划分VLAN#在Switch1上配置VLAN1叫协、议IPv4关联.Switch1 vlan 10Switch1-vlan10 pr

3、otocol-vlan ipv4Switch1-vlan10 quit#在Switch1上配置VLAN2叫协、议IPv6关联.Switch1 vlan 20Switch1-vlan20 protocol-vlan ipv6Switch1-vlan20 quit5 .配置接口关联协议VLAN#在Switch1上配置接口 GE0/0/2与VLAN1或联,优先级是5.Switch1 interface gigabitethernet 0/0/2Switch1-GigabitEthernet0/0/2protocol-vlanvlan 10 all priority5Switch1-GigabitEt

4、hernet0/0/2quit#在Switch1上配置接口 GE0/0/3与VLAN2或联,优先级是6.Switch1 interface gigabitethernet 0/0/3Switch1-GigabitEthernet0/0/3protocol-vlanvlan 20 all priority6Switch1-GigabitEthernet0/0/3quit6.配置接口# 在 Switch1 上配置接口 GE0/0/1 允许 VLAN1阱口 VLAN20!过.Switch1 interface gigabitethernet 0/0/1Switch1-GigabitEthernet0

5、/0/1 port link-type trunkSwitch1-GigabitEthernet0/0/1Switch1-GigabitEthernet0/0/1 port trunk allow-pass vlan 10 20 quit#在Switch1上配置接口 GE0/0/2以untagged方式允许 VLAN10!过.Switch1 interface gigabitethernet 0/0/2Switch1-GigabitEthernet0/0/2port link-type hybridSwitch1-GigabitEthernet0/0/2port hybrid untagged

6、 vlan10Switch1-GigabitEthernet0/0/2quit#在Switch1上配置接口 GE0/0/3以untagged方式允许 VLAN20!过.Switch1 interface gigabitethernet 0/0/3Switch1-GigabitEthernet0/0/3port link-type hybridSwitch1-GigabitEthernet0/0/3port hybrid untagged vlan20Switch1-GigabitEthernet0/0/3quit# 在 Switch 上配置接口 GE0/0/1 允许 VLAN1阱口 VLAN2

7、0!过.HUAWEI:system-viewHUAWEI sysname SwitchSwitch interface gigabitethernet 0/0/1Switch-GigabitEthernet0/0/1port link-type trunkSwitch-GigabitEthernet0/0/1port trunk allow-pass vlan10 20Switch-GigabitEthernet0/0/1quit# 在Switch上配置接口 GE0/0/2允许VLAN10!过.Switch interface gigabitethernet 0/0/2Switch-Gigab

8、itEthernet0/0/2port link-type trunkSwitch-GigabitEthernet0/0/2port trunk allow-pass vlan 10Switch-GigabitEthernet0/0/2quit# 在Switch上配置接口 GE0/0/3允许VLAN20!过.Switch interface gigabitethernet 0/0/3Switch-GigabitEthernet0/0/3Switch-GigabitEthernet0/0/3Switch-GigabitEthernet0/0/3port link-type trunkport t

9、runk allow-pass vlan 20 return7.验证配置结果上述配置完成后,在 Switch1上执行命令display protocol-vlaninterface all ,可以查看接口关联基于协议划分VLAN的配置信息 Switch1 display protocol-vlan interface allProtocol TypeIPv4IPv6InterfaceVLAN IndexPriorityGigabitEthernet0/0/21005GigabitEthernet0/0/32006配置文件 Switch1的配置文件 # sysname Switch1 # vla

10、n batch 10 20 # vlan 10 protocol-vlan 0 ipv4 vlan 20 protocol-vlan 0 ipv6 # interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 10 20 # interface GigabitEthernet0/0/2,port link-type hybrid port hybrid untagged vlan 10 protocol-vlan vlan 10 0 priority 5 # interface GigabitE

11、thernet0/0/3 port link-type hybrid port hybrid untagged vlan 20 protocol-vlan vlan 20 0 priority 6 # return Switch的配置文件 # sysname Switch # interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 10 20 # interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 10 # interface GigabitEthernet0/0/3 port link-type trunk port trunk allow-pass vlan 20 #return

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 社会民生


经营许可证编号:宁ICP备18001539号-1