S5700的Eth-Trunk端口汇聚

链路汇聚和端口汇聚,就是端口聚合,交换机的堆叠是堆叠和端口聚合无关。

端口聚合概念:(包括二层端口聚合和三层端口聚合)

1.端口聚合IEEE标准是将最多16条链路聚合成一个逻辑的链路。其中只有8条可以使用,

其余8条作为备份。

2.做聚合的端口配置,物理介质性质(双工模式,接口带宽等等)必须一样

3.端口聚合可以提高带宽,但是不是物理上的提高,而是基于负载均衡的提高

4.做端口聚合的端口只能以2的倍数个链路做聚合,即只能2、4、6、8条链路做聚合,

不能是奇数链路做聚合

Eth-Trunk简单端口汇聚:(本地负载均衡)

SW1:

[SW1]interface Eth-Trunk 1   #建立汇聚端口1

[SW1-Eth-Trunk1]port link-type access  #更改端口为访问端口,如果下面是两台交换机,则需要更改为port link-type trunk模式。

[SW1-Eth-Trunk1]mode manual load-balance  #添加手动本地负载模式

[SW1-Eth-Trunk1]quit

[SW1]interface GigabitEthernet 0/0/1

[SW1-GigabitEthernet0/0/1]eth-trunk1  #将端口0/0/1加入eth-trunk1

[SW1]interface GigabitEthernet 0/0/2

[SW1-GigabitEthernet0/0/2]eth-trunk1  #将端口0/0/2加入eth-trunk1

[SW1]interface vlan 1

[SW1-Vlanif1]ip address 192.168.1.254255.255.255.0

[SW1-Vlanif1]quit

SW2:

[SW2]interface vlan 1

[SW2-Vlanif1]ip add

[SW2-Vlanif1]ip address 192.168.1.1255.255.255.0

[SW2-Vlanif1]quit

通过抓包验证时如果断开GigabitEthernet 0/0/1接口下连线的情况下,会自动切换到GigabitEthernet 0/0/2端口下进行通信。

删除端口下trunk的正确方法:

(因为端口默认是在vlan1的,如果删除了全部,端口就没有默认vlan1的配置了,需要重新加回来,才可以继续下一步的删除。)

[SWH1]interfaceGigabitEthernet 0/0/2

[SWH1-GigabitEthernet0/0/2]undoport trunk allow-pass vlan all

[SWH1-GigabitEthernet0/0/2]porttrunk allow-pass vlan 1

[SWH1-GigabitEthernet0/0/2]undoport link-type

[SWH1-GigabitEthernet0/0/2]quit

Eth-Trunk不同或者相同的vlan间互通:

准备:

192.168.10.23/24

192.168.20.99/24

192.168.30.45/24    Gateway:192.168.X.1/24

这三台电脑都为测试使用,其实直接用交换进行ping也可以进行测试,纯属个人习惯。

VLAN: 10 20 30

Vlanif10:192.168.10.254/24

Vlanif20:192.168.20.254/24

Vlanif30:192.168.30.254/24

配置:

SWH1:

[SWH1]vlan batch 10 20 30

[SWH1]interface vlan 10

[SWH1-Vlanif10]ip address192.168.10.254 24

[SWH1-Vlanif10]ip address 192.168.20.254 24

[SWH1-Vlanif10]ip address 192.168.30.254 24

[SWH1-Vlanif10]quit

[SWH1]interface Eth-Trunk 1

[SWH1-Eth-Trunk1]port link-type trunk

[SWH1-Eth-Trunk1]port trunk allow-pass vlanall

[SWH1-Eth-Trunk1]mode manual load-balance

[SWH1-Eth-Trunk1]trunkport GigabitEthernet 0/0/1

[SWH1-Eth-Trunk1]trunkport GigabitEthernet 0/0/4

[SWH1]interface vlan 20

[SWH1-Vlanif20]ip address 192.168.20.254 24

[SWH1]interface Eth-Trunk 2

[SWH1-Eth-Trunk2]port link-type trunk

[SWH1-Eth-Trunk2]port trunk allow-pass vlanall

[SWH1-Eth-Trunk2]mode manual load-balance

[SWH1-Eth-Trunk2]trunkport GigabitEthernet 0/0/2

[SWH1-Eth-Trunk2]trunkport GigabitEthernet 0/0/5

[SWH1]interface vlan 30

[SWH1-Vlanif30]ip address 192.168.30.254 24

[SWH1]interface Eth-Trunk 3

[SWH1-Eth-Trunk3]port link-type trunk

[SWH1-Eth-Trunk3]port trunk allow-pass vlanall

[SWH1-Eth-Trunk3]mode manual load-balance

[SWH1-Eth-Trunk3]trunkport GigabitEthernet 0/0/3

[SWH1-Eth-Trunk3]trunkport GigabitEthernet 0/0/6

[SWH1]interface GigabitEthernet 0/0/24

[SWH1-GigabitEthernet0/0/24]port link-type access

[SWH1-GigabitEthernet0/0/24]port default vlan 10

[SWH1-GigabitEthernet0/0/24]quit

SWH4:

[SWH4]vlan batch 10 20 30

[SWH4]interface Ethernet 0/0/22

[SWH4-Ethernet0/0/22]port link-type access

[SWH4-Ethernet0/0/22]port default vlan 20

[SWH4-Ethernet0/0/22]quit

[SWH4]interface vlan 20

[SWH4-Vlanif20]ip address192.168.20.1 255.255.255.0

[SWH4-Vlanif20]quit

[SWH4]interface Eth-Trunk 2

[SWH4-Eth-Trunk2]trunkport GigabitEthernet0/0/1

[SWH4-Eth-Trunk2]trunkport GigabitEthernet0/0/2

[SWH4-Eth-Trunk2]port link-type trunk

[SWH4-Eth-Trunk2]port trunk allow-pass vlanall

[SWH4-Eth-Trunk2]mode manual load-balance

[SWH4-Eth-Trunk2]quit

[SWH4]iproute-static 192.168.10.0 24 192.168.20.254

[SWH4]iproute-static 192.168.30.0 24 192.168.20.254

SWH5:

跟SWH4的配置是一样的,就是最后的静态路由改变了。

[SWH5]vlan batch 10 20 30

[SWH5]interface Eth-Trunk 3

[SWH5-Eth-Trunk3]trunkport GigabitEthernet0/0/1

[SWH5-Eth-Trunk3]trunkport GigabitEthernet0/0/2

[SWH5-Eth-Trunk3]port link-type trunk

[SWH5-Eth-Trunk3]port trunk allow-pass vlanall

[SWH5-Eth-Trunk3]mode manual load-balance

[SWH5-Eth-Trunk3]quit

[SWH5]interface vlan 30

[SWH5-Vlanif30]ip address 192.168.30.1 255.255.255.0

[SWH5-Vlanif30]quit

[SWH5]ip route-static192.168.10.0 24 192.168.30.254

[SWH5]ip route-static 192.168.20.0 24192.168.30.254

SWH3:

跟SWH4的配置是一样的,就是最后的静态路由改变了。

[SWH3]vlan batch 10 20 30

[SWH3]interface Eth-Trunk 1

[SWH3-Eth-Trunk1]trunkport GigabitEthernet0/0/1

[SWH3-Eth-Trunk1]trunkport GigabitEthernet0/0/2

[SWH3-Eth-Trunk1]port link-type trunk

[SWH3-Eth-Trunk1]port trunk allow-pass vlanall

[SWH3-Eth-Trunk1]mode manual load-balance

[SWH3-Eth-Trunk1]quit

[SWH3]interface vlan 10

[SWH3-Vlanif10]ip address 192.168.10.1 255.255.255.0

[SWH5-Vlanif10]quit

[SWH3]ip route-static192.168.30.0 24 192.168.10.254

[SWH3]ip route-static 192.168.20.0 24192.168.10.254

检测都可以ping通,且抓包可以实现自动切换。

注意:在本地配置Eth-Trunk的时候,在对端也要进行Eth-Trunk的配置,且加上路由就可以实现不同网段间的互通。

S5700的Eth-Trunk端口汇聚(trunk实验)的更多相关文章

  1. Huawei-R&S-网络工程师实验笔记20190609-VLAN划分综合(Access和Trunk端口)

    >Huawei-R&S-网络工程师实验笔记20190609-VLAN划分综合(Access和Trunk端口) >>实验开始,先上拓扑图参考: >>>实验目标 ...

  2. 交换机Trunk端口配置

    本文为转发,简单明了,我喜欢. Trunk端口的配置步骤如下: 一 组网需求: 1.SwitchA与SwitchB用trunk互连,相同VLAN的PC之间可以互访,不同VLAN的PC之间禁止互访: 2 ...

  3. 在eNSP上配置VLAN的Trunk端口

    1.实验内容:在不同交换机下不同部门的员工能够互相通信,需要配置交换机之间的链路,跨交换机实现VLAN间通信 2.实验拓扑图 3.实验配置 按照实验编址表编辑配置所有PC机的IP地址 编址表如下图: ...

  4. trunk端口配置错误导致环路

    端口下 switchport mode trunk spannning-tree portfast 上述两个命令同时执行将导致环路

  5. 华为交换机trunk端口更改access提示:Error: Please renew the default configurations.

    现象: 华为交换机接口由原来 trunk 接口更改 access 提示 Error: Please renew the default configurations. 解决方法: 在交换机视图模式下, ...

  6. H3C配置Trunk端口

  7. 华为 S5700 交换机 批量修改端口方法

    常常在配置交换机端口的时候需要将多个端口设置为相同的配置,当时各端口逐一去配置不仅慢,而且容易出错,这个时候就需要对端口进行批量设置,不仅快捷,而且避免了反复输出容易出错的情况.不同系列.不同版本交换 ...

  8. 华为交换机S5700系列配置镜像端口(M:N)

    配置本地端口镜像组网图(M:N) 组网需求 如图所示,某公司研发一部.研发二部和市场部通过Switch与外部Internet通信,监控设备Server1.Server2与Switch直连. 现在希望将 ...

  9. 华为交换机S5700系列配置镜像端口(1:1)

    配置本地镜像口(1:1) 组网需求 如图一所示,某公司行政部通过Switch与外部Internet通信,监控设备Server与Switch直连. 现在希望通过Server对行政部访问Internet的 ...

随机推荐

  1. 将本地代码提交到github

    最近练习了freemarker 做了个代码生成工具,想提交到github上,在本地进行了提交,执行如下些命令 git init git add . * git commit -m "comm ...

  2. Hibernate进行对象的增删改查

    首先我们看看hibernate手动配置步骤 (这个了解一点就可以了,以后是不会自己全部手动配置的) 1.    创建WEB项目 2       下载hibernate-release-4.3.11.F ...

  3. Json格式循环遍历,Json数组循环遍历

    Json格式数据如何遍历,这里我们可以用for..in实现 例如最简单的json格式 , 'handsome' : 'yes' }; for( var key in json1 ){ console. ...

  4. Newbe.Claptrap - 一套以 “事件溯源” 和“Actor 模式”作为基本理论的服务端开发框架

    本文是关于 Newbe.Claptrap 项目主体内容的介绍,读者可以通过这篇文章,大体了解项目内容. 轮子源于需求 随着互联网应用的蓬勃发展,相关的技术理论和实现手段也在被不断创造出来.诸如 “云原 ...

  5. UIKit 框架之WebView

    // // ViewController.m // UIWebView // // Created by City--Online on 15/5/18. // Copyright (c) 2015年 ...

  6. 【angular5项目积累总结】结合adal4实现http拦截器(token)

    import { Injectable } from '@angular/core'; import { HttpEvent, HttpInterceptor, HttpHandler, HttpRe ...

  7. Spring学习之路-SpringBoot简单入门

    简单讲SpringBoot是对spring和springMVC的二次封装和整合,新添加了一些注解和功能,不算是一个新框架. 学习来源是官方文档,虽然很详细,但是太墨迹了… 地址:https://doc ...

  8. vb.net 使用MD5密碼加密

    Function MD5(ByVal strSource As String, ByVal Code As Int16) As String'使用MD5加密 Dim dataToHash As Byt ...

  9. Java基础——JSP(一)

    一.JSP的由来 在很多动态网页中,绝大多部分内容是不变的,只有局部内容需要动态产生和改变.例如, 一个新闻的浏览次数,只有这个次数是动态改变的,而Servlet程序返回客户端的代码全是java程序动 ...

  10. Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central

    问题: maven安装完成,环境变量配置没有问题,cmd窗口运行mvn compile的时候报错如下: Plugin org.apache.maven.plugins:maven-resources- ...