三层交换机、链路聚合

这里写目录标题

三层交换机

三层交换机通过硬件来交换和路由选择数据包。为了在硬件中处理数据包的高层信息,Cisco Catalyst交换机使用传统的MLS(Multilayer Switching,多层交换)体系结构或基于CEF(Cisco Express Forwarding,Cisco,Cisco快速转发)的MLS体系结构。简单来说三层交换机就等于二层交换机加上三层转发。
传统的MLS三层转发过程要重新封装2层
交换ASIC从三层引擎中获悉二层重写信息在硬件中创建一个MLS条目
负责重写和转发数据流中的后续数据包
基于CEF的MSL
CEF是一种基于拓扑转发的模型
–转发信息库(FIB)
–领接关系表

10.10.10.2/32 VLAN 100061BE393660016C72E9700
10.20.20.2/32 VLAN 2000C295E17430 016C72E9700

链路聚合

链路聚合是将椅子物理接口捆绑在一起作为一个逻辑接口来增加带宽的一种方法,又称为多接口负载均衡组或链路聚合组 ,相关协议标准请参考IEEE802.3ad。
通过在两台设备之间建立链路聚合组,可以提供更高的通讯带宽和更高的可靠性,链路聚合不仅为设备间通信提供了冗余保护,而且不需要对硬件进行升级。
工作模式:手工负载分担
手工负载分担(Manual load-balance)模式下,Eth-Trunk的建立、成员接口的加入由手工配置,没有LACP协议报文的参与。
该模式下所有活动链路都参与数据的转发,平均分担流量,因此称为负载分担模式。
如果某活动链路故障,链路聚合组自动在剩下的活动链路中平均分担流量。当需要在两个直连设备间提供一个较大的链路带宽而设备不支持LACP协议时,可以使用手工负载分担模式。
工作模式:静态LACP(cont.)
静态LACP模式与手工负载分担模式的主要区别为:静态LACP有备份链路,而手工负载分担模式所有成员均处于转发状态,分担负载流量
和静态LACP模式相对应的还包括动态LACP模式。动态LACP模式的链路聚合,从Eth-Trunk的创建到加入成员接口都不需要人工的干预,由LACP协议自动协商完成。虽然简单但是不便于管理。

实验

在这里插入图片描述

在这里插入图片描述
在这里插入图片描述
----------------------按照当前配置依次配置后面PC
LSW1 、2、3中依次配置VLAN

The device is running!

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys	
[Huawei]sysname SW3
[SW3]
Apr  7 2021 16:24:42-08:00 SW3 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 4, the c
hange loop count is 0, and the maximum number of records is 4095.
[SW3]
[SW3]
[SW3]
[SW3]vlan b	
[SW3]vlan batch 50 60
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW3] int e0/0/1
[SW3-Ethernet0/0/1]int
Apr  7 2021 16:27:12-08:00 SW3 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 5, the c
hange loop count is 0, and the maximum number of records is 40
[SW3-Ethernet0/0/1]
[SW3-Ethernet0/0/1]
[SW3-Ethernet0/0/1]p l a 
[SW3-Ethernet0/0/1]p d v 50
[SW3-Ethernet0/0/1]
Apr  7 2021 16:27:22-08:00 SW3 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 7, the c
hange loop count is 0, and the maximum number of records is 4095.
[SW3-Ethernet0/0/1]int e0/0/2
[SW3-Ethernet0/0/2]p l a 
[SW3-Ethernet0/0/2]p d v 60
Apr  7 2021 16:27:42-08:00 SW3 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 8, the c
hange loop count is 0, and the maximum number of records is 4095.
[SW3-Ethernet0/0/2]
Apr  7 2021 16:27:52-08:00 SW3 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 9, the c
hange loop count is 0, and the maximum number of records is 4095.
[SW3-Ethernet0/0/2]
[SW3-Ethernet0/0/2]int e0/0/3
[SW3-Ethernet0/0/3]p l t 
[SW3-Ethernet0/0/3]p t a v a
Apr  7 2021 16:30:02-08:00 SW3 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 10, the 
change loop count is 0, and the maximum number of records is 4095.
[SW3-Ethernet0/0/3]
[SW3-Ethernet0/0/3]
[SW3-Ethernet0/0/3]
Apr  7 2021 16:30:12-08:00 SW3 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 11, the 
change loop count is 0, and the maximum number of records is 4095. User interface con0 is available



Please Press ENTER.

<SW3>
<SW3>sys
Enter system view, return user view with Ctrl+Z.
[SW3]int e0/0/3
[SW3-Ethernet0/0/3]p l t
[SW3-Ethernet0/0/3]p l a v a
                   ^
Error:Ambiguous command found at '^' position.
[SW3-Ethernet0/0/3]p t a v a
[SW3-Ethernet0/0/3] User interface con0 is available



Please Press ENTER.

<SW3>SYS
Enter system view, return user view with Ctrl+Z.
[SW3]INT E0/0/3
[SW3-Ethernet0/0/3]
<SW3>
<SW3>sys
Enter system view, return user view with Ctrl+Z.
[SW3]int e0/0/4
[SW3-Ethernet0/0/4]p l t 
[SW3-Ethernet0/0/4]p 
Apr  7 2021 17:36:54-08:00 SW3 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 12, the 
change loop count is 0, and the maximum number of records is 4095.t a v a
[SW3-Ethernet0/0/4]
[SW3-Ethernet0/0/4]
Apr  7 2021 17:37:04-08:00 SW3 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 13, the 
change loop count is 0, and the maximum number of records is 4095.
[SW3-Ethernet0/0/4]q
[SW3]v	
[SW3]vlan b	
[SW3]vlan batch 10 20 30 40
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW3]
Apr  7 2021 17:40:04-08:00 SW3 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 14, the 
change loop count is 0, and the maximum number of records is 4095.
<SW3>sys
Enter system view, return user view with Ctrl+Z.
[SW3]int e0/0/4
[SW3-Ethernet0/0/4]dis this
#
interface Ethernet0/0/4
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
return
[SW3-Ethernet0/0/4]undo port trunk allow-pass vlan 2 to 4094
[SW3-Ethernet0/0/4]undo 
Apr  7 2021 19:00:46-08:00 SW3 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 15, the 
change loop count is 0, and the maximum number of records is 4095.
                        ^
Error:Incomplete command found at '^' position.
[SW3-Ethernet0/0/4]undo port link-type 
[SW3-Ethernet0/0/4]
Apr  7 2021 19:01:06-08:00 SW3 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 16, the 
change loop count is 0, and the maximum number of records is 4095.
[SW3-Ethernet0/0/4]q
[SW3]int e	
[SW3]int Eth-t	
[SW3]int Eth-Trunk 2
[SW3-Eth-Trunk2]t	
[SW3-Eth-Trunk2]trunkport e0/0/6
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW3-Eth-Trunk2]
Apr  7 2021 19:02:37-08:00 SW3 %%01IFNET/4/IF_STATE(l)[0]:Interface Eth-Trunk2 h
as turned into UP state.trunkport e0/0/5
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW3-Eth-Trunk2]trunkport e0/0/4
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW3-Eth-Trunk2]
Apr  7 2021 19:02:46-08:00 SW3 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 19, the 
change loop count is 0, and the maximum number of records is 4095.dis 	
[SW3-Eth-Trunk2]dis e	
[SW3-Eth-Trunk2]dis eth	
[SW3-Eth-Trunk2]dis eth-trunk 2
Eth-Trunk2'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                     
--------------------------------------------------------------------------------
PortName                      Status      Weight 
Ethernet0/0/6                 Up          1      
Ethernet0/0/5                 Up          1      
Ethernet0/0/4                 Up          1      
  
[SW3-Eth-Trunk2]p l t
[SW3-Eth-Trunk2]
Apr  7 2021 19:03:26-08:00 SW3 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 20, the 
change loop count is 0, and the maximum number of records is 4095.p t
                ^
Error:Ambiguous command found at '^' position.
[SW3-Eth-Trunk2]p t a v a
[SW3-Eth-Trunk2]
Apr  7 2021 19:03:36-08:00 SW3 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 21, the 
change loop count is 0, and the maximum number of records is 4095.
<SW3>
<SW3> User interface con0 is available



Please Press ENTER.

<SW3>
<SW3> User interface con0 is available



Please Press ENTER.

[SW1]vlan 10
[SW1-vlan10]int e0/0/1
[SW1-Ethernet0/0/1]port link-type access
[SW1-Ethernet0/0/1]port default vlan 10
<SW1>sys
Enter system view, return user view with Ctrl+Z.
[SW1]int e	
[SW1]int Eth-t	
[SW1]int Eth-Trunk 1
[SW1-Eth-Trunk1]mo	
[SW1-Eth-Trunk1]mode m	
[SW1-Eth-Trunk1]mode manual l	
[SW1-Eth-Trunk1]mode manual load-balance 
[SW1-Eth-Trunk1]dis this
#
interface Eth-Trunk1
#
return
[SW1-Eth-Trunk1]trun	
[SW1-Eth-Trunk1]trunkport e0/0/4
Info: This operation may take a few seconds. Please wait for a moment...
Error: The port has other configurations. Please clear them first.
The error port is Ethernet0/0/4.
[SW1-Eth-Trunk1]int e0/0/4
[SW1-Ethernet0/0/4]
[SW1-Ethernet0/0/4]dis this
#
interface Ethernet0/0/4
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
return
[SW1-Ethernet0/0/4]undo po	
[SW1-Ethernet0/0/4]undo portt	
[SW1-Ethernet0/0/4]un	
[SW1-Ethernet0/0/4]undo po	
[SW1-Ethernet0/0/4]undo port t	
[SW1-Ethernet0/0/4]undo port trunk a	
[SW1-Ethernet0/0/4]undo port trunk allow-pass v	
[SW1-Ethernet0/0/4]undo port trunk allow-pass vlan 2 to 4094
[SW1-Ethernet0/0/4]undo 
Apr  7 2021 18:51:06-08:00 SW1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 15, the 
change loop count is 0, and the maximum number of records is 4095.por	
[SW1-Ethernet0/0/4]undo port l	
[SW1-Ethernet0/0/4]undo port link-t	
[SW1-Ethernet0/0/4]undo port link-type 
[SW1-Ethernet0/0/4]
Apr  7 2021 18:51:16-08:00 SW1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 16, the 
change loop count is 0, and the maximum number of records is 4095.
[SW1-Ethernet0/0/4]dis this
#
interface Ethernet0/0/4
#
return
[SW1-Ethernet0/0/4]int e	
[SW1-Ethernet0/0/4]int et	
[SW1-Ethernet0/0/4]q
[SW1]int e	
[SW1]int Eth-t	
[SW1]int Eth-Trunk 1
[SW1-Eth-Trunk1]t	
[SW1-Eth-Trunk1]trunkport e0/0/4
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Eth-Trunk1]
Apr  7 2021 18:52:10-08:00 SW1 %%01IFNET/4/IF_STATE(l)[0]:Interface Eth-Trunk1 h
as turned into UP state.trunkport e0/0/
Apr  7 2021 18:52:16-08:00 SW1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 17, the 
change loop count is 0, and the maximum number of records is 4095.5
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Eth-Trunk1]
[SW1-Eth-Trunk1]
[SW1-Eth-Trunk1]trunkport e0/0/5
Info: This operation may take a few seconds. Please wait for a moment...
Error: Failed to add the port into the trunk because the port has been a member 
of the trunk.
The error port is Ethernet0/0/5.
[SW1-Eth-Trunk1]
Apr  7 2021 18:52:26-08:00 SW1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 18, the 
change loop count is 0, and the maximum number of records is 4095.trunkport e0/0
/6
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Eth-Trunk1]
Apr  7 2021 18:52:36-08:00 SW1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 19, the 
change loop count is 0, and the maximum number of records is 4095.
[SW1-Eth-Trunk1]dis this
#
interface Eth-Trunk1
#
return
[SW1-Eth-Trunk1]dis this e	
[SW1-Eth-Trunk1]dis this eth-t	
[SW1-Eth-Trunk1]dis this eth-trunk 1
                         ^
Error:Too many parameters found at '^' position.
[SW1-Eth-Trunk1]dis e	
[SW1-Eth-Trunk1]dis et	
[SW1-Eth-Trunk1]dis eth-trunk 1
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                     
--------------------------------------------------------------------------------
PortName                      Status      Weight 
Ethernet0/0/4                 Up          1      
Ethernet0/0/5                 Up          1      
Ethernet0/0/6                 Up          1      
  
[SW1-Eth-Trunk1]
[SW1-Eth-Trunk1]p l t
[SW1-Eth-Trunk1]p t a v a
[SW1-Eth-Trunk1]
Apr  7 2021 18:58:06-08:00 SW1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 20, the 
change loop count is 0, and the maximum number of records is 4095.
[SW1-Eth-Trunk1]dis this
#
interface Eth-Trunk1
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
return
[SW1-Eth-Trunk1]
Apr  7 2021 18:58:16-08:00 SW1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 21, the 
change loop count is 0, and the maximum number of records is 4095.
<SW1>
<SW1> User interface con0 is available



Please Press ENTER.

``

```c
<SW2>sys
Enter system view, return user view with Ctrl+Z.
[SW2]
[SW2]int e0/0/4
[SW2-Ethernet0/0/4]dis this
#
interface Ethernet0/0/4
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
return
[SW2-Ethernet0/0/4]undo po	
[SW2-Ethernet0/0/4]undo portt	
[SW2-Ethernet0/0/4]undo port t	
[SW2-Ethernet0/0/4]undo port trunk a	
[SW2-Ethernet0/0/4]undo port trunk allow-pass v	
[SW2-Ethernet0/0/4]undo port trunk allow-pass vlan 2 to 4094
[SW2-Ethernet0/0/4]undo 
Apr  7 2021 18:55:16-08:00 SW2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 17, the 
change loop count is 0, and the maximum number of records is 4095.
                        ^
Error:Incomplete command found at '^' position.
[SW2-Ethernet0/0/4]undo po	
[SW2-Ethernet0/0/4]undo port l	
[SW2-Ethernet0/0/4]undo port link-t	
[SW2-Ethernet0/0/4]undo port link-type 
[SW2-Ethernet0/0/4]dis this
#
interface Ethernet0/0/4
#
return
[SW2-Ethernet0/0/4]
Apr  7 2021 18:55:36-08:00 SW2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 18, the 
change loop count is 0, and the maximum number of records is 4095.
[SW2-Ethernet0/0/4]int e	
[SW2-Ethernet0/0/4]q
[SW2]int e	
[SW2]int Eth-t	
[SW2]int Eth-Trunk 1
[SW2-Eth-Trunk1]
[SW2-Eth-Trunk1]
[SW2-Eth-Trunk1]tr	
[SW2-Eth-Trunk1]trunkport e0/0/4
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-Eth-Trunk1]
Apr  7 2021 18:56:12-08:00 SW2 %%01IFNET/4/IF_STATE(l)[0]:Interface Eth-Trunk1 h
as turned into UP state.
[SW2-Eth-Trunk1]trunkport e0/0/5
Apr  7 2021 18:56:16-08:00 SW2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 19, the 
change loop count is 0, and the maximum number of records is 4095.
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-Eth-Trunk1]trunkport e0/0/6
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-Eth-Trunk1]dis
Apr  7 2021 18:56:26-08:00 SW2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 21, the 
change loop count is 0, and the maximum number of records is 4095. e	
[SW2-Eth-Trunk1]dis et	
[SW2-Eth-Trunk1]dis eth-trunk 
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                     
--------------------------------------------------------------------------------
PortName                      Status      Weight 
Ethernet0/0/4                 Up          1      
Ethernet0/0/5                 Up          1      
Ethernet0/0/6                 Up          1      
  
[SW2-Eth-Trunk1]p l t 
[SW2-Eth-Trunk1]p t a v a
[SW2-Eth-Trunk1]
Apr  7 2021 18:58:26-08:00 SW2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 23, the 
change loop count is 0, and the maximum number of records is 4095.
[SW2-Eth-Trunk1]q
[SW2]int e0/0/7
[SW2-Ethernet0/0/7]dis this
#
interface Ethernet0/0/7
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
return
[SW2-Ethernet0/0/7]undo port trunk allow-pass vlan 2 to 4094
[SW2-Ethernet0/0/7]dun
Apr  7 2021 18:59:16-08:00 SW2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 24, the 
change loop count is 0, and the maximum number of records is 40
[SW2-Ethernet0/0/7]undo p	
[SW2-Ethernet0/0/7]undo por	
[SW2-Ethernet0/0/7]undo port t	
[SW2-Ethernet0/0/7]undo port l	
[SW2-Ethernet0/0/7]undo port li	
[SW2-Ethernet0/0/7]undo port link-t	
[SW2-Ethernet0/0/7]undo port link-type 
[SW2-Ethernet0/0/7]
Apr  7 2021 19:00:16-08:00 SW2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 25, the 
change loop count is 0, and the maximum number of records is 4095.
[SW2-Ethernet0/0/7]q
[SW2]int e	
[SW2]int Eth-t	
[SW2]int Eth-Trunk 2
[SW2-Eth-Trunk2]t	
[SW2-Eth-Trunk2]trunkport e0/0/9
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-Eth-Trunk2]
Apr  7 2021 19:01:41-08:00 SW2 %%01IFNET/4/IF_STATE(l)[1]:Interface Eth-Trunk2 h
as turned into UP state.trunkport e0/0/8
Apr  7 2021 19:01:46-08:00 SW2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 26, the 
change loop count is 0, and the maximum number of records is 4095.
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-Eth-Trunk2]trunkport e0/0/7
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-Eth-Trunk2]dis this
#
interface Eth-Trunk2
#
return
[SW2-Eth-Trunk2]dis
Apr  7 2021 19:01:56-08:00 SW2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 28, the 
change loop count is 0, and the maximum number of records is 4095. t	
[SW2-Eth-Trunk2]dis e	
[SW2-Eth-Trunk2]dis e	
[SW2-Eth-Trunk2]dis et	
[SW2-Eth-Trunk2]dis eth-trunk 
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                     
--------------------------------------------------------------------------------
PortName                      Status      Weight 
Ethernet0/0/4                 Up          1      
Ethernet0/0/5                 Up          1      
Ethernet0/0/6                 Up          1      
  
Eth-Trunk2'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                     
--------------------------------------------------------------------------------
PortName                      Status      Weight 
Ethernet0/0/9                 Up          1      
Ethernet0/0/8                 Up          1      
Ethernet0/0/7                 Up          1      
  
[SW2-Eth-Trunk2]
[SW2-Eth-Trunk2]p l t
[SW2-Eth-Trunk2]p t a
Apr  7 2021 19:03:06-08:00 SW2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 29, the 
change loop count is 0, and the maximum number of records is 4095. v a
[SW2-Eth-Trunk2]
[SW2-Eth-Trunk2]dis this
#
interface Eth-Trunk2
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
return
[SW2-Eth-Trunk2]
Apr  7 2021 19:03:16-08:00 SW2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 30, the 
change loop count is 0, and the maximum number of records is 4095.
<SW2>
<SW2> User interface con0 is available

[SW4]int Vlanif 30
[SW4-Vlanif30]dis this
#
interface Vlanif30
 ip address 192.168.3.254 255.255.255.0
#
return
[SW4-Vlanif30]int Vlanif 40
[SW4-Vlanif40]dis this
#
interface Vlanif40
 ip address 192.168.4.254 255.255.255.0
#
return
[SW4-Vlanif40]int Vlanif 50
[SW4-Vlanif50]dis this
#
interface Vlanif50
 ip address 192.168.5.254 255.255.255.0
#
return
[SW4-Vlanif50]int Vlanif 60
[SW4-Vlanif60]dis this
#
interface Vlanif60
 ip address 192.168.6.254 255.255.255.0
#
return
[SW4-Vlanif60]
[SW4-Vlanif60] User interface con0 is available



Please Press ENTER.

<SW4>
<SW4>sys
Enter system view, return user view with Ctrl+Z.
[SW4]vlan b	
[SW4]vlan batch 70
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW4]
Apr  7 2021 19:15:46-08:00 SW4 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 18, the 
change loop count is 0, and the maximum number of records is 4095.
[SW4]int g0/0/4
[SW4-GigabitEthernet0/0/4]p l a
[SW4-GigabitEthernet0/0/4]p d v 70
Apr  7 2021 19:16:26-08:00 SW4 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 19, the 
change loop count is 0, and the maximum number of records is 4095.
[SW4-GigabitEthernet0/0/4]
[SW4-GigabitEthernet0/0/4]
Apr  7 2021 19:16:36-08:00 SW4 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 20, the 
change loop count is 0, and the maximum number of records is 4095.
[SW4-GigabitEthernet0/0/4]dis this
#
interface GigabitEthernet0/0/4
 port link-type access
 port default vlan 70
#
return
[SW4-GigabitEthernet0/0/4]q
[SW4]int vlan 70
[SW4-Vlanif70]
Apr  7 2021 19:19:46-08:00 SW4 %%01IFNET/4/IF_STATE(l)[0]:Interface Vlanif70 has
 turned into UP state.
[SW4-Vlanif70]ip add 192.168.7.1 24
[SW4-Vlanif70]
Apr  7 2021 19:20:16-08:00 SW4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
 on the interface Vlanif70 has entered the UP state.
Apr  7 2021 19:20:16-08:00 SW4 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 21, the 
change loop count is 0, and the maximum number of records is 4095.
[SW4-Vlanif70]
[SW4-Vlanif70]
[SW4-Vlanif70]q
[SW4]ip rou	
[SW4]ip route-s	
[SW4]ip route-static 192.168.70.254 24 192.168.7.2
Info: The destination address and mask of the configured static route mismatched
, and the static route 192.168.70.0/24 was generated.
[SW4]
Apr  7 2021 19:28:56-08:00 SW4 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 22, the 
change loop count is 0, and the maximum number of records is 4095.
[SW4]ip rou	
[SW4]ip route-s	
[SW4]ip route-static 192.168.70.0 24 192.168.7.2
Error: The route already exists.
[SW4]undo 192.168.70.254 24 192.168.7.2
          ^
Error: Unrecognized command found at '^' position.
[SW4] User interface con0 is available



Please Press ENTER.

<SW4>sys
Enter system view, return user view with Ctrl+Z.
[SW4]ip rou	
[SW4]ip route-s	
[SW4]ip route-static 192.168.70.0 24 192.168.7.2
Error: The route already exists.
[SW4]
<SW4>
<SW4> User interface con0 is available



Please Press ENTER.

The device is running!

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R1
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.7.2 24
Apr  7 2021 19:22:52-08:00 R1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R1-GigabitEthernet0/0/0]itn g0/0/2
                         ^
Error: Unrecognized command found at '^' position.
[R1-GigabitEthernet0/0/0]int g0/0/2
[R1-GigabitEthernet0/0/2]ip add 192.168.11.2 24
Apr  7 2021 19:23:12-08:00 R1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[R1-GigabitEthernet0/0/2]int g0/0/1
[R1-GigabitEthernet0/0/1]ip add 192.168.8.1 24
[R1-GigabitEthernet0/0/1]
Apr  7 2021 19:23:29-08:00 R1 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R1-GigabitEthernet0/0/1]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<R1>sys
Enter system view, return user view with Ctrl+Z.
[R1]ip rou	
[R1]ip route-s	
[R1]ip route-static 192.168.70.254 24 192.168.8.2

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<R1>sys
Enter system view, return user view with Ctrl+Z.
[R1]ip rou	
[R1]ip route-s	
[R1]dis this
[V200R003C00]
#
 sysname R1
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent 
#
 clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
 drop illegal-mac alarm
#
 set cpu-usage threshold 80 restore 75
#
return
[R1]ip rou	
[R1]ip route-s	
[R1]ip route-static 192.168.70.0 24 192.168.8.2
[R1]ip rou	
[R1]ip route-s	
[R1]ip route-static 192.168.70.0 24 192.168.11.1
[R1]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<R1>sys
Enter system view, return user view with Ctrl+Z.
[R1]ip ou	
[R1]ip rou	
[R1]ip route-s	
[R1]ip route-static 0.0.0.0 0 192.168.7.1
[R1]
<R1>
<R1>
<R1>
<R1>####
The device is running!

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R2
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 192.168.8.2 24
Apr  7 2021 19:23:45-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R2-GigabitEthernet0/0/0]int g0/0/1
[R2-GigabitEthernet0/0/1]ip add 192.168.9.1 24
Apr  7 2021 19:24:06-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R2-GigabitEthernet0/0/1]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]ip rou	
[R2]ip route-s	
[R2]ip route-static 192.168.70.0 24 192.168.9.2
[R2]ip rou	
[R2]ip route-s	
[R2]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]ip rou	
[R2]ip route-s	
[R2]ip route-static 0.0.0.0 0 192.168.8.1
[R2]
<R2>
<R2>###
The device is running!

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R3
[R3]int g0/0/1
[R3-GigabitEthernet0/0/1]ip add 192.168.10.1 24
Apr  7 2021 19:25:00-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R3-GigabitEthernet0/0/1]
Apr  7 2021 19:25:00-08:00 R3 ARP/4/ARP_IPCONFLICT_TRAP:OID 16777216.50331648.10
0663296.16777216.67108864.16777216.3674669056.83886080.419430400.2063597568.3355
4432.100663296 ARP detects IP conflict. (IP address=1.10.168.192, Local interfac
e=GigabitEthernet0/0/1, Local MAC=00e0-fc82-5e98, Local vlan=0, Local CE vlan=0,
 Receive interface=GigabitEthernet0/0/1, Receive MAC=00e0-fce5-4993, Receive vla
n=0, Receive CE vlan=0, IP conflict type=Local IP conflict). 
[R3-GigabitEthernet0/0/1]
Apr  7 2021 19:25:00-08:00 R3 %%01ARP/4/ARP_DUPLICATE_IPADDR(l)[1]:Received an A
RP packet with a duplicate IP address from the interface. (IpAddress=1.10.168.19
2, InterfaceName=GigabitEthernet0/0/1, MacAddress=00e0-fce5-4993) 
[R3-GigabitEthernet0/0/1]''
                         ^
Error: Unrecognized command found at '^' position.
[R3-GigabitEthernet0/0/1]int g0/0/0
[R3-GigabitEthernet0/0/0]ip add 192.168.11.1 24
Apr  7 2021 19:25:28-08:00 R3 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R3-GigabitEthernet0/0/0]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<R3>sys
Enter system view, return user view with Ctrl+Z.
[R3]ip rou	
[R3]ip route-s	
[R3]ip route-static 192.168.70.0 24 192.168.10.1
Error: The next-hop address is invalid.
[R3]ip route-static 192.168.70.0 24 192.168.10.2
[R3]ip rou	
[R3]ip route-s	
[R3]ip route-static 0.0.0.0 0 192.168.11.2
[R3]int g0/0/1
[R3-GigabitEthernet0/0/1]dis this
[V200R003C00]
#
interface GigabitEthernet0/0/1
 ip address 192.168.10.1 255.255.255.0 
#
return
[R3-GigabitEthernet0/0/1]
Apr  7 2021 19:45:10-08:00 R3 ARP/4/ARP_IPCONFLICT_TRAP:OID 16777216.50331648.10
0663296.16777216.67108864.16777216.3674669056.83886080.419430400.2063597568.3355
4432.100663296 ARP detects IP conflict. (IP address=1.10.168.192, Local interfac
e=GigabitEthernet0/0/1, Local MAC=00e0-fc82-5e98, Local vlan=0, Local CE vlan=0,
 Receive interface=GigabitEthernet0/0/1, Receive MAC=00e0-fce5-4993, Receive vla
n=0, Receive CE vlan=0, IP conflict type=Local IP conflict). 
[R3-GigabitEthernet0/0/1]dis this
[V200R003C00]
#
interface GigabitEthernet0/0/1
 ip address 192.168.10.1 255.255.255.0 
#
return
[R3-GigabitEthernet0/0/1]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<R3>
<R3>##
The device is running!

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R4
[R4]int g0/0/0
[R4-GigabitEthernet0/0/0]ip add 192.168.9.2 24
Apr  7 2021 19:24:23-08:00 R4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R4-GigabitEthernet0/0/0]int g0/0/1
[R4-GigabitEthernet0/0/1]ip add 192.168.10.1
                                             ^
Error:Incomplete command found at '^' position.
[R4-GigabitEthernet0/0/1]ip add 192.168.10.1 24
Apr  7 2021 19:24:38-08:00 R4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R4-GigabitEthernet0/0/1]
Apr  7 2021 19:25:00-08:00 R4 ARP/4/ARP_IPCONFLICT_TRAP:OID 16777216.50331648.10
0663296.16777216.67108864.16777216.3674669056.83886080.419430400.2063597568.3355
4432.100663296 ARP detects IP conflict. (IP address=1.10.168.192, Local interfac
e=GigabitEthernet0/0/1, Local MAC=00e0-fce5-4993, Local vlan=0, Local CE vlan=0,
 Receive interface=GigabitEthernet0/0/1, Receive MAC=00e0-fc82-5e98, Receive vla
n=0, Receive CE vlan=0, IP conflict type=Local IP conflict). 
[R4-GigabitEthernet0/0/1]
Apr  7 2021 19:25:00-08:00 R4 %%01ARP/4/ARP_DUPLICATE_IPADDR(l)[2]:Received an A
RP packet with a duplicate IP address from the interface. (IpAddress=1.10.168.19
2, InterfaceName=GigabitEthernet0/0/1, MacAddress=00e0-fc82-5e98) 
[R4-GigabitEthernet0/0/1]q
[R4]int g0/0/2
[R4-GigabitEthernet0/0/2]
[R4-GigabitEthernet0/0/2]
[R4-GigabitEthernet0/0/2]ip add 192.168.70.254 24
[R4-GigabitEthernet0/0/2]
Apr  7 2021 19:27:08-08:00 R4 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[R4-GigabitEthernet0/0/2]ip r	
[R4-GigabitEthernet0/0/2]ip rout	
[R4-GigabitEthernet0/0/2]dis this
[V200R003C00]
#
interface GigabitEthernet0/0/2
 ip address 192.168.70.254 255.255.255.0 
#
return
[R4-GigabitEthernet0/0/2]q
[R4]ip r	
[R4]ip rou	
[R4]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<R4>s
    ^
Error:Ambiguous command found at '^' position.
<R4>sys
Enter system view, return user view with Ctrl+Z.
[R4]ip rou	
[R4]ip route-s	
[R4]ip route-static 0.0.0.0 0 192.168.9.1
[R4]ip route-static 0.0.0.0 0 192.168.10.1
Error: The next-hop address is invalid.
[R4]int g0/0/1
[R4-GigabitEthernet0/0/1]dis this
[V200R003C00]
#
interface GigabitEthernet0/0/1
 ip address 192.168.10.1 255.255.255.0 
#
return
[R4-GigabitEthernet0/0/1]
Apr  7 2021 19:45:10-08:00 R4 ARP/4/ARP_IPCONFLICT_TRAP:OID 16777216.50331648.10
0663296.16777216.67108864.16777216.3674669056.83886080.419430400.2063597568.3355
4432.100663296 ARP detects IP conflict. (IP address=1.10.168.192, Local interfac
e=GigabitEthernet0/0/1, Local MAC=00e0-fce5-4993, Local vlan=0, Local CE vlan=0,
 Receive interface=GigabitEthernet0/0/1, Receive MAC=00e0-fc82-5e98, Receive vla
n=0, Receive CE vlan=0, IP conflict type=Local IP conflict). 
[R4-GigabitEthernet0/0/1]ip add 192.168.10.2
                                             ^
Error:Incomplete command found at '^' position.
[R4-GigabitEthernet0/0/1]ip add 192.168.10.2 24
[R4-GigabitEthernet0/0/1]dis this
[V200R003C00]
#
interface GigabitEthernet0/0/1
 ip address 192.168.10.2 255.255.255.0 
#
return
[R4-GigabitEthernet0/0/1]0.0.0.0 0 192.168.10.1
                         ^
Error: Unrecognized command found at '^' position.
[R4-GigabitEthernet0/0/1]ip rou	
[R4-GigabitEthernet0/0/1]ip rou-s	
[R4-GigabitEthernet0/0/1]ip rou	
[R4-GigabitEthernet0/0/1]q
[R4]ip rou	
[R4]ip route-s	
[R4]ip rou	
[R4]ip route-s	
[R4]ip route-static 0.0.0.0 0 192.168.10.1
[R4]int g0/0/2
[R4-GigabitEthernet0/0/2]ip add 192.168.70.254
                                               ^
Error:Incomplete command found at '^' position.
[R4-GigabitEthernet0/0/2]ip add 192.168.70.254 24
Error: The address already exists.
[R4-GigabitEthernet0/0/2]
<R4>
<R4>##

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值