ENSP--以太网接口及链路配置实验

目录

一、实验目标

二、实验拓扑

三、交换机基础配置

四、手动模式下配置链路聚合

五、配置静态LACP模式链路聚合

六、配置文件


一、实验目标

  • 掌握接口速率的配置方法;
  • 掌握使用手动模式配置链路聚合的方法;
  • 掌握使用静态LACP模式配置链路聚合的方法;
  • 掌握在静态LACP模式下配置接口优先级的方法;

二、实验拓扑

三、交换机基础配置

华为交换机默认开启了自协商功能,这里要手动配置两台交换机上的G0/0/1、G0/0/2接口的速率。首先修改交换机名称,在分别查看两个接口的详细信息:

S1:

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname S1
[S1]display int g0/0/1
GigabitEthernet0/0/1 current state : UP
Line protocol current state : UP
Description:
Switch Port, PVID :    1, TPID : 8100(Hex), The Maximum Frame Length is 9216
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-cc4c-7d5b
Last physical up time   : 2022-03-27 16:42:50 UTC-08:00
Last physical down time : 2022-03-27 16:42:48 UTC-08:00
Current system time: 2022-03-27 16:49:17-08:00
Hardware address is 4c1f-cc4c-7d5b
    Last 300 seconds input rate 0 bytes/sec, 0 packets/sec
    Last 300 seconds output rate 0 bytes/sec, 0 packets/sec
    Input: 238 bytes, 2 packets
    Output: 21063 bytes, 177 packets
    Input:
      Unicast: 0 packets, Multicast: 2 packets
      Broadcast: 0 packets
    Output:
      Unicast: 0 packets, Multicast: 177 packets
      Broadcast: 0 packets
    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%

[S1]display int g0/0/2
GigabitEthernet0/0/2 current state : UP
Line protocol current state : UP
Description:
Switch Port, PVID :    1, TPID : 8100(Hex), The Maximum Frame Length is 9216
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-cc4c-7d5b
Last physical up time   : 2022-03-27 16:42:50 UTC-08:00
Last physical down time : 2022-03-27 16:42:48 UTC-08:00
Current system time: 2022-03-27 16:49:40-08:00
Hardware address is 4c1f-cc4c-7d5b
    Last 300 seconds input rate 0 bytes/sec, 0 packets/sec
    Last 300 seconds output rate 0 bytes/sec, 0 packets/sec
    Input: 119 bytes, 1 packets
    Output: 22372 bytes, 188 packets
    Input:
      Unicast: 0 packets, Multicast: 1 packets
      Broadcast: 0 packets
    Output:
      Unicast: 0 packets, Multicast: 188 packets
      Broadcast: 0 packets
    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%

[S1]

S2:

<huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[huawei]sysname S2
[S2]display int g0/0/1
GigabitEthernet0/0/1 current state : UP
Line protocol current state : UP
Description:
Switch Port, PVID :    1, TPID : 8100(Hex), The Maximum Frame Length is 9216
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-ccda-1f87
Last physical up time   : 2022-03-27 16:42:49 UTC-08:00
Last physical down time : 2022-03-27 16:42:48 UTC-08:00
Current system time: 2022-03-27 16:53:19-08:00
Hardware address is 4c1f-ccda-1f87
    Last 300 seconds input rate 0 bytes/sec, 0 packets/sec
    Last 300 seconds output rate 0 bytes/sec, 0 packets/sec
    Input: 34153 bytes, 287 packets
    Output: 357 bytes, 3 packets
    Input:
      Unicast: 0 packets, Multicast: 287 packets
      Broadcast: 0 packets
    Output:
      Unicast: 0 packets, Multicast: 3 packets
      Broadcast: 0 packets
    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%

[S2]display int g0/0/2
GigabitEthernet0/0/2 current state : UP
Line protocol current state : UP
Description:
Switch Port, PVID :    1, TPID : 8100(Hex), The Maximum Frame Length is 9216
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-ccda-1f87
Last physical up time   : 2022-03-27 16:42:49 UTC-08:00
Last physical down time : 2022-03-27 16:42:48 UTC-08:00
Current system time: 2022-03-27 16:53:26-08:00
Hardware address is 4c1f-ccda-1f87
    Last 300 seconds input rate 0 bytes/sec, 0 packets/sec
    Last 300 seconds output rate 0 bytes/sec, 0 packets/sec
    Input: 34510 bytes, 290 packets
    Output: 238 bytes, 2 packets
    Input:
      Unicast: 0 packets, Multicast: 290 packets
      Broadcast: 0 packets
    Output:
      Unicast: 0 packets, Multicast: 2 packets
      Broadcast: 0 packets
    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%

[S2]

在修改接口速率之前,要先关闭自协商功能,然后设置每台交换机两个端口的速率分别为100Mbit/S:

S1:

[S1]int g0/0/1	
[S1-GigabitEthernet0/0/1]undo negotiation auto 
[S1-GigabitEthernet0/0/1]speed 100
[S1-GigabitEthernet0/0/1]
Mar 27 2022 16:56:20-08:00 S1 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 ch
ange loop count is 0, and the maximum number of records is 4095.
[S1-GigabitEthernet0/0/1]q
[S1]int g0/0/2	
[S1-GigabitEthernet0/0/2]undo negotiation auto 
Mar 27 2022 16:56:50-08:00 S1 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 ch
ange loop count is 0, and the maximum number of records is 4095.sp	
[S1-GigabitEthernet0/0/2]speed 100
[S1-GigabitEthernet0/0/2]q
[S1]
Mar 27 2022 16:57:00-08:00 S1 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 ch
ange loop count is 0, and the maximum number of records is 4095.
[S1]

S2:

[S2]int g0/0/1	
[S2-GigabitEthernet0/0/1]undo negotiation auto 
[S2-GigabitEthernet0/0/1]speed 100
[S2-GigabitEthernet0/0/1]q
[S2]
Mar 27 2022 16:57:10-08:00 S2 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 ch
ange loop count is 0, and the maximum number of records is 4095.
[S2]int g0/0/2	
[S2-GigabitEthernet0/0/2]undo negotiation auto 
[S2-GigabitEthernet0/0/2]speed 100
[S2-GigabitEthernet0/0/2]q
[S2]
Mar 27 2022 16:57:30-08:00 S2 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 c
hange loop count is 0, and the maximum number of records is 4095.
[S2]

验证配置:

S1:

 S2:

四、手动模式下配置链路聚合

在S1、S2上创建Eth-Trunk1,并加入各自的两个接口:

S1:

[S1]int Eth-Trunk1
[S1-Eth-Trunk1]q
[S1]int g0/0/1
[S1-GigabitEthernet0/0/1]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[S1-GigabitEthernet0/0/1]
Mar 27 2022 17:08:25-08:00 S1 %%01IFNET/4/IF_STATE(l)[0]:Interface Eth-Trunk1 ha
s turned into UP state.
Mar 27 2022 17:08:25-08:00 S1 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 ch
ange loop count is 0, and the maximum number of records is 4095.q
[S1]int g0/0/2
[S1-GigabitEthernet0/0/2]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[S1-GigabitEthernet0/0/2]q
Mar 27 2022 17:08:35-08:00 S1 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 c
hange loop count is 0, and the maximum number of records is 4095.
[S1]

S2:

[S2]int Eth-Trunk 1
[S2-Eth-Trunk1]q
[S2]int g0/0/1
[S2-GigabitEthernet0/0/1]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[S2-GigabitEthernet0/0/1]
Mar 27 2022 17:10:25-08:00 S2 %%01IFNET/4/IF_STATE(l)[0]:Interface Eth-Trunk1 ha
s turned into UP state.
Mar 27 2022 17:10:25-08:00 S2 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 ch
ange loop count is 0, and the maximum number of records is 4095.q
[S2]int g0/0/2
[S2-GigabitEthernet0/0/2]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[S2-GigabitEthernet0/0/2]
Mar 27 2022 17:10:45-08:00 S2 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 c
hange loop count is 0, and the maximum number of records is 4095.
[S2-GigabitEthernet0/0/2]q
[S2]

验证Eth-Trunk 1:

S1:

 S2:

五、配置静态LACP模式链路聚合

首先删除S1、S2各接口下的配置:

S1:

[S1]int g0/0/1
[S1-GigabitEthernet0/0/1]undo eth-trunk 
Info: This operation may take a few seconds. Please wait for a moment...done.
[S1-GigabitEthernet0/0/1]q
[S1]int g0/0/2
[S1-GigabitEthernet0/0/2]undo eth-trunk
Info: This operation may take a few seconds. Please wait for a moment...done.
[S1-GigabitEthernet0/0/2]
Mar 27 2022 17:14:14-08:00 S1 %%01IFNET/4/IF_STATE(l)[1]:Interface Eth-Trunk1 ha
s turned into DOWN state.q
Mar 27 2022 17:14:15-08:00 S1 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 c
hange loop count is 0, and the maximum number of records is 4095.
[S1]q

S2:

[S2]int g0/0/1	
[S2-GigabitEthernet0/0/1]undo eth-trunk 
Info: This operation may take a few seconds. Please wait for a moment...done.
[S2-GigabitEthernet0/0/1]q
[S2]int g0/0/2	
[S2-GigabitEthernet0/0/2]undo eth-trunk 
Info: This operation may take a few seconds. Please wait for a moment...done.
[S2-GigabitEthernet0/0/2]
Mar 27 2022 17:14:52-08:00 S2 %%01IFNET/4/IF_STATE(l)[1]:Interface Eth-Trunk1 ha
s turned into DOWN state.q
[S2]
Mar 27 2022 17:14:56-08:00 S2 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 c
hange loop count is 0, and the maximum number of records is 4095.

重新创建Eth-Trunk 1,并配置其为静态LACP模式,同时加入各个接口:

S1:

[S1]int Eth-Trunk 1
[S1-Eth-Trunk1]mode lacp
[S1-Eth-Trunk1]q
[S1]int g0/0/1
[S1-GigabitEthernet0/0/1]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[S1-GigabitEthernet0/0/1]q
Mar 27 2022 17:17:25-08:00 S1 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 c
hange loop count is 0, and the maximum number of records is 4095.0
[S1]int g0/0/2
[S1-GigabitEthernet0/0/2]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...
Mar 27 2022 17:17:34-08:00 S1 %%01IFNET/4/IF_STATE(l)[2]:Interface Vlanif1 has t
urned into DOWN state.done.
[S1-GigabitEthernet0/0/2]q
[S1]
Mar 27 2022 17:17:35-08:00 S1 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 c
hange loop count is 0, and the maximum number of records is 4095.

S2:

[S2]int Eth-Trunk 1
[S2-Eth-Trunk1]mode lacp
[S2-Eth-Trunk1]q
[S2]int g0/0/1
[S2-GigabitEthernet0/0/1]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[S2-GigabitEthernet0/0/1]
Mar 27 2022 17:18:42-08:00 S2 %%01IFNET/4/IF_STATE(l)[2]:Interface Eth-Trunk1 ha
s turned into UP state.q
[S2]int g0/0/2
[S2-GigabitEthernet0/0/2]
Mar 27 2022 17:18:46-08:00 S2 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 c
hange loop count is 0, and the maximum number of records is 4095.eh	
[S2-GigabitEthernet0/0/2]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[S2-GigabitEthernet0/0/2]q
[S2]
Mar 27 2022 17:18:56-08:00 S2 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 c
hange loop count is 0, and the maximum number of records is 4095.

验证E他害怕Trunk信息,查看链路是或否协商成功:

S1:

 S2:

 在S1上配置LACP系统优先级为100,使其成为LACP主动端:

[S1]lacp priority 100
[S1]
Mar 27 2022 23:37:18-08:00 S1 %%01IFNET/4/IF_STATE(l)[0]:Interface Vlanif1 has t
urned into DOWN state.
Mar 27 2022 23:37:18-08:00 S1 %%01IFNET/4/IF_STATE(l)[1]:Interface Eth-Trunk1 ha
s turned into DOWN state.
Mar 27 2022 23:37:18-08:00 S1 %%01IFNET/4/IF_STATE(l)[2]:Interface Vlanif1 has t
urned into UP state.
Mar 27 2022 23:37:18-08:00 S1 %%01IFNET/4/IF_STATE(l)[3]:Interface Eth-Trunk1 ha
s turned into UP state.
Mar 27 2022 23:37:18-08:00 S1 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 c
hange loop count is 0, and the maximum number of records is 4095.
[S1]

配置接口优先级确定活动链路:

[S1]int g0/0/1	
[S1-GigabitEthernet0/0/1]lacp priority 100
[S1-GigabitEthernet0/0/1]q
Mar 27 2022 23:38:48-08:00 S1 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 c
hange loop count is 0, and the maximum number of records is 4095
[S1]int g0/0/2	
[S1-GigabitEthernet0/0/2]lacp priority 100
[S1-GigabitEthernet0/0/2]
[S1-GigabitEthernet0/0/2]q
[S1]
Mar 27 2022 23:39:08-08:00 S1 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 c
hange loop count is 0, and the maximum number of records is 4095.

验证Eth-Trunk 配置结果:

S1:

 S2:

六、配置文件

S1:

[S1]display current-configuration 
#
sysname S1
#
lacp priority 100
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password simple admin
 local-user admin service-type http
#
interface Vlanif1
#
interface MEth0/0/1
#
interface Eth-Trunk1
 mode lacp-static
#
interface GigabitEthernet0/0/1
 undo negotiation auto
 speed 100
 eth-trunk 1
 lacp priority 100
#
interface GigabitEthernet0/0/2
 undo negotiation auto
 speed 100
 eth-trunk 1
 lacp priority 100
#
interface GigabitEthernet0/0/3
#
interface GigabitEthernet0/0/4
#
interface GigabitEthernet0/0/5
#
interface GigabitEthernet0/0/6
#
interface GigabitEthernet0/0/7
#
interface GigabitEthernet0/0/8
#
interface GigabitEthernet0/0/9
#
interface GigabitEthernet0/0/10
#
interface GigabitEthernet0/0/11
#
interface GigabitEthernet0/0/12
#
interface GigabitEthernet0/0/13
#
interface GigabitEthernet0/0/14
#
interface GigabitEthernet0/0/15
#
interface GigabitEthernet0/0/16
#
interface GigabitEthernet0/0/17
#
interface GigabitEthernet0/0/18
#
interface GigabitEthernet0/0/19
#
interface GigabitEthernet0/0/20
#
interface GigabitEthernet0/0/21
#
interface GigabitEthernet0/0/22
#
interface GigabitEthernet0/0/23
#
interface GigabitEthernet0/0/24
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return
[S1]

S2:

[S2]display current-configuration 
#
sysname S2
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password simple admin
 local-user admin service-type http
#
interface Vlanif1
#
interface MEth0/0/1
#
interface Eth-Trunk1
 mode lacp-static
#
interface GigabitEthernet0/0/1
 undo negotiation auto
 speed 100
 eth-trunk 1
#
interface GigabitEthernet0/0/2
 undo negotiation auto
 speed 100
 eth-trunk 1
#
interface GigabitEthernet0/0/3
#
interface GigabitEthernet0/0/4
#
interface GigabitEthernet0/0/5
#
interface GigabitEthernet0/0/6
#
interface GigabitEthernet0/0/7
#
interface GigabitEthernet0/0/8
#
interface GigabitEthernet0/0/9
#
interface GigabitEthernet0/0/10
#
interface GigabitEthernet0/0/11
#
interface GigabitEthernet0/0/12
#
interface GigabitEthernet0/0/13
#
interface GigabitEthernet0/0/14
#
interface GigabitEthernet0/0/15
#
interface GigabitEthernet0/0/16
#
interface GigabitEthernet0/0/17
#
interface GigabitEthernet0/0/18
#
interface GigabitEthernet0/0/19
#
interface GigabitEthernet0/0/20
#
interface GigabitEthernet0/0/21
#
interface GigabitEthernet0/0/22
#
interface GigabitEthernet0/0/23
#
interface GigabitEthernet0/0/24
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return
[S2]

  • 3
    点赞
  • 23
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
enspEthernet Network Service Platform)是华为公司推出的一款以太网业务承载平台,用于提供高性能、高可靠性的以太网业务传输和承载能力。ensp配置主要包括以下几个方面: 1. 网络拓扑配置ensp支持配置网络拓扑,包括创建和管理网络设备、链路和节点等。可以通过命令行或图形界面进行配置。 2. VLAN配置ensp支持虚拟局域网(VLAN)的配置,可以创建和管理VLAN,设置VLAN的成员端口和VLAN间的互联关系。 3. STP(Spanning Tree Protocol)配置:STP是一种用于构建冗余网络的协议,可以防止网络中出现环路导致的数据包洪泛问题。ensp支持STP的配置,可以启用STP并设置相关参数,如优先级、根桥、端口状态等。 4. QoS(Quality of Service)配置ensp支持QoS的配置,可以对不同类型的流量进行分类和优先级处理,以保证关键业务的带宽和延迟要求。 5. 安全配置ensp支持安全功能的配置,如访问控制列表(ACL)、端口安全、用户认证等,以保护网络的安全性。 6. 性能监测和故障排除:ensp提供性能监测和故障排除功能,可以实时监测网络设备和链路的性能指标,并提供故障诊断和排除的工具。 以上是ensp的一般配置内容,具体的配置步骤和命令可以根据实际需求和设备型号进行调整。如果您有具体的ensp配置问题,请提供更详细的信息,我将尽力为您解答。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值