eth-trunk链路聚合 链路聚合和trunk

⑴ 华为链路聚合配置

配置链路聚合
1、创建聚合组
sys
interface eth-trunk 2
2、配置聚合模式为手工模式
interface eth-trunk 2
mode manual load-balance 表示手工模式
mode lacp   lacp模式,可以自动检测链路是否错误;
3、将接口成员加入聚合组
interface eth-trunk 2
trunkport g1/0/1 to 1/0/3 mode { active | passive }
或者进到接口模式下:
interface g1/0/1
eth-trunk 2 mode { active | passive }
注意:
一个以太网接口只能加入到一个Eth-Trunk接口;
当成员接口加入Eth-Trunk后,学习MAC地址或ARP地址时是按照Eth-Trunk来学习的,而不是按照成员接口来学习;
删除聚合组时需要先删除聚合组中的成员接口
4、配置链路聚合的负载分担方式(可选)
Eth-Trunk的负载分担是逐流进行的,逐流负载分担能保证包的顺序,保证了同一数据
流的帧在同一条物理链路转发。而不同数据流在不同的物理链路上转发从而实现分担负载;
可以配置普通负载分担模式,基于报文的IP地址或MAC地址来分担负载;
由于负载分担只对出方向的流量有效,因此链路两端接口的负载分担模式可以不一致,两端互不影响;
配置普通负载分担方式:
interface eth-trunk 2
load-balance { dst-ip | dst-mac | src-ip | src-mac | src-dst-ip | src-dstmac }
dst-ip(目的IP地址)模式:根据目的IP地址进行负载分担;
dst-mac(目的MAC地址)模式;
src-ip(源IP地址)模式;
src-mac(源MAC地址)模式;
src-dst-ip(源IP地址异或目的IP地址)模式:根据源IP异或目的IP地址的结果进行负载分担。
src-dst-mac(源MAC地址异或目的MAC地址)模式;
5、检查配置结果
display eth-trunk 2 查看Eth-Trunk的配置信息;
display trunkmembership eth-trunk 2,查看Eth-Trunk的成员接口信息

⑵ 如何理解eth-trunk

Eth-Trunk接口是一种可以动态创建的接口,该类型接口可以绑定若干物理的以太网接口作为一个逻辑接口使用,实现增加带宽提高靠性的目的。

Trunk优势于:

1、通Trunk接口实现负载担Eth-Trunk接口内实现流量负载担。

2、某员接口连接物理链路现故障流量切换其用链路提高整Trunk链路靠性。

3、 Trunk接口总带宽各员接口带宽。

(2)ethtrunk链路聚合的目的扩展阅读:

Trunk具体应用

1、Trunk功能用于交换机与服务器之间的相联,为服务器提供独享的高带宽。

2、Trunk功能用于交换机之间的级联,为交换机之间的数据交换提供高带宽的数据传输能力,提高网络速度,突破网络瓶颈,进而大幅提高网络性能(主要应用)。

Trunk功能举例

——例如:为增加带宽,提高连接可靠性,某网吧电影服务器是双网卡且作了绑定,与中心交换机的23、24端口连接;二层交换机的1、2端口与中心交换机的1、2端口连接,那么中心交换机需将1、2端口,23、24端口分别做Trunk。说明:这里的二层交换机也需支持Trunk。

参考资料:网络-Trunk链路

⑶ Eth-trunk的2种模式理解

你第一个配置里g0/0/2的eth-trunk2应该是eth-trunk1,写错了。

第一种手工配置,是没有办法检测单通的故障的,只要接口收到光,两个接口都在trunk里。而第二种配置,会发报文给对端,对端回了,接口才会加入;而且你配置了需要两个接口active,断了一个接口,整个捆绑接口也会down。

⑷ 华为交换机配置时! interface eth-trunk 1 这句话表示什么意思

这是创建Eth-Trunk链路聚合端口,详细命令可以参见王达为华为出版的《华为交换机学习指南》这本书,在51CTO学院上还有他针对华为、思科和H3C的全部配套视频课程

⑸ 链路聚合的好处

链路聚合有成端口聚合,断口捆绑,英文名port trunking.功能是将交换机的多个低带宽端口捆绑成一条高带宽链路,可以实现链路负载平衡。避免链路出现拥塞现象。

通过配置,可通过两个三个或是四个端口进行捆绑,分别负责特定端口的数据转发,防止单条链路转发速率过低而出现丢包的现象。

Trunking的优点:价格便宜,性能接近千兆以太网;不需要重新布线,也无需考虑千兆 <script language=javascript src="/CMS/JS/newsad.js"></script> 网传输距离极限问题。

trunking可以捆绑任何相关的端口,也可以随时取消设置,这样提供了很高的灵活性还可以提供负载均衡能力以及系统容错。

(5)ethtrunk链路聚合的目的扩展阅读:

链路聚合有两种模式:手动负载均衡模式和LACP模式。

手动负载平衡模式:手动创建ETH-trunk并添加成员接口。所有活动链路转发数据包,当其中一个物理链路失效时,其他链路共享流量转发。

LACP模式:手动创建Eth-Trunk,添加成员接口。LACP消息在链接的两端发送。LACP模式也称为M:N模式,M表示活动的链路成员,N表示不活动的链路成员。

当连接的两端都加入到ei -trunk上时,活跃的连接和不活跃的连接由成员协商。当活动链路失败时,当高优先级链路转发流量用于其余成员链路时,该链路就会变为活动的。

手动负载平衡模式与LACP模式的区别在于,在LACP模式下,一些链接作为备份链接。在手动负载平衡模式下,所有链路转发流量。

⑹ 关于三层交换机Eth-Trunk垮网段通信问题

老弟,既然是跨网通信肯定要用三层技术了,既然是三层技术怎么会在LSW1和LSW2上开trank呢,那二层的技术。
如果想把那3根线全用上,可以起个Port-channel
int range gi 0/0/1 -3
channel-group 1 mode on/active
no switchport
ip add <你自己定>
no shutdown
回到config下面
ip routing
把默认路由都指到刚刚做的port-channel上就行了。
ip route 0.0.0.0 0.0.0.0 port-channel1
LSW1和LSW2上都这做就行了。

⑺ 链路捆绑和链路聚合的区别

链路捆绑就是链路聚合。

链路聚合有两种模式可以实现:手动负载均衡模式、LACP模式。

手动负载均衡模式:手工建立Eth-Trunk、加入成员接口。所有活动链路都转发数据包,当其中一条物理链路发生故障时,其他链路分担流量转发。

LACP模式:手工建立Eth-Trunk、加入成员接口。链路两端发送LACP报文。LACP模式也叫M:N模式,M代表活动链路成员,N代表非活动链路成员。

当链路两端都加入Eth-Trunk,其中成员会协商选举活动链路和非活动链路,当活动链路发生故障时,在剩下的成员链路中使用优先级高的链路转发流量,这条链路变成活动链路。

手动负载均衡模式和LACP模式的区别在于:LACP模式中,一些链路充当备份链路。手动负载均衡模式中所有链路都转发流量。

(7)ethtrunk链路聚合的目的扩展阅读

链路聚合的作用:

链路聚合有成端口聚合,断口捆绑,英文名port trunking.功能是将交换机的多个低带宽端口捆绑成一条高带宽链路,可以实现链路负载平衡。避免链路出现拥塞现象。

通过配置,可通过两个三个或是四个端口进行捆绑,分别负责特定端口的数据转发,防止单条链路转发速率过低而出现丢包的现象。

Trunking的优点:价格便宜,性能接近千兆以太网;不需要重新布线,也无需考虑千兆 <script language=javascript src="/CMS/JS/newsad.js"></script> 网传输距离极限问题。

trunking可以捆绑任何相关的端口,也可以随时取消设置,这样提供了很高的灵活性还可以提供负载均衡能力以及系统容错。

⑻ 华为S5700为什么交换与交换机之间连接ETH-trunk,要用type-link access而不是type-lin trunk

如果交换机与交换机之间起了接口IP,启用了路由协议的话,就不能做成TRUNK
如果只是单纯的链路聚合增加带宽透传VLAN的话 用TRUNK

⑼ 华为交换机E-Trunk和Eth-Trunk的区别

区别:

1、链路来源不同

Eth-Trunk:一般指同一设备的链路聚合,一台交换机将多个接口捆绑,形成一个Eth-Trunk接口,从而实现了增加带宽和提高可靠性的目的。

E-Trunk(Enhanced Trunk):一般指跨设备链路聚合,是一种实现跨设备链路聚合的机制,基于LACP(单台设备链路聚合的标准)进行了扩展,能够实现多台设备间的链路聚合。从而把链路可靠性从单板级提高到了设备级。

2、优势不同

Eth-Trunk:通过Trunk接口可以实现负载分担。在一个Eth-Trunk接口内,可以实现流量负载分担。当某个成员接口连接的物理链路出现故障时,流量会切换到其他可用的链路上,从而提高整个Trunk链路的可靠性。Trunk接口的总带宽是各成员接口带宽之和。

E-Trunk(Enhanced Trunk):主要应用于CE双归接入VPLS、VLL、PWE3网络时,CE与PE间的链路保护以及对PE设备节点故障的保护。在没有使用E-Trunk前,CE通过Eth-Trunk链路只能单归到一个PE设备。

如果Eth-Trunk出现故障或者PE设备故障,CE将无法与PE设备继续进行通信。使用E-Trunk后,CE可以双归到PE上,从而实现设备间保护。

(9)ethtrunk链路聚合的目的扩展阅读

端口汇聚是将多个端口汇聚在一起形成一个汇聚组,以实现出/入负荷在汇聚组中各个成员端口中的分担,同时也提供了更高的连接可靠性。E-trunk与Eth-trunk都是一种链路聚合技术

一些三层数据中心组网中,核心层由两台CE12800组成,两台设备间通过2条10GE链路聚合,从而保证链路的高可靠性。汇聚层采用CE12800交换机堆叠实现冗余备份,堆叠与上下游设备间通过跨框Eth-Trunk连接。

同时,通过Eth-Trunk的流量本地优先转发功能减少框间链路的带宽承载压力。汇聚层通过创建VRF隔离业务网段路由与公网路由,采用旁挂方式部署防火墙,两台防火墙进行双机热备份,保证高可靠性。

⑽ 创建链路聚合接口eth-trunk和链路聚合接口组有什么区别

没什么太大区别,只不过eth-trunk是华为的概念,Ag是思科的概念。
之前华为照抄思科命令体系结果被思科给告了,华为就只好改了。


⑴ Huawei link aggregation configuration

Configuring link aggregation
1. Create an aggregation group
sys
interface eth-trunk 2
2. Configure the aggregation mode to manual mode
interface eth-trunk 2
mode manual load-balance indicates manual mode
mode lacp lacp mode can automatically detect whether the link is wrong;
3. Add the interface members to the aggregation group
interface eth-trunk 2
trunkport g1/0/1 to 1/0/3 mode { active | passive }
or enter the interface mode:
interface g1/0/1
eth-trunk 2 mode { active | passive }
Note:
An Ethernet interface can only be added to one Eth-Trunk interface;
/>When the member interface joins the Eth-Trunk, the MAC address or ARP address is learned according to the Eth-Trunk instead of the member interface;
When deleting the aggregation group, you need to delete the aggregation group first. Member interface
4. Configure the load sharing method of link aggregation (optional)
The load sharing of Eth-Trunk is performed on a flow-by-flow basis. The flow-by-flow load sharing can ensure the order of packets and the same data.
The frames of the flow are forwarded on the same physical link. Different data flows are forwarded on different physical links to share the load;
You can configure the normal load sharing mode to share the load based on the IP address or MAC address of the message;
Since load sharing only applies to Traffic in the outbound direction is valid, so the load sharing modes of the interfaces at both ends of the link can be inconsistent and the two ends will not affect each other;
Configure the normal load sharing mode:
interface eth-trunk 2
load- balance { dst-ip | dst-mac | src-ip | src-mac | src-dst-ip | src-dstmac }
dst-ip (destination IP address) mode: load balancing based on the destination IP address;
dst-mac (destination MAC address) mode;
src-ip (source IP address) mode;
src-mac (source MAC address) mode;
src-dst- ip (source IP address XOR destinationIP address) mode: Load balancing is performed based on the result of the source IP XOR destination IP address.
src-dst-mac (source MAC address XOR destination MAC address) mode;
5. Check the configuration results
display eth-trunk 2 View the configuration information of Eth-Trunk;
>display trunkmembership eth-trunk 2, view the member interface information of Eth-Trunk

⑵ How to understand eth-trunk

The Eth-Trunk interface is an interface that can be dynamically created. A type interface can be bound to several physical Ethernet interfaces and used as a logical interface to increase bandwidth and improve reliability.

Trunk has the following advantages:

1. Load balancing is achieved through the Trunk interface. Traffic load balancing is implemented within the Eth-Trunk interface.

2. If the physical link connected to a member interface fails, the traffic will be switched to the other link to improve the reliability of the entire trunk link.

3. The total bandwidth of the Trunk interface and the bandwidth of each member interface.

(2) The purpose of ethtrunk link aggregation Extended reading:

Trunk specific application

1. Trunk function is used in switches The connection with the server provides the server with exclusive high bandwidth.

2. The Trunk function is used for cascading between switches, providing high-bandwidth data transmission capabilities for data exchange between switches, increasing network speed, breaking through network bottlenecks, and thereby greatly improving network performance (mainly application).

Examples of Trunk functions

——For example: In order to increase bandwidth and improve connection reliability, an Internet cafe movie server has dual network cards and is bound to 23 and 24 of the central switch. Port connection: Ports 1 and 2 of the layer 2 switch are connected to ports 1 and 2 of the central switch. Then the central switch needs to use ports 1 and 2 and ports 23 and 24 as trunks respectively. Note: The layer 2 switch here also needs to support Trunk.

Reference material: Network-Trunk link

⑶ Understanding the two modes of Eth-trunk

G0/0/2 in your first configuration eth-trunk2 should be eth-trunk1, which is wrong.

The first type of manual configuration has no way to detect single-pass faults. As long as the interface receives light, both interfaces are in the trunk. The second configuration will send a message to the peer, and the interface will be added only after the peer responds; and if you configure two interfaces to be active, if one interface is disconnected, the entire bundled interface will also be down.

⑷ When configuring Huawei switches! interface eth-trunk1 What does this sentence mean?

This is to create an Eth-Trunk link aggregation port. For detailed commands, please refer to the book "Huawei Switch Study Guide" published by Wang Da for Huawei and also published on 51CTO Academy. There are all supporting video courses for Huawei, Cisco and H3C

⑸ Benefits of link aggregation

Link aggregation has port aggregation, port bundling, and the English name is port trunking. It bundles multiple low-bandwidth ports of the switch into a high-bandwidth link to achieve link load balancing. Avoid link congestion.

Through configuration, two, three or four ports can be bundled, each responsible for data forwarding on a specific port, to prevent the single link forwarding rate from being too low and causing packet loss.

Advantages of Trunking: cheap price, performance close to Gigabit Ethernet; no need to rewire, and no need to consider Gigabit <script language=javascript src="/CMS/JS/newsad.js">< /script> Network transmission distance limit problem.

Trunking can bundle any related ports and can also cancel the settings at any time, which provides high flexibility and can also provide load balancing capabilities and system fault tolerance.

(5) Extended reading on the purpose of ethtrunk link aggregation:

Link aggregation has two modes: manual load balancing mode and LACP mode.

Manual load balancing mode: Manually create ETH-trunk and add member interfaces. All active links forward packets, and when one of the physical links fails, the other links share traffic forwarding.

LACP mode: Manually create Eth-Trunk and add member interfaces. LACP messages are sent on both ends of the link. LACP mode is also called M:N mode, M represents active link members, and N represents inactive link members.

When both ends of the connection join the ei-trunk, active connections and inactive connections are negotiated by the members. When an active link fails, the link becomes active while the high-priority link forwards traffic to the remaining member links.

The difference between manual load balancing mode and LACP mode is that in LACP mode, some links serve as backup links. In manual load balancing mode, all links forward traffic.

⑹ About the problem of network segment communication problem of three-layer switch Eth-Trunk

Brother, since it is cross-network communication, it must use three-layer technology. Since it is three-layer technology, how can it be used? Turning on Trank on LSW1 and LSW2, that's the second-layer technology.
If you want to use all three lines, you can set up a Port-channel
int range gi 0/0/1 -3
channel-group 1 mode on/active
no switchport
ip add
no shutdown
Go back to config
ip routing
Just point the default route to the port-channel you just created.
ip route 0.0.0.0 0.0.0.0 port-channel1
Just do this on both LSW1 and LSW2.

⑺ The difference between link bundling and link aggregation

Link bundling is link aggregation.

Link aggregation can be implemented in two modes: manual load balancing mode and LACP mode.

Manual load balancing mode: manually establish Eth-Trunk and join member interfaces. All active links forward packets, and when one of the physical links fails, the other links share the forwarding of traffic.

LACP mode: Manually establish Eth-Trunk and join member interfaces. Both ends of the link send LACP messages. LACP mode is also called M:N mode, M represents active link members, and N represents inactive link members.

When both ends of the link join Eth-Trunk, the members will negotiate to elect active links and inactive links. When the active link fails, priority will be used among the remaining member links. The higher-level link forwards traffic and this link becomes the active link.

The difference between manual load balancing mode and LACP mode is that in LACP mode, some links act as backup links. In manual load balancing mode, all links forward traffic.

(7) Extended reading on the purpose of ethtrunk link aggregation

The role of link aggregation:

Chain Route aggregation includes port aggregation, port bundling, and the English name is port trunking. Its function is to bundle multiple low-bandwidth ports of the switch into a high-bandwidth link, which can achieve link load balancing. Avoid link congestion.

Through configuration, two, three or four ports can be bundled, each responsible for data forwarding on a specific port, to prevent the single link forwarding rate from being too low and causing packet loss.

Advantages of Trunking: cheap price, performance close to Gigabit Ethernet; no need to rewire, and no need to consider Gigabit <script language=javascript src="/CMS/JS/newsad.js">< /script> The network transmission distance is extremelyLimitation issue.

Trunking can bundle any related ports and can also cancel the settings at any time, which provides high flexibility and can also provide load balancing capabilities and system fault tolerance.

⑻ Why does Huawei S5700 use type-link access instead of type-lin trunk when connecting ETH-trunk between switches?

If there is an interface IP between switches , if the routing protocol is enabled, it cannot be used as TRUNK
If it is just a simple link aggregation to increase the bandwidth and transparently transmit VLAN, use TRUNK

⑼ The difference between E-Trunk and Eth-Trunk of Huawei switches

Differences:

1. Different link sources

Eth-Trunk: generally refers to link aggregation of the same device, and a switch bundles multiple interfaces , forming an Eth-Trunk interface, thereby achieving the purpose of increasing bandwidth and improving reliability.

E-Trunk (Enhanced Trunk): Generally refers to cross-device link aggregation. It is a mechanism to achieve cross-device link aggregation. It is expanded based on LACP (the standard for single-device link aggregation). , capable of realizing link aggregation between multiple devices. This improves link reliability from the single board level to the equipment level.

2. Different advantages

Eth-Trunk: Load sharing can be achieved through the Trunk interface. Within an Eth-Trunk interface, traffic load balancing can be achieved. When the physical link connected to a member interface fails, traffic will be switched to other available links, thereby improving the reliability of the entire trunk link. The total bandwidth of a trunk interface is the sum of the bandwidths of all member interfaces.

E-Trunk (Enhanced Trunk): Mainly used for link protection between CE and PE when CE is dual-homed to VPLS, VLL, and PWE3 networks, as well as protection against PE equipment node failures. Before E-Trunk was used, CE could only be assigned to one PE device through the Eth-Trunk link.

If the Eth-Trunk fails or the PE device fails, CE will be unable to continue communicating with the PE device. After using E-Trunk, CE can be dual-homed to PE to achieve inter-device protection.

(9) Extended reading on the purpose of ethtrunk link aggregation

Port aggregation is to aggregate multiple ports together to form an aggregation group to achieve outbound traffic. / Incoming load is shared among the member ports in the aggregation group, which also provides higher connection reliability. E-trunk and Eth-trunk are both link aggregation technologies

In some three-tier data center networks, the core layer consists of two CIt consists of E12800, and two 10GE links are aggregated between the two devices to ensure high link reliability. The aggregation layer uses CE12800 switch stacks to achieve redundant backup, and the stacks are connected to upstream and downstream devices through cross-chassis Eth-Trunks.

At the same time, the local priority forwarding function of Eth-Trunk reduces the bandwidth carrying pressure of inter-chassis links. The aggregation layer creates VRF to isolate business network segment routes and public network routes, and deploys firewalls in bypass mode. The two firewalls perform dual-machine hot backup to ensure high reliability.

⑽ What is the difference between creating a link aggregation interface eth-trunk and a link aggregation interface group?

There is not much difference, except that eth-trunk is a Huawei concept and Ag is Cisco the concept of.
In the past, Huawei copied the Cisco command system and was sued by Cisco, so Huawei had to change it.

本文来源: 网络 文章作者: 网络投稿
    下一篇