13 华三三层链路聚和
AI 解析
华三三层静态路由是指在华三交换机上配置的一种路由方式。它通过在交换机上手动配置路由表,将不同网络之间的数据进行转发。
华三三层静态路由的配置步骤如下:
1. 配置交换机接口的IP地址:在交换机上选择要配置的接口,输入接口命令,然后输入IP地址、子网掩码和网关地址。
2. 配置路由表:在交换机上选择要配置的路由表,输入路由表命令,然后输入目的网段、下一跳地址和出接口。
3. 验证配置:使用ping命令验证配置是否成功,发送数据包到目标设备,看是否能够正常通信。
需要注意的是,华三三层静态路由是一种手动配置的路由方式,当网络拓扑发生变化时,需要手动更新路由表。对于复杂的网络环境,静态路由可能会导致路由表过于庞大,不便于管理。因此,在一些大型网络中,通常会使用动态路由协议来自动学习和更新路由信息。
配置思路
1. 配置三层静态聚合组
(1) 进入系统视图。
system-view
(2) 创建三层聚合接口,并进入三层聚合接口视图。
interface route-aggregation interface-number
创建三层聚合接口后,系统将自动生成同编号的三层聚合组,且该聚合组缺省工作在静态聚合模式下。
(3) 退回系统视图。
quit
(4) 将三层以太网接口加入聚合组。
a. 进入三层以太网接口视图。
interface interface-type interface-number
b. 将三层以太网接口加入聚合组。
port link-aggregation group group-id
多次执行此步骤可将多个三层以太网接口加入聚合组。
(5) (可选)配置端口优先级。
link-aggregation port-priority priority
缺省情况下,端口优先级为32768。
修改路由模式
<H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]int
[H3C-GigabitEthernet1/0/2]port link-mode route
[H3C-GigabitEthernet1/0/2]%May 9 22:09:18:900 2024 H3C IFNET/3 /PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0 /2 changed to down.
%May 9 22:09:18:900 2024 H3C IFNET/5/LINK_UPDOWN: Line protoco l state on the interface GigabitEthernet1/0/2 changed to down.[H3C-GigabitEthernet1/0/2]q%May 9 22:09:20:942 2024 H3C IFNET/ 3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/ 0/2 changed to up.
%May 9 22:09:20:942 2024 H3C IFNET/5/LINK_UPDOWN: Line protoco l state on the interface GigabitEthernet1/0/2 changed to up.
ui%May 9 22:09:22:202 2024 H3C LLDP/6/LLDP_CREATE_NEIGHBOR: Ne arest bridge agent neighbor created on port GigabitEthernet1/0/ 2 (IfIndex 3), neighbor's chassis ID is 36b8-9947-0100, port ID is GigabitEthernet1/0/3.[H3C-GigabitEthernet1/0/1]port link-mode route
[H3C-GigabitEthernet1/0/1]%May 9 22:09:37:399 2024 H3C IFNET/3 /PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0 /1 changed to down.
%May 9 22:09:37:399 2024 H3C IFNET/5/LINK_UPDOWN: Line protoco l state on the interface GigabitEthernet1/0/1 changed to down.[H3C-GigabitEthernet1/0/1]%May 9 22:09:39:437 2024 H3C IFNET/3 /PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0 /1 changed to up.
%May 9 22:09:39:438 2024 H3C IFNET/5/LINK_UPDOWN: Line protoco l state on the interface GigabitEthernet1/0/1 changed to up.[H3C-GigabitEthernet1/0/1]qu%May 9 22:09:41:182 2024 H3C LLDP/ 6/LLDP_CREATE_NEIGHBOR: Nearest bridge agent neighbor created o n port GigabitEthernet1/0/1 (IfIndex 2), neighbor's chassis ID is 36b8-9947-0100, port ID is GigabitEthernet1/0/2.[H3C]interface GigabitEthernet 11/0/4^% Wrong parameter found at '^' position.
[H3C]interface GigabitEthernet 1/0/4
[H3C-GigabitEthernet1/0/4]dis
[H3C-GigabitEthernet1/0/4]display th
[H3C-GigabitEthernet1/0/4]display this
#
interface GigabitEthernet1/0/4port link-mode bridgecombo enable fiber
#
return
[H3C-GigabitEthernet1/0/4]port link-mode route
[H3C-GigabitEthernet1/0/4]%May 9 22:10:04:954 2024 H3C IFNET/3 /PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0 /4 changed to down.
%May 9 22:10:04:954 2024 H3C IFNET/5/LINK_UPDOWN: Line protoco l state on the interface GigabitEthernet1/0/4 changed to down.[H3C-GigabitEthernet1/0/4]%May 9 22:10:06:994 2024 H3C IFNET/3 /PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0 /4 changed to up.
%May 9 22:10:06:994 2024 H3C IFNET/5/LINK_UPDOWN: Line protoco l state on the interface GigabitEthernet1/0/4 changed to up.
dis
[H3C-GigabitEthernet1/0/4]display %May 9 22:10:08:169 2024 H3C LLDP/6/LLDP_CREATE_NEIGHBOR: Nearest bridge agent neighbor cre ated on port GigabitEthernet1/0/4 (IfIndex 5), neighbor's chass is ID is 36b8-9947-0100, port ID is GigabitEthernet1/0/4.th
[H3C-GigabitEthernet1/0/4]display this
#
interface GigabitEthernet1/0/4port link-mode routecombo enable fiber
#
return
[H3C-GigabitEthernet1/0/4]
三层聚合操作
[H3C]interface ?Bridge-Aggregation Bridge-Aggregation interfaceFortyGigE FortyGigE interfaceGigabitEthernet GigabitEthernet interfaceLoopBack LoopBack interfaceM-GigabitEthernet MGE interfaceNULL NULL interfaceRoute-Aggregation Route-Aggregation interfaceTen-GigabitEthernet Ten-GigabitEthernet interfaceTunnel Tunnel interfaceTunnel-Bundle Tunnel-Bundle interfaceVlan-interface VLAN interfacerange Configure an interface range[H3C]interface ro
[H3C]interface Route-Aggregation 12
[H3C-Route-Aggregation12]quit
[H3C]int
[H3C]interface g
[H3C]interface GigabitEthernet 1/0/1
[H3C-GigabitEthernet1/0/1]po
[H3C-GigabitEthernet1/0/1]por
[H3C-GigabitEthernet1/0/1]port li
[H3C-GigabitEthernet1/0/1]port link-r
[H3C-GigabitEthernet1/0/1]port link-?link-aggregation Link aggregation grouplink-mode Switch the specified interface to layer2 or layer3 ethernet[H3C-GigabitEthernet1/0/1]port link-a
[H3C-GigabitEthernet1/0/1]port link-aggregation ?group Specify aggregation group number[H3C-GigabitEthernet1/0/1]port link-aggregation g
[H3C-GigabitEthernet1/0/1]port link-aggregation group 12
[H3C-GigabitEthernet1/0/1]%May 9 22:12:46:431 2024 H3C IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/1 changed to down.
%May 9 22:12:46:431 2024 H3C IFNET/3/IF_WARN: The jumboframe of the aggregate interface Route-Aggregation12 is not supported on the member port GigabitEthernet1/0/1
%May 9 22:12:46:432 2024 H3C LAGG/6/LAGG_ACTIVE: Member port GE1/0/1 of aggregation group RAGG12 changed to the active state.
%May 9 22:12:46:435 2024 H3C IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/1 changed to up.
%May 9 22:12:46:435 2024 H3C IFNET/3/PHY_UPDOWN: Physical state on the interface Route-Aggregation12 changed to up.
%May 9 22:12:46:435 2024 H3C IFNET/5/LINK_UPDOWN: Line protocol state on the interface Route-Aggregation12 changed to up.[H3C-GigabitEthernet1/0/1]dis
[H3C-GigabitEthernet1/0/1]display th
[H3C-GigabitEthernet1/0/1]display this
#
interface GigabitEthernet1/0/1port link-mode routecombo enable fiberport link-aggregation group 12
#
return
[H3C-GigabitEthernet1/0/1]quit
[H3C]int
[H3C]interface g
[H3C]interface GigabitEthernet 1/0/2
[H3C-GigabitEthernet1/0/2]po
[H3C-GigabitEthernet1/0/2]port li
[H3C-GigabitEthernet1/0/2]port link-?link-aggregation Link aggregation grouplink-mode Switch the specified interface to layer2 or layer3 ethernet[H3C-GigabitEthernet1/0/2]port link-a
[H3C-GigabitEthernet1/0/2]port link-aggregation g
[H3C-GigabitEthernet1/0/2]port link-aggregation group ?INTEGER<1-1024> Link aggregation group number[H3C-GigabitEthernet1/0/2]port link-aggregation group 12
[H3C-GigabitEthernet1/0/2]%May 9 22:13:23:496 2024 H3C IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/2 changed to down.
%May 9 22:13:23:496 2024 H3C IFNET/3/IF_WARN: The jumboframe of the aggregate interface Route-Aggregation12 is not supported on the member port GigabitEthernet1/0/2
%May 9 22:13:23:496 2024 H3C LAGG/6/LAGG_ACTIVE: Member port GE1/0/2 of aggregation group RAGG12 changed to the active state.
%May 9 22:13:23:498 2024 H3C IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/2 changed to up.[H3C-GigabitEthernet1/0/2]dis
[H3C-GigabitEthernet1/0/2]display th
[H3C-GigabitEthernet1/0/2]display this
#
interface GigabitEthernet1/0/2port link-mode routecombo enable fiberport link-aggregation group 12
#
return
[H3C-GigabitEthernet1/0/2]quit
[H3C]int
[H3C]interface g
[H3C]interface GigabitEthernet 1/0/4
[H3C-GigabitEthernet1/0/4]po
[H3C-GigabitEthernet1/0/4]port li
[H3C-GigabitEthernet1/0/4]port link-a
[H3C-GigabitEthernet1/0/4]port link-aggregation g
[H3C-GigabitEthernet1/0/4]port link-aggregation group 12
[H3C-GigabitEthernet1/0/4]%May 9 22:13:44:926 2024 H3C IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/4 changed to down.
%May 9 22:13:44:926 2024 H3C IFNET/3/IF_WARN: The jumboframe of the aggregate interface Route-Aggregation12 is not supported on the member port GigabitEthernet1/0/4
%May 9 22:13:44:927 2024 H3C LAGG/6/LAGG_ACTIVE: Member port GE1/0/4 of aggregation group RAGG12 changed to the active state.
%May 9 22:13:44:929 2024 H3C IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/4 changed to up.[H3C-GigabitEthernet1/0/4]dis
[H3C-GigabitEthernet1/0/4]display th
[H3C-GigabitEthernet1/0/4]display this
#
interface GigabitEthernet1/0/4port link-mode routecombo enable fiberport link-aggregation group 12
#
return
[H3C-GigabitEthernet1/0/4]
测试
[H3C]display interface r
[H3C]display interface ro
[H3C]display interface Route-Aggregation 12
Route-Aggregation12
Current state: UP
Line protocol state: UP
Description: Route-Aggregation12 Interface
Bandwidth: 3000000 kbps
Maximum transmission unit: 1500
Internet protocol processing: Disabled
IP packet frame type: Ethernet II, hardware address: 36b8-9fd1- 0202
IPv6 packet frame type: Ethernet II, hardware address: 36b8-9fd 1-0202
Last clearing of counters: NeverLast 300 second input rate: 0 bytes/sec, 0 bits/sec, 0 packets /secLast 300 second output rate: 0 bytes/sec, 0 bits/sec, 0 packet s/secInput: 0 packets, 0 bytes, 0 dropsOutput: 0 packets, 0 bytes, 0 drops[H3C]dis
[H3C]display int
[H3C]display interface rou
[H3C]display interface Route-Aggregation b
[H3C]display interface Route-Aggregation brief
Brief information on interfaces in route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface Link Protocol Primary IP Description
RAGG12 UP UP --[H3C]dis
[H3C]display li
[H3C]display li
[H3C]display li
[H3C]display line
[H3C]display link-aggregation s
[H3C]display link-aggregation summary
Aggregation Interface Type:
BAGG -- Bridge-Aggregation, BLAGG -- Blade-Aggregation, RAGG -- Route-Aggregation, SCH-B -- Schannel-Bundle
Aggregation Mode: S -- Static, D -- Dynamic
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Actor System ID: 0x8000, 36b8-9fd1-0200AGG AGG Partner ID Selected Unselected Individual Share
Interface Mode Ports Ports Ports Type
--------------------------------------------------------------- -----------------
RAGG12 S None 3 0 0 Shar
[H3C]dis
[H3C]display li
[H3C]display line
[H3C]display link-aggregation tr
[H3C]display link-aggregation tr
[H3C]display link-aggregation tr
[H3C]display link-aggregation tr
[H3C]display link-aggregation ?load-sharing Link aggregation load sharingmember-port Display member(s) of link aggregation groupsummary Summary informationverbose Display verbose information of link aggregation group[H3C]display link-aggregation ver
[H3C]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 -- Distributin g,G -- Defaulted, H -- ExpiredAggregate Interface: Route-Aggregation12
Aggregation Mode: Static
Loadsharing Type: SharPort Status Priority Oper-Key
--------------------------------------------------------------- -----------------GE1/0/1 S 32768 1GE1/0/2 S 32768 1GE1/0/4 S 32768 1
[H3C]dis
[H3C]display li
[H3C]display line
[H3C]display link-aggregation br
[H3C]display link-aggregation ?load-sharing Link aggregation load sharingmember-port Display member(s) of link aggregation groupsummary Summary informationverbose Display verbose information of link aggregation group[H3C]display link-aggregation lo
[H3C]display link-aggregation load-sharing^% Incomplete command found at '^' position.
[H3C]display link-aggregation g
[H3C]
链路聚合的维护
详细作用 | 查询命令 |
---|---|
显示聚合接口的相关信息 | display interface [ { bridge-aggregation |
显示本端系统的设备ID | display lacp system-id |
显示全局或聚合组内采用的聚合负载分担类型 | display link-aggregation load-sharing mode[ interface [ { bridge-aggregation |
显示成员端口上链路聚合的详细信息 | display link-aggregation member-port [ interface-list |
显示所有聚合组的摘要信息 | display link-aggregation summary |
显示聚合组成员端口的选中状态及原因 | display link-aggregation troubleshooting [ { bridge-aggregation |
显示已有聚合接口所对应聚合组的详细信息 | display link-aggregation verbose [ { bridge-aggregation |
清除聚合接口上的统计信息 | reset counters interface [ { bridge-aggregation |
清除成员端口上的LACP统计信息 | reset lacp statistics [ interface interface-list ] |