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
------------------------------------------------------------------------------