素材来源:华为路由器配置指南
一边学习一边整理试验笔记,并与大家分享,侵权即删,谢谢支持!
附上汇总贴:玩转华为ENSP模拟器系列 | 合集_COCOgsta的博客-CSDN博客_ensp实验大全
目标
LDP本地会话的定时器分为链路Hello保持定时器、链路Hello发送定时器
组网模型
配置思路
- 配置IGP协议,使各节点间的IP路由可达
- 配置节点的LSR ID
- 使能全局MPLS功能,并进入MPLS视图
- 使能全局的LDP功能,并进入MPLS-LDP视图
- 接口使能MPLS和MPLS LDP
- 配置LDP传输地址
- 配置LDP本地会话的定时器
操作步骤
- 配置各接口地址(略)
- 配置各节点的IS-IS基本功能
配置CX1
CX1:
isis 1
is-level level-2
network-entity 49.0000.0000.0001.00
interface LoopBack0
isis enable 1
interface Ethernet1/0/0.1
isis enable 1
配置CX2
CX2:
isis 1
is-level level-2
network-entity 49.0000.0000.0002.00
interface LoopBack0
isis enable 1
interface Ethernet1/0/0.1
isis enable 1
- 配置各节点的MPLS LSR ID,并使能MPLS和MPLS LDP功能
配置CX1
CX1:
mpls lsr-id 1.1.1.135
mpls
mpls ldp
配置CX2
CX2:
mpls lsr-id 1.1.1.136
mpls
mpls ldp
- 接口使能MPLS和MPLS LDP
配置CX1
CX1:
interface Ethernet1/0/0.1
mpls
mpls ldp
配置CX2
CX2:
interface Ethernet1/0/0.1
mpls
mpls ldp
- 配置LDP传输地址
配置CX1
CX1:
interface Ethernet1/0/0.1
mpls ldp transport-address interface
配置CX2
CX2:
interface Ethernet1/0/0.1
mpls ldp transport-address interface
- 配置LDP本地会话的定时器
未配置定时器前,本地会话的发送间隔为15s,会话保持间隔为45s
[~CX1-Ethernet1/0/0.1]dis mpls ldp interface verbose
LDP Interface Information in Public Network
--------------------------------------------------------------
Interface Name : Ethernet1/0/0.1
LDP ID : 1.1.1.135:0 Transport Address : 192.168.16.1
Entity Status : Active Effective MTU : 1500
Configured Hello Hold Timer : 15 Sec
Negotiated Hello Hold Timer : 15 Sec
Configured Hello Send Timer : ---
Configured Keepalive Hold Timer : 45 Sec
Configured Keepalive Send Timer : ---
Configured Delay Timer : 10 Sec
Label Advertisement Mode : Downstream Unsolicited
Hello Message Sent/Rcvd : 272/262 (Message Count)
Autoconfiguration Source : ---
mLDP P2MP Capability : Disable
mLDP MP2MP Capability : Disable
-------------------------------------------------------------
[~CX1-Ethernet1/0/0.1]
配置CX1
CX1:
interface Ethernet1/0/0.1
mpls ldp timer hello-hold 20
mpls ldp timer hello-send 20
mpls ldp timer keepalive-hold 60
配置CX2
CX2:
interface Ethernet1/0/0.1
mpls ldp timer hello-hold 20
mpls ldp timer hello-send 20
mpls ldp timer keepalive-hold 60
- 配置验证
查看LDP会话,可以看到LDP接口的时间为配置的值
[~CX1-Ethernet1/0/0.1]DIS MPLS LDP interface verbose
LDP Interface Information in Public Network
--------------------------------------------------------------
Interface Name : Ethernet1/0/0.1
LDP ID : 1.1.1.135:0 Transport Address : 192.168.16.1
Entity Status : Active Effective MTU : 1500
Configured Hello Hold Timer : 20 Sec
Negotiated Hello Hold Timer : 20 Sec
Configured Hello Send Timer : 20 Sec
Configured Keepalive Hold Timer : 60 Sec
Configured Keepalive Send Timer : ---
Configured Delay Timer : 10 Sec
Label Advertisement Mode : Downstream Unsolicited
Hello Message Sent/Rcvd : 335/325 (Message Count)
Autoconfiguration Source : ---
mLDP P2MP Capability : Disable
mLDP MP2MP Capability : Disable
-------------------------------------------------------------
[~CX1-Ethernet1/0/0.1]