实验要求:
创建Eth-Trunk 端口 配置链路聚合模式 将物理端口加入进Eth-Trunk 端口 配置二层链路的连通性(如VLAN 配置等等)网络拓扑图:
操作步骤
1、配置 S2,建立 Eth-Trunk GigabitEthernet 0/0/1 到0/0/3 三个接口加入聚合链路
[Huawei]sysname S2
[S2]interface Eth-Trunk 1
[S2-Eth-Trunk1]mode manual load-balance //模式为手工负载分担, mode lacp-static是静态LACP模式
[S2-Eth-Trunk1]trunkport GigabitEthernet 0/0/1 to 0/0/3
[S2-Eth-Trunk1]quit
[S2]display eth-trunk 1 verbose
Eth-Trunk1's state information is:
WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIP
Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 3
Flow statistic
Interface GigabitEthernet0/0/1,
Last 300 seconds input rate 0 bits/sec, 0 packets/sec
Last 300 seconds output rate 0 bits/sec, 0 packets/sec
0packets input, 0 bytes, 0 drops
0packets output, 0 bytes, 0 drops
Interface GigabitEthernet0/0/2,
Last 300 seconds input rate 0 bits/sec, 0 packets/sec
Last 300 seconds output rate 0 bits/sec, 0 packets/sec
0packets input, 0 bytes, 0 drops
0packets output, 0 bytes, 0 drops
Interface GigabitEthernet0/0/3,
Last 300 seconds input rate 0 bits/sec, 0 packets/sec
Last 300 seconds output rate 0 bits/sec, 0 packets/sec
0packets input, 0 bytes, 0 drops
0packets output, 0 bytes, 0 drops
2、配置 S3,建立 Eth-TrunkGigabitEthernet 0/0/1到0/0/3 三个接口加入聚合链路
[Huawei]sysname S3
[S3]interface Eth-Trunk 1
[S3-Eth-Trunk1]mode manual load-balance
[S3-Eth-Trunk1]trunkport GigabitEthernet 0/0/1 to 0/0/3
[S3-Eth-Trunk1]quit
[S3]display eth-trunk 1 verbose
Eth-Trunk1's state information is:
WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIP
Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 3
3、配置 S2的VLAN100 和 Trunk 线路
[S2]interface Eth-Trunk 1
[S2-Eth-Trunk1]port link-type trunk
[S2-Eth-Trunk1]port trunk allow-pass vlan all
[S2-Eth-Trunk1]quit
[S2]vlan 100
[S2-vlan100]inter vlan 100
[S2-Vlanif100]ip address
4、配置 S3的VLAN100 和Access 接口
[S3]vlan 100
[S3-vlan100]quit
[S3]interface GigabitEthernet0/0/4
[S3- GigabitEthernet0/0/4]port link-type access
[S3- GigabitEthernet0/0/4] port default vlan 100
[S3]interface GigabitEthernet0/0/5
[S3- GigabitEthernet0/0/5]port link-type access
[S3- GigabitEthernet0/0/5] port default vlan 100
5、使用 pc测试通信
文章来源:《工程与试验》 网址: http://www.gcysyzz.cn/zonghexinwen/2020/1013/894.html