返回列表 发帖

MPLS-VPN,两边ce有对端路由,互ping不通,求解

拓扑如图: 中间的域已开MPLS,运行IGP,两PE运行BGP,两CE均有对方路由,互ping不通 配置如下: PE1:-----(R2) ip vrf wick rd 1:1 route-target export 1:1 route-target import 1:1 ! ! ! ip cef no ip domain lookup no ipv6 traffic interface-statistics no ipv6 cef ! multilink bundle-name authenticated mpls ip default-route mpls label protocol ldp ! ! ! redundancy ! interface Loopback0 ip address 2.2.2.2 255.255.255.0 ! interface Ethernet0/1 ip address 23.1.1.2 255.255.255.0 mpls ip ! ! interface Serial2/2 ip vrf forwarding wick ip address 12.1.1.2 255.255.255.0 serial restart-delay 0 ! ! router ospf 110 router-id 2.2.2.2 log-adjacency-changes network 2.2.2.0 0.0.0.255 area 0 network 23.1.1.0 0.0.0.255 area 0 ! router rip version 2 no auto-summary ! address-family ipv4 vrf wick redistribute bgp 1 metric transparent network 12.0.0.0 no auto-summary exit-address-family ! router bgp 1 no synchronization bgp router-id 2.2.2.2 bgp log-neighbor-changes neighbor 7.7.7.7 remote-as 1 neighbor 7.7.7.7 update-source Loopback0 no auto-summary ! address-family vpnv4 neighbor 7.7.7.7 activate neighbor 7.7.7.7 send-community both exit-address-family ! address-family ipv4 vrf wick no synchronization redistribute rip exit-address-family ! ip forward-protocol nd PE2:--(R7) ip vrf wick rd 1:1 route-target export 1:1 route-target import 1:2 ! ! ! ip cef no ip domain lookup no ipv6 traffic interface-statistics no ipv6 cef ! multilink bundle-name authenticated mpls ip default-route mpls label protocol ldp ! ! ! redundancy ! interface Loopback0 ip address 7.7.7.7 255.255.255.0 ! ! interface Ethernet1/1 ip address 37.1.1.7 255.255.255.0 mpls ip ! ! interface Serial3/0 ip vrf forwarding wick ip address 76.1.1.7 255.255.255.0 serial restart-delay 0 ! ! router ospf 110 router-id 7.7.7.7 log-adjacency-changes network 7.7.7.0 0.0.0.255 area 0 network 37.1.1.0 0.0.0.255 area 0 ! router rip version 2 no auto-summary ! address-family ipv4 vrf wick redistribute bgp 1 metric transparent network 76.0.0.0 no auto-summary exit-address-family ! router bgp 1 no synchronization bgp router-id 7.7.7.7 bgp log-neighbor-changes neighbor 2.2.2.2 remote-as 1 neighbor 2.2.2.2 update-source Loopback0 no auto-summary ! address-family vpnv4 neighbor 2.2.2.2 activate neighbor 2.2.2.2 send-community both exit-address-family ! address-family ipv4 vrf wick no synchronization redistribute rip exit-address-family ! ip forward-protocol nd !

dddddddddddddddddd

TOP

期待答案。。。。。

TOP

再pe两端的接口下没有开启mpls lable protocol ldp 。还有你在igp内部的那一台的两个接口下也要开启mpls lable protocol ldp ,mpls ip 。

TOP

他已经全局开了mpls label protocol ldp,再说PE-CE端是不需要MPLS的。。不过中间的是需要走MPLS,不知道他走了没

TOP

有时候也要在接口下再开启一次这样ldp pe和p路由器之间ldp才能起来的

TOP

原因很简单 1: PE两端的route-target 不对应(不知道你的CE端居然能收到路由) 2: 你MPLS域底层跑的是OSPF 解决方案把运行BGP的那两台路由器的lookback口 网络类型改成point-to-point 记住MPLS不给BGP路由打标签 只会给BGP的NEXT-HOP打标签 由于lookback口的网络类型 标签没打成功 欢迎其他人士补充和修正

TOP

address-family ipv4 vrf wick redistribute bgp 1 metric transparent version 2 network 76.0.0.0 no auto-summary exit-address-family !

TOP

7楼正解 刚也遇到了这个问题

TOP

个人认为7楼的说得比较准确,一边的输入输出都是1:1,另一边则一个是1:1和1:2,那么肯定是有一边没有学到对面的路由的,因为RT不匹配. RT就相当于路由过滤的作用. 另外,为Loopback改网络类型就有点不理解了,思科Loopback不是默认p2p的么

TOP

返回列表 回复 发帖