实验一:TDP邻居发现(3725实验台)
首先完成基本的三层配置:OSPF 110
在R1上的配置:
R1(config)#ip cef
R1(config)#mpls ip
R1(config)#mpls label protocol tdp
R1(config)#int s1/0
R1(config-if)#mpls ip
R1(config-if)#mpls label protocol tdp
R1(config-if)#exit
R1(config)#int s1/1
R1(config-if)#mpls ip
R1(config-if)#mpls label protocol tdp
R1(config-if)#
|
在R2上的配置:
R2(config)#ip cef
R2(config)#mpls ip
R2(config)#mpls label protocol tdp
R2(config)#int s1/0
R2(config-if)#mpls ip
R2(config-if)#mpls label protoc
*Mar 1 00:12:42.283: %LDP-5-NBRCHG: TDP Neighbor
R2(config-if)#mpls label protocol tdp
R2(config-if)#exit
R2(config)#
|
在R3上的配置:
R3(config)#ip cef
R3(config)#mpls ip
R3(config)#mpls label protocol tdp
R3(config)#int s1/0
R3(config-if)#mpls ip
R3(config-if)#mpls label pr
*Mar 1 00:15:30.163: %LDP-5-NBRCHG: TDP Neighbor
R3(config-if)#mpls label protocol tdp
R3(config-if)#exit
R3(config)#
|
在R1上面查看TDP的邻居关系:
R1#sh tag-switching tdp neighbor
State: Oper; PIEs sent/rcvd: 0/7; Downstream
TDP discovery sources:
Addresses bound to peer TDP Ident:
Peer TDP Ident:
TCP connection:
State: Oper; PIEs sent/rcvd: 0/4; Downstream
Up time: 00:00:40
TDP discovery sources:
Serial1/1, Src IP addr:
R1#
|
tib entry:
tib entry:
local binding: tag: imp-null
remote binding: tsr:
remote binding: tsr:
local binding: tag: imp-null
remote binding: tsr:
remote binding: tsr:
R1#
|
Local Outgoing Prefix Bytes tag Outgoing Next Hop
tag tag or VC or Tunnel Id switched interface
R1#
|
在所有骨干路由器上面都关闭TTL传播IP包头和MPLS标签头之间的映射
No tag-switching ip propagate-ttl
如果没有启动这条命令,使用trace的时候会将所有经过的路由条目都会显示出来。如果启用以后只会显示进站路由的IP与出站路由器的IP
附件:http://down.51cto.com/data/2354146
本文转自 ltyluck 51CTO博客,原文链接:http://blog.51cto.com/ltyluck/207230