Topology:
vMX7----(ebgp)----[ge-0/0/1.0]vMX8----(ebgp)----vMX9
Junos version:
root> show version
Model: vmx
Junos: 14.1R1.10
On vMX8:
vMX8 has learnt 7.7.7.7/32 from vMX7 via ebgp, 10.10.10.10/32 is lo0.0 of vMX8
root> show route table clean
clean.inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
6.6.6.6/32 *[BGP/170] 00:43:43, localpref 100
AS path: 100 I, validation-state: unverified
> to 68.1.1.6 via ge-0/0/0.0
7.7.7.7/32 *[BGP/170] 00:43:43, localpref 100
AS path: 200 I, validation-state: unverified
> to 78.1.1.7 via ge-0/0/1.0
10.10.10.10/32 *[Direct/0] 00:27:14
> via lo0.1
89.1.20.0/24 *[Direct/0] 00:58:59
> via ge-0/0/2.20
89.1.20.8/32 *[Local/0] 00:58:59
Local via ge-0/0/2.20
I intend to export both 7.7.7.7/32 and 10.10.10.10/32 to vMX9. below is my policy configuration
root> show configuration policy-options policy-statement clean-to-bgp
from {
route-filter 6.6.6.6/32 exact;
route-filter 7.7.7.7/32 exact;
route-filter 10.10.10.10/32 exact;
}
then accept;
root> show configuration routing-instances clean
instance-type vrf;
interface ge-0/0/2.20;
interface lo0.1;
route-distinguisher 1:1;
vrf-target target:1:1;
routing-options {
autonomous-system 350;
}
protocols {
bgp {
group ebgp {
type external;
export clean-to-bgp;
peer-as 300;
neighbor 89.1.20.9;
}
}
}
If I do a "show route advertising-protocol bgp 89.1.20.9", only 10.10.10.10/32 gets exported.
root> show route advertising-protocol bgp 89.1.20.9
clean.inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
Prefix Nexthop MED Lclpref AS path
* 10.10.10.10/32 Self I
root>