码迷,mamicode.com
首页 > 其他好文 > 详细

华为交换机配置端口配置

时间:2020-09-17 23:37:24      阅读:70      评论:0      收藏:0      [点我收藏+]

标签:res   ip add   default   华为   ber   add   select   交换机配置   登陆   

登陆华为交换机

访问口配置:

[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

华为交换机配置端口配置

标签:res   ip add   default   华为   ber   add   select   交换机配置   登陆   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!