步骤1:简单性排查

1)  在两台PE设备上做互ping操作,查看IGP路由转发是否存在问题。如果存在问题,请排查路由转发问题

2)  在设备上做ping mpls 操作(例如:ping mpls ipv4 192.168.1.1/24),如果MPLS转发路径不通,则再通过traceroute mpls(例如:traceroute mpls ipv4 1.1.1.1/24 )来确定出问题的设备。

3)  先排查接口是否已开启了label-switching命令,如果没有开启,则开启后再重新进行步骤2)

 

步骤2:基本信息收集

1)  首先收集网络拓扑中各台设备的详细接口连接、配置、版本、log、arp表、mac地址表信息,如下:

show run

show ver

show ver slo

show arp

show mac-address-table

show span

show ip route

show ip route counter

show ip int br

show interfaces description

show log

 

步骤3:其他关键信息收集

1)  收集IP路由信息:

a)        Show ip route,查看IPv4路由信息,带vrf参数可查看VRF下的路由信息。

b)        Show ipv6 route,查看IPv6路由信息,带vrf参数可查看VRF下的路由信息。

2)  收集VRF信息

P#show ip vrf detail

P#show ip vrf detail  xxx //xxx是VRF名称

3)  收集MPLS 转发信息

a)        路由器快转:

show ip ref mpls forwarding-table : MPLS路由转发信息,有多个过滤参数

b)        交换机快转(隐藏命令):

Show mpls ref ftn [VRF-NAME]

Show mpls ref ilm [VRF-NAME]

Show mpls ref ftn vc

Show mpls ref ilm vc

Show ip ref mpls forwarding-table vfi xx,用于收集交换机vfi实例学习到的mac地址信息

c)        进程转发:

show mpls forwarding-table:MPLS进程转发信息,具有多个过滤参数

4)  收集MPLS路由信息

show mpls rib: 收集MPLS路由平台的FTN/ILM路由信息,信息较少。

show mpls ftn-table-i: 收集MPLS路由平台的FTN路由信息,信息较多,10.x项目中并未提供过滤参数。

Show mpls vrf-table-i:收集MPLS路由平台的ILM路由信息,信息较多,10.x项目中并未提供过滤参数。

show mpls ilm-detail-table-i: 收集MPLS路由平台的ILM路由信息,信息较多,10.x项目并未提供过滤参数。

5)  收集标签信息

a)        收集标签池信息

show mpls label-pool: 查看标签池信息。

Show mpls label-pool-i: 查看标签池内部信息。

如果标签分配出现问题时,需要通过上述两条命令收集标签池的信息。

b)        LDP标签分配信息

show mpls ldp bindings label

c)        BGP标签分配信息

show bgp ipv4 unicast labels: 查看BGP路由的出标签及入标签信息,非VRF下的路由。

show bgp vpnv4 unicast vrf VPN-NAME label:查看VRF下BGP路由的出标签及入标签信息。

6)  LDP协议信息

show mpls ldp neighbor detail

show mpls ldp neighbor

show mpls ldp discovery  all

show mpls ldp discovery

7)  BGP协议信息

a)        BGP邻居信息

P#show ip bgp neighbors            //如果BGP邻居是属于VRF,则通过show ip bgp vrf VPN-NAME neighbors进行查看

b)        查看对端PE所发送的VPNv4路由信息

P#show bgp vpnv4 unicast rd 100:2           //100:2为对端PE所发送VPNv4路由的RD值, 也可在其后加上特定的路由来显示更多的路由信息,比如show bgp vpnv4 unicast rd 100:2 202.1.1.1

BGP table version is 3, local router ID is 20.20.20.20

Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

              S Stale, b - backup entry

Origin codes: i - IGP, e - EGP, ? - incomplete

 

   Network          Next Hop            Metric      LocPrf      Weight Path

Route Distinguisher: 100:2

*>i202.1.1.1/32     1.1.1.1                  0         100           0     ?

 

Total number of prefixes 1

 

c)        查看VRF内的BGP路由信息

P#show bgp vpnv4 unicast vrf vpn1         //可在其后加上特定的路由来显示更多的路由信息,比如show bgp vpnv4 unicast vrf vpn1 202.1.1.1

BGP table version is 1, local router ID is 20.20.20.20

Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

              S Stale, b - backup entry

Origin codes: i - IGP, e - EGP, ? - incomplete

 

   Network          Next Hop            Metric      LocPrf      Weight Path

Route Distinguisher: 100:1 (Default for VRF vpn1)

*>i202.1.1.1/32     1.1.1.1                  0         100           0     ?

 

Total number of prefixes 1