1.R2配置G0/0/2接口IP地址,宣告进OSPF,并配置MPLS和LDP协议
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 32.1.1.0 0.255.255.255
[R2]interface GigabitEthernet 0/0/2
[R2-GigabitEthernet0/0/2]mpls
[R2-GigabitEthernet0/0/2]mpls ldp
2.R3配置G0/0/2接口IP地址,宣告进OSPF,并配置MPLS和LDP协议
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 32.1.1.0 0.255.255.255
[R3]interface GigabitEthernet 0/0/2
[R3-GigabitEthernet0/0/2]mpls
[R3-GigabitEthernet0/0/2]mpls ldp
3.R1路由跟踪R3的Lp0
<R1>tracert 3.3.3.3
traceroute to 3.3.3.3(3.3.3.3), max hops: 30 ,packet length: 40,press CTRL_C to break
1 12.1.1.2 30 ms 10 ms 10 ms
2 32.1.1.3 20 ms 20 ms 20 ms
4.R1连通性测试R3的Lp0,观察TTL copy过程
<R1>ping -h 10 3.3.3.3
PING 3.3.3.3: 56 data bytes, press CTRL_C to break
Reply from 3.3.3.3: bytes=56 Sequence=1 ttl=254 time=30 ms
Reply from 3.3.3.3: bytes=56 Sequence=2 ttl=254 time=20 ms
Reply from 3.3.3.3: bytes=56 Sequence=3 ttl=254 time=30 ms
Reply from 3.3.3.3: bytes=56 Sequence=4 ttl=254 time=10 ms
Reply from 3.3.3.3: bytes=56 Sequence=5 ttl=254 time=20 ms
5.R1的G0/0/0接口抓包
6.R1关闭TTL复制功能
[R1]mpls
[R1-mpls]undo ttl propagate public
[R1]tracert 3.3.3.3
traceroute to 3.3.3.3(3.3.3.3), max hops: 30 ,packet length: 40,press CTRL_C to break
1 12.1.1.2 30 ms 10 ms 10 ms
2 32.1.1.3 20 ms 20 ms 20 ms
7.R2上查看R3的LDP Session
<R2>display mpls ldp session 3.3.3.3
LDP Session Information
Peer LDP ID : 3.3.3.3:0 Local LDP ID : 2.2.2.2:0
TCP Connection : 2.2.2.2 <- 3.3.3.3
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 : 48/48 (Message Count)
Label Advertisement Mode : Downstream Unsolicited
Label Resource Status(Peer/Local) : Available/Available
Session Age : 0000:00:11 (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)
3.3.3.3 23.1.1.3 32.1.1.3
8.R2上查看LDP邻居
<R2>display mpls ldp peer 3.3.3.3
Peer LDP ID : 3.3.3.3:0
Peer Max PDU Length : 4096 Peer Transport Address : 3.3.3.3
Peer Loop Detection : Off Peer Path Vector Limit : ----
Peer FT Flag : Off Peer Keepalive Timer : 45 Sec
Recovery Timer : ---- Reconnect Timer : ----
Peer Type : Local
Peer Label Advertisement Mode : Downstream Unsolicited
Peer Discovery Source : GigabitEthernet0/0/1
GigabitEthernet0/0/2
Peer Deletion Status : No
Capability-Announcement : Off
Peer P2MP Capability : Off
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容