InLoopBack接口是一种虚拟接口。InLoopBack接口由系统自动创建,用户不能进行配置和删除,但是可以显示,其物理层和链路层协议永远处于up状态。InLoopBack接口主要用于配合实现报文的路由和转发,任何送到InLoopBack接口的IP报文都会被认为是送往设备本身的,设备将不再转发这些报文

35 解决单条链路故障问题-华三链路聚合_链路

一 在同一网段没有网关为啥能ping通

PC机配置信息

35 解决单条链路故障问题-华三链路聚合_Ethernet_02

35 解决单条链路故障问题-华三链路聚合_链路_03

如果我中间的的链路断了,业务无法通过,这样可以吗?做为专业的网络工程师这样的操作不能发生的?

35 解决单条链路故障问题-华三链路聚合_链路_04

35 解决单条链路故障问题-华三链路聚合_Line_05

链路聚合的本质是提高网络的可靠性,模式分为静态模式和动态模式,一般采用动态模式

二 华三二层静态链路聚合

35 解决单条链路故障问题-华三链路聚合_链路_06

35 解决单条链路故障问题-华三链路聚合_链路_07

操作

命令

说明

进入系统视图

system-view

-

创建二层聚合接口,并进入二层聚合接口视图

interface bridge-aggregation interface-number

创建二层聚合接口后,系统将自动生成同编号的二层聚合组,且该聚合组缺省工作在静态聚合模式下

退回系统视图

quit

-

进入二层以太网接口视图

interface interface-type interface-number

多次执行此步骤可将多个二层以太网接口加入聚合组

将二层以太网接口加入聚合组

port link-aggregation group number

[SW1]interface  Bridge-Aggregation  ?

  <1-1024>  Bridge-Aggregation interface number

[SW1]interface  Bridge-Aggregation  4
[SW1-Bridge-Aggregation4]quit
[SW1]int range g1/0/4 to g1/0/7
[SW1-if-range]port link-aggregation  group  4
[SW1-if-range]port link-type  trunk
[SW1-if-range]port trunk  permit  vlan  all

[SW1]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, 4e53-c0ce-0100

AGG        AGG   Partner ID              Selected  Unselected  Individual  Share
Interface  Mode                          Ports     Ports       Ports       Type 
--------------------------------------------------------------------------------
BAGG4      S     None                    0         4           0           Shar 
[SW1]display  link-aggregation  ve
[SW1]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-Aggregation4
Aggregation Mode: Static
Loadsharing Type: Shar
  Port             Status  Priority Oper-Key
--------------------------------------------------------------------------------
  GE1/0/4          U       32768    1         
  GE1/0/5          U       32768    1         
  GE1/0/6          U       32768    1         
  GE1/0/7          U       32768    1         
[SW1]
[SW1]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

[SW1]display  link-aggregation 4
                               ^
 % Unrecognized command found at '^' position.
[SW1]

[SW1]dis
[SW1]display  li
[SW1]display  line
[SW1]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

[SW1]display  link-aggregation me
[SW1]display  link-aggregation member-port  ?
  >                    Redirect it to a file
  >>                   Redirect it to a file in append mode
  FortyGigE            FortyGigE interface
  GigabitEthernet      GigabitEthernet interface
  Ten-GigabitEthernet  Ten-GigabitEthernet interface
  |                    Matching output
  <cr>                 

[SW1]display  link-aggregation member-port  g
[SW1]display  link-aggregation member-port  GigabitEthernet 1/0/4
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, 
       D -- Synchronization, E -- Collecting, F -- Distributing, 
       G -- Defaulted, H -- Expired

GigabitEthernet1/0/4: 
Aggregate Interface: Bridge-Aggregation4
Port Number: 5 
Port Priority: 32768
Oper-Key: 1
[SW1]display  link-aggregation member-port  GigabitEthernet 1/0/5
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, 
       D -- Synchronization, E -- Collecting, F -- Distributing, 
       G -- Defaulted, H -- Expired

GigabitEthernet1/0/5: 
Aggregate Interface: Bridge-Aggregation4
Port Number: 6 
Port Priority: 32768
Oper-Key: 1
[SW1]display  link-aggregation member-port  GigabitEthernet 1/0/6
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, 
       D -- Synchronization, E -- Collecting, F -- Distributing, 
       G -- Defaulted, H -- Expired

GigabitEthernet1/0/6: 
Aggregate Interface: Bridge-Aggregation4
Port Number: 7 
Port Priority: 32768
Oper-Key: 1
[SW1]display  link-aggregation member-port  GigabitEthernet 1/0/7
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, 
       D -- Synchronization, E -- Collecting, F -- Distributing, 
       G -- Defaulted, H -- Expired

GigabitEthernet1/0/7: 
Aggregate Interface: Bridge-Aggregation4
Port Number: 8 
Port Priority: 32768
Oper-Key: 1
[SW1]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

[SW1]display  link-aggregation su
[SW1]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, 4e53-c0ce-0100

AGG        AGG   Partner ID              Selected  Unselected  Individual  Share
Interface  Mode                          Ports     Ports       Ports       Type 
--------------------------------------------------------------------------------
BAGG4      S     None                    0         4           0           Shar 
[SW1]display  link-aggregation ve
[SW1]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-Aggregation4
Aggregation Mode: Static
Loadsharing Type: Shar
  Port             Status  Priority Oper-Key
--------------------------------------------------------------------------------
  GE1/0/4          U       32768    1         
  GE1/0/5          U       32768    1         
  GE1/0/6          U       32768    1         
  GE1/0/7          U       32768    1

三 华三三层静态链路聚合

35 解决单条链路故障问题-华三链路聚合_链路_08

操作

命令

说明

进入系统视图

system-view

-

创建三层聚合接口,并进入三层聚合接口视图

interface route-aggregation interface-number

创建三层聚合接口后,系统将自动生成同编号的三层聚合组,且该聚合组缺省工作在静态聚合模式下

退回系统视图

quit

-

进入三层以太网接口视图

interface interface-type interface-number

多次执行此步骤可将多个三层以太网接口加入聚合组

将三层以太网接口加入聚合组

port link-aggregation group number

将接口的模式改为三层模式

[SW3]int
[SW3]interface  ra
[SW3]interface  range  g
[SW3]interface  range  GigabitEthernet  1/0/3 to g1/0/7
[SW3-if-range]po
[SW3-if-range]port li
[SW3-if-range]port link-ty
[SW3-if-range]port link-mo
[SW3-if-range]port link-mode  r
[SW3-if-range]port link-mode  route 
%Jul 13 23:09:53:420 2024 SW3 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0/3 changed to down.
%Jul 13 23:09:53:420 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/3 changed to down.
%Jul 13 23:09:53:420 2024 SW3 STP/6/STP_NOTIFIED_TC: Instance 0's port GigabitEthernet1/0/4 was notified a topology change.
%Jul 13 23:09:53:466 2024 SW3 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0/4 changed to down.
%Jul 13 23:09:53:466 2024 SW3 STP/6/STP_NOTIFIED_TC: Instance 0's port GigabitEthernet1/0/5 was notified a topology change.
%Jul 13 23:09:53:467 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/4 changed to down.
%Jul 13 23:09:53:510 2024 SW3 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0/5 changed to down.
%Jul 13 23:09:53:510 2024 SW3 STP/6/STP_NOTIFIED_TC: Instance 0's port GigabitEthernet1/0/6 was notified a topology change.
%Jul 13 23:09:53:511 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/5 changed to down.
%Jul 13 23:09:53:549 2024 SW3 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0/6 changed to down.
%Jul 13 23:09:53:549 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/6 changed to down.
%Jul 13 23:09:53:549 2024 SW3 STP/6/STP_NOTIFIED_TC: Instance 0's port GigabitEthernet1/0/7 was notified a topology change.
[SW3-if-range]%Jul 13 23:09:53:590 2024 SW3 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0/7 changed to down.
%Jul 13 23:09:53:590 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/7 changed to down.
%Jul 13 23:09:55:467 2024 SW3 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0/3 changed to up.
%Jul 13 23:09:55:467 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/3 changed to up.
%Jul 13 23:09:55:507 2024 SW3 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0/4 changed to up.
%Jul 13 23:09:55:507 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/4 changed to up.
%Jul 13 23:09:55:547 2024 SW3 LLDP/6/LLDP_CREATE_NEIGHBOR: Nearest bridge agent neighbor created on port GigabitEthernet1/0/5 (IfIndex 6), neighbor's chassis ID is 4e54-0b64-0400, port ID is GigabitEthernet1/0/5.

%Jul 13 23:09:55:549 2024 SW3 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0/5 changed to up.
%Jul 13 23:09:55:549 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/5 changed to up.
%Jul 13 23:09:55:591 2024 SW3 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0/6 changed to up.
%Jul 13 23:09:55:591 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/6 changed to up.
%Jul 13 23:09:55:626 2024 SW3 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0/7 changed to up.
%Jul 13 23:09:55:627 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/7 changed to up.
%Jul 13 23:09:56:525 2024 SW3 LLDP/6/LLDP_CREATE_NEIGHBOR: Nearest bridge agent neighbor created on port GigabitEthernet1/0/3 (IfIndex 4), neighbor's chassis ID is 4e54-0b64-0400, port ID is GigabitEthernet1/0/3.

%Jul 13 23:09:56:526 2024 SW3 LLDP/6/LLDP_CREATE_NEIGHBOR: Nearest bridge agent neighbor created on port GigabitEthernet1/0/4 (IfIndex 5), neighbor's chassis ID is 4e54-0b64-0400, port ID is GigabitEthernet1/0/4.

%Jul 13 23:09:57:522 2024 SW3 LLDP/6/LLDP_CREATE_NEIGHBOR: Nearest bridge agent neighbor created on port GigabitEthernet1/0/6 (IfIndex 7), neighbor's chassis ID is 4e54-0b64-0400, port ID is GigabitEthernet1/0/6.

%Jul 13 23:09:57:523 2024 SW3 LLDP/6/LLDP_CREATE_NEIGHBOR: Nearest bridge agent neighbor created on port GigabitEthernet1/0/7 (IfIndex 8), neighbor's chassis ID is 4e54-0b64-0400, port ID is GigabitEthernet1/0/7.

配置三层静态链路聚合

[SW3]int
[SW3]interface  r
[SW3]interface  range
[SW3]interface  Route-Aggregation 55
[SW3-Route-Aggregation55]quit
[SW3]int
[SW3]interface  ra
[SW3]interface  range g
[SW3]interface  range GigabitEthernet 1/0/3 to g
[SW3]interface  range GigabitEthernet 1/0/3 to GigabitEthernet 1/0/7
[SW3-if-range]po
[SW3-if-range]port
[SW3-if-range]por
[SW3-if-range]port li
[SW3-if-range]port link-
[SW3-if-range]port link-aggregation g
[SW3-if-range]port link-aggregation group  55
%Jul 13 23:11:43:563 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/3 changed to down.
[SW3-if-range]%Jul 13 23:11:43:563 2024 SW3 IFNET/3/IF_WARN: The jumboframe of the aggregate interface Route-Aggregation55 is not supported on the member port GigabitEthernet1/0/3
%Jul 13 23:11:43:564 2024 SW3 LAGG/6/LAGG_ACTIVE: Member port GE1/0/3 of aggregation group RAGG55 changed to the active state.
%Jul 13 23:11:43:569 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/3 changed to up.
%Jul 13 23:11:43:570 2024 SW3 IFNET/3/PHY_UPDOWN: Physical state on the interface Route-Aggregation55 changed to up.
%Jul 13 23:11:43:570 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Route-Aggregation55 changed to up.
%Jul 13 23:11:43:570 2024 SW3 IFNET/3/IF_WARN: The jumboframe of the aggregate interface Route-Aggregation55 is not supported on the member port GigabitEthernet1/0/4
%Jul 13 23:11:43:570 2024 SW3 LAGG/6/LAGG_ACTIVE: Member port GE1/0/4 of aggregation group RAGG55 changed to the active state.
%Jul 13 23:11:43:575 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/4 changed to down.
%Jul 13 23:11:43:576 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/4 changed to up.
%Jul 13 23:11:43:577 2024 SW3 IFNET/3/IF_WARN: The jumboframe of the aggregate interface Route-Aggregation55 is not supported on the member port GigabitEthernet1/0/5
%Jul 13 23:11:43:577 2024 SW3 LAGG/6/LAGG_ACTIVE: Member port GE1/0/5 of aggregation group RAGG55 changed to the active state.
%Jul 13 23:11:43:579 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/5 changed to down.
%Jul 13 23:11:43:580 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/5 changed to up.
%Jul 13 23:11:43:580 2024 SW3 IFNET/3/IF_WARN: The jumboframe of the aggregate interface Route-Aggregation55 is not supported on the member port GigabitEthernet1/0/6
%Jul 13 23:11:43:581 2024 SW3 LAGG/6/LAGG_ACTIVE: Member port GE1/0/6 of aggregation group RAGG55 changed to the active state.
%Jul 13 23:11:43:583 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/6 changed to down.
%Jul 13 23:11:43:584 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/6 changed to up.
%Jul 13 23:11:43:584 2024 SW3 IFNET/3/IF_WARN: The jumboframe of the aggregate interface Route-Aggregation55 is not supported on the member port GigabitEthernet1/0/7
%Jul 13 23:11:43:584 2024 SW3 LAGG/6/LAGG_ACTIVE: Member port GE1/0/7 of aggregation group RAGG55 changed to the active state.
%Jul 13 23:11:43:586 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/7 changed to down.
%Jul 13 23:11:43:586 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/7 changed to up.

[SW3-if-range]

简写

  1. [SW4]display  history-command
  2. [SW4 display  current-configuration
  3.  [SW4interface  Route-Aggregation  55
  4.  [SW4quit
  5. [SW4 int range  GigabitEthernet  1/0/3 to GigabitEthernet  1/0/7
  6.  [SW4port link-mo route
  7.  [SW4port link-aggregation group  55
  8.  [SW4quit
  9.  [SW4display  link-aggregation summary
  10.  [SW4display  link-aggregation verbose

四 华三二层动态链路聚合

35 解决单条链路故障问题-华三链路聚合_链路_09

35 解决单条链路故障问题-华三链路聚合_链路_10

[SW2]interface  Bridge-Aggregation  4
[SW2-Bridge-Aggregation4]display  this 
#
interface Bridge-Aggregation4
#
return
[SW2-Bridge-Aggregation4]link-aggregation  mode  dynamic 
[SW2-Bridge-Aggregation4]quit
[SW2]interface  range  GigabitEthernet  1/0/4 to GigabitEthernet 1/0/7
[SW2-if-range]display  this 
#
interface GigabitEthernet1/0/4
 port link-mode bridge
 port link-type trunk
 port trunk permit vlan all
 combo enable fiber
 port link-aggregation group 4
#
return
[SW2-if-range]lacp  mode  passive
[SW2]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, 4e53-c869-0200

AGG        AGG   Partner ID              Selected  Unselected  Individual  Share
Interface  Mode                          Ports     Ports       Ports       Type 
--------------------------------------------------------------------------------
BAGG4      D     0x8000, 0000-0000-0000  0         4           0           Shar 
[SW2]display  link-aggregation ve
[SW2]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-Aggregation4
Aggregation Mode: Dynamic
Loadsharing Type: Shar
System ID: 0x8000, 4e53-c869-0200
Local: 
  Port                Status  Priority Oper-Key  Flag
--------------------------------------------------------------------------------
  GE1/0/4             U       32768    1         {}
  GE1/0/5             U       32768    1         {}
  GE1/0/6             U       32768    1         {}
  GE1/0/7             U       32768    1         {}
Remote: 
  Actor               Partner Priority Oper-Key  SystemID               Flag   
--------------------------------------------------------------------------------
  GE1/0/4             5       32768    1         0x22  , 4e53-c0ce-0100 {G}
  GE1/0/5             6       32768    1         0x22  , 4e53-c0ce-0100 {G}
  GE1/0/6             7       32768    1         0x22  , 4e53-c0ce-0100 {G}
  GE1/0/7             8       32768    1         0x22  , 4e53-c0ce-0100 {G}
[SW2]

五 华三 三层动态链路聚合

[SW3-Route-Aggregation55]display  this 
#
interface Route-Aggregation55
#
return
[SW3-Route-Aggregation55]link-aggregation  mode  dynamic 
[SW3-Route-Aggregation55]quit
[SW3]int range  GigabitEthernet 1/0/3 to  GigabitEthernet 1/0/7
[SW3-if-range]lacp  mode  passive 
[SW3-if-range]display  this 
#
interface GigabitEthernet1/0/3
 port link-mode route
 combo enable fiber
 lacp mode passive
 port link-aggregation group 55
#

35 解决单条链路故障问题-华三链路聚合_链路_11

[SW4]interface  ra
[SW4]interface  range  g
[SW4]interface  range  GigabitEthernet 1/0/3 to g
[SW4]interface  range  GigabitEthernet 1/0/3 to GigabitEthernet 1/0/7
[SW4-if-range]dis
[SW4-if-range]display  th
[SW4-if-range]display  this 
#
interface GigabitEthernet1/0/3
 port link-mode route
 combo enable fiber
 port link-aggregation group 55
#
return
[SW4-if-range]la
[SW4-if-range]lacp  mo
[SW4-if-range]lacp  mode  pa
[SW4-if-range]lacp  mode  passive 

[SW4-if-range]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: Route-Aggregation55
Aggregation Mode: Dynamic
Loadsharing Type: Shar
System ID: 0x8000, 4e54-0b64-0400
Local: 
  Port                Status  Priority Oper-Key  Flag
--------------------------------------------------------------------------------
  GE1/0/3             S       32768    1         {CDEFG}
  GE1/0/4             U       32768    1         {CG}