<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报文。
(0)
最佳答案
看下display ip route-table vpn-instance 1,看一下bgp的路由有没有加表,如果加表了,把你的工程发一下,有空的时候,我可以看下你的工程。
(0)
如果没加变怎么样?
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
没加表肯定就不通了,如果没有加表,先按照bgp选路原则,排查一下bgp路由为什么没有加表