13 华三三层链路聚和

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。

修改路由模式

Haskell 复制代码
<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/4
 port link-mode bridge
 combo 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/4
 port link-mode route
 combo enable fiber
#
return
[H3C-GigabitEthernet1/0/4]

三层聚合操作

Haskell 复制代码
[H3C]interface  ?
  Bridge-Aggregation   Bridge-Aggregation interface
  FortyGigE            FortyGigE interface
  GigabitEthernet      GigabitEthernet interface
  LoopBack             LoopBack interface
  M-GigabitEthernet    MGE interface
  NULL                 NULL interface
  Route-Aggregation    Route-Aggregation interface
  Ten-GigabitEthernet  Ten-GigabitEthernet interface
  Tunnel               Tunnel interface
  Tunnel-Bundle        Tunnel-Bundle interface
  Vlan-interface       VLAN interface
  range                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 group
  link-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/1
 port link-mode route
 combo enable fiber
 port 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 group
  link-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/2
 port link-mode route
 combo enable fiber
 port 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/4
 port link-mode route
 combo enable fiber
 port link-aggregation group 12
#
return
[H3C-GigabitEthernet1/0/4]

测试

Haskell 复制代码
[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: Never
 Last 300 second input rate: 0 bytes/sec, 0 bits/sec, 0 packets                                                                     /sec
 Last 300 second output rate: 0 bytes/sec, 0 bits/sec, 0 packet                                                                     s/sec
 Input: 0 packets, 0 bytes, 0 drops
 Output: 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-0200

AGG        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 sharing
  member-port   Display member(s) of link aggregation group
  summary       Summary information
  verbose       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 -- Expired

Aggregate Interface: Route-Aggregation12
Aggregation Mode: Static
Loadsharing Type: Shar
  Port             Status  Priority Oper-Key
---------------------------------------------------------------                                                                     -----------------
  GE1/0/1          S       32768    1
  GE1/0/2          S       32768    1
  GE1/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 sharing
  member-port   Display member(s) of link aggregation group
  summary       Summary information
  verbose       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 ]
相关推荐
ProtonBase4 分钟前
如何从 0 到 1 ,打造全新一代分布式数据架构
java·网络·数据库·数据仓库·分布式·云原生·架构
fantasy_arch10 小时前
CPU性能优化-磁盘空间和解析时间
网络·性能优化
是Dream呀12 小时前
Python从0到100(七十八):神经网络--从0开始搭建全连接网络和CNN网络
网络·python·神经网络
kaixin_learn_qt_ing12 小时前
了解RPC
网络·网络协议·rpc
安全小王子13 小时前
Kali操作系统简单介绍
网络·web安全
Hacker_LaoYi14 小时前
【漏洞分析】DDOS攻防分析(四)——TCP篇
网络·tcp/ip·ddos
爱吃水果蝙蝠汤14 小时前
DATACOM-IP单播路由(BGP)-复习-实验
网络·网络协议·tcp/ip
Sun_12_215 小时前
SQL注入(SQL lnjection Base)21
网络·数据库
网络安全Jack16 小时前
网络安全概论——身份认证
网络·数据库·web安全