设为首页收藏本站language 语言切换
查看: 1468|回复: 2
收起左侧

[华为] 想用MPLS解决BGP数据层面的黑洞,ping测不通,请大神指教

[复制链接]
发表于 2014-6-12 19:07:10 | 显示全部楼层 |阅读模式

R2与R4建立EBPG邻居,R2与R3建立IBGP邻居,R3与R5建立EBGP邻居,R1 R2 R3运行ospf保证IGP互通,R1 R2 R3 启用了MPLS,在R4上通告其环回口4.4.4.4,在R5通告其环回口5.5.5.5,实验目的::在R4上ping -a 4.4.4.4 5.5.5.5 能通;在R5上ping -a 5.5.5.5 4.4.4.4能通。但现在虽然在R4上学到了5.5.5.5的路由,在R5上也学到了4.4.4.4的路由,并且R1 R2 R3的LDP邻居建立都是正常的,结果是ping不通,为什么???

R4配置如下:
[R4]dis current-configuration
#
sysname R4
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher OOCM4m($F4ajUn1vMEIBNUw#
local-user admin service-type http
#
firewall zone Local
priority 16
#
interface Ethernet0/0/0
ip address 24.1.1.4 255.255.255.0
#
interface Ethernet0/0/1
#
interface Serial0/0/0
link-protocol ppp
#
interface Serial0/0/1
link-protocol ppp
#
interface Serial0/0/2
link-protocol ppp
#
interface Serial0/0/3
link-protocol ppp
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/3
#
wlan
#
interface NULL0
#
interface LoopBack0
ip address 4.4.4.4 255.255.255.255
#
bgp 4
router-id 4.4.4.4
peer 24.1.1.2 as-number 1
#
ipv4-family unicast
  undo synchronization
  network 4.4.4.4 255.255.255.255
  peer 24.1.1.2 enable
#
user-interface con 0
user-interface vty 0 4
user-interface vty 16 20
#
return
在R4上查看BGP路由表显示正常:
[R4]dis bgp routing-table

BGP Local router ID is 4.4.4.4
Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete


Total Number of Routes: 2
      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn

*>   4.4.4.4/32         0.0.0.0         0                     0      i
*>   5.5.5.5/32         24.1.1.2                              0      1 5i

R2上的配置如下:
[R2]dis current-configuration
#
sysname R2
#
mpls lsr-id 2.2.2.2
mpls
#
mpls ldp
#
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher OOCM4m($F4ajUn1vMEIBNUw#
local-user admin service-type http
#
firewall zone Local
priority 16
#
interface Ethernet0/0/0
ip address 24.1.1.2 255.255.255.0
#
interface Ethernet0/0/1
ip address 12.1.1.2 255.255.255.0
mpls
mpls ldp
#
interface Serial0/0/0
link-protocol ppp
#
interface Serial0/0/1
link-protocol ppp
#
interface Serial0/0/2
link-protocol ppp
#
interface Serial0/0/3
link-protocol ppp
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/3
#
wlan
#
interface NULL0
#
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
#
bgp 1
router-id 2.2.2.2
peer 3.3.3.3 as-number 1
peer 24.1.1.4 as-number 4
#
ipv4-family unicast
  undo synchronization
  peer 3.3.3.3 enable
  peer 3.3.3.3 next-hop-local
  peer 24.1.1.4 enable
#
ospf 1 router-id 2.2.2.2
area 0.0.0.0
  network 2.2.2.2 0.0.0.0
  network 12.1.1.0 0.0.0.255
#
user-interface con 0
user-interface vty 0 4
user-interface vty 16 20
#
return
R1上的配置如下:
[R1]dis current-configuration
#
sysname R1
#
mpls lsr-id 1.1.1.1
mpls
#
mpls ldp
#
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher OOCM4m($F4ajUn1vMEIBNUw#
local-user admin service-type http
#
firewall zone Local
priority 16
#
interface Ethernet0/0/0
ip address 12.1.1.1 255.255.255.0
mpls
mpls ldp
#
interface Ethernet0/0/1
ip address 13.1.1.1 255.255.255.0
mpls
mpls ldp
#
interface Serial0/0/0
link-protocol ppp
#
interface Serial0/0/1
link-protocol ppp
#
interface Serial0/0/2
link-protocol ppp
#
interface Serial0/0/3
link-protocol ppp
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/3
#
wlan
#
interface NULL0
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
#
ospf 1 router-id 1.1.1.1
area 0.0.0.0
  network 1.1.1.1 0.0.0.0
  network 12.1.1.0 0.0.0.255
  network 13.1.1.0 0.0.0.255
#
user-interface con 0
user-interface vty 0 4
user-interface vty 16 20
#
return
R3上的配置如下:
[R3]dis current-configuration
#
sysname R3
#
mpls lsr-id 3.3.3.3
mpls
#
mpls ldp
#
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher OOCM4m($F4ajUn1vMEIBNUw#
local-user admin service-type http
#
firewall zone Local
priority 16
#
interface Ethernet0/0/0
ip address 13.1.1.3 255.255.255.0
mpls
mpls ldp
#
interface Ethernet0/0/1
ip address 35.1.1.3 255.255.255.0
#
interface Serial0/0/0
link-protocol ppp
#
interface Serial0/0/1
link-protocol ppp
#
interface Serial0/0/2
link-protocol ppp
#
interface Serial0/0/3
link-protocol ppp
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/3
#
wlan
#
interface NULL0
#
interface LoopBack0
ip address 3.3.3.3 255.255.255.255
#
bgp 1
router-id 3.3.3.3
peer 2.2.2.2 as-number 1
peer 2.2.2.2 connect-interface LoopBack0
peer 35.1.1.5 as-number 5
#
ipv4-family unicast
  undo synchronization
  peer 2.2.2.2 enable
  peer 2.2.2.2 next-hop-local
  peer 35.1.1.5 enable
#
ospf 1 router-id 3.3.3.3
area 0.0.0.0
  network 3.3.3.3 0.0.0.0
  network 13.1.1.0 0.0.0.255
#
user-interface con 0
user-interface vty 0 4
user-interface vty 16 20
#
return
R5上的配置如下:
[R5]dis current-configuration
#
sysname R5
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher OOCM4m($F4ajUn1vMEIBNUw#
local-user admin service-type http
#
firewall zone Local
priority 16
#
interface Ethernet0/0/0
ip address 35.1.1.5 255.255.255.0
#
interface Ethernet0/0/1
#
interface Serial0/0/0
link-protocol ppp
#
interface Serial0/0/1
link-protocol ppp
#
interface Serial0/0/2
link-protocol ppp
#
interface Serial0/0/3
link-protocol ppp
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/3
#
wlan
#
interface NULL0
#
interface LoopBack0
ip address 5.5.5.5 255.255.255.255
#
bgp 5
router-id 5.5.5.5
peer 35.1.1.3 as-number 1
#
ipv4-family unicast
  undo synchronization
  network 5.5.5.5 255.255.255.255
  peer 35.1.1.3 enable
#
user-interface con 0
user-interface vty 0 4
user-interface vty 16 20
#
return
R5上学习BGP路由表显示正常
[R5]         dis bgp routing-table

BGP Local router ID is 5.5.5.5
Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete


Total Number of Routes: 2
      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn

*>   4.4.4.4/32         35.1.1.3                              0      1 4i
*>   5.5.5.5/32         0.0.0.0         0                     0      i
发表于 2014-6-16 11:13:47 | 显示全部楼层
肯定不通呀,因为没有路由。
沙发 2014-6-16 11:13:47 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2014-6-16 11:14:34 | 显示全部楼层
请问r4与r5通你知道是为什么通吗,如果不知道。那MPLS你没有理解。
板凳 2014-6-16 11:14:34 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-10 10:47 , Processed in 0.068533 second(s), 13 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表