首页 > 其他 > 详细

华为交换机配置端口配置

时间:2020-09-13 09:34:09      阅读:93      评论:0      收藏:0      [点我收藏+]
登陆华为交换机

访问口配置:

[HUAWEI]interface range g0/0/1 to g0/0/46
[HUAWEI-RANGE]port link-type access
[HUAWEI-RANGE]port default vlan 10
[HUAWEI-RANGE]quit

trunk口配置:

[HUAWEI]interface g0/0/47
[HUAWEI-g0/0/47]port link-type trunk
[HUAWEI-g0/0/47]port trunk allow-pass vlan all
[HUAWEI-g0/0/47]quit

vlanif接口配置:

[HUAWEI]interface vlanif 10
[HUAWEI-vlanif10]ip address 172.30.10.1 255.255.255.0
[HUAWEI-vlanif10]dhcp select global

链路聚合口配置:

[HUAWEI]interface eth-trunk 1
[HUAWEI-Eth-Trunk1]port link-type trunk
[HUAWEI-Eth-Trunk1]trunkport g0/0/47 to g0/0/48
[HUAWEI-Eth-Trunk1]port trunk allow-pass vlan all
[HUAWEI-Eth-Trunk1]quit
或者:
[HUAWEI]interface eth-trunk 1
[HUAWEI-Eth-Trunk1]port link-type access
[HUAWEI-Eth-Trunk1]trunkport g0/0/47 to g0/0/48
[HUAWEI-Eth-Trunk1]port default vlan 10
[HUAWEI-Eth-Trunk1]max active-linknumber 2
[HUAWEI-Eth-Trunk1]quit

华为交换机配置端口配置

原文:https://blog.51cto.com/2221384/2532396

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!