三层交换机的配置

一、实验:全网互通

1.二层交换机之间做lacp链路聚合
2.R1与R4有一条链路做浮动路由
在这里插入图片描述
配置SW1
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys SW1

[SW1]vlan  batch 10 20 30 40 50 60
Info: This operation may take a few seconds. Please wait for a moment...done.

[SW1]int e0/0/2
[SW1-Ethernet0/0/2]p l a 

[SW1-Ethernet0/0/2]int e0/0/1
[SW1-Ethernet0/0/1]p l a 
[SW1-Ethernet0/0/1]p d v 10
[SW1-Ethernet0/0/1]
Apr  7 2021 16:15:09-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 9, the c
hange loop count is 0, and the maximum number of records is 4095.

<SW1>sys
Enter system view, return user view with Ctrl+Z.
[SW1]int eth2
[SW1-Eth-Trunk2]p l a 
[SW1-Eth-Trunk2]
Apr  7 2021 16:32:59-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 10, the 
change loop count is 0, and the maximum number of records is 4095.


[SW1-Eth-Trunk2]p l t
[SW1-Eth-Trunk2]p t a v a
[SW1-Eth-Trunk2]
Apr  7 2021 16:33:49-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 12, the 
change loop count is 0, and the maximum number of records is 4095.
[SW1-Eth-Trunk2]mode lacp-	
[SW1-Eth-Trunk2]mode lacp-static 
[SW1-Eth-Trunk2]tru
Apr  7 2021 16:34:09-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 13, the 
change loop count is 0, and the maximum number of records is 4095.nk	
[SW1-Eth-Trunk2]trunkport e0/0/3
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Eth-Trunk2]
Apr  7 2021 16:34:18-08:00 SW1 %%01IFNET/4/IF_STATE(l)[0]:Interface Eth-Trunk2 h
as turned into UP state.
Apr  7 2021 16:34:19-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 14, the 
change loop count is 0, and the maximum number of records is 4095.
[SW1-Eth-Trunk2]trunkport e0/0/6
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Eth-Trunk2]trunkport e0/0/5
Apr  7 2021 16:34:29-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.
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Eth-Trunk2]dis eth	
[SW1-Eth-Trunk2]dis eth-trunk 2
Eth-Trunk2's state information is:
Local:
LAG ID: 2                   WorkingMode: STATIC                               
Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP         
System Priority: 32768      System ID: 4c1f-ccef-4460                         
Least Active-linknumber: 1  Max Active-linknumber: 8                          
Operate status: up          Number Of Up Port In Trunk: 3                     
--------------------------------------------------------------------------------
ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight
Ethernet0/0/3          Selected 100M     32768   4      545     10111100  1     
Ethernet0/0/6          Selected 100M     32768   7      545     10111100  1     
Ethernet0/0/5          Selected 100M     32768   6      545     10111100  1     

Partner:
--------------------------------------------------------------------------------
ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState
Ethernet0/0/3          32768    4c1f-cc57-5c1d  32768   4      545     10111100
Ethernet0/0/6          32768    4c1f-cc57-5c1d  32768   8      545     10111100
Ethernet0/0/5          32768    4c1f-cc57-5c1d  32768   7      545     10111100
    
[SW1-Eth-Trunk2]
Apr  7 2021 16:34:39-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-Eth-Trunk2]	
[SW1-Eth-Trunk2]q
[SW1]int e0/0/4
[SW1-Ethernet0/0/4]p l t 
[SW1-Ethernet0/0/4]p t a v a
[SW1-Ethernet0/0/4]
Apr  7 2021 16:37:59-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.

[SW1-Ethernet0/0/4] User interface con0 is available

配置sw2

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


***<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]
[Huawei-Ethernet0/0/1]
[Huawei-Ethernet0/0/1]dis this
#
interface Ethernet0/0/1
 port link-type access
 port default vlan 30
#
return
[Huawei-Ethernet0/0/1]
Apr  7 2021 15:55:40-08:00 Huawei %%01PHY/1/PHY(l)[0]:    Ethernet0/0/5: change 
status to down
Apr  7 2021 15:56:57-08:00 Huawei %%01PHY/1/PHY(l)[1]:    Ethernet0/0/5: change 
status to up
[Huawei-Ethernet0/0/1]int e0/0/5
[Huawei-Ethernet0/0/5]p l t
[Huawei-Ethernet0/0/5]p t a v a
[Huawei-Ethernet0/0/5]
Apr  7 2021 15:57:49-08:00 Huawei 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, t
he change loop count is 0, and the maximum number of records is 4095.
[Huawei-Ethernet0/0/5]
<Huawei>
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys SW2
[SW2]vlan batch 10 20 30 40 50 60
[SW2]int e0/0/1
[SW2-Ethernet0/0/1]p l a
[SW2-Ethernet0/0/1]p d v 3
Apr  7 2021 16:16:08-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 6, the c
hange loop count is 0, and the maximum number of records is 4095.0
[SW2-Ethernet0/0/1]int e0/0/2
[SW2-Ethernet0/0/2]p l a
[SW2-Ethernet0/0/2]p d v40
                   ^
Error:Ambiguous command found at '^' position.
[SW2-Ethernet0/0/2]p d v 40
[SW2-Ethernet0/0/2]
Apr  7 2021 16:16:58-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 9, the c
hange loop count is 0, and the maximum number of records is 4095.
<SW2>sys
Enter system view, return user view with Ctrl+Z.
[SW2]int eth1
[SW2-Eth-Trunk1]p l t
[SW2-Eth-Trunk1]p t a v a
[SW2-Eth-Trunk1]
Apr  7 2021 16:29:29-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 11, the 
change loop count is 0, and the maximum number of records is 4095.
[SW2-Eth-Trunk1]mode lacp-s	
[SW2-Eth-Trunk1]mode lacp-static 
[SW2-Eth-Trunk1]ru
Apr  7 2021 16:29:49-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 12, the 
change loop count is 0, and the maximum number of records is 409
[SW2-Eth-Trunk1]trunk	
[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 16:30:03-08:00 SW2 %%01IFNET/4/IF_STATE(l)[0]:Interface Eth-Trunk1 h
as turned into UP state.
[SW2-Eth-Trunk1]
Apr  7 2021 16:30:09-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 13, the 
change loop count is 0, and the maximum number of records is 4095.
[SW2-Eth-Trunk1]trunkport e0/0/8
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-Eth-Trunk1
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值