eNSP第二篇:Eth-trunk,链路聚合,常用命令,二层链路聚合和三层链路聚合
链路聚合,Eth-trunk,ip-trunk
链路聚合:顾名思义,就是将多条链路聚合成一条链路,这条链路的带宽等于所有有效链路的总和;属于可靠性技术。
主要作用是:提高带宽,增加可靠性
在eNSP中,交换机是只可以启用二层的链路聚合,路由器中则可以将链路切换到第三层;
常用命令:
interface Eth-trunk [id]
//创建聚合口,并进入聚合口接口视图,id范围0~63,id只在本设备中起作用
例如:interface Eth-trunk 0
mode lacp-static
//使用静态lacp模式
命令使用视图:链路聚合口接口视图
例如:[Huawei-Eth-Trunk1]mode lacp-static
trunkport [接口类型Ethernet | GigabitEthernet] [接口id] [to [接口id]]
//将接口加入聚合链路中
命令使用视图:链路聚合口接口视图
例如:[Huawei-Eth-Trunk1]trunkport GigabitEthernet 0/0/1 to 0/0/3
eth-trunk [聚合口-id]
//将接口加入聚合链路中
命令使用视图:交换机接口视图
例如:[Huawei-GigabitEthernet0/0/1]eth-trunk 1
max active-linknumber [1-8]
//配置有效链路最大数量,当聚合链路超过最大数时,将多余出来的链路作为备份链路,当有效链路中有链路down掉后,则从备用链路中选取出新的链路来替代down的链路;
命令使用视图:链路聚合口接口视图
例如:[Huawei-Eth-Trunk1]max active-linknumber 3
load-balance [负载均衡模式]
//配置链路的负载均衡模式
负载均衡模式
src-mac
源mac地址
dst-mac
目的mac地址
src-ip
源ip地址
dst-ip
目的ip地址
src-dst-mac
源和目的mac地址
src-dst-ip
源和目的ip地址(默认配置)
命令使用视图:链路聚合口接口视图
例如:[Huawei-Eth-Trunk1]load-balance src-dst-mac
undo portswitch
//切换三层路由模式
命令使用视图:链路聚合口接口视图
例如:[Huawei-Eth-Trunk1]undo portswitch
二层链路聚合配置思路:
- 创建聚合口
- 配置聚合链路的模式(可省略)
- 添加物理接口
- 配置接口模式:access,trunk,hybrid
- 配置接口模式的pvid,TG,UT相关的参数
- 配置负载均衡(可省略)
- 配置最大活跃接口数量(可省略)
三层链路聚合配置思路
- 创建聚合口
- 将接口切换到第三层
- 添加物理接口
- 添加IP地址及相关配置
- 配置负载均衡模式(可省略)
- 配置最大活跃接口数量(可省略)
配置注意事项:配置聚合链路模式前不可以先添加物理接口,添加物理接口后才可以配置接口模式及相关参数,否则会造成添加物理接口失败!
实验
本篇只讲关于Eth-trunk的配置,本实验中不涉及三层的链路聚合
其他相关配置:https://blog.csdn.net/weixin_46678521/article/details/126472140
S1
[S1]interface Eth-trunk 1
[S1-Eth-Trunk1]trunkport g 0/0/1 to 0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[S1-Eth-Trunk1]port link-type trunk
[S1-Eth-Trunk1]port trunk allow-pass vlan 10 100
[S1-Eth-Trunk1]load-balance src-dst-mac
[S1-Eth-Trunk1]quit
S2
[S2]interface Eth-trunk 1
[S2-Eth-Trunk1]trunkport g 0/0/1 to 0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[S2-Eth-Trunk1]port link-type trunk
[S2-Eth-Trunk1]port trunk allow-pass vlan 20 100
[S2-Eth-Trunk1]load-balance src-dst-mac
[S2-Eth-Trunk1]quit
S3
[S3]interface Eth-trunk 1
[S3-Eth-Trunk1]trunkport g 0/0/1 to 0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[S3-Eth-Trunk1]port link-type trunk
[S3-Eth-Trunk1]port trunk allow-pass vlan 30 100
[S3-Eth-Trunk1]load-balance src-dst-mac
[S3-Eth-Trunk1]quit
S4
[S4]interface Eth-trunk 1
[S4-Eth-Trunk1]trunkport g 0/0/1 to 0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[S4-Eth-Trunk1]port link-type trunk
[S4-Eth-Trunk1]port trunk allow-pass vlan 40 100
[S4-Eth-Trunk1]load-balance src-dst-mac
[S4-Eth-Trunk1]quit
SW1
[SW1]interface Eth-trunk 1
[SW1-Eth-Trunk1]trunkport g 0/0/11 to 0/0/12
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Eth-Trunk1]port link-type trunk
[SW1-Eth-Trunk1]port trunk allow-pass vlan 10 100
[SW1-Eth-Trunk1]load-balance src-dst-mac
[SW1-Eth-Trunk1]quit
[SW1]interface Eth-trunk 2
[SW1-Eth-Trunk2]trunkport g 0/0/13 to 0/0/14
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Eth-Trunk2]port link-type trunk
[SW1-Eth-Trunk2]port trunk allow-pass vlan 20 100
[SW1-Eth-Trunk2]load-balance src-dst-mac
[SW1-Eth-Trunk2]quit
[SW1]interface Eth-trunk 3
[SW1-Eth-Trunk3]trunkport g 0/0/23 to 0/0/24
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Eth-Trunk3]port link-type trunk
[SW1-Eth-Trunk3]port trunk allow-pass vlan 6 100
[SW1-Eth-Trunk3]load-balance src-dst-ip
[SW1-Eth-Trunk3]quit
SW2
[SW2]interface Eth-trunk 1
[SW2-Eth-Trunk1]trunkport g 0/0/11 to 0/0/12
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-Eth-Trunk1]port link-type trunk
[SW2-Eth-Trunk1]port trunk allow-pass vlan 30 100
[SW2-Eth-Trunk1]load-balance src-dst-mac
[SW2-Eth-Trunk1]quit
[SW2]interface Eth-trunk 2
[SW2-Eth-Trunk2]trunkport g 0/0/13 to 0/0/14
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-Eth-Trunk2]port link-type trunk
[SW2-Eth-Trunk2]port trunk allow-pass vlan 40 100
[SW2-Eth-Trunk2]load-balance src-dst-mac
[SW2-Eth-Trunk2]quit
[SW2]interface Eth-trunk 3
[SW2-Eth-Trunk3]trunkport g 0/0/23 to 0/0/24
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-Eth-Trunk3]port link-type trunk
[SW2-Eth-Trunk3]port trunk allow-pass vlan 6 100
[SW2-Eth-Trunk3]load-balance src-dst-ip
[SW2-Eth-Trunk3]quit
LSW1
[LSW1]interface Eth-trunk 1
[LSW1-Eth-Trunk1]trunkport g 0/0/23 to 0/0/24
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW1-Eth-Trunk1]port link-type trunk
[LSW1-Eth-Trunk1]port trunk allow-pass vlan 2 to 5 7
[LSW1-Eth-Trunk1]load-balance src-dst-mac
[LSW1-Eth-Trunk1]quit
LSW2
[LSW2]interface Eth-trunk 1
[LSW2-Eth-Trunk1]trunkport g 0/0/23 to 0/0/24
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW2-Eth-Trunk1]port link-type trunk
[LSW2-Eth-Trunk1]port trunk allow-pass vlan 2 to 5 7
[LSW2-Eth-Trunk1]load-balance src-dst-mac
[LSW2-Eth-Trunk1]quit
eNSP第二篇:Eth-trunk,链路聚合,常用命令,二层链路聚合和三层链路聚合相关推荐
- linux压缩文件命令_Linux基础篇(二)--Linux常用命令
Linux命令的执行需要依赖于Shell命令解释器.Shell实际上是在Linux系统中运行的一种特殊程序,Shell直译过来就是壳的意思,它位于操作系统内核之上,负责接受用户输入的命令并进行解释,将 ...
- Linux常用命令实训题,初入Linux,M35作业第二弹,课后实验练习常用命令,牛刀小试...
练习 1.显示当前时间,格式:2016-06-18 10:20:30 2.显示前天是星期几 3.设置当前日期为2019-08-07 06:05:10 答:1.[root@centos6 ~]#d ...
- [ 网络基础篇 ] MAP 迈普交换机常用命令详解
- linux搜索文件为1kb,Linux常用命令
21篇测试必备的Linux常用命令,每天敲一篇,每次敲三遍,每月一循环,全都可记住!! 首先,先造一点数据 mkdir -p ~/test/cooltouch ~/test/cool/test{1.. ...
- Linux创建文件的五种方法,Linux常用命令 - 五种创建文件命令详解
21篇测试必备的Linux常用命令,每天敲一篇,每次敲三遍,每月一循环,全都可记住!! 创建文件,你知道有哪几个命令 ?(写出至少两种方式) 首先,touch 创建一个文件 touch yyTest. ...
- oracle执行命令显示2,oracle数据库执行脚本时常用命令总结
收集了一篇oracle数据库执行脚本常用命令总结,希望给同学带来一些帮助. 1. 执行一个SQL脚本文件 代码如下 sqlplus user/pass@servicenamefile_name.sql ...
- Eth - Trunk链路聚合
目录 1.介绍 1.1 应用场景(概述): 1.2 链路聚合模式及对比: 2.手工链路聚合实验 2.1 手工配置命令 2.2 实验拓扑图 2.3 测试 3.LACP 链路聚合实验 3.1 LACP 链 ...
- 【接口篇 / Lan】(5.6) ❀ 05. 与思科交换机三层链路聚合连接 ❀ FortiGate 防火墙
[简介]在很多实际应用环境中,因为接口的速率问题,数据访问量大的时候会出现瓶颈.像飞塔防火墙大部分是千兆接口,有没有在不增加投入(换万网兆纤口)的情况下,解决这个问题呢? 网络拓扑 在很多企业的网 ...
- java设计模式中不属于创建型模式_23种设计模式第二篇:java工厂模式定义:工厂模式是 Java 中最常用的设计模式之一。这种类型的设计模式属于创建型模式,它提供了一种创建对象的最佳方式...
23种设计模式第二篇:java工厂模式 定义: 工厂模式是 Java 中最常用的设计模式之一.这种类型的设计模式属于创建型模式,它提供了一种创建对象的最佳方式. 工厂模式主要是为创建对象提供过渡接口, ...
最新文章
- C# 多线程 参数传递
- 数学之美——统计语言模型
- 硅谷人眼中的2018年十大前沿科技预测
- JavaXml教程(二)使用DOM方式解析XML文件
- 基于用户行为的兴趣标签模型
- 根据地址形式分辨scala的一维数组和二维数组
- java dos编译命令是什么_在DOS命令行状态下,如果源程序HelloWorld.java在当前目录下,那么编译该程序的命令是()...
- drbd(三):drbd的状态说明
- 有关 input默认宽度
- Vue中使用节流Lodash throttle
- java9 多版本兼容jar_Java 9 多版本兼容 jar 包
- PHP常用正则类(全)
- 大型互联网网站架构心得之一:分
- 《算法设计与分析》王红梅 第二版部分习题
- 计算机远程桌面相关服务,远程桌面服务是哪个
- curviloft插件怎么用_Curviloft插件|SketchUp草图大师曲线放样插件(Curviloft)下载 v1.7d 免费版 - 比克尔下载...
- 移动机器人路径规划算法综述(二)
- 电子通讯录(数据库版存储)
- Sugar BI 宏定义功能拓展
- html 下拉框 value值,HTML Select value用法及代码示例
热门文章
- 【计算机网络】DNS域名解析
- DST 根 CA X3 证书过期问题和修复
- [Python图像处理] 二十九.MoviePy视频编辑库实现抖音短视频剪切合并操作
- Layui 弹出层选择数据实现
- shell-判断两个ip是否在同一个网段
- 冒泡排序python_冒是什么意思、发音和在线翻译 - 英语单词大全 - 911查询
- 拓臻生物任命Senthil Sundaram为首席执行官、Mark Vignola, Ph.D.为首席财务官、Erin Quirk, M.D.为总裁
- 网页转pdf乱码问题,楷体部分出乱码
- SQL中的WHILE循环使用
- STM32入门指南(1)—新建第一个工程