《华为基于mac地址的vlan划分.docx》由会员分享,可在线阅读,更多相关《华为基于mac地址的vlan划分.docx(2页珍藏版)》请在第壹文秘上搜索。
1、华为交换机基于mac地址的vlan划分基于mac地址的VIan配置SVY1要求:配置基于mac的VIan把PCl和pc2加入到VlanIe中把pc3加入到VIan2。中。syHuaweivlanbatch102030Huaweiundoinfo-centerenable不显示信息提示Huaweivlan10Huawei-vlanlOmac-vlanmac-address5489-98CE-1EF2把pci的mac地址绑定至!jvlanlHuawei-vlanlOmac-vlanmac-address5489-982C-7520把pc2的mac地址绑定到vlanlHuawei-vlanlOqui
2、tHuaweivlan20Huawei-vlan20mac-vlanmac-address5489-98F0-5750把pc3的mac地址绑定到VIan20HuaweiinterfacegO/0/lHuawei-GigabitEthernetO0lportlink-typehybridHuawei-GigabitEthernetO0lporthybriduntaggedvlan10允许vlanl的流量不打标签通过1端口Huawei-GigabitEthernetOOlmac-vlanenable在1端口上启用基于mac的vlanHuawei-GigabitEthernetOOlquitHuaw
3、eiinterfaceg002Huawei-GigabitEthernet002portlink-typehybridHuawei-GigabitEthernet002porthybriduntaggedvlan10Huawei-GigabitEthernetOO2mac-vlanenableHuawei-GigabitEthernetOO2quitHuaweiinterfaceg003Huawei-GigabitEthernet003portlink-typehybridHuawei-GigabitEthernet003porthybriduntaggedvlan20Huawei-Gigab
4、itEthernet003mac-vlanenableHuawei-GigabitEthernet003quit测试:相同vlan能通信pci能够ping通pc2不相同vlan不能通信pci和pc2都不能ping通pc3WelcometousePCSimulator!命令行UDPSSZ具串口Ping1From1From1From1From1From11111111111113:2:2:2:2:2:32databytes.PressCtrl_CtobreakDestinationhostDestinationhostDestinationhostDestinationhostDestinationhostunreachableunreachableunreachableunreachableunreachable-1.1.1.3pingstatistics5packet(s)transmitted0packet(s)received100.00%packetloss