华为交换机配置端口配置
作者:互联网
登陆华为交换机
访问口配置:
[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
标签:Trunk1,g0,HUAWEI,华为,交换机,trunk,Eth,port,端口配置 来源: https://blog.51cto.com/2221384/2532396