链路聚合配置;

LACP模式链路聚合配置;

两台三层交换机连接3口,两个使用链路,第三个做活动链路

 SW1:

interface  eth-trunk 1                                                     #创建eth-trunk

 mode lacp-static                                                             #自动模式

 mac active-linknumber 2                                                 #接口连接最大2    第三个活动备链路

 trunkport gigabitethernet 0/0/1 to 0/0/3                           #接口加入eth-trunk 1

 port link-type  trunk                                                         #模式trunk

 port  trunk allow-pass vlan 10 20                                    #加入vlan 10 20  默认1

 quit

lacp priority  3000                                                             #SW1优先级     默认32768

SW2:

interface eth-trunk 1

 mode lacp-static

 mac active-linknumber 2

 trunkport gigabitethernet 0/0/1 to 0/0/3

 port link-type trunk

 port trunk allow-pass vlan 10 20

 quit

查询:display interface eth-trunk 1

手动链路聚合

SW1:

interface eth-trunk 1                                       #创建eth-trunk

interface gigabitethernet  0/0/1                      #接口1 加入eth-trunk 1

 eth-trunk 1

interface gigabitethernet 0/0/2                       #接口2  加入eth-trunk 1

 eth-trunk 1

vlan 10                                                          #创建vlan 10

interface vlanif 10                                         #创建vlanif 10

 ip address 1.1.1.1 24                                  #vlanif10 配置IP

interface eth-trunk 1                                     #vlanif10加入eth-trunk 1

 port link-type access                                   #vlanif10 模式access

 port default vlan 10                                     #加入vlan 10

SW2:

interface eth-trunk 1

interface gigabitethernet 0/0/1

 eth-trunk 1

interface gigabitethernet 0/0/2

 eth-trunk 1

vlan 10

interface vlanif 10

 ip address 1.1.1.2 24

interface eth-trunk 1

 port link-type access

 port default vlan 10

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值