Hi Team,
i'm facing an issue where juniper is connected with CISCO (PE router) and receiving two routes( 7.7.7.7 and 77.77.77.77) with route-target 100:1. i have created a policy to match the route target and applied in the routing-instance but route is not available in routing-instance table (routinginstance.inet.0) but it is available in bgp.l3vpn.0
root@R1> show route table bgp.l3vpn.0 detail
bgp.l3vpn.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
100:1:7.7.7.7/32 (1 entry, 0 announced)
*BGP Preference: 170/-101
Route Distinguisher: 100:1
Next hop type: Indirect
Address: 0x93347f0
Next-hop reference count: 1
Source: 4.4.4.4
Next hop type: Router, Next hop index: 585
Next hop: 12.0.0.2 via em1.0, selected
Label operation: Push 405, Push 202(top)
Label TTL action: prop-ttl, prop-ttl(top)
Protocol next hop: 4.4.4.4
Push 405
Indirect next hop: 945c570 131070
State: <Active Int Ext>
Local AS: 12 Peer AS: 12
Age: 27:41 Metric: 1010 Metric2: 1
Task: BGP_12.4.4.4.4+27322
AS path: ?
Communities: target:100:1
Import Accepted
VPN Label: 405
Localpref: 100
Router ID: 4.4.4.4
routing-table of routing-instance:-
root@R1> show route table A.inet.0
A.inet.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
6.6.6.6/32 *[OSPF/10] 00:43:50, metric 2
> to 61.0.0.6 via em2.0
61.0.0.0/24 *[Direct/0] 00:44:07
> via em2.0
61.0.0.1/32 *[Local/0] 00:44:09
Local via em2.0
224.0.0.5/32 *[OSPF/10] 00:44:11, metric 1
MultiRecv
root@R1>
root@R1> show configuration policy-options
policy-statement export_to_PE4 {
term a {
from protocol ospf2;
then {
community set export_to_PE4;
accept;
}
}
}
policy-statement import_to_A {
term a {
from community import_to_PE4;
then accept;
}
}
community export_to_PE4 members target:100:1;
community import_to_PE4 members [ target:200:1 target:100:1 ];
root@R1>
root@R1> show configuration routing-instances
A {
instance-type vrf;
interface em2.0;
route-distinguisher 100:1;
vrf-import import_to_A;
vrf-export export_to_PE4;
vrf-table-label;
protocols {
ospf {
inactive: traceoptions {
file ospf_A size 10k files 3;
flag hello;
flag event;
flag error detail;
flag packets detail;
}
area 0.0.0.0 {
interface em2.0 {
interface-type p2p;
}
}
}
}
}
root@R1>
root@R1> show bgp summary
Groups: 1 Peers: 1 Down peers: 0
Table Tot Paths Act Paths Suppressed History Damp State Pending
bgp.l3vpn.0 2 2 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
4.4.4.4 12 106 109 0 0 46:38 Establ
bgp.l3vpn.0: 2/2/2/0
root@R1>
#routing#L3VPN#BGP#MPLS