关键词:
素材来源:华为路由器配置指南
一边学习一边整理试验笔记,并与大家分享,侵权即删,谢谢支持!
附上汇总贴:玩转华为ENSP模拟器系列 | 合集_COCOgsta的博客-CSDN博客_华为模拟器实验
目标
本举例介绍通过配置LLDP基本功能,使得NMS可以获取到网络的拓扑信息。
组网需求
如图1所示,DeviceA和DeviceB、DeviceC之间有可达链路,DeviceA、DeviceC与NMS之间有可达路由。在配置LLDP功能之前,DeviceA无法获取DeviceB和DeviceC的状态信息,NMS也不能通过SNMP报文获取DeviceA、DeviceB和DeviceC之间的拓扑结构信息。
配置LLDP功能之后,设备间可以通过交互LLDP报文获取彼此的状态信息。同时NMS可以通过LLDP管理IP地址查找DeviceA、DeviceB和DeviceC,获取它们之间的拓扑信息。
配置思路
- 配置DeviceA、DeviceB和DeviceC的相关接口的IP地址和路由协议,使网络层路由可达。
- 使能DeviceA、DeviceB和DeviceC的全局LLDP功能。
- 配置DeviceA、DeviceB和DeviceC的管理IP地址,该IP地址用于在邻居节点中标识本端设备。
- 配置DeviceA、DeviceB和DeviceC的LLDP相关参数,优化LLDP的性能。
- 配置DeviceA、DeviceB和DeviceC的LLDP告警功能,合理配置设备发送LLDP告警的延迟时间,既能达到告警的目的,也能降低系统资源的消耗。
操作步骤
- 配置相关接口的IP地址和路由协议
- 使能DeviceA、DeviceB和DeviceC的全局LLDP功能。
配置DeviceA
DeviceA:
sysname DeviceA
lldp enable
配置DeviceB
DeviceB:
sysname DeviceB
lldp enable
配置DeviceC
DeviceC:
sysname DeviceC
lldp enable
- 配置DeviceA、DeviceB和DeviceC的管理IP地址。
配置DeviceA的管理IP地址为10.10.10.1。
DeviceA:
lldp management-address 10.10.10.1
配置DeviceB的管理IP地址为10.10.10.2。
DeviceB:
lldp management-address 10.10.10.2
配置DeviceC的管理IP地址为10.10.10.3。
DeviceC:
lldp management-address 10.10.10.3
- 配置DeviceA、DeviceB和DeviceC的LLDP相关参数,包括设备发送LLDP报文的周期和延迟时间。
配置DeviceA发送LLDP报文的周期和延迟时间。
DeviceA:
lldp message-transmission interval 60
lldp message-transmission delay 9
配置DeviceB和DeviceC发送LLDP报文的周期和延迟时间,参见DeviceA的配置。
- 使能DeviceA、DeviceB和DeviceC的LLDP告警功能,配置设备发送LLDP告警的延迟时间。
配置DeviceA
DeviceA:
snmp-agent trap enable feature-name lldp
lldp trap-interval 10
配置DeviceB和DeviceC,参见DeviceA的配置
- 检查配置结果
查看DeviceA的LLDP是否使能、LLDP管理地址是否配置、LLDP告警功能是否使能以及LLDP属性的值是否为所配置的值。
查看DeviceA的本地LLDP信息。
[~DeviceA] display lldp local
System information
--------------------------------------------------------------------------
Chassis type :macAddress
Chassis ID :707b-e820-49d4
System name :DeviceA
System description :Huawei Versatile Routing Platform Software
VRP (R) software, Version 8.180 (CX V800R011C00SPC607B607)
Copyright (C) 2012-2018 Huawei Technologies Co., Ltd.
HUAWEI CX
System capabilities supported :bridge router
System capabilities enabled :bridge router
LLDP Up time :2019-10-30 09:59:07
System configuration
--------------------------------------------------------------------------
LLDP Status :enabled (default is disabled)
LLDP Message Tx Interval :60 (default is 30s)
LLDP Message Tx Hold Multiplier :4 (default is 4)
LLDP Refresh Delay :2 (default is 2s)
LLDP Tx Delay :9 (default is 2s)
LLDP Notification Interval :10 (default is 5s)
LLDP Notification Enable :enabled (default is disabled)
Management Address :ipv4: 10.10.10.1
LLDP Fast Message Count :4 (default is 4)
Remote Table Statistics:
--------------------------------------------------------------------------
Remote Table Last Change Time :0 days, 0 hours, 32 minutes, 29 seconds
Remote Neighbors Added :2
Remote Neighbors Deleted :0
Remote Neighbors Dropped :0
Remote Neighbors Aged :0
Total Neighbors :2
Port information:
--------------------------------------------------------------------------
Interface Ethernet1/0/0:
LLDP Enable Status :txAndRx (default is disabled)
Total Neighbors :0
Port ID subtype :interfaceName
Port ID :Ethernet1/0/0
Port description :
Port and Protocol VLAN ID(PPVID) :unsupported
Port VLAN ID(PVID) :0
VLAN name of VLAN :--
Protocol identity :STP RSTP/MSTP LACP EthOAM
Auto-negotiation supported :Yes
Auto-negotiation enabled :Yes
OperMau :speed (100) /duplex (Auto)
Link aggregation supported :Yes
Link aggregation enabled :No
Aggregation port ID :0
Maximum frame Size :9216
Device discovery protocol TLV
Serial number :--
Interface index :--
IPv4 address :--
MAC address :--
Interface Ethernet1/0/1:
LLDP Enable Status :txAndRx (default is disabled)
Total Neighbors :0
Port ID subtype :interfaceName
Port ID :Ethernet1/0/1
Port description :
Port and Protocol VLAN ID(PPVID) :unsupported
Port VLAN ID(PVID) :0
VLAN name of VLAN :--
Protocol identity :STP RSTP/MSTP LACP EthOAM
Auto-negotiation supported :Yes
Auto-negotiation enabled :Yes
OperMau :speed (100) /duplex (Auto)
Link aggregation supported :Yes
Link aggregation enabled :No
Aggregation port ID :0
Maximum frame Size :9216
Device discovery protocol TLV
Serial number :--
Interface index :--
IPv4 address :--
MAC address :--
Interface Ethernet1/0/2:
LLDP Enable Status :txAndRx (default is disabled)
Total Neighbors :0
Port ID subtype :interfaceName
Port ID :Ethernet1/0/2
Port description :
Port and Protocol VLAN ID(PPVID) :unsupported
Port VLAN ID(PVID) :0
VLAN name of VLAN :--
Protocol identity :STP RSTP/MSTP LACP EthOAM
Auto-negotiation supported :Yes
Auto-negotiation enabled :Yes
OperMau :speed (100) /duplex (Auto)
Link aggregation supported :Yes
Link aggregation enabled :No
Aggregation port ID :0
Maximum frame Size :9216
Device discovery protocol TLV
Serial number :--
Interface index :--
IPv4 address :--
MAC address :--
Interface Ethernet1/0/3:
LLDP Enable Status :txAndRx (default is disabled)
Total Neighbors :0
Port ID subtype :interfaceName
Port ID :Ethernet1/0/3
Port description :
Port and Protocol VLAN ID(PPVID) :unsupported
Port VLAN ID(PVID) :0
VLAN name of VLAN :--
Protocol identity :STP RSTP/MSTP LACP EthOAM
Auto-negotiation supported :Yes
Auto-negotiation enabled :Yes
OperMau :speed (100) /duplex (Auto)
Link aggregation supported :Yes
Link aggregation enabled :No
Aggregation port ID :0
Maximum frame Size :9216
Device discovery protocol TLV
Serial number :--
Interface index :--
IPv4 address :--
MAC address :--
Interface Ethernet1/0/4:
LLDP Enable Status :txAndRx (default is disabled)
Total Neighbors :0
Port ID subtype :interfaceName
Port ID :Ethernet1/0/4
Port description :
Port and Protocol VLAN ID(PPVID) :unsupported
Port VLAN ID(PVID) :0
VLAN name of VLAN :--
Protocol identity :STP RSTP/MSTP LACP EthOAM
Auto-negotiation supported :Yes
Auto-negotiation enabled :Yes
OperMau :speed (100) /duplex (Auto)
Link aggregation supported :Yes
Link aggregation enabled :No
Aggregation port ID :0
Maximum frame Size :9216
Device discovery protocol TLV
Serial number :--
Interface index :--
IPv4 address :--
MAC address :--
Interface Ethernet1/0/5:
LLDP Enable Status :txAndRx (default is disabled)
Total Neighbors :0
Port ID subtype :interfaceName
Port ID :Ethernet1/0/5
Port description :
Port and Protocol VLAN ID(PPVID) :unsupported
Port VLAN ID(PVID) :0
VLAN name of VLAN :--
Protocol identity :STP RSTP/MSTP LACP EthOAM
Auto-negotiation supported :Yes
Auto-negotiation enabled :Yes
OperMau :speed (100) /duplex (Auto)
Link aggregation supported :Yes
Link aggregation enabled :No
Aggregation port ID :0
Maximum frame Size :9216
Device discovery protocol TLV
Serial number :--
Interface index :--
IPv4 address :--
MAC address :--
Interface Ethernet1/0/6:
LLDP Enable Status :txAndRx (default is disabled)
Total Neighbors :0
Port ID subtype :interfaceName
Port ID :Ethernet1/0/6
Port description :
Port and Protocol VLAN ID(PPVID) :unsupported
Port VLAN ID(PVID) :0
VLAN name of VLAN :--
Protocol identity :STP RSTP/MSTP LACP EthOAM
Auto-negotiation supported :Yes
Auto-negotiation enabled :Yes
OperMau :speed (100) /duplex (Auto)
Link aggregation supported :Yes
Link aggregation enabled :No
Aggregation port ID :0
Maximum frame Size :9216
Device discovery protocol TLV
Serial number :--
Interface index :--
IPv4 address :--
MAC address :--
Interface Ethernet1/0/7:
LLDP Enable Status :txAndRx (default is disabled)
Total Neighbors :0
Port ID subtype :interfaceName
Port ID :Ethernet1/0/7
Port description :
Port and Protocol VLAN ID(PPVID) :unsupported
Port VLAN ID(PVID) :0
VLAN name of VLAN :--
Protocol identity :STP RSTP/MSTP LACP EthOAM
Auto-negotiation supported :Yes
Auto-negotiation enabled :Yes
OperMau :speed (100) /duplex (Auto)
Link aggregation supported :Yes
Link aggregation enabled :No
Aggregation port ID :0
Maximum frame Size :9216
Device discovery protocol TLV
Serial number :--
Interface index :--
IPv4 address :--
MAC address :--
Interface Ethernet1/0/8:
LLDP Enable Status :txAndRx (default is disabled)
Total Neighbors :0
Port ID subtype :interfaceName
Port ID :Ethernet1/0/8
Port description :
Port and Protocol VLAN ID(PPVID) :unsupported
Port VLAN ID(PVID) :0
VLAN name of VLAN :--
Protocol identity :STP RSTP/MSTP LACP EthOAM
Auto-negotiation supported :Yes
Auto-negotiation enabled :Yes
OperMau :speed (100) /duplex (Auto)
Link aggregation supported :Yes
Link aggregation enabled :No
Aggregation port ID :0
Maximum frame Size :9216
Device discovery protocol TLV
Serial number :--
Interface index :--
IPv4 address :--
MAC address :--
Interface Ethernet1/0/9:
LLDP Enable Status :txAndRx (default is disabled)
Total Neighbors :0
Port ID subtype :interfaceName
Port ID :Ethernet1/0/9
Port description :
Port and Protocol VLAN ID(PPVID) :unsupported
Port VLAN ID(PVID) :0
VLAN name of VLAN :--
Protocol identity :STP RSTP/MSTP LACP EthOAM
Auto-negotiation supported :Yes
Auto-negotiation enabled :Yes
OperMau :speed (100) /duplex (Auto)
Link aggregation supported :Yes
Link aggregation enabled :No
Aggregation port ID :0
Maximum frame Size :9216
Device discovery protocol TLV
Serial number :--
Interface index :--
IPv4 address :--
MAC address :--
Interface GigabitEthernet0/0/0:
LLDP Enable Status :txAndRx (default is disabled)
Total Neighbors :2
Port ID subtype :interfaceName
Port ID :GigabitEthernet0/0/0
Port description :
Port and Protocol VLAN ID(PPVID) :unsupported
Port VLAN ID(PVID) :0
VLAN name of VLAN :--
Protocol identity :STP RSTP/MSTP LACP EthOAM
Auto-negotiation supported :No
Auto-negotiation enabled :No
OperMau :speed (100) /duplex (Auto)
Link aggregation supported :Yes
Link aggregation enabled :No
Aggregation port ID :0
Maximum frame Size :0
Device discovery protocol TLV
Serial number :--
Interface index :--
IPv4 address :--
MAC address :--
[~DeviceA]
查看DeviceA的邻居设备的LLDP信息。
[~DeviceA]dis lldp neighbor interface GigabitEthernet 0/0/0
GigabitEthernet0/0/0 has 2 neighbor(s):
Neighbor index :1
Chassis type :macAddress
Chassis ID :707b-e8d4-4d26
Port ID type :interfaceName
Port ID :GigabitEthernet0/0/0
Port description :--
System name :DeviceB
System description :Huawei Versatile Routing Platform Software
VRP (R) software, Version 8.180 (CX V800R011C00SPC607B607)
Copyright (C) 2012-2018 Huawei Technologies Co., Ltd.
HUAWEI CX
System capabilities supported :bridge router
System capabilities enabled :bridge router
Management address type :ipv4
Management address :10.10.10.2
Expired time :183s
Port VLAN ID(PVID) :--
Port and Protocol VLAN ID(PPVID) :--
Port and Protocol VLAN supported :--
Port and Protocol VLAN enabled :--
VLAN name of VLAN :--
Protocol identity :--
Auto-negotiation supported :--
Auto-negotiation enabled :--
OperMau :speed (--) /duplex (--)
Link aggregation supported :--
Link aggregation enabled :--
Aggregation port ID :--
Maximum frame Size :--
Discovered time :2019-10-30 09:58:51
Device discovery protocol TLV
Serial number :--
Interface index :--
IPv4 address :--
MAC address :--
Neighbor index :2
Chassis type :macAddress
Chassis ID :707b-e825-2640
Port ID type :interfaceName
Port ID :GigabitEthernet0/0/0
Port description :--
System name :DeviceC
System description :Huawei Versatile Routing Platform Software
VRP (R) software, Version 8.180 (CX V800R011C00SPC607B607)
Copyright (C) 2012-2018 Huawei Technologies Co., Ltd.
HUAWEI CX
System capabilities supported :bridge router
System capabilities enabled :bridge router
Management address type :ipv4
Management address :10.10.10.3
Expired time :238s
Port VLAN ID(PVID) :--
Port and Protocol VLAN ID(PPVID) :--
Port and Protocol VLAN supported :--
Port and Protocol VLAN enabled :--
VLAN name of VLAN :--
Protocol identity :--
Auto-negotiation supported :--
Auto-negotiation enabled :--
OperMau :speed (--) /duplex (--)
Link aggregation supported :--
Link aggregation enabled :--
Aggregation port ID :--
Maximum frame Size :--
Discovered time :2019-10-30 10:31:17
Device discovery protocol TLV
Serial number :--
Interface index :--
IPv4 address :--
MAC address :--
[~DeviceA]
[~DeviceA]
查看DeviceB和DeviceC的LLDP功能是否使能、LLDP管理地址是否配置,参见查看DeviceA的配置信息的过程。
玩转华为ensp模拟器系列|配置rstp功能示例(代码片段)
...即删,谢谢支持!附上汇总贴:玩转华为ENSP模拟器系列|合集_COCOgsta的博客-CSDN博客_ensp实验大全组网需求在一个复杂的网络中,网络规划者由于冗余备份的需要,一般都倾向于在设备之间部署多条物理链路 查看详情
玩转华为ensp模拟器系列|配置is-is基本功能示例(代码片段)
...即删,谢谢支持!附上汇总贴:玩转华为ENSP模拟器系列|合集_COCOgsta的博客-CSDN博客_ensp实验大全目标介绍IS-IS基本功能的配置过程,包括在各设备上指定网络实体名、配置level级别和使能IS-IS。组网需求DeviceA、Device... 查看详情
玩转华为ensp模拟器系列|配置dcn穿越第三方二层网络场景示例(代码片段)
...即删,谢谢支持!附上汇总贴:玩转华为ENSP模拟器系列|合集_COCOgsta的博客-CSDN博客_ensp实验大全目标通过配置DCNVLAN穿越第三方二层网络功能,可以实现分别学习GNE设备发送过来的DCNVLAN, 查看详情
玩转华为ensp模拟器系列|配置基本qinq示例(代码片段)
...即删,谢谢支持!附上汇总贴:玩转华为ENSP模拟器系列|合集_COCOgsta的博客-CSDN博客_ensp实验大全组网需求如图1所示,某数据中心的租户1位于不同的地理位置,租户2位于不同的地理位置。SwitchA和SwitchB为数据中... 查看详情
玩转华为ensp模拟器系列|通过telnet登录其他设备配置举例(代码片段)
...即删,谢谢支持!附上汇总贴:玩转华为ENSP模拟器系列|合集_COCOgsta的博客-CSDN博客_ensp实验大全目标配置Telnet登录其他设备的示例。在本示例中,通过配置用户验证方式和密码,实现Telnet登录 查看详情
玩转华为ensp模拟器系列|配置基于接口划分vlan示例(代码片段)
...即删,谢谢支持!附上汇总贴:玩转华为ENSP模拟器系列|合集_COCOgsta的博客-CSDN博客_ensp实验大全组网需求如图1所示,某数据中心的交换机连接有很多用户,且相同业务用户通过不同的设备接入网络。为了通信 查看详情
玩转华为ensp模拟器系列|配置ldp本地会话的定时器(代码片段)
...即删,谢谢支持!附上汇总贴:玩转华为ENSP模拟器系列|合集_COCOgsta的博客-CSDN博客_ensp实验大全目标LDP本地会话的定时器分为链路Hello保持定时器、链路Hello发送定时器组网模型配置思路配置IGP协议,使 查看详情
玩转华为ensp模拟器系列|配置pe与接入侧设备间路由交换(代码片段)
...即删,谢谢支持!附上汇总贴:玩转华为ENSP模拟器系列|合集_COCOgsta的博客-CSDN博客_ensp实验大全目标配置基于eBGP的PE和接入侧设备间的路由交换组网模型配置思路配置使能EVPN的基于IPv4的L3VPN实例。配置静态路由使 查看详情
玩转华为ensp模拟器系列|同一vdpdnd实例场景下配置ipsecvdpdnd(代码片段)
...即删,谢谢支持!附上汇总贴:玩转华为ENSP模拟器系列|合集_COCOgsta的博客-CSDN博客_华为模拟器实验目标您可以通过本举例了解IPSec隧道保护同一VPN实例下用户流量的配置方法。组网需求如图1所示,总部通过FW_A与 查看详情
玩转华为ensp模拟器系列|配置基于mac地址划分vlan示例(代码片段)
...即删,谢谢支持!附上汇总贴:玩转华为ENSP模拟器系列|合集_COCOgsta的博客-CSDN博客_ensp实验大全组网需求某个公司的网络中,网络管理者将同一部门的用户划分到同一VLAN。为了提高部门内的信息安全,要 查看详情
玩转华为ensp模拟器系列|两个网关之间配置ipsecvdpdnd主备链路备份(代码片段)
...即删,谢谢支持!附上汇总贴:玩转华为ENSP模拟器系列|合集_COCOgsta的博客-CSDN博客_华为模拟器实验目标介绍IPSec主备链路备份的配置方法。组网需求如图1所示,FW_A通过主备两条链路接入Internetÿ 查看详情
玩转华为ensp模拟器系列|配置基于路由的ipsecvdpdnd(采用预共享密钥认证)(代码片段)
...即删,谢谢支持!附上汇总贴:玩转华为ENSP模拟器系列|合集_COCOgsta的博客-CSDN博客_华为模拟器实验目标介绍两个IP地址都固定的网关之间建立通过CLI方式建立IPSecVPN隧道配置举例,两端PC都可以主动发起协商。 查看详情
玩转华为ensp模拟器系列|使能接口的mpls和ldp能力(代码片段)
...即删,谢谢支持!附上汇总贴:玩转华为ENSP模拟器系列|合集_COCOgsta的博客-CSDN博客_华为模拟器实验目标配置LDP本地会话,需要使能接口的MPLS和MPLSLDP能力组网模型配置思路配置IGP协议,使各 查看详情
玩转华为ensp模拟器系列|配置私网接入普通evdpdnde-lan示例(代码片段)
...即删,谢谢支持!附上汇总贴:玩转华为ENSP模拟器系列|合集_COCOgsta的博客-CSDN博客_ensp实验大全目标配置私网接入普通EVPNE-Lan实现二层网路互联。组网需求如图1所示:Site1和Site2内为二层网络,为了实现通过骨... 查看详情
玩转华为ensp模拟器系列|配置vpws主备伪线特性示例(代码片段)
...即删,谢谢支持!附上汇总贴:玩转华为ENSP模拟器系列|合集_COCOgsta的博客-CSDN博客_ensp实验大全目标验证主备伪线的单发双收功能组网需求配置思路CX1与CX2、CX3之间配置主、备2条伪线,并开启单发、双收功能CX2、... 查看详情
玩转华为ensp模拟器系列|配置ospfv3接口的网络类型(代码片段)
...即删,谢谢支持!附上汇总贴:玩转华为ENSP模拟器系列|合集_COCOgsta的博客-CSDN博客_华为模拟器实验目标OSPFv3根据链路层协议类型将网络分为四种不同的类型。通过配置接口的网络类型,可以强制改变接口的网络... 查看详情
玩转华为ensp模拟器系列|ipsec网关主备双机热备(代码片段)
...即删,谢谢支持!附上汇总贴:玩转华为ENSP模拟器系列|合集_COCOgsta的博客-CSDN博客_华为模拟器实验目标建立IPSec隧道的一端使用两台设备进行双机热备,可以将IPSec的配置信息、隧道建立信息等从主设备备份到备... 查看详情
玩转华为ensp模拟器系列|两个网关之间利用tunnel接口实现ipsecvdpdnd隧道多链路备份(代码片段)
...即删,谢谢支持!附上汇总贴:玩转华为ENSP模拟器系列|合集_COCOgsta的博客-CSDN博客_华为模拟器实验目标介绍采用IPSec隧道化方式配置两点之间IPSec隧道的配置举例。请使用命令行完成本举例的配置。组网需求如图1所... 查看详情