• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

模拟器MPLS组网,CE1能学到CE4的lp0路由但是无法ping通lp0地址。求原因?

2018-11-27提问
  • 0关注
  • 1收藏,976浏览
粉丝:0人 关注:0人

问题描述:

<CE1>display ip routing-table

Destinations : 14       Routes : 14

Destination/Mask   Proto   Pre Cost        NextHop         Interface
0.0.0.0/32         Direct  0   0           127.0.0.1       InLoop0
1.1.1.0/24         Direct  0   0           1.1.1.1         GE0/0
1.1.1.0/32         Direct  0   0           1.1.1.1         GE0/0
1.1.1.1/32         Direct  0   0           127.0.0.1       InLoop0
1.1.1.255/32       Direct  0   0           1.1.1.1         GE0/0
127.0.0.0/8        Direct  0   0           127.0.0.1       InLoop0
127.0.0.0/32       Direct  0   0           127.0.0.1       InLoop0
127.0.0.1/32       Direct  0   0           127.0.0.1       InLoop0
127.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
192.168.1.1/32     Direct  0   0           127.0.0.1       InLoop0
192.168.1.2/32     O_ASE2  150 2           1.1.1.2         GE0/0
224.0.0.0/4        Direct  0   0           0.0.0.0         NULL0
224.0.0.0/24       Direct  0   0           0.0.0.0         NULL0
255.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
<CE1>

<CE4>display ip routing-table

Destinations : 14       Routes : 14

Destination/Mask   Proto   Pre Cost        NextHop         Interface
0.0.0.0/32         Direct  0   0           127.0.0.1       InLoop0
4.4.4.0/24         Direct  0   0           4.4.4.1         GE0/1
4.4.4.0/32         Direct  0   0           4.4.4.1         GE0/1
4.4.4.1/32         Direct  0   0           127.0.0.1       InLoop0
4.4.4.255/32       Direct  0   0           4.4.4.1         GE0/1
127.0.0.0/8        Direct  0   0           127.0.0.1       InLoop0
127.0.0.0/32       Direct  0   0           127.0.0.1       InLoop0
127.0.0.1/32       Direct  0   0           127.0.0.1       InLoop0
127.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
192.168.1.1/32     O_ASE2  150 2           4.4.4.2         GE0/1
192.168.1.2/32     Direct  0   0           127.0.0.1       InLoop0
224.0.0.0/4        Direct  0   0           0.0.0.0         NULL0
224.0.0.0/24       Direct  0   0           0.0.0.0         NULL0
255.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
<CE4>

CE1配置:

ospf 1
 import-route direct
 area 0.0.0.0
  network 1.1.1.1 0.0.0.0

interface LoopBack0
 ip address 192.168.1.1 255.255.255.255
#
interface GigabitEthernet0/0
 port link-mode route
 combo enable copper
 ip address 1.1.1.1 255.255.255.0


PE1的配置:

ip vpn-instance VPN1
 route-distinguisher 100:1
 vpn-target 200:1 import-extcommunity
 vpn-target 200:1 export-extcommunity
#
ip vpn-instance VPN2
 route-distinguisher 200:2
 vpn-target 200:2 import-extcommunity
 vpn-target 200:2 export-extcommunity
#
ospf 1 vpn-instance VPN1
 import-route bgp
 area 0.0.0.0
  network 1.1.1.2 0.0.0.0
#
ospf 5 vpn-instance VPN2
 import-route bgp
 area 0.0.0.0
  network 5.5.5.2 0.0.0.0
#
ospf 10
 area 0.0.0.0
  network 2.2.2.2 0.0.0.0
  network 172.16.1.1 0.0.0.0
#
 mpls lsr-id 172.16.1.1
#
mpls ldp
#
interface LoopBack0
 ip address 172.16.1.1 255.255.255.255
#
interface GigabitEthernet0/0
 port link-mode route
 combo enable copper
 ip binding vpn-instance VPN1
 ip address 1.1.1.2 255.255.255.0
#
interface GigabitEthernet0/1
 port link-mode route
 combo enable copper
 ip address 2.2.2.2 255.255.255.0
 mpls enable
 mpls ldp enable
#
interface GigabitEthernet0/2
 port link-mode route
 combo enable copper
 ip binding vpn-instance VPN2
 ip address 5.5.5.2 255.255.255.0

bgp 100
 peer 172.16.1.3 as-number 100
 peer 172.16.1.3 connect-interface LoopBack0
 #
 address-family ipv4 unicast
  peer 172.16.1.3 enable
 #
 address-family vpnv4
  peer 172.16.1.3 enable
 #
 ip vpn-instance VPN1
  #
  address-family ipv4 unicast
   import-route ospf 1
 #
 ip vpn-instance VPN2
  #
  address-family ipv4 unicast
   import-route ospf 5

P:

ospf 10
 area 0.0.0.0
  network 2.2.2.1 0.0.0.0
  network 3.3.3.1 0.0.0.0
  network 172.16.1.2 0.0.0.0
#
 mpls lsr-id 172.16.1.2
#
mpls ldp
#
interface LoopBack0
 ip address 172.16.1.2 255.255.255.255
#
interface GigabitEthernet0/0
 port link-mode route
 combo enable copper
 ip address 3.3.3.1 255.255.255.0
 mpls enable
 mpls ldp enable
#
interface GigabitEthernet0/1
 port link-mode route
 combo enable copper
 ip address 2.2.2.1 255.255.255.0
 mpls enable
 mpls ldp enable

PE2:

 sysname PE2
#
ip vpn-instance VPN1
 route-distinguisher 100:1
 vpn-target 200:1 import-extcommunity
 vpn-target 200:1 export-extcommunity
 #
 address-family ipv4
#
ip vpn-instance VPN2
 route-distinguisher 200:2
 vpn-target 200:2 import-extcommunity
 vpn-target 200:2 export-extcommunity
#
ospf 1 vpn-instance VPN1
 import-route bgp
 area 0.0.0.0
  network 4.4.4.2 0.0.0.0
#
ospf 5 vpn-instance VPN2
 import-route bgp
 area 0.0.0.0
  network 6.6.6.2 0.0.0.0
#
ospf 10
 area 0.0.0.0
  network 3.3.3.2 0.0.0.0
  network 172.16.1.3 0.0.0.0
#
 mpls lsr-id 172.16.1.3
#
mpls ldp

interface LoopBack0
 ip address 172.16.1.3 255.255.254.0
#
interface GigabitEthernet0/0
 port link-mode route
 combo enable copper
 ip address 3.3.3.2 255.255.255.0
 mpls enable
 mpls ldp enable
#
interface GigabitEthernet0/1
 port link-mode route
 combo enable copper
 ip binding vpn-instance VPN1
 ip address 4.4.4.2 255.255.255.0
#
interface GigabitEthernet0/2
 port link-mode route
 combo enable copper
 ip binding vpn-instance VPN2
 ip address 6.6.6.2 255.255.255.0

bgp 100
 peer 172.16.1.1 as-number 100
 peer 172.16.1.1 connect-interface LoopBack0
 #
 address-family ipv4 unicast
  peer 172.16.1.1 enable
 #
 address-family vpnv4
  peer 172.16.1.1 enable
 #
 ip vpn-instance VPN1
  #
  address-family ipv4 unicast
   import-route ospf 1
 #
 ip vpn-instance VPN2
  #
  address-family ipv4 unicast
   import-route ospf 5

CE4配置:

ospf 1
 import-route direct
 area 0.0.0.0
  network 4.4.4.1 0.0.0.0

interface LoopBack0
 ip address 192.168.1.2 255.255.255.255

interface GigabitEthernet0/1
 port link-mode route
 combo enable copper
 ip address 4.4.4.1 255.255.255.0


<CE1>ping -a 192.168.1.1 192.168.1.2
Ping 192.168.1.2 (192.168.1.2) from 192.168.1.1: 56 data bytes, press CTRL_C to break
Request time out
Request time out
Request time out
Request time out
Request time out

--- Ping statistics for 192.168.1.2 ---
5 packet(s) transmitted, 0 packet(s) received, 100.0% packet loss
<CE1>%Nov 27 16:14:30:204 2018 CE1 PING/6/PING_STATISTICS: Ping statistics for 192.168.1.2: 5 packet(s) transmitted, 0 packet(s) received, 100.0% packet loss.



<PE1>display bgp peer vpnv4

 BGP local router ID: 172.16.1.1
 Local AS number: 100
 Total number of peers: 1                 Peers in established state: 1

  * - Dynamically created peer
  Peer                    AS  MsgRcvd  MsgSent OutQ PrefRcv Up/Down  State

  172.16.1.3             100       30       31    0       2 00:23:29 Established
<PE1>


<PE1>display ospf p

         OSPF Process 1 with Router ID 1.1.1.2
               Neighbor Brief Information

 Area: 0.0.0.0
 Router ID       Address         Pri Dead-Time  State             Interface
 192.168.1.1     1.1.1.1         1   32         Full/DR           GE0/0

         OSPF Process 5 with Router ID 5.5.5.2
               Neighbor Brief Information

 Area: 0.0.0.0
 Router ID       Address         Pri Dead-Time  State             Interface
 172.16.1.2      5.5.5.1         1   36         Full/DR           GE0/2

         OSPF Process 10 with Router ID 172.16.1.1
               Neighbor Brief Information

 Area: 0.0.0.0
 Router ID       Address         Pri Dead-Time  State             Interface
 172.16.1.2      2.2.2.1         1   33         Full/DR           GE0/1
<PE1>

在PE1的G0/1口抓包,没有抓到发往P的ICMP报文。


组网及组网描述:


最佳答案

看下display ip route-table vpn-instance 1,看一下bgp的路由有没有加表,如果加表了,把你的工程发一下,有空的时候,我可以看下你的工程。

如果没加变怎么样?

zhiliao_Nef16 发表时间:2018-11-27
回复zhiliao_Nef16:

没加表肯定就不通了,如果没有加表,先按照bgp选路原则,排查一下bgp路由为什么没有加表

风干工程师肉干要不要 发表时间:2018-11-28
0 个回答

该问题暂时没有网友解答

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

分享扩散:

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明