Hi Kingsman,
Sure. No problem:
MX240-1
set policy-options policy-statement internal-block-ng from route-filter 195.80.0.0/24 orlonger
set policy-options policy-statement ninegroup-network term 1 from route-filter 195.80.0.44/30 exact
set policy-options policy-statement ninegroup-network term 1 then accept
set protocols bgp damping
set protocols bgp group external-peers type external
set protocols bgp group external-peers export internal-block-ng
set protocols bgp group external-peers export ninegroup-network
set protocols bgp group external-peers peer-as xxxxx
set protocols bgp group external-peers neighbor 50.50.50.1
Output on transit:
*> 50.50.50.0/30 0.0.0.0 0 32768 i
*> 192.168.10.1/32 0.0.0.0 0 32768 i
*> 192.168.11.1/32 0.0.0.0 0 32768 i
*> 192.168.12.1/32 0.0.0.0 0 32768 i
*> 192.168.13.1/32 0.0.0.0 0 32768 i
*> 192.168.14.1/32 0.0.0.0 0 32768 i
*> 195.80.0.44/30 50.50.50.2 20 0 20099 i
Output on MX240:
inet.0: 31 destinations, 32 routes (31 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
50.50.50.0/30 [BGP/170] 17:17:40, MED 0, localpref 100
AS path: 174 I, validation-state: unverified
> to 50.50.50.1 via ge-1/0/1.0
192.168.10.1/32 *[BGP/170] 17:17:40, MED 0, localpref 100
AS path: 174 I, validation-state: unverified
> to 50.50.50.1 via ge-1/0/1.0
192.168.11.1/32 *[BGP/170] 17:17:40, MED 0, localpref 100
AS path: 174 I, validation-state: unverified
> to 50.50.50.1 via ge-1/0/1.0
192.168.12.1/32 *[BGP/170] 17:17:40, MED 0, localpref 100
AS path: 174 I, validation-state: unverified
> to 50.50.50.1 via ge-1/0/1.0
192.168.13.1/32 *[BGP/170] 17:17:40, MED 0, localpref 100
AS path: 174 I, validation-state: unverified
> to 50.50.50.1 via ge-1/0/1.0
192.168.14.1/32 *[BGP/170] 17:17:40, MED 0, localpref 100
AS path: 174 I, validation-state: unverified
> to 50.50.50.1 via ge-1/0/1.0
Show route advertising-protocol bgp:
inet.0: 31 destinations, 32 routes (31 active, 0 holddown, 0 hidden)
Prefix Nexthop MED Lclpref AS path
* 195.80.0.44/30 Self 20 I
As expected:
MX240-2:
set policy-options policy-statement internal-block-ng from route-filter 195.80.0.0/24 orlonger
set policy-options policy-statement ninegroup1-network term 1 from route-filter 195.80.0.44/30 exact
set policy-options policy-statement ninegroup1-network then accept
set protocols bgp damping
set protocols bgp group External-Peers type external
set protocols bgp group External-Peers export internal-block-ng
set protocols bgp group External-Peers export ninegroup1-network
set protocols bgp group External-Peers peer-as 3257
set protocols bgp group External-Peers neighbor 192.168.100.1
Output on transit:
GP table version is 198, local router ID is 192.168.100.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 192.168.85.0 192.168.100.2 10 0 20099 i
* 192.168.100.0/30 192.168.100.2 0 20099 i
*> 0.0.0.0 0 32768 i
*> 192.168.150.1/32 0.0.0.0 0 32768 i
*> 192.168.151.1/32 0.0.0.0 0 32768 i
*> 192.168.152.1/32 0.0.0.0 0 32768 i
*> 192.168.153.1/32 0.0.0.0 0 32768 i
*> 195.80.0.1/32 192.168.100.2 20 0 20099 i
*> 195.80.0.2/32 192.168.100.2 10 0 20099 i
*> 195.80.0.4/32 192.168.100.2 10 0 20099 i
*> 195.80.0.5/32 192.168.100.2 0 20099 i
*> 195.80.0.12/30 192.168.100.2 20 0 20099 i
*> 195.80.0.16/30 192.168.100.2 20 0 20099 i
*> 195.80.0.20/30 192.168.100.2 0 20099 i
*> 195.80.0.32/30 192.168.100.2 0 20099 i
*> 195.80.0.36/30 192.168.100.2 40 0 20099 i
*> 195.80.0.44/30 192.168.100.2 0 20099 i
Network Next Hop Metric LocPrf Weight Path
*> 195.80.0.52/30 192.168.100.2 30 0 20099 i
*> 195.80.0.68/30 192.168.100.2 40 0 20099 i
*> 195.80.0.72/30 192.168.100.2 30 0 20099 i
Output on MX240-2:
inet.0: 31 destinations, 32 routes (31 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
192.168.100.0/30 [BGP/170] 17:41:37, MED 0, localpref 100
AS path: 3257 I, validation-state: unverified
> to 192.168.100.1 via ge-1/0/1.0
192.168.150.1/32 *[BGP/170] 17:41:37, MED 0, localpref 100
AS path: 3257 I, validation-state: unverified
> to 192.168.100.1 via ge-1/0/1.0
192.168.151.1/32 *[BGP/170] 17:41:37, MED 0, localpref 100
AS path: 3257 I, validation-state: unverified
> to 192.168.100.1 via ge-1/0/1.0
192.168.152.1/32 *[BGP/170] 17:41:37, MED 0, localpref 100
AS path: 3257 I, validation-state: unverified
> to 192.168.100.1 via ge-1/0/1.0
192.168.153.1/32 *[BGP/170] 17:41:37, MED 0, localpref 100
AS path: 3257 I, validation-state: unverified
> to 192.168.100.1 via ge-1/0/1.0
Show route advertising-protocol bgp:
inet.0: 31 destinations, 32 routes (31 active, 0 holddown, 0 hidden)
Prefix Nexthop MED Lclpref AS path
* 192.168.85.0/24 Self 10 I
* 192.168.100.0/30 Self I
* 195.80.0.1/32 Self 20 I
* 195.80.0.2/32 Self 10 I
* 195.80.0.4/32 Self 10 I
* 195.80.0.5/32 Self I
* 195.80.0.12/30 Self 20 I
* 195.80.0.16/30 Self 20 I
* 195.80.0.20/30 Self I
* 195.80.0.32/30 Self I
* 195.80.0.36/30 Self 40 I
* 195.80.0.44/30 Self I
* 195.80.0.52/30 Self 30 I
* 195.80.0.68/30 Self 40 I
* 195.80.0.72/30 Self 30 I
So, as you can see, the routes on one transit look good and the routes on the second look completely different.