H3C 交换机配置静态聚合(trunk/access)模式

H3C 交换机配置静态聚合(trunk/access)模式目标:H3C交换机配置静态聚合(trunk/access)模式硬件配置:1.三层核心交换机:S7005e2.二层交换机:S5120v2S7005e过程:创建vlan(如果已经存在可跳过此步骤)[H3C]vlan20设置名称(Test可自行更改)[H3C-vlan20]nameTest 返回系统视图[H3C-vlan20]qu进入vlan20[H3C]interfacevlan20修改vlan标签(Test可自行更改)[H3C-Vlan-interface20]de

目标:

H3C 交换机配置静态聚合(trunk/access)模式

硬件配置:

1.三层核心交换机:S7005e
2.二层交换机:S5120 v2

S7005e过程:

创建vlan(如果已经存在可跳过此步骤)
[H3C]vlan 20
设置名称(Test可自行更改)
[H3C-vlan20]name Test
返回系统视图
[H3C-vlan20]qu
进入vlan 20
[H3C]interface vlan 20
修改vlan标签(Test可自行更改)
[H3C-Vlan-interface20]description Test
vlan添加IP地址(192.168.200.1网关地址可自行修改)
(24子网掩码,可自行修改(也可255.255.255.0))
((192.168.200.1 24)等同(192.168.200.1 255.255.255.0))
[H3C-Vlan-interface20]ip address 192.168.200.1 24
返回系统视图
[H3C-Vlan-interface20]qu
配置聚合组(组ID:20(可自行修改))
[H3C]interface Bridge-Aggregation 20
修改汇聚组标签
[H3C-Bridge-Aggregation20]description Test
修改聚合组端口信息与vlan配置
根据聚合模式选择(trunk/access)
[H3C-Bridge-Aggregation20]port link-type access
添加端口到vlan(两种模式只能选择一种不能共存)
access模式添加
[H3C-Bridge-Aggregation20]port access vlan 20
trunk模式添加(两种模式只能选择一种不能共存)
[H3C-Bridge-Aggregation20]port trunk permit vlan 20
返回系统视图
[H3C-Bridge-Aggregation20]qu
#设置需要汇聚的物理端口(只演示一个端口的配置,多个端口请自行复制粘贴)
进入端口视图
[H3C]interface GigabitEthernet 1/0/1
端口模式配置与汇聚端口相同(命令执行是相同)
[H3C-GigabitEthernet1/0/1]port link-type access
[H3C-GigabitEthernet1/0/1]port access vlan 20
端口加入汇聚组(ID:20)
[H3C-GigabitEthernet1/0/1]port link-aggregation group 20
在把需要汇聚的端口都配置好,自此三层核心的交换机就已经完成(汇聚组ID:20)的配置,如需更多的汇聚组请参考此列。

查看全部汇聚组信息
]display link-aggregation verbose
显示:
Loadsharing Type: Shar – Loadsharing, NonS – Non-Loadsharing
Port: A – Auto
Port Status: S – Selected, U – Unselected, I – Individual
Flags: A – LACP_Activity, B – LACP_Timeout, C – Aggregation,
D – Synchronization, E – Collecting, F – Distributing,
G – Defaulted, H – Expired

Aggregate Interface: Bridge-Aggregation20
Aggregation Mode: Static (这里也表示为静态)
Loadsharing Type: Shar
Port Status Priority Oper-Key

GE1/0/1 S 32768 1(S:Static的意思)
GE1/0/2 S 32768 1(S:静态模式)

Aggregate Interface: Route-Aggregation1
Aggregation Mode: Static
Loadsharing Type: Shar

查看汇聚组20的信息
display interface Bridge-Aggregation 20
以下是配置后的端口信息
Bridge-Aggregation20
Current state: UP
IP packet frame type: Ethernet II, hardware address: 1a46-e48a-0100
Description: Test
Bandwidth: 2000000 kbps
2Gbps-speed mode, full-duplex mode
Link speed type is autonegotiation, link duplex type is autonegotiation
PVID: 20
Port link-type: Access
Tagged VLANs: None
Untagged VLANs: 20
Last clearing of counters: Never
Last 300 second input: 0 packets/sec 0 bytes/sec 0%
Last 300 second output: 0 packets/sec 0 bytes/sec 0%
Input (total): 0 packets, 0 bytes
0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses
Input (normal): 0 packets, 0 bytes
0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses
Input: 0 input errors, 0 runts, 0 giants, 0 throttles
0 CRC, 0 frame, 0 overruns, 0 aborts
0 ignored, 0 parity errors
Output (total): 0 packets, 0 bytes
0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses
—- More —-

S5120 v2过程:

前言:相对于三层核心的配置,二层交换机就显的简单很多
对于access模式的只需要把对应汇聚组的端口修改到相同的vlan ID,然后创建汇聚组
加入对应的端口,在新的H3C设备种已经不需要在二层设置access模式,默认模式下也可以自动识别,只需要将其他端口加入。

查看汇聚组20的信息
display interface Bridge-Aggregation 20
以下是配置后的端口信息
Bridge-Aggregation20
Current state: UP
IP packet frame type: Ethernet II, hardware address: 1a77-315c-0200
Description: Test
Bandwidth: 2000000 kbps
2Gbps-speed mode, full-duplex mode
Link speed type is autonegotiation, link duplex type is autonegotiation
PVID: 20
Port link-type: Access
Tagged VLANs: None
Untagged VLANs: 20
Last clearing of counters: Never
Last 300 second input: 0 packets/sec 0 bytes/sec 0%
Last 300 second output: 0 packets/sec 0 bytes/sec 0%
Input (total): 0 packets, 0 bytes
0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses
Input (normal): 0 packets, 0 bytes
0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses
Input: 0 input errors, 0 runts, 0 giants, 0 throttles
0 CRC, 0 frame, 0 overruns, 0 aborts
0 ignored, 0 parity errors
Output (total): 0 packets, 0 bytes
0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses
—- More —-

今天的文章H3C 交换机配置静态聚合(trunk/access)模式分享到此就结束了,感谢您的阅读。

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/23770.html

(0)
编程小号编程小号

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注