华为链路捆绑手动方式配置方法
一:实验拓扑
二:实验要求 II: Experimental requirements 1:要求pc机1和属于vlan 10 : /pc
中,pc机2和4属于vlan 20
中。
, (span>)(span>) and (span>(span>)(span>)2 and /span>4[span>>[span][span>[span][span>[span][span][span]20.
2:要求两层交换机实现捆绑。
2 : Two-storey exchanges are required to bind.
3:要求两层交换机与三次路由器实现捆绑。
3: Two-storey switches are required to be tied to three routers.
4:要求三次交换机之间实现捆绑。
4 : Three exchanges are required to bind.
5:要求利用单臂路由及时实现跨vlan之间的通信。
5 : Requires the use of a single-arm route to achieve timely communication across vlan.
6:要求全网互通。
6 : requires full Internet access.
三:实验原理
III: Experimental principles
1:在交换机下创建eth-trunk
口,再将默认端口加入到trunk口中
1 : Create eth-trunk
under the switchboard and add the default port to trunk
2:路由器是三层设备,是不能添加到两层交换机下创建的eth-trunk 口。要将路由器下的三层口转化为两层口。
2: Routers are three layers of equipment that cannot be added to the eth-trunk.
3:单臂路由是在eth-trunk 口下实现接口分开的。
3: The single-arm route is separated under the mouth of eth-trunk.
4:三层设备路由器之间的捆绑也要将其变为两层口,否则无法设置ip地址,即无法实现互通。
4 : Ties between three layers of equipment routers must also be converted into two layers, otherwise it will not be possible to set the address ip .
四:实验步骤
4: Experimental step
第一步-----Pc机ip分配
span style= "font-weight:800"
Pc1:192.168.10.10 24
网关:192.168.10.1
Pc1: <192.168.10
24 gateway: 192.168.10.1 >/span
Pc2:192.168.20.20 24
网关:192.168.20.1
Pc2: 192.168.20 24
gateway: 192.168.20.1
Pc3:192.168.10.30 24
网关:192.168.10.1
Pc3 > 192.168.10.30
24 gateway: 192.168.10.1 >/span >
Pc4:192.168.20.40 24
网关:192.168.20.1
Pc4: 192.168.20.40
24 gateway: 192.168.20.1
第二步-----实现交换机之间的捆绑
Sw1 [Huawei]vlanbat 10 20//新建vlan10和20 [Huawaei]vlanbat 10 20///[span]vlan10 and20
[Huawei]inte0/0/1//进入接口
[Huawaei] inte0/0/1// enters the interface
[Huawei-Ethernet0/0/1]porthybrid pvid vlan 10//实现vlan10的分装
[Huawaei-Ethernet0/0/1] portybrid pvid vlan 10/// /span> to achieve vlan10
[Huawei-Ethernet0/0/1]porthybrid untagged vlan 10//vlan10的成员通过需要不带标签
[Huawei-Ethernet0/0/1] porthybrid unaggged vlan 10/vlan10 members need to remove labels
[Huawei]inte0/0/2//进入接口
[Huawaei] inte0/0/2// enter the interface
[Huawei-Ethernet0/0/2]porthybrid pvid vlan 20//进行vlan20的分装
[Huawaei-Ethernet 0/0/2] porthybrid pvid vlan 20////[span]vlan20[span]
[Huawei-Ethernet0/0/2]porthybrid untagged vlan 20//vlan20成员通过需要脱掉标签
[Huawei-Ethernet 0/0/2] porthybrid unaggged vlan 20//vlan20 members need to remove the label
注:这里是使用hybrid技术实现接口的分配,与
port link-type access / port defort
Note: This is the distribution of interfaces using hybrid techniques and and
port link-type access/port deform
Vlan 20的命令意义是一样的
Vlan 20 has the same command meaning as .
[Huawei]intEth-Trunk 1//创建Eth-Trunk链路聚合端口.且名为1
[Huawei] inth-Trunk 1/ / to create Eth-Trunk . > >
[Huawei]inte0/0/10//进入接口
[Huawaei] inte0/0/10// enter the interface
[Huawei-Ethernet0/0/10]eth-trunk1//将默认接口加入到创建的链路聚合端口中
[Huawaei-Ethernet0/10]eth-trunk1// add the default interface to the created link polymer port
[Huawei]inte0/0/11
[Huawei-Ethernet0/0/10]eth-trunk1
[Huawei]inte0/0/12
[Huawei-Ethernet0/0/10]eth-trunk1
[Huawei]dis eth-trunk//查看Eth-Trunk链路聚合端口的成员—下图已经显示的三个端口都已经加入到聚合端口了.并且接口都是开启的。
[Huawaei] dis Eth-trunk/// /span> views the members of connection polymer port- . all three ports have been added to the polymer port . and interfaces are open.
[Huawei]intEth-Trunk 1//进入到Eth-Trunk链路聚合端口
[Huawei] intEth-Trunk 1////[span> Eth-Trunk links integration port
[Huawei-Eth-Trunk1]porthybrid tagged vlan 10 20//将Eth-Trunk链路聚合端口设为中继口,允许vlan10和20之间的成员通过,并且是带标签的。---在我们使用]port link-type trunk/ port trunk allow-pass vlan 10 200的命令意义是一样的。
Sw2
[Huawei]vlanbat 10 20
[Huawei]int e0/0/3
[Huawei-Ethernet0/0/3]portlink-type access
[Huawei-Ethernet0/0/3]portdefault vlan 10
[Huawei-Ethernet0/0/3]int e0/0/4
[Huawei-Ethernet0/0/4]portlink-type access
[Huawei-Ethernet0/0/4]portdefault vlan 20
[Huawei]inte0/0/10
[Huawei-Ethernet0/0/10]eth-trunk1
[Huawei]inte0/0/11
[Huawei-Ethernet0/0/10]eth-trunk1
[Huawei]inte0/0/12
[Huawei-Ethernet0/0/10]eth-trunk1
[Huawei]dis eth-trunk
[Huawei]intEth-Trunk 1
[Huawei-Eth-Trunk1]portlink-type trunk
[Huawei-Eth-Trunk1]porttrunk allow-pass vlan 10 20
注:我了实现vlan之间成员的互通.在数据包转发的时候,我们可以知道交换机是要接受两个vlan之间成员发送的数据包,为了保证数据包的正常性转发,因此这里要用中继口。允许vlan10和20之间的成员通过,且需要带标签。
note
第二步—实现交换机与路由器之间的捆绑.并用单臂路由实现跨vlan通信。
Second step > to achieve the binding of exchanges and routers > and to achieve communications across /spanspan style= "font-weight:800" >
Sw1
[Huawei]intEth-Trunk 2
[Huawei]int e0/0/3
[Huawei-Ethernet0/0/3]eth-trunk2
[Huawei]int e0/0/4
[Huawei-Ethernet0/0/3]eth-trunk2
[Huawei]diseth-trunk 2
[Huawei]int Eth-Trunk 2
[Huawei-Eth-Trunk2]portlink-type trunk
[Huawei-Eth-Trunk2]port trunkallow-pass vlan 10 20
//这里是交换机的上心口,因为要实现全网互通,那么数据包就要经过这个上心口通过进入到交换机只见去,那么在这里vlan10和20陈gyAu你发送数据包就要通过这里,因此需要变为中继口
[Huawaei-Eth-Trunk2] Port Tunklow-pass vlan 10 20 R1 [Huawei]intEth-Trunk 2 [Huawei]int g2/0/0 [Huawei-GigabitEthernet2/0/0]eth-trunk2 Error: The layer-3 interface can not add intoa layer-2 trunk.done. //这里产生了错误,因为路由器是三层设备,而交换机是两层设备,两者是不能捆绑在同一个eth-trunk 2链路聚合端口的,因此要将路由器切换才两层。 // /span style= "font-weight:800" > > >, as routers are three layers of equipment and switches are two layers of equipment that cannot be tied to the same eth-trunk 2 , so the routers need to be cut to two layers. [Huawei-Eth-Trunk2]undoportswitch//由三层切换到两层 [Huawaei-Eth-Trunk2] [Huawei]int g2/0/0 [Huawei-GigabitEthernet2/0/0]eth-trunk2 [Huawei]int g0/0/0 [Huawei-GigabitEthernet2/0/0]eth-trunk2 [Huawei]diseth-trunk 2 跨vlan通信验证 vlan communication authentication R1 上图实现了跨vlan通信,利用了单臂路由技术。 The map above achieves cross vlan
ofpan style="font-weight=800" and
第四步—实现三层路由之间的捆绑,并且实现全网互通。
Step 4 > >. > > > > > > >.
R1
[Huawei]intEth-Trunk 3//创建Eth-Trunk链路聚合端口3
[Huawei] intEth-Trunk 3////span> Creates Eth-Trunk Aggregation Port
[Huawei-Eth-Trunk3]undoportswitch//切换到两层
[Huawaei-Eth-Trunk3]
[Huawei-Eth-Trunk3]ipadd 12.0.0.1 24//这只Eth-Trunk链路聚合端口的ip
[Huawaei-Eth-Trunk3] ipadd 12.0.0.1 24// Eth-Trunk links at the convergence portip
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]eth-trunk3
[Huawei-GigabitEthernet0/0/1]intg0/0/2
[Huawei-GigabitEthernet0/0/2]eth-trunk3
[Huawei]diseth-trunk 3
上图我们已经看到两个端口进入到Eth-Trunk链路聚合端口
We've seen two ports entering the confluence port at Eth-Trunk .
R2
[Huawei]intEth-Trunk 3
[Huawei-Eth-Trunk3]undoportswitch
[Huawei-Eth-Trunk3]ipadd 12.0.0.2 24//设置R2上Eth-Trunk链路聚合端口的ip
[Huawaei-Eth-Trunk3] ipad 12.0.0.2 24//
[Huawei]intg0/0/1
[Huawei-GigabitEthernet0/0/1]eth-trunk3
[Huawei-GigabitEthernet0/0/1]intg0/0/2
[Huawei-GigabitEthernet0/0/2]eth-trunk3
[Huawei]diseth-trunk 3
结果
Results
实现互通性
achieve interoperability
R2
[Huawei]ip route-static192.168.10.0 24 12.0.0.1//
[Huawei]ip route-static 192.168.20.024 12.0.0.1//
注:这两条静态路由是实现全网互通的,在路由器的路由表中是没有pc机的ip路径的,数据包到达路由器的时候发现身上没有它的目标地址,就会把数据包丢掉。
Note: These two static paths are meant to achieve full Internet connectivity, and there are no paths on the router's router's router's router's pc这条路径是让pc机上发送的数据包可以到达路由器上并且数据包可以返回。
> pc the data package sent on the plane can reach the router and the data package can be returned.
实验验证
/span'
R1
R2
实验成功
Experiment successful
总结:
Summary:
从上面可以看出,链路聚合具有如下一些显着的优点:
As can be seen from the above, the following are some of the salient advantages of chain convergence:
1.提高链路可用性
链路聚合中,成员互相动态备份。当某一链路中断时,其它成员能够迅速接替其工作。与生成树协议不同,链路聚合启用备份的过程对聚合之外是不可见的,而且启用备份过程只在聚合链路内,与其它链路无关,切换可在数毫秒内完成。
1. > > > > <800; text-deference:underline' > to improve the availability of links
links, with members actively back-up each other > when a link breaks down. Unlike tree-generation agreements, the process of using the chain to enable backups is not visible outside the context of the convergence, and the use of the back-up process is only within polymer links and is not related to other links and can be done within milliseconds.
链路的捆绑其实就是另一种形式的备份冗余.和浮动路由相似,在Eth-Trunk链路聚合端口中都会由两个以上的接口,即会由两条以上的路径。在Eth-Trunk链路聚合端口成为中继口时,就保证了vlan成员之间的通信,那么在这个时候,就是一种备份冗余,一条接口---路径出现故障时就会在另一条路径中走。
2.增加链路容量
> is actually another form of back-up redundancy 链路聚合技术的另一个明显的优点是为用户提供一种经济的提高链路传输率的方法。通过捆绑多条物理链路,用户不必升级现有设备就能获得更大带宽的数据链路,其容量等于各物理链路容量之和。聚合模块按照一定算法将业务流量分配给不同的成员,实现链路级的负载分担功能。现企业联通,移动,电信都是通过这种方式将多个接口放进Eth-Trunk链路聚合端口之中,从而增加其带宽 is another obvious advantage of connection techniques that provide users with an economy-wide method to increase the transmission rate of the links . By binding multiple physical links, users do not have to upgrade existing devices to obtain a larger bandwidth of data links, the capacity of which is equal to the capacity of the physical links. The polymerization module distributes business flows to different members according to a certain algorithm and achieves load-sharing functions at the chain level. >, moving in this way telecommunications put multiple interfaces into Eth-Trunk
注册有任何问题请添加 微信:MVIP619 拉你进入群
打开微信扫一扫
添加客服
进入交流群
发表评论