链路聚合(华为)

article/2025/9/15 3:54:59

一、链路聚合技术

随着我们网络的不断拓展,业务流量也随之增多,那么我们就开始需要多链路进行通信

故研究出一个技术==Eth-Trunk(链路捆绑)

作用:

可以把多个独立的物理端口绑定在一起,当做一个大带宽逻辑接口去使用,这样的方法既不用替换端口也不必浪费IP地址资源

组建网络遇到的问题:

1.  网络需求大,单链路无法完成,增加链路又浪费IP地址,更换高带宽接口(E口换G口)又会增加维护设备的成本

2.  如果链路发生故障,又会影响通信和办公

解决:

两个问题均可以用eth-trunk来解决,将多个e口绑定为一起带宽转发就会增加(不必使用G口)由于是多个端口绑定故即便发生端口故障或者是单条链路故障也没有关系,因为其他端口也会进行转发(如果物理端口断掉,带宽转发也会稍微影响:比如,我用四条链路组成了一个链路捆绑(4000M)那么断开一个的话(-1000M),转发就会变成3000M)

Eth-Trunk链路聚合模式:

静态配置模式(手工负载分担)

动态配置模式(LACP)

Eth-trunk接口负载分担:

可以选择IP地址或者包作为负载分担依据

设置成员接口的负载分担分配

如果一个成员的分配权重值越大,承担的负载就越大

逐流负载分担:

当源地址、目标地址都相同或者报文的源MAC地址、目标MAC地址都相同时,就会在一条链路上传输

逐包负载分担:

以报文为单位分别从不同的成员链路上发送

手工负载分担模式:

当两台设备其中一个不支持LACP时,可以用手工负载方式来增加设备间的带宽和可靠性

Eth-Trunk接口配置流程:

Eth-Trunk接口配置流程:

[Huawei]interface eth-trunk 1

[Huawei-Eth-trunk1]mode manual load-balan//设置为手工负载分担

[Huawei-Eth-trunk1]trunkport g 0/0/X//加入端口

[Huawei-Eth-trunk1]port link-t access/trunk//设置端口模式,这里根据拓扑要求来设置即可

实验一 配置手工负载分担模式

S1交换机的初始配置

<Huawei>u  t  m    

<Huawei>system-view

[S1]sysname S1

创建vlan并将接口加入vlan设置接口的模式为acess:

[S1]vlan batch   10  20    \\创建vlan 10 20

[S1]interface  g0/0/1\\入接口0/0/1

[S1-GigabitEthernet0/0/1]port link-type access  \\设置接口模式为接入链路

[S1-GigabitEthernet0/0/1]port default vlan 10   \\将接口加入vlan10

[S1]interface  g0/0/2\\入接口0/0/2

[S1-GigabitEthernet0/0/2]port link-type access\\设置接口模式为接入链路

[S1-GigabitEthernet0/0/2]port default vlan 20    \\将接口加入vlan20

配置链路聚合:手工负载分担模式

[S1] interface(接口) eth-trunk(以太 - 中继)1  \\创建链路聚合的端口1(0-63)

[S1-Eth-Trunk1]mode(模式) manual(手控制的) load(负载)-balance(均衡)

[S1-Eth-Trunk1]trunkport(中继端口) g0/0/3          \\将接口加入到负载模式

[S1-Eth-Trunk1]trunkport(中继端口) g0/0/4          \\将接口加入到负载模式

[S1-Eth-Trunk1]display eth-trunk 1                  \\查看 eth-trunk

[S1]int  eth-trunk 1       \\进入eth-trunk1

[S1-Eth-Trunk1]port link-type trunk \\设置为trunk链路

[S1-Eth-Trunk1]port trunk allow-pass vlan all  \\ 设置为允许所有vlan

S2交换机的初始配置

<Huawei>u  t  m

<Huawei>system-view

[Huawei]sysname S2

创建vlan并将接口加入vlan:

[S2]vlan batch   10  20    \\创建vlan 10 20

[S2]interface  g0/0/1\\入接口0/0/5

[S2-GigabitEthernet0/0/1]port link-type access  \\设置接口模式为接入链路

[S2-GigabitEthernet0/0/1]port default vlan 10   \\将接口加入vlan10

[S2]interface  g0/0/2\\入接口0/0/5

[S2-GigabitEthernet0/0/2]port link-type access\\设置接口模式为接入链路

[S2-GigabitEthernet0/0/2]port default vlan 20    \\将接口加入vlan20

配置链路聚合:手工负载分担模式

[S2] interface(接口) eth-trunk(以太 - 中继)1  \\创建链路聚合的端口1(0-63)

[S2-Eth-Trunk1]mode(模式) manual(手控制的) load(负载)-balance(均衡)

[S2-Eth-Trunk1]trunkport(中继端口) g0/0/3          \\将接口加入到负载模式

[S2-Eth-Trunk1]trunkport(中继端口) g0/0/4          \\将接口加入到负载模式

[S2-Eth-Trunk1]display eth-trunk 1                  \\查看 eth-trunk

[S2]int  eth-trunk 1       \\进入eth-trunk1

[S2-Eth-Trunk1]port link-type trunk \\设置为trunk链路

[S2-Eth-Trunk1]port trunk allow-pass vlan all  \\ 设置为允许所有vlan

[S2-Eth-Trunk1]display eth-trunk 1           \\查看 eth-trunk

[S2]display port vlan      \\查看 vlan

二、LACP模式

也可以称之为M:N模式

M代表处于活动状态的转发数据

N代表处于非活动状态的备份链路

比如我们建立的三条链路,就是两条转发,1条备份,当转发链路出现故障的时候,备份链路才会进行数据转发,平时是不转发数据的

LACP的选取:

LACP的抢占:

实验二 配置LACP负载分担模式

 

S1交换机的初始配置

<Huawei>u  t  m    

<Huawei>system-view

[S1]sysname S1

创建vlan并将接口加入vlan设置接口的模式为acess:

[S1]vlan batch   10  20    \\创建vlan 10 20

[S1]interface  g0/0/4     \\入接口0/0/4

[S1-GigabitEthernet0/0/4]port link-type access  \\设置接口模式为接入链路

[S1-GigabitEthernet0/0/4]port default vlan 10   \\将接口加入vlan10

[S1]interface  gth0/0/5           \\入接口0/0/5

[S1-GigabitEthernet0/0/5]port link-type access\\设置接口模式为接入链路

[S1-GigabitEthernet0/0/5]port default vlan 20    \\将接口加入vlan20

配置链路聚合:LACP模式

[S1] interface(接口) eth-trunk(以太 - 中继)1  \\创建链路聚合的端口1(0-63)

[S1-Eth-Trunk1]mode(模式) lacp(动态)-static(均衡)

[S1-Eth-Trunk1]trunkport(中继端口) g0/0/1     \\将接口加入到负载模式

[S1-Eth-Trunk1]trunkport(中继端口) g0/0/2         \\将接口加入到负载模式

[S1-Eth-Trunk1]trunkport(中继端口) g0/0/3         \\将接口加入到负载模式

[S1-Eth-Trunk1]port link-type trunk \\设置为trunk链路

[S1-Eth-Trunk1]port trunk allow-pass vlan all  \\ 设置为允许所有vlan

[S1-Eth-Trunk1]display eth-trunk 1                  \\查看 eth-trunk

[S1]int  eth-trunk 1       \\进入eth-trunk1

S2交换机的初始配置

<Huawei>u  t  m

<Huawei>system-view

[Huawei]sysname S2

创建vlan并将接口加入vlan:

[S2]vlan batch   10  20    \\创建vlan 10 20

[S2]interface  g0/0/4     \\入接口0/0/5

[S2-GigabitEthernet0/0/4]port link-type access  \\设置接口模式为接入链路

[S2-GigabitEthernet0/0/4]port default vlan 10   \\将接口加入vlan10

[S2]interface  g0/0/5           \\入接口0/0/5

[S2-GigabitEthernet0/0/5]port link-type access\\设置接口模式为接入链路

[S2-GigabitEthernet0/0/5]port default vlan 20    \\将接口加入vlan20

配置链路聚合:LACP模式

[S2] interface(接口) eth-trunk(以太 - 中继)1  \\创建链路聚合的端口1(0-63)

[S2-Eth-Trunk1] mode(模式) lacp(动态)-static(均衡)

[S2-Eth-Trunk1]trunkport(中继端口)g0/0/1           \\将接口加入到负载模式

[S2-Eth-Trunk1]trunkport(中继端口) g0/0/2         \\将接口加入到负载模式

[S2-Eth-Trunk1]trunkport(中继端口) g0/0/3         \\将接口加入到负载模式

[S2-Eth-Trunk1]port link-type trunk \\设置为trunk链路

[S2-Eth-Trunk1]port trunk allow-pass vlpe trunkan all     \\ 设置为允许所有vlan

[S2-Eth-Trunk1]display eth-trunk 1           \\查看 eth-trunk

[S2]display port vlan      \\查看 vlan

[S2]display eth-trunk 1       \\查看 eth-trunk

Local:本地信息   Partner:对端信息

Svstem Prioritv:32768 系统的优先级

System ID:4clf-cc4e-5  系统的mac地址

MAX Active-linknumber:8  最大的活动链路数是8条

链路数是可以进行调整的我们可以调整为2条

Number of Up Port In Trunk:0  目前有几条

端口的编号端口的状态端口的带宽 接口的优先级 接口编号

 

UNSELECT 为备份端口     Selected 为活动端口

我们使用的是千兆端口,目前对方的信息都是0还没有启动

S2设置他的链路为2:

[S2]display eth-trunk 1     \\查看 eth-trunk

[S2]int  eth-trunk 1           \\进入eth-trunk1

[S2-Eth-Trunk1]max active-linknumber 2\\设置为2条链路

修改sw2为主设备,默认值是32768 我们可以设置为100

[S2]lacp priority 100     \\设置默认值为100

[S2]display eth-trunk  1       \\查看 eth-trunk

设置S2抢占功能:

  • 模拟1接口出现故障了

[S2]int g0/0/1       \\加入接口1

[S2-GigabitEthernet0/0/1]shutdows       \\关闭接口

[S2]display eth-trunk  1       \\查看 eth-trunk

[S2]display eth-trunk      \\查看 eth-trunk

Preempt Delay:Disabled  当前抢占功能未开启

  • 配置启用抢占模式 S1  S2都需要开启

[S2]display eth-trunk 2       \\查看 eth-trunk

[S2-Eth-Trunk1]lacp preempt enable \\配置抢占模式

[S1]display eth-trunk 1       \\查看 eth-trunk

[S1-Eth-Trunk1]lacp preempt enable \\配置抢占模式

[S2]display eth-trunk      \\查看 eth-trunk

Preempt Delay Time:30  当前抢占功能已开启 30秒后抢

综合实验

 三、链路聚合综合实战:

一、二层交换机的配置 S1  S2  S3  S4 S S6

1.S1交换机的初始配置

<Huawei>u  t  m    \\关闭信息干扰

<Huawei>system-view   \\进入系统视图

[Huawei]sysname  S1     \\设置交换机的名字为S1

  1. S1创建vlan 10 20

[S1]vlan  batch  10  20 \\创建vlan 10  20

3.创建链路聚合接口eth-trunk 1 2并将设置模式为lacp、加入成员并设置链路为tunk并允许所有vlan通过

[S1]interface  Eth-Trunk 1       \\创建链路聚合的端口1

[S1-Eth-Trunk1]mode lacp-static   \\设置链路为动态lacp

[S1-Eth-Trunk1]trunkport e0/0/3    \\将接口加入到负载模式

[S1-Eth-Trunk1]trunkport e0/0/4   \\将接口加入到负载模式

[S1-Eth-Trunk1]port link-type trunk  \\设置为trunk链路

[S1-Eth-Trunk1] port  trunk allow-pass vlan all  \\并允许所有vlan通过

[S1-Eth-Trunk1]display eth-trunk 1           \\查看 eth-trunk

[S1]interface  Eth-Trunk2\\创建链路聚合的端口2

[S1-Eth-Trunk2]mode lacp-static   \\设置链路为动态lacp

[S1-Eth-Trunk2]trunkport e0/0/5\\将接口加入到负载模式

[S1-Eth-Trunk2]trunkport e0/0/6   \\将接口加入到负载模式

[S1-Eth-Trunk2]port link-type trunk  \\设置为trunk链路

[S1-Eth-Trunk2] port  trunk allow-pass vlan all  \\并允许所有vlan通过

[S1-Eth-Trunk2]display eth-trunk 2           \\查看 eth-trunk

4.创建链路聚合接口eth-trunk 3 并将设置模式为lacp、加入成员并设置链路为access并将此端口加入vlan10

[S1]interface  Eth-Trunk3\\创建链路聚合的端口3

[S1-Eth-Trunk3]mode lacp-static   \\设置链路为动态lacp

[S1-Eth-Trunk3]trunkport e0/0/1\\将接口加入到负载模式

[S1-Eth-Trunk3]trunkport e0/0/2   \\将接口加入到负载模式

[S1-Eth-Trunk3]port link-type access\\设置为access链路

[S1-Eth-Trunk3] port default  vlan 10\\并将此端口加入vlan10

1.S2交换机的初始配置

<Huawei>u  t  m    \\关闭信息干扰

<Huawei>system-view   \\进入系统视图

[Huawei]sysname  S2 \\设置交换机的名字为S2

  1. S2创建vlan 10 20

[S2]vlan  batch  10  20 \\创建vlan 10  20

3.创建链路聚合接口eth-trunk 1 2并将设置模式为lacp、加入成员并设置链路为tunk并允许所有vlan通过

[S2]interface  Eth-Trunk 1       \\创建链路聚合的端口1

[S2-Eth-Trunk1]mode lacp-static   \\设置链路为动态lacp

[S2-Eth-Trunk1]trunkport e0/0/3    \\将接口加入到负载模式

[S2-Eth-Trunk1]trunkport e0/0/4   \\将接口加入到负载模式

[S2-Eth-Trunk1]port link-type trunk  \\设置为trunk链路

[S2-Eth-Trunk1] port  trunk allow-pass vlan all  \\并允许所有vlan通过

[S2-Eth-Trunk1]display eth-trunk 1           \\查看 eth-trunk

[S2]interface  Eth-Trunk2\\创建链路聚合的端口2

[S2-Eth-Trunk2]mode lacp-static   \\设置链路为动态lacp

[S2-Eth-Trunk2]trunkport e0/0/5\\将接口加入到负载模式

[S2-Eth-Trunk2]trunkport e0/0/6   \\将接口加入到负载模式

[S2-Eth-Trunk2]port link-type trunk  \\设置为trunk链路

[S2-Eth-Trunk2] port  trunk allow-pass vlan all  \\并允许所有vlan通过

[S2-Eth-Trunk2]display eth-trunk 2           \\查看 eth-trunk

4.创建链路聚合接口eth-trunk 3 并将设置模式为lacp、加入成员并设置链路为access并将此端口加入vlan10

[S2]interface  Eth-Trunk3\\创建链路聚合的端口3

[S2-Eth-Trunk3]mode lacp-static   \\设置链路为动态lacp

[S2-Eth-Trunk3]trunkport e0/0/1\\将接口加入到负载模式

[S2-Eth-Trunk3]trunkport e0/0/2   \\将接口加入到负载模式

[S2-Eth-Trunk3]port link-type access\\设置为access链路

[S2-Eth-Trunk3] port default  vlan 20\\并将此端口加入vlan20

1.S3交换机的初始配置

<Huawei>u  t  m    \\关闭信息干扰

<Huawei>system-view   \\进入系统视图

[Huawei]sysname  S3    \\设置交换机的名字为S3

  1. S3创建vlan 10 20

[S3]vlan  batch  10  20 \\创建vlan 10  20

3.创建链路聚合接口eth-trunk 1并将设置模式为lacp、加入成员并设置链路为tunk并允许所有vlan通过

[S3]interface  Eth-Trunk 1       \\创建链路聚合的端口1

[S3-Eth-Trunk1]mode lacp-static   \\设置链路为动态lacp

[S3-Eth-Trunk1]trunkport e0/0/3    \\将接口加入到负载模式

[S3-Eth-Trunk1]trunkport e0/0/4   \\将接口加入到负载模式

[S3-Eth-Trunk1]port link-type trunk  \\设置为trunk链路

[S3-Eth-Trunk1] port  trunk allow-pass vlan all  \\并允许所有vlan通过

[S3-Eth-Trunk1]display eth-trunk 1           \\查看 eth-trunk

4.S3e0/0/1加入vlan10 并设置链路是access链路

[S3]int e0/0/1   \\进入接口0/0/1

[S3-Ethernet0/0/1]port link-type access    \\设置链路为接入链路(access链路)

[S3-Ethernet0/0/1]port default  vlan  10   \\将接口加入vlan10

1.S4交换机的初始配置

<Huawei>u  t  m    \\关闭信息干扰

<Huawei>system-view   \\进入系统视图

[Huawei]sysname  S4     \\设置交换机的名字为S4

  1. S4创建vlan 10 20

[S4]vlan  batch  10  20 \\创建vlan 10  20

3.S4创建链路聚合接口eth-trunk 2 并将设置模式为lacp、加入成员并设置链路为tunk并允许所有vlan通过

[S4]interface  Eth-Trunk 2\\创建链路聚合的端口2

[S4-Eth-Trunk2]mode lacp-static   \\设置链路为动态lacp

[S4-Eth-Trunk2]trunkport e0/0/5\\将接口加入到负载模式

[S4-Eth-Trunk2]trunkport e0/0/6   \\将接口加入到负载模式

[S4-Eth-Trunk2]port link-type trunk  \\设置为trunk链路

[S4-Eth-Trunk2] port  trunk allow-pass vlan all  \\并允许所有vlan通过

[S4-Eth-Trunk2]display eth-trunk 2           \\查看 eth-trunk

4.S4e0/0/1加入vlan10 并设置链路是access链路

[S4]int e0/0/1   \\进入接口0/0/1

[S4-Ethernet0/0/1]port link-type access    \\设置链路为接入链路(access链路)

[S4-Ethernet0/0/1]port default  vlan  10   \\将接口加入vlan10

1.S5交换机的初始配置

<Huawei>u  t  m    \\关闭信息干扰

<Huawei>system-view   \\进入系统视图

[Huawei]sysname  S5\\设置交换机的名字为S5

  1. S5创建vlan 10 20

[S5]vlan  batch  10  20 \\创建vlan 10  20

3.创建链路聚合接口eth-trunk 1并将设置模式为lacp、加入成员并设置链路为tunk并允许所有vlan通过

[S5]interface  Eth-Trunk 1       \\创建链路聚合的端口1

[S5-Eth-Trunk1]mode lacp-static   \\设置链路为动态lacp

[S5-Eth-Trunk1]trunkport e0/0/3    \\将接口加入到负载模式

[S5-Eth-Trunk1]trunkport e0/0/4   \\将接口加入到负载模式

[S5-Eth-Trunk1]port link-type trunk  \\设置为trunk链路

[S5-Eth-Trunk1] port  trunk allow-pass vlan all  \\并允许所有vlan通过

[S5-Eth-Trunk1]display eth-trunk 1           \\查看 eth-trunk

4.S5e0/0/1加入vlan20 并设置链路是access链路

[S5]int e0/0/1   \\进入接口0/0/1

[S5-Ethernet0/0/1]port link-type access    \\设置链路为接入链路(access链路)

[S5-Ethernet0/0/1]port default  vlan  20   \\将接口加入vlan10

1.S6交换机的初始配置

<Huawei>u  t  m    \\关闭信息干扰

<Huawei>system-view   \\进入系统视图

[Huawei]sysname  S6 \\设置交换机的名字为S6

  1. S6创建vlan 10 20

[S6]vlan  batch  10  20 \\创建vlan 10  20

3.S6创建链路聚合接口eth-trunk 2 并将设置模式为lacp、加入成员并设置链路为tunk并允许所有vlan通过

[S6]interface  Eth-Trunk 2\\创建链路聚合的端口2

[S6-Eth-Trunk2]mode lacp-static   \\设置链路为动态lacp

[S6-Eth-Trunk2]trunkport e0/0/5\\将接口加入到负载模式

[S6-Eth-Trunk2]trunkport e0/0/6   \\将接口加入到负载模式

[S6-Eth-Trunk2]port link-type trunk  \\设置为trunk链路

[S6-Eth-Trunk2] port  trunk allow-pass vlan all  \\并允许所有vlan通过

[S6-Eth-Trunk2]display eth-trunk 2           \\查看 eth-trunk

4.S6e0/0/1加入vlan20 并设置链路是access链路

[S6]int e0/0/1   \\进入接口0/0/1

[S6-Ethernet0/0/1]port link-type access    \\设置链路为接入链路(access链路)

[S6-Ethernet0/0/1]port default  vlan  20   \\将接口加入vlan20

三、路由器的配置R1  R2

1.R1路由器的初始配置

<Huawei>u t m

<Huawei>system-view 

[Huawei]sysname  R1

2.R1路由器接口2/0/1 2/0/2接口设置链路聚合3并配置IP地址

[R1]interface Eth-Trunk 3   \\创建链路聚合的端口3

[R1-Eth-Trunk3]undo portswitch  \\关闭接口的交换功能(默认无法配置IP地址)

[R1-Eth-Trunk3]mode lacp-static\\设置链路为动态lacp

[R1-Eth-Trunk3]trunkport g2/0/1\\将接口加入到负载模式

[R1-Eth-Trunk3]trunkport g2/0/2\\将接口加入到负载模式

[R1-Eth-Trunk3]ip add 192.168.10.254 24\\配置IP地址

[R1-Eth-Trunk3]quit

3.R1路由器接口0/0/0 0/0/1接口设置链路聚合1并配置IP地址

[R1]interface  Eth-Trunk 1

[R1-Eth-Trunk1]undo portswitch\\关闭接口的交换功能(默认无法配置IP地址)

[R1-Eth-Trunk1]mode lacp-static \\设置链路为动态lacp

[R1-Eth-Trunk1]trunkport g0/0/0\\将接口加入到负载模式

[R1-Eth-Trunk1]trunkport g0/0/1\\将接口加入到负载模式

[R1-Eth-Trunk1]ip add 192.168.12.1 24\\配置IP地址

1.R2路由器的初始配置

<Huawei>u t m

<Huawei>system-view 

[Huawei]sysname  R2

2.R2路由器接口2/0/1 2/0/2接口设置链路聚合3并配置IP地址

[R2]interface Eth-Trunk 3   \\创建链路聚合的端口3

[R2-Eth-Trunk3]undo portswitch  \\关闭接口的交换功能(默认无法配置IP地址)

[R2-Eth-Trunk3]mode lacp-static\\设置链路为动态lacp

[R2-Eth-Trunk3]trunkport g2/0/1\\将接口加入到负载模式

[R2-Eth-Trunk3]trunkport g2/0/2\\将接口加入到负载模式

[R2-Eth-Trunk3]ip add 192.168.20.254 24\\配置IP地址

[R2-Eth-Trunk3]quit

3.R1路由器接口0/0/0 0/0/1接口设置链路聚合1并配置IP地址

[R2]interface  Eth-Trunk 1

[R2-Eth-Trunk1]undo portswitch\\关闭接口的交换功能(默认无法配置IP地址)

[R2-Eth-Trunk1]mode lacp-static \\设置链路为动态lacp

[R2-Eth-Trunk1]trunkport g0/0/0\\将接口加入到负载模式

[R2-Eth-Trunk1]trunkport g0/0/1\\将接口加入到负载模式

[R2-Eth-Trunk1]ip add 192.168.12.2 24\\配置IP地址

四、路由器的静态配置

1.R1路由器的静态路由配置

[R1]ip route-static 192.168.20.0 24 192.168.12.2

4.R2路由器的静态路由配置

[R2]ip route-static 192.168.10.0 24 192.168.12.1

  • 测试连通性

 PC1: ping  192.168.20.1

 PC1: ping  192.168.20.2

 

 

 

 

 

 

 

 


http://chatgpt.dhexx.cn/article/idfnnd6y.shtml

相关文章

链路聚合原理及配置过程

目录 一.链路聚合的概念二.链路聚合的实现条件三.端口聚合&#xff08;链路聚合&#xff09;的分类四.实现二层交换机链路聚合操作4.1、项目拓扑图4.2、交换机设置4.3、PC机设置4.4、连通性及检查是否绑定成功五.总结 一.链路聚合的概念 端口绑定技术又称链路聚合&#xff08;…

链路聚合详细解释

一&#xff0c;链路聚合的基本概念 产生背景&#xff1a; 1.随着网络规模的扩大&#xff0c;用户对骨干链路的带宽和可靠性提出了越来越高的要求。在传统技术中&#xff0c;常用更换高速率的接口板或者更换高速率接口板的设备的方式来增加带宽&#xff0c;但这种方案需要付出高…

配置链路聚合

实验拓扑如下&#xff1a; 在sw1和sw2上配置手工链路聚合 删除手工链路聚合&#xff0c;在 SW1 和 SW2 上配置静态 LACP 模式链路聚合&#xff0c;要求 SW1 为主动端&#xff0c;有两条活动链路&#xff0c; 其中 G0/0/5 接口处于备份状态 具体操作步骤如下&#xf…

链路聚合的定义、链路聚合的概念和基本术语、链路聚合的特点

目录 一、链路聚合&#xff08;Eth-Trunk&#xff09;定义: 二、链路聚合基本术语/概念 三、手工模式缺陷 四、链路聚合特点&#xff1a; 五、设备可靠性&#xff1a; 六、链路可靠性&#xff1a; 七、链路聚合带宽影响的因素&#xff1a; 八、链路聚合在osi七层中哪里…

链路聚合

目录 一.概念 1.端口绑定技术 二.二层链路聚合 1.链路聚合实现的条件 2.拓扑图 三.三层链路聚合 1.拓扑图 总结 一.概念 1.端口绑定技术 链路聚合是将一组物理接口捆绑在一起作为一个逻辑接口来增加宽带的一种方法。又称为多接口负载均衡组或链路聚合组&#xff0c;通…

交换机链路聚合技术

一、链路聚合简介 链路聚合&#xff08;Link Aggregation&#xff09;&#xff0c;是指将多个物理端口捆绑在一起&#xff0c;成为一个逻辑端口&#xff0c;以实现出入流量在各成员端口中的负荷分担&#xff0c;交换机根据用户配置的端口负荷分担策略决定报文从哪一个成员端口…

matlab 通过矩阵变换使图像旋转平移_28. 图像扭曲

本文同步发表在我的微信公众号“计算摄影学”,欢迎扫码关注 你有没有想过,下面这个视频中的特效应该如何实现? Morphing Female Starshttps://www.zhihu.com/video/1179863411041787904 【转载请注明来源与作者】 这个效果叫做面部变形(Face Morph),这里面将要用到一种叫做…

3D图形学中的矩阵变换及证明(一)

文章同时发布于: 王鹏飞的个人网站。 3D图形学中的矩阵变换 从这个月开始&#xff0c;我打算系统的去学习计算机图形学的知识了&#xff0c;一方面是因为兴趣&#xff0c;另一方面是之前自己也写过一些二维图形相关的程序&#xff0c;有一些数学的基础。图形学在软件开发中的…

【线性代数】理解矩阵变换及行列式的本质

参考&#xff1a;行列式的本质是什么&#xff1f; 这篇文章的结构是&#xff1a; 线性变换的几何直观 实现线性变换的矩阵 行列式 一、线性变换的几何直观 线性变换的几何直观有三个要点&#xff1a; 变换前是直线的&#xff0c;变换后依然是直线 直线比例保持不变 变换前…

三维空间矩阵变换

二维旋转推导 假如有一个矢量(ρ,θ)&#xff0c;那么在二维直角坐标系中可以得到xρ*cosθ y ρ*sinθ; 现在把这个矢量旋转β度&#xff0c;直角坐标系下变换后的矢量为&#xff08;ρ,θβ&#xff09;其坐标值为x ρ*cos&#xff08;θβ&#xff09; y ρ*sin&#xf…

2.2 matlab矩阵变换(对角阵、三角阵、矩阵的转置、矩阵的旋转、矩阵的翻转和矩阵求逆)

1、对角阵 &#xff08;1&#xff09;提取矩阵的对角线元素 >> a [1:3;4:6;7:9]a 1 2 3 4 5 6 7 8 9 >> diag(a)ans 1 5 9 >> diag…

计算机图形学【GAMES-101】1、矩阵变换原理Transform(旋转、位移、缩放、正交投影、透视投影)

快速跳转&#xff1a; 1、矩阵变换原理Transform(旋转、位移、缩放、正交投影、透视投影) 2、光栅化(反走样、傅里叶变换、卷积) 3、着色计算(深度缓存、着色模型、着色频率) 4、纹理映射(重心坐标插值、透视投影矫正、双线性插值MipMap、环境光遮蔽AO) 5、几何(距离函数SDF、点…

Tensorflow之矩阵变换

----------------------- 摘自 【维基百科】----------- 变换矩阵是数学线性代数中的一个概念。 在线性代数中&#xff0c;线性变换能够用矩阵表示。如果T是一个把Rn映射到Rm的线性变换&#xff0c;且x是一个具有n个元素的列向量&#xff0c;那么 {\displaystyle T({\vec {x}}…

three.js中的矩阵变换(模型视图投影变换)

文章目录 1. 概述2. 基本变换2.1. 矩阵运算2.2. 模型变换矩阵2.2.1. 平移矩阵2.2.2. 旋转矩阵2.2.2.1. 绕X轴旋转矩阵2.2.2.2. 绕Y轴旋转矩阵2.2.2.3. 绕Z轴旋转矩阵 2.3. 投影变换矩阵2.4. 视图变换矩阵 3. 着色器变换3.1. 代码3.2. 解析 4. 其他 1. 概述 我在《WebGL简易教程…

矩阵变换及其数学原理

矩阵变换及其数学原理 矩阵变换及其数学原理引子各种变换 平移矩阵缩放矩阵旋转变换 引子 推荐这篇文章线性代数的本质&#xff0c;这篇文章挺不错的&#xff0c;揭示了矩阵和向量的内涵。首先概要性的提一下 向量刻画的是线性空间中的对象。矩阵刻画的是向量在线性空间中的运…

计算机图形学之矩阵变换的深度理解

对于图形学来说&#xff0c;矩阵计算不可避免&#xff0c;既直观又方便。而如果线性代数学的不透彻的话&#xff0c;那么基本上是做不到应用的&#xff0c;这里推荐看一下3Blue1Brown的线性代数的视频&#xff0c;可以对矩阵计算有深刻的认识。 之后就是应用阶段&#xff0c;我…

图像处理-矩阵变换

Android中通过矩阵来处理图像问题是非常常见的。 图像中的每一个像素点都是一个颜色矩阵分量&#xff0c;然后我们让这两个矩阵相乘就能得到一个新的矩阵&#xff08;新的颜色矩阵分量&#xff09;&#xff0c;这就是矩阵变换对图像中的每一个点的处理&#xff0c;使得对整个图…

shader中的常用矩阵变换

unity shader 矩阵学习 矩阵运算法则&#xff08;1&#xff09;矩阵和标量的乘法&#xff08;2&#xff09;矩阵和矩阵的乘法矩阵相乘的条件 和 结果的行数和列数 变换的基本概念(1)变换(2)线性变换(3)平移变换(4)仿射变换&#xff08;5&#xff09;齐次坐标 2D 矩阵变换&#…

【Matlab】矩阵变换与矩阵求值

矩阵变换与矩阵求值 对角矩阵&#xff1a;只有对角线上有非零元素的矩阵。 数量矩阵&#xff1a;对角线上的元素相等的对角矩阵。 单位矩阵&#xff1a;对角线上的元素都为1的对角矩阵。 diag函数 提取矩阵的对角线元素 diag(A)&#xff1a;提取矩阵A主对角线元素&#x…

闫令琪图形学入门笔记(矩阵变换篇)

整个坐标变化过程贯穿管线渲染&#xff0c;它与光栅化、着色一同构成GPU完整的渲染过程。所以理解三维世界的坐标与矩阵变换是首要的学习内容 1.1 向量的点乘与叉乘 点乘 向量的点乘可以求得一个数&#xff0c;利用点乘可以进一步计算两向量的夹角大小&#xff0c;或者一个…