第31章 LDP高级

图片[1]-第31章 LDP高级-大赛人网
图31-1 MPLS LDP配置网络拓扑

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接口抓包

图片[2]-第31章 LDP高级-大赛人网
图31-2 MPLS LDP抓包

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
喜欢就支持一下吧
点赞10 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称

    请登录后查看评论内容