当前位置: 首页 > article >正文

MPLS动态LSP配置实验

MPLS动态LSP配置实验

  • MPLS动态LSP配置实验
    • 基本配置
    • MPLS部分
    • 查看LDP会话
      • 基本信息查看
      • 详细信息查看

MPLS动态LSP配置实验

在这里插入图片描述

基本配置

接口地址和OSPF配置,省略!全网互通!注意:8.8.8.8和9.9.9.9也要宣告!

MPLS部分

[ar1]mpls lsr-id 1.1.1.1
[ar1]mpls
Info: Mpls starting, please wait... OK!
[ar1-mpls]mpls ldp
[ar1-mpls-ldp]q

[ar1]int g0/0/0
[ar1-GigabitEthernet0/0/0]mpls
[ar1-GigabitEthernet0/0/0]mpls ldp

[ar1-GigabitEthernet0/0/0]int g0/0/1
[ar1-GigabitEthernet0/0/1]mpls	
[ar1-GigabitEthernet0/0/1]mpls ldp 
[ar1-GigabitEthernet0/0/1]q


[ar2]mpls lsr	
[ar2]mpls lsr-id 2.2.2.2
[ar2]mpls
Info: Mpls starting, please wait... OK!
[ar2-mpls]q
[ar2]mpls ldp 

[ar2]int g0/0/1
[ar2-GigabitEthernet0/0/1]mpls	
[ar2-GigabitEthernet0/0/1]mpls ldp 
[ar2-GigabitEthernet0/0/1]q

[ar2]int g0/0/1
[ar2-GigabitEthernet0/0/1]mpls
[ar2-GigabitEthernet0/0/1]mpls ldp
[ar2-GigabitEthernet0/0/1]q

[ar2]int g0/0/0
[ar2-GigabitEthernet0/0/0]mpls
[ar2-GigabitEthernet0/0/0]mpls ldp 
[ar2-GigabitEthernet0/0/0]q


[ar3]mpls ls	
[ar3]mpls lsr-id 3.3.3.3
[ar3]mpls
Info: Mpls starting, please wait... OK!
[ar3-mpls]mpls ldp
[ar3-mpls-ldp]q

[ar3]int g0/0/1
[ar3-GigabitEthernet0/0/1]mpls
[ar3-GigabitEthernet0/0/1]mpls ldp
[ar3-GigabitEthernet0/0/1]q
[ar3]int g0/0/0
[ar3-GigabitEthernet0/0/0]mpls
[ar3-GigabitEthernet0/0/0]mpls ldp
[ar3-GigabitEthernet0/0/0]q

[ar4]mpls ls	
[ar4]mpls lsr-id 4.4.4.4
[ar4]mpls
Info: Mpls starting, please wait... OK!
[ar4-mpls]mpls ldp
[ar4-mpls-ldp]q
[ar4]int g0/0/1
[ar4-GigabitEthernet0/0/1]mpls
[ar4-GigabitEthernet0/0/1]mpls ldp
[ar4-GigabitEthernet0/0/1]q
[ar4]int g0/0/2
[ar4-GigabitEthernet0/0/2]mpls
[ar4-GigabitEthernet0/0/2]mpls ldp
[ar4-GigabitEthernet0/0/2]q

[ar5]mpls ls	
[ar5]mpls lsr-id 5.5.5.5
[ar5]mpls
Info: Mpls starting, please wait... OK!
[ar5-mpls]mpls ldp
[ar5-mpls-ldp]q
[ar5]
[ar5]int g0/0/0
[ar5-GigabitEthernet0/0/0]mpls
[ar5-GigabitEthernet0/0/0]mpls ldp
[ar5-GigabitEthernet0/0/0]q
[ar5]int g0/0/1
[ar5-GigabitEthernet0/0/1]mpls
[ar5-GigabitEthernet0/0/1]mpls ldp
[ar5-GigabitEthernet0/0/1]q

需要注意的是:环回口不需要开启mpls和mpls ldp

查看LDP会话

基本信息查看

<ar1>dis mpls ldp session

 LDP Session(s) in Public Network
 Codes: LAM(Label Advertisement Mode), SsnAge Unit(DDDD:HH:MM)
 A '*' before a session means the session is being deleted.
 ------------------------------------------------------------------------------
 PeerID             Status      LAM  SsnRole  SsnAge      KASent/Rcv
 ------------------------------------------------------------------------------
 2.2.2.2:0          Operational DU   Passive  0000:02:59  719/719
 5.5.5.5:0          Operational DU   Passive  0000:01:22  332/332
 ------------------------------------------------------------------------------
 TOTAL: 2 session(s) Found.

#注释:
PeerID:是邻居的ID
Operational:状态,配置成功的标志Operational状态
Passive:说明是被动,主动是Active



[ar5]dis mpls ldp session 

 LDP Session(s) in Public Network
 Codes: LAM(Label Advertisement Mode), SsnAge Unit(DDDD:HH:MM)
 A '*' before a session means the session is being deleted.
 ------------------------------------------------------------------------------
 PeerID             Status      LAM  SsnRole  SsnAge      KASent/Rcv
 ------------------------------------------------------------------------------
 1.1.1.1:0          Operational DU   Active   0000:00:03  13/13
 4.4.4.4:0          Operational DU   Active   0000:00:03  13/13
 ------------------------------------------------------------------------------
 TOTAL: 2 session(s) Found.

详细信息查看

<ar1>display mpls ldp session verbose

 LDP Session(s) in Public Network
 ------------------------------------------------------------------------------
 Peer LDP ID     : 2.2.2.2:0          Local LDP ID   : 1.1.1.1:0
 TCP Connection  : 1.1.1.1 <- 2.2.2.2
 Session State   : Operational        Session Role   : Passive
 Session FT Flag : Off                MD5 Flag       : Off
 Reconnect Timer : ---                Recovery Timer : ---
 Keychain Name   : ---

 Negotiated Keepalive Hold Timer   : 45 Sec
 Configured Keepalive Send Timer   : ---
 Keepalive Message Sent/Rcvd       : 730/730 (Message Count)
 Label Advertisement Mode          : Downstream Unsolicited
 Label Resource Status(Peer/Local) : Available/Available
 Session Age                       : 0000:03:02 (DDDD:HH:MM)
 Session Deletion Status           : No

 Capability:
   Capability-Announcement         : Off
   P2MP Capability                 : Off

 Outbound&Inbound Policies applied : NULL

 Addresses received from peer: (Count: 3)
 2.2.2.2             12.1.1.2            23.1.1.1           
 ------------------------------------------------------------------------------
 Peer LDP ID     : 5.5.5.5:0          Local LDP ID   : 1.1.1.1:0
 TCP Connection  : 1.1.1.1 <- 5.5.5.5
 Session State   : Operational        Session Role   : Passive
 Session FT Flag : Off                MD5 Flag       : Off
 Reconnect Timer : ---                Recovery Timer : ---
 Keychain Name   : ---

 Negotiated Keepalive Hold Timer   : 45 Sec
 Configured Keepalive Send Timer   : ---
 Keepalive Message Sent/Rcvd       : 344/344 (Message Count)
 Label Advertisement Mode          : Downstream Unsolicited
 Label Resource Status(Peer/Local) : Available/Available
 Session Age                       : 0000:01:25 (DDDD:HH:MM)
 Session Deletion Status           : No

 Capability:
   Capability-Announcement         : Off
   P2MP Capability                 : Off

 Outbound&Inbound Policies applied : NULL

 Addresses received from peer: (Count: 3)
 5.5.5.5             15.1.1.2            54.1.1.1           
 ------------------------------------------------------------------------------
 
 
 
 <ar5>display mpls ldp session verbose

 LDP Session(s) in Public Network
 ------------------------------------------------------------------------------
 Peer LDP ID     : 1.1.1.1:0          Local LDP ID   : 5.5.5.5:0
 TCP Connection  : 5.5.5.5 -> 1.1.1.1
 Session State   : Operational        Session Role   : Active
 Session FT Flag : Off                MD5 Flag       : Off
 Reconnect Timer : ---                Recovery Timer : ---
 Keychain Name   : ---

 Negotiated Keepalive Hold Timer   : 45 Sec
 Configured Keepalive Send Timer   : ---
 Keepalive Message Sent/Rcvd       : 351/351 (Message Count)
 Label Advertisement Mode          : Downstream Unsolicited
 Label Resource Status(Peer/Local) : Available/Available
 Session Age                       : 0000:01:27 (DDDD:HH:MM)
 Session Deletion Status           : No

 Capability:
   Capability-Announcement         : Off
   P2MP Capability                 : Off

 Outbound&Inbound Policies applied : NULL

 Addresses received from peer: (Count: 3)
 1.1.1.1             12.1.1.1            15.1.1.1           
 ------------------------------------------------------------------------------
 Peer LDP ID     : 4.4.4.4:0          Local LDP ID   : 5.5.5.5:0
 TCP Connection  : 5.5.5.5 -> 4.4.4.4
 Session State   : Operational        Session Role   : Active
 Session FT Flag : Off                MD5 Flag       : Off
 Reconnect Timer : ---                Recovery Timer : ---
 Keychain Name   : ---

 Negotiated Keepalive Hold Timer   : 45 Sec
 Configured Keepalive Send Timer   : ---
 Keepalive Message Sent/Rcvd       : 714/714 (Message Count)
 Label Advertisement Mode          : Downstream Unsolicited
 Label Resource Status(Peer/Local) : Available/Available
 Session Age                       : 0000:02:58 (DDDD:HH:MM)
 Session Deletion Status           : No

 Capability:
   Capability-Announcement         : Off
   P2MP Capability                 : Off

 Outbound&Inbound Policies applied : NULL

 Addresses received from peer: (Count: 3)
 4.4.4.4             34.1.1.2            54.1.1.2           
 ------------------------------------------------------------------------------

http://www.kler.cn/a/469857.html

相关文章:

  • pytorch中nn.Conv2d详解及参数设置原则
  • Kafka优势剖析-高效的数据复制
  • qml PathView详解
  • 鸿蒙应用开发搬砖经验之—使用DevTools工具调试前端页面
  • 麒麟信安云在长沙某银行的应用入选“云建设与应用领航计划(2024)”,打造湖湘金融云化升级优质范本
  • 深度学习中的步数指的是什么
  • hot100_73. 矩阵置零
  • GitLab 创建项目、删除项目
  • 系统编程1.0-exec函数和exit()的使用
  • 《OpenCV 5.0.0-alpha:开启计算机视觉新篇章》
  • 在arm平台Euler系统上编译安装ffmpeg
  • [python]验证码识别库-DDDDOCR
  • CAM几何引擎简介
  • 目标检测算法-Picodet
  • 基于python大数据分析的高考志愿填报推荐系统实现
  • 决定系数(R²分数)——评估回归模型性能的一个指标
  • 【办公类-88-02】20250106批量读后感
  • Leetcode-234 回文链表
  • 飞牛fnOS如何通过docker安装宝塔面板
  • 基于Python深度学习【眼疾识别】系统设计与实现+人工智能+机器学习+TensorFlow算法
  • 1929-2024年全球气象站点逐日气象指标数据(气温、降水量、风速等12项)
  • 最新国家商标战略实施DID数据(2007-2023年)
  • 使用Locust对MongoDB进行负载测试
  • 力扣-数组-01两数之和
  • Mysql事务的特性和隔离级别
  • HTML5 + Bootstrap5 网站底部代码分享与解析