链路汇聚代码

Posted yolenly

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了链路汇聚代码相关的知识,希望对你有一定的参考价值。

LSW1:
system-view
vlan batch 30 40
interface Ethernet 0/0/1
port link-type access
port default vlan 30
interface Ethernet 0/0/2
port link-type access
port default vlan 30
interface Ethernet 0/0/3
port link-type access
port default vlan 40
interface Ethernet 0/0/4
port link-type access
port default vlan 40
interface GigabitEthernet 0/0/2
port link-type trunk
port trunk allow-pass vlan 30 40
LSW2:
system-view
vlan batch 30 40
interface GigabitEthernet 0/0/1
port link-type trunk
port trunk allow-pass vlan 30 40
quit
interface Eth-Trunk 1
mode lacp-static
quit
interface GigabitEthernet 0/0/24
eth-trunk 1
interface GigabitEthernet 0/0/23
eth-trunk 1
interface GigabitEthernet 0/0/22
eth-trunk 1
quit
interface Eth-Trunk 1
port link-type trunk
port trunk allow-pass vlan 30 40
LSW3:
system-view
vlan batch 30 40
interface Vlanif 30
ip address 192.168.30.254 24
quit
interface Vlanif 40
ip address 192.168.40.254 24
quit
interface Eth-Trunk 1
mode lacp-static
quit
interface GigabitEthernet 0/0/1
eth-trunk 1
interface GigabitEthernet 0/0/2
eth-trunk 1
interface GigabitEthernet 0/0/3
eth-trunk 1
quit
interface Eth-Trunk 1
port link-type trunk
port trunk allow-pass vlan 30 40技术图片

以上是关于链路汇聚代码的主要内容,如果未能解决你的问题,请参考以下文章

思科:交换机链路汇聚

端口汇聚是layer多少层

2019-05-17 LACP 链路聚合以及配置实例

实验二 配置Trunk和链路汇聚

华为交换机策略路由配置

H3C端口聚合中的 both ingress区别在哪,要详细的,谢谢