交换机端口聚合(华为)

合集下载

华为交换机端口聚合

华为交换机端口聚合

华为交换机端口聚合
工具/原料
电脑一台
方法/步骤
首先,打开我们的网卡设置界面,确保我们的ip地址与交换机的管理ip地址在同一个网段
我们在浏览器的地址栏上输入交换机的管理ip,输入正确的账户密码
点击主界面右边的选项进入端口管理界面
在右边的界面我们看到有端口限速的选项我们点击进去会看到我们这个交换机下面的多有端口的带宽情况,默认情况下是不限速的
我们点击其中一个我们需要限制的端口进去输入我们需要限制的带宽,我们在这里可以限制某个端口的上行和下行带宽,输入完毕后点击确定带宽限制完毕
感谢您的阅读,祝您生活愉快。

华为交换机端口汇聚不同版本配置命令汇总

华为交换机端口汇聚不同版本配置命令汇总
S3552G/S3552P/S3528G/S3528P/S3552F:最多可以有7个端口汇聚组,1个汇聚组最多可以有8个端口,百兆端口和千兆端口不能在同一个汇聚组中,组内的端口号必须连续,对起始端口无特殊要求
------------------------------------------------------------------
[Quidway] interface ethernet1/0/2
[Quidway-Ethernet1/0/2] port link-aggregation group 1
------------------------------------------------------------------
汇聚组中只有一个端口时,只能通过删除汇聚的方式将端口从汇聚中删除。手工汇聚时端口的LACP协议自动关闭。汇聚组中的端口可能处于两种状态:selected或unselected,只有selected状态的端口可以转发用户报文。
静态汇聚:创建静态汇聚组-->端口加入汇聚组
例:[Quidway] link-aggregation group 1 mode manual
[Quidway] interface Ethernet1/0/1
[Quidway-Ethernet1/0/1] port link-aggregation group 1
[Quidway-Ethernet1/0/1] lacp enable
动态汇聚中,端口的LACP协议处于开启状态。只有速率和双工属性相同、连接到同一个设备、有相同基本配置的端口才能被动态汇聚在一起
------------------------------------------------------------------

华为交换机两种端口聚合模式使用实例剖析

华为交换机两种端口聚合模式使用实例剖析

2.5 配置举例介绍了两种模式下的典型应用场景举例。

2.5.1 配置手工负载分担模式链路聚合示例2.5.2 配置静态LACP 模式链路聚合示例2.5.1 配置手工负载分担模式链路聚合示例2 LACP 配置组网需求如图2-4 所示,S-switch-A 和S-switch-B 为两台S-switch 设备,它们之间的链路为某城域网骨干传输链路之一,要求S-switch-A 和S-switch-B 之间的链路有较高的可靠性,并在S-switch-A 和S-switch-B 之间实现数据流量的负载分担。

配置思路采用如下的思路配置负载分担链路聚合:1. 创建Eth-Trunk。

2. 加入Eth-Trunk 的成员接口。

说明创建Eth-Trunk 后,缺省的工作模式为手工负载分担模式,所以,缺省情况下,不需要配置其模式为手工负载分担模式。

如果当前模式已经配置为其它模式,可以使用mode 命令更改。

数据准备为完成此配置例,需准备的数据:l 链路聚合组编号。

l Eth-Trunk 的成员接口类型和编号。

配置步骤1. 创建Eth-Trunk# 配置S-switch-A。

<Quidway> system-view[Quidway] sysname S-switch-A[S-switch-A] interface eth-trunk 1[S-switch-A-Eth-Trunk1] quit# 配置S-switch-B。

<Quidway> system-view[Quidway] sysname S-switch-B[S-switch-B] interface eth-trunk 1[S-switch-B-Eth-Trunk1] quit2. 加入Eth-Trunk 的成员接口# 配置S-switch-A。

[S-switch-A] interface Ethernet0/0/1[S-switch-A-Ethernet0/0/1] eth-trunk 1[S-switch-A-Ethernet0/0/1] quit[S-switch-A] interface Ethernet0/0/2[S-switch-A-Ethernet0/0/2] eth-trunk 1[S-switch-A-Ethernet0/0/2] quit[S-switch-A] interface Ethernet0/0/3[S-switch-A-Ethernet0/0/3] eth-trunk 1[S-switch-A-Ethernet0/0/3] quit# 配置S-switch-B。

华为Eth-trunk链路聚合及VLAN相关命令

华为Eth-trunk链路聚合及VLAN相关命令

华为Eth-trunk链路聚合及VLAN相关命令[S2-Eth-Trunk1]interface Eth-Trunk1[S2-Eth-Trunk1]bpdu enable[S2-Eth-Trunk1]mode lacp-static然后将相应的端⼝加⼊到Eth-Trunk1接⼝,命令如下:[S1]interface g0/0/9[S1]eth-trunk 1[S1]quitS1]interface g0/0/10[S1]eth-trunk 1[S1]quit端⼝原来是acces要改成Hybrid,要先打port default vlan 1命令,再打port link-type hybrid命令。

单臂路由的⼦接⼝配置⽰例:interface GigabitEthernet0/0/1.2control-vid 20 dot1q-terminationdot1q termination vid 2ip address 10.0.20.1 255.255.255.0arp broadcast enable超级VLAN配置命令:vlan 100 将VLAN配置为Super-VLANaggregate-vlanaccess-vlan 10 20 将VLAN10和20作为Sub-VLAN加⼊VLAN100然后配IP及Arp代理:[S2]int Vlanif 100arp-proxy inter-sub-vlan-proxy enableMUX VLAN相关配置:全局命令vlan 100mux-vlansubordinate separate 20subordinate group 10接⼝命令interface GigabitEthernet0/0/4port link-type accessport default vlan 20port mux-vlan enableSTP命令:⽅法⼀:[S1]stp root primary 直接设定S1为根桥[R2]stp root secondary 直接设定S2为备份根桥⽅法⼆:[S1]stp priority 8192[S2]stp priority 4096 越⼩越优先,S2成为根桥端⼝优先级设置命令:[S2-GigabitEthernet0/0/10]stp port priority 16MSTP配置举例:stp region-configurationregion-name RG1instance 1 vlan 1 to 10instance 2 vlan 11 to 20active region-configuration配置实例的优先级:stp instance 1 priority 4096stp instance 2 priority 8192配置相应的交换机为相应实例的根桥:[SW1]stp instance 2 root primary [SW1]stp instance 1 root secondary [SW2]stp instance 1 root primary [SW2]stp instance 2 root secondary。

实验五端口聚合及基本Vlan设置

实验五端口聚合及基本Vlan设置

实验五交换机端口聚合及基本Vlan设置一、实验目的了解端口聚合的基本概念和方式;了解Vlan的基本配置二、华为模拟器HW-RouteSim介绍Hw-routesim 是华为系列设备的模拟器,采用图形工作视窗,网络拓扑结构清晰明了,直接单击即可进入配置命令状态,使用简单,包括路由器,交换机,计算机等设备的基本配置方法。

三、VLAN介绍VLAN(Virtual Local Area Network)的中文名为"虚拟局域网"。

VLAN是一种将局域网设备从逻辑上划分成一个个网段,从而实现虚拟工作组的新兴数据交换技术。

这一新兴技术主要应用于交换机和路由器中,但主流应用还是在交换机之中。

但又不是所有交换机都具有此功能,只有VLAN协议的第二层以上交换机才具有此功能。

四、常用的配置1)PC机的配置login:root #默认登陆用户名password:linux #默认登陆密码[root@PCA root]#ifconfig eth0 192.168.221.2 netmask 255.255.0.0#为pc机配置IP[root@PCA root]#route add default gw 192.168.221.1 #给PC机配置网关2)交换机的配置<Quidway>system[Quidway]sysname switch #交换机命名[switch]super password simple 111 #设置特权密码[switch]vlan 2[switch-vlan2]port ethernet0/2 #单个端口添加到VLAN[switch-vlan2]port e0/4 to et0/6 #集体添加端口[switch]interface vlan 1[switch-Vlan-interface1]ip address 10.65.1.8 255.255.0.0 #给VLAN配置IP地址3)路由器基本配置<Quidwqy>system[Quidway]sysname router #路由器命名[router]super password simple 111 #设置特权密码[router]interface ethernet0/0[router]interface s0/0[router-Ethernet0/0]ip addr 192.168.221.1 255.255.255.0 #为端口e0/0配置IP地址[router-Ethernet0/0]undo shutdown #激活端口五、端口聚合1)实验拓扑2)实验要求要求聚合的端口工作在全双工,速度一致,在同一槽口且连续。

华为交换机端口汇聚的配置

华为交换机端口汇聚的配置

交换机端口汇聚的配置一、实验目的通过对交换机端口汇聚的配置,了解交换机端口的一些基本配置信息,并掌握相关的重要命令,利用交换机Console口命令对交换机进行配置,明白端口汇聚的作用。

二、实验内容1、修改交换机主机名2、修改交换机端口地址与属性3、配置交换机端口的静态MAC 地址表4、实现交换机的端口汇聚三、网络实验图PC机四、实验步骤(1)、按拓扑图连线连线:按拓扑图将Switch1的E1/0/1与Switch2的E0/1相连,Switch1的E1/0/2与Switch2的E0/2相连,PC机COM口与Switch1的Console口相连,网线与E0/24相连。

(2)、设置Switch1的E1/0/1和E1/0/2端口<Quidway>sysSystem View: return to User View with Ctrl+Z. [Quidway]sysname switch1[switch1]interface ethernet 1/0/1[switch1-Ethernet0/1]speed 100[switch1-Ethernet0/1]duplex full[switch1-Ethernet0/1]int e1/0/2[switch1-Ethernet0/2]speed 100[switch1-Ethernet0/2]duplex full[switch1-Ethernet0/2]quit(3)、设置Switch2的E0/1和E0/2端口<Quidway>sysSystem View: return to User View with Ctrl+Z. [Quidway]sysname switch2[switch2]interface ethernet 0/1[switch2-Ethernet0/1]speed 100[switch2-Ethernet0/1]duplex full[switch2-Ethernet0/1]int e0/2[switch2-Ethernet0/2]speed 100[switch2-Ethernet0/2]duplex full[switch2-Ethernet0/2]quit(4)、汇聚交换机的E0/1和E0/2端口交换机Switch1上端口汇聚[switch1-Ethernet1/0/2]quit[switch1]link-aggregation group 1 mode static[switch1]interface e1/0/1[switch1-Ethernet1/0/1]port link-aggregationgroup 1[switch1-Ethernet1/0/1]interface e1/0/2[switch1-Ethernet1/0/2]port link-aggregationgroup 1交换机Switch2上端口汇聚[switch2]link-aggregation e0/1 to e0/2 both(5)、配置交换机1的VLAN1地址[switch1]int vlan-interface 1[switch1-Vlan-interface1]%Apr 2 00:01:27:508 2000 switch1 L2INF/5/VLANIFLINK STATUS CHANGE:- 1 - Vlan-interface1: is UP[switch1-Vlan-interface1]ip address192.168.1.1 255.255.255.0[switch1-Vlan-interface1]%Apr 2 00:01:41:967 2000 switch1IFNET/5/UPDOWN:- 1 -Line protocol on the interface Vlan-interface1 is UP[switch1-Vlan-interface1]quit[switch1]disp int vlan 1Vlan-interface1 current state :UP Line protocol current state :UP IP Sending Frames' Format is PKTFMT_ETHNT_2,Hardware address is 000f-e220-938b Internet Address is 19Description : HUAWEI, Quidway Series,Vlan-interface1 Interface The Maximum Transmit Unit is 1500(6)、配置交换机2的VLAN1地址[switch2]interface vlan-interface 1[switch2-Vlan-interface1]ip address192.168.1.2 255.255.0[switch2-Vlan-interface1]quit[switch2]disp interface vlan 1Vlan-interface1 current state :UPDLine protocol current state :UP[switch2-Ethernet1/0/2]IP Sending Frames' Format is PKTFMT_ETHNT_2,Hardware address is 000f-e220-938bNGE:- 1-8:01:04 2000 switch2 ARP/4/DUPIFIP:Duplicateaddress 192.168.1.2 on VLInternet Address is 192.168.1.2/24 Primary227634, ifAdminStatus is 1, ifOperStatuN1,Description : HUAWEI, Quidway Series,Vlan-interface1 Interface-Vlan-interfas is 2%Apr 1 23:57:54:1000 2000 switch2The Maximum Transmit Unit is 1500(7)、测试汇聚结果[switch1]ping 192.168.1.2PING 192.168.1.2: 56 data bytes, press CTRL_Cto break Reply from 192.168.1.2: bytes=56 Sequence=1ttl=254 time=27 ms Reply from 192.168.1.2: bytes=56 Sequence=2ttl=254 time=7 ms Reply from 192.168.1.2: bytes=56 Sequence=3ttl=254 time=7 msReply from 192.168.1.2: bytes=56 Sequence=4ttl=254 time=20 ms Reply from 192.168.1.2: bytes=56 Sequence=5ttl=254 time=14 ms--- 192.168.1.2 ping statistics --- 5 packet(s) transmitted 5 packet(s) received0.00% packet lossround-trip min/avg/max = 7/15/27 ms(8)、验证端口汇聚[switch1]display mac-addressMAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s)000f-e21a-ec6f 1 Learned Ethernet1/0/1 AGING0016-ec0b-d89b 1 Learned Ethernet1/0/1 AGING00e0-4c90-3da5 1 Learned Ethernet1/0/24 AGING--- 2 mac address(es) found --- [switch1]int e1/0/1[switch1-Ethernet1/0/1]shutdown[switch1-Ethernet1/0/1]#Apr 2 00:07:49:321 2000 switch1 L2INF/2/PORTLINK STATUS CHANGE:- 1 - Trap 1.3.6.1.6.3.1.1.5.3: portIndex is 4227626, ifAdminStatus is 2, ifOperStatu s is 2#Apr 2 00:07:49:514 2000 switch1LAGG/2/AggPortInactive:- 1 -Trap 1.3.6.1.4.1.2 011.5.25.25.2.2: TrapIndex 31465473 AggregationGroup 1: port member Ethernet1/0 /1 is INACTIVE!#Apr 2 00:07:49:731 2000 switch1LAGG/2/AggPortRecoverActive:- 1 -Trap 1.3.6.1.4.1.2011.5.25.25.2.2: TrapIndex 31465474A t1/0/2 is now ACTIVE!%Apr 2 00:07:49:947 2000 switch1 L2INF/5/PORTLINK STATUS CHANGE:- 1 -Ethernet1/0/1: is DOWN[switch1-Ethernet1/0/1]quit[switch1]ping 192.168.1.2PING 192.168.1.2: 56 data bytes, press CTRL_C to breakReply from 192.168.1.2: bytes=56 Sequence=1 ttl=254 time=9 msReply from 192.168.1.2: bytes=56 Sequence=2 ttl=254 time=13 msReply from 192.168.1.2: bytes=56 Sequence=3 ttl=254 time=19 msReply from 192.168.1.2: bytes=56 Sequence=4 ttl=254 time=8 msReply from 192.168.1.2: bytes=56 Sequence=5 ttl=254 time=10 ms--- 192.168.1.2 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 8/11/19 ms[switch1]disp mac-addressMAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s)000f-e21a-ec6f 1 Learned Ethernet1/0/2 AGING0016-ec0b-d89b 1 Learned Ethernet1/0/2 AGING00e0-4c90-3da5 1 Learned Ethernet1/0/24 AGING--- 3 mac address(es) found ---五、实验小结由显示的MAC地址看出,此时MAC地址000f-e21a-ec6f、0016-ec0b-d89b都在E0/2端口所连接的网段上。

华为交换机动态链路聚合命令

华为交换机动态链路聚合命令

华为交换机动态链路聚合命令华为交换机动态链路聚合命令一、动态链路聚合简介动态链路聚合(Dynamic Link Aggregation,DLA)是一种将多个物理链路绑定成一个逻辑链路的技术。

通过将多个物理链路绑定成一个逻辑链路,可以提高网络带宽、提高网络可靠性和实现负载均衡等功能。

在华为交换机中,动态链路聚合可以通过LACP协议实现。

LACP协议是一种标准化的协议,可以实现交换机之间的动态链路聚合。

二、配置动态链路聚合命令1. 创建Link Aggregation Group(LAG)在华为交换机中创建Link Aggregation Group需要使用以下命令:[Switch] interface gigabitethernet 0/0/1[Switch-GigabitEthernet0/0/1] port link-aggregation group 1[Switch-GigabitEthernet0/0/1] quit其中,gigabitethernet 0/0/1表示需要绑定的物理接口,group 1表示创建的LAG编号。

2. 配置LAG属性创建好LAG后,还需要对LAG进行属性配置。

以下是常用的LAG属性配置命令:[Switch] interface Eth-Trunk 1[Switch-Eth-Trunk1] mode lacp-static[Switch-Eth-Trunk1] lacp priority 32768[Switch-Eth-Trunk1] quit其中,mode lacp-static表示LAG使用静态LACP模式,lacp priority 32768表示LAG的优先级为32768。

3. 配置物理接口将物理接口绑定到LAG上需要使用以下命令:[Switch] interface gigabitethernet 0/0/2[Switch-GigabitEthernet0/0/2] quit4. 查看LAG状态查看创建好的LAG状态需要使用以下命令:[Switch] display link-aggregation summary其中,可以查看到LAG的编号、状态、绑定的物理接口等信息。

华为交换机链路聚合配置

华为交换机链路聚合配置

拓朴图如上:要求 1 交换机A的名字改成 SW1交换机B的名字改成SW22 SW1和SW2的E0/1和E0/2 做端口聚合3 Sw1的E0/7属于vlan2 , E0/8属于vlan34 SW2上面的E0/7和E0/8属于vlan2命令:一:PC机的配置(PC模拟的是linux系统)在PCA上面配置ipfconfig eth0 192.168.2.1 netmask 255.255.255.0在PCB上面配置ipIfconfig eth0 192.168.3.1 netmask 255.255.255.0在PCC上面配置ipIfconfig eth0 192.168.2.2 netmask 255.255.255.0在PCD上面配置ipIfconfig eth0 192.168.2.3 netmask 255.255.255.0二:在交换机A上面的配置Sysview ----------------------进入配置界面Sysname SW1-------------------------更改交换机名为SW1Super password cisco --------------------------配置特权命令Vlan 2 --------------------------创建vlan2Port e0/7 ------------------------------------------把E0/7加入vlan2 Quit -----------------------------------退出vlan2Vlan 3 ----------------------------------------------创建vlan3Port e0/8 ------------------------------------------把e0/8加入vlan3 QuitInt e0/1 --------------------------------------进入0/1接口Speed 100 ---------------------------------------设置速率Duplex full ------------------------------------设置双工Port link-type trunk --------------------------------把端口设置成trunk Port trunk permit vlan all --------------------------设置允许通过此trunk的vlanQuitInt e0/2Speed 100Duplex fullPort link-type trunkPort trunk permit vlan allQuitLink-aggregation e0/1 to e0/2 both ----------------------把e0/1和e0/2聚合在交换机B上做的配置Sysview ----------------------进入配置界面Sysname SW2-------------------------更改交换机名为SW2Super password cisco --------------------------配置特权命令Vlan 2 --------------------------创建vlan2Port e0/7 ------------------------------------------把E0/7加入vlan2Port e0/8 ------------------------------------------把e0/8加入vlan2QuitInt e0/1 --------------------------------------进入0/1接口Speed 100 ---------------------------------------设置速率Duplex full ------------------------------------设置双工Port link-type trunk --------------------------------把端口设置成trunk Port trunk permit vlan all --------------------------设置允许通过此trunk的vlanQuitInt e0/2Speed 100Duplex fullPort link-type trunkPort trunk permit vlan allQuitLink-aggregation e0/1 to e0/2 both ----------------------把e0/1和e0/2聚合总结:第一次配置时。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

交换机端口聚合(华为)
端口聚合也叫做以太通道(ethernet channel),主要用于交换机之间连接。

由于两个交换机之间有多条冗余链路的时候,STP会将其中的几条链路关闭,只保留一条,这样可以避免二层的环路产生。

但是,失去了路径冗余的优点,因为STP的链路切换会很慢,在50s左右。

使用以太通道的话,交换机会把一组物理端口联合起来,做为一个逻辑的通道,也就是channel-group,这样交换机会认为这个逻辑通道为一个端口。

这样有几个优点: 1. 带宽增加,带宽相当于组成组的端口的带宽总和。

2. 增加冗余,只要组内不是所有的端口都down 掉,两个交换机之间仍然可以继续通信。

3. 负载均衡,可以在组内的端口上配置,使流量可以在这些端口上自动进行负载均衡。

在用的时候要注意:端口要在一个vlan里面,两边的全双工模式要一样,还有就是作用的端口个数不能是3和6,而且不能超过8个,比如:2,4,8。

交换机端口聚合配置方法:
实验名称:
交换机端口聚合。

实验目的:
理解交换机端口聚合(IEEE 802.3ad)的原理及配置。

实现功能:
增加交换机之间的传输带宽,并实现链路冗余备份。

实验设备
锐捷S2126交换机2台(华为S3026),网线4根。

实验步骤:
华为交换机上的配置:
交换机1的配置:
switch>system //进入配置模式;
[Quidway]sysname Switch 1 //给交换机命名;
[switch1]interface ethernet0/1 //进入e0/1端口;
[Switch 1-Ethernet0/1]duplex full
[Switch 1-Ethernet0/1]speed 100
[Switch 1-Ethernet0/1]port link-type trunk
[Switch 1-Ethernet0/1]port trunk permit vlan all [Switch 1-Ethernet0/1]quit
[switch1]interface ethernet0/2
[Switch 1-Ethernet0/2]duplex full
[Switch 1-Ethernet0/2]speed 100
[Switch 1-Ethernet0/2]port link-type trunk
[Switch 1-Ethernet0/2]port trunk permit vlan all
交换机2的配置:
switch>system
[Quidway]sysname Switch2
[Switch2]interface ethernet0/1
[Switch2-Ethernet0/1]duplex full
[Switch2-Ethernet0/1]speed 100
[Switch2-Ethernet0/1]port link-type trunk
[Switch2-Ethernet0/1]port trunk permit vlan all
[Switch2-Ethernet0/1]int e0/2
[Switch2-Ethernet0/2]duplex full
[Switch2-Ethernet0/2]speed 100
[Switch2-Ethernet0/2]port link-type trunk
[Switch2-Ethernet0/2]port trunk permit vlan all
聚合操作:
[Switch1]link-aggregation ethernet0/1 to ethernet0/2 both [Switch2]link-aggregation ethernet0/1 to ethernet0/2 both [Switch1]display link-aggregation ethernet0/1
[Switch1]undo link-aggregation all
交换机1上:
[Switch1]vlan 10
[Switch1-vlan10]port e0/5
交换机2上:
[Switch1]vlan 10
[Switch1-vlan10]port e0/5
PCA上:
[root@PCA root]#ifconfig eth0 192.168.1.1 netmask 255.255.255.0 [root@PCA root]#route add default gw 192.168.1.254
PCB上:
[root@PCA root]#ifconfig eth0 192.168.1.2 netmask 255.255.255.0
[root@PCA root]#route add default gw 192.168.1.254
在一台计算机上Ping另一台计算机,看能否Ping通。

断开交换机上一条线路,在一台计算机上Ping另一台计算机,看能否Ping通。

合上交换机的这条线路,断开另一条线路,,看能否Ping通。

相关文档
最新文档