找回密码
立即注册
搜索
热搜: 活动 交友 discuz
发新帖

0

收听

0

听众

59

主题
发表于 2023-4-28 21:57:16 | 查看: 2454| 回复: 0
9-13 链路聚合概述

作用:增加链路带宽,同时提供链路冗余。

链路聚合两种模式:
手工负载分担模式:强制模式,没有协商机制,有几条链路用几条链路,“死板”(默认模式)
LACP模式:可以自定备份链路, “灵活”有协商报文。

二层 聚合链路

配置:
sw1
int eth-trunk 1 创建捆绑组1
quit
interface   GigabitEthernet0/0/1
eth-trunk 1 将gi0/0/1口加入捆绑组1
nterface   GigabitEthernet0/0/2
eth-trunk 1 将gi0/0/2口加入捆绑组1
nterface   GigabitEthernet0/0/3
eth-trunk 1 将gi0/0/3口加入捆绑组1
nterface   GigabitEthernet0/0/4
eth-trunk 1 将gi0/0/4口加入捆绑组1

SW2:配置方法二

int eth-trunk 1
trunkport  gi0/0/1 to 0/0/4  将接口gi0/0/1到gi0/0/4全部加入捆绑组1

dis eth-trunk 1 查看捆绑组命令
dis stp brief  查看stp 命令
修改负载均衡的方式:可选  int eth-trunk 1

load-balance xxxx

注意:默认负载均衡方式src-dst-ip

将捆绑之后的链路配置为 trunk 链路:
两台交换机:
interface Eth-Trunk1
  port link-type trunk
  port trunk allow-pass vlan all

三层链路聚合路由器和路由器
R1
interface eth-trunk 1
undo portswitch          将二层逻辑接口提升为三层接口
ip address 12.1.1.1 24
interface gigabitethernet0/0/0
eth-trunk 1
interface gigabitethernet0/0/1
eth-trunk 1

R2
interface eth-trunk 1
undo portswitch          将二层逻辑接口提升为三层接口
ip address 12.1.1.1 24
interface gigabitethernet0/0/0
eth-trunk 1
interface gigabitethernet0/0/1
eth-trunk 1

3层交换机和交换机聚合  , 负载均衡+冗余     断掉任何一根线缆,通信不受影响三层链路聚合 ,交换机和交换机。

sw1

vlan 10
interface eth-trunk 1
port link-type access
port default vlan 10
interface giabitethernet0/0/1
eth-trunk 1
interface giabitethernet0/0/2
eth-trunk 1
interface vlanif10
ip address 12.1.1.2 24

sw2

vlan 10
interface eth-trunk 1
port link-type access
port default vlan 10
interface giabitethernet0/0/1
eth-trunk 1
interface giabitethernet0/0/2
eth-trunk 1
interface vlanif10
ip address 12.1.1.1 24

三层链路聚合  路由器和多层交换机。

r1  
interface eth-trunk1
undo portswitch
ip address 12.1.1.1 24
interface gigabitethernet0/0/0
eth-trunk 1
interface gigabitethernet0/0/1
eth-trunk 1

sw1

vlan 10
interface eth-trunk 1
   port link-type access
   port  default vlan 10
interface g0/0/1
   eth-trunk 1
interface g0/0/2
   eth-trunk 1
interface vlanif10
  ip address 121.1.1.2 24


论坛免责声明
1、本主题所有言论和图片纯属会员个人意见,与本论坛立场无关 2、本站所有主题由该帖子作者发表,该帖子作者与周巷网享有帖子相关版权 3、其他单位或个人使用、转载或引用本文时必须同时征得该帖子作者和周巷网的同意 4、帖子作者须承担一切因本文发表而直接或间接导致的民事或刑事法律责任 5、本帖部分内容转载自其它媒体,但并不代表本站赞同其观点和对其真实性负责 6、如本帖侵犯到任何版权问题,请立即告知本站,本站将及时予与删除并致以最深的歉意 7、周巷网管理员和版主有权不事先通知发贴者而删除本文
[发帖际遇]: 一个袋子砸在了 夜猫侠 头上,夜猫侠 赚了 2 金钱. 幸运榜 / 衰神榜
您需要登录后才可以回帖 登录 | 立即注册

Archiver|手机版|小黑屋|周巷同城网

GMT+8, 2026-5-25 11:00 , Processed in 0.028611 second(s), 31 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表