BGP is a path vector routing protocol used to exchange routing information among routers in same and different Autonomous Systems (AS).BGP operates over TCP port 179. Exchanging routes on the Internet through BGP requires a fair bit of trust in the downstream organization to only send routes they are authoritative for.
Juniper vMX-1:LogicalSystem-1set logical-systems LogicalSystem-1 interfaces lt-0/0/0 unit 101 description "LogicalSystem-2 P2P Interface"set logical-systems LogicalSystem-1 interfaces lt-0/0/0 unit 101 encapsulation ethernetset logical-systems LogicalSystem-1 interfaces lt-0/0/0 unit 101 peer-unit 201set logical-systems LogicalSystem-1 interfaces lt-0/0/0 unit 101 family inet address 10.1.1.1/24 Export in Bgp Group set logical-systems LogicalSystem-1 protocols bgp group remote-peers-group-b type externalset logical-systems LogicalSystem-1 protocols bgp group remote-peers-group-b export export-local-prefixesset logical-systems LogicalSystem-1 protocols bgp group remote-peers-group-b neighbor 10.1.1.2 peer-as 64513Prefix-list set logical-systems LogicalSystem-1 policy-options prefix-list local-prefixes 10.100.0.0/16set logical-systems LogicalSystem-1 policy-options prefix-list local-prefixes 10.101.0.0/16set logical-systems LogicalSystem-1 policy-options prefix-list local-prefixes 10.102.0.0/16set logical-systems LogicalSystem-1 policy-options prefix-list local-prefixes 10.103.0.0/16set logical-systems LogicalSystem-1 policy-options prefix-list local-prefixes 10.104.0.0/16set logical-systems LogicalSystem-1 policy-options prefix-list local-prefixes 10.105.0.0/16set logical-systems LogicalSystem-1 policy-options policy-statement export-local-prefixes term 1 from prefix-list local-prefixesset logical-systems LogicalSystem-1 policy-options policy-statement export-local-prefixes term 1 then acceptLocal-prefixesset logical-systems LogicalSystem-1 routing-options static route 10.100.0.0/16 discardset logical-systems LogicalSystem-1 routing-options static route 10.101.0.0/16 discardset logical-systems LogicalSystem-1 routing-options static route 10.102.0.0/16 discardset logical-systems LogicalSystem-1 routing-options static route 10.103.0.0/16 discardset logical-systems LogicalSystem-1 routing-options static route 10.104.0.0/16 discardset logical-systems LogicalSystem-1 routing-options static route 10.105.0.0/16 discardset logical-systems LogicalSystem-1 routing-options autonomous-system 64512Juniper vMX-1:LogicalSystem-2set logical-systems LogicalSystem-2 interfaces lt-0/0/0 unit 201 description "LogicalSystem-1 P2P Interface"set logical-systems LogicalSystem-2 interfaces lt-0/0/0 unit 201 encapsulation ethernetset logical-systems LogicalSystem-2 interfaces lt-0/0/0 unit 201 peer-unit 101set logical-systems LogicalSystem-2 interfaces lt-0/0/0 unit 201 family inet address 10.1.1.2/24set logical-systems LogicalSystem-2 protocols bgp group remote-peers-group-a type externalset logical-systems LogicalSystem-2 protocols bgp group remote-peers-group-a neighbor 10.1.1.1 peer-as 64512Prefix-listset logical-systems LogicalSystem-2 policy-options prefix-list local-prefixes 10.200.0.0/16set logical-systems LogicalSystem-2 policy-options prefix-list local-prefixes 10.201.0.0/16set logical-systems LogicalSystem-2 policy-options prefix-list local-prefixes 10.202.0.0/16set logical-systems LogicalSystem-2 policy-options prefix-list local-prefixes 10.203.0.0/16set logical-systems LogicalSystem-2 policy-options prefix-list local-prefixes 10.204.0.0/16set logical-systems LogicalSystem-2 policy-options prefix-list local-prefixes 10.205.0.0/16Export in BGP Groupset logical-systems LogicalSystem-2 policy-options policy-statement export-local-prefixes term 1 from prefix-list local-prefixesset logical-systems LogicalSystem-2 policy-options policy-statement export-local-prefixes term 1 then acceptset logical-systems LogicalSystem-2 routing-options static route 10.200.0.0/16 discardset logical-systems LogicalSystem-2 routing-options static route 10.201.0.0/16 discardset logical-systems LogicalSystem-2 routing-options static route 10.202.0.0/16 discardset logical-systems LogicalSystem-2 routing-options static route 10.203.0.0/16 discardset logical-systems LogicalSystem-2 routing-options static route 10.204.0.0/16 discardset logical-systems LogicalSystem-2 routing-options static route 10.205.0.0/16 discardset logical-systems LogicalSystem-2 routing-options autonomous-system 64513Verification of exported routes :user@juniper-vMX-1:LogicalSystem-1> show route advertising-protocol bgp 10.1.1.2inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden) Prefix Nexthop MED Lclpref AS path* 10.100.0.0/16 Self I* 10.101.0.0/16 Self I* 10.102.0.0/16 Self I* 10.103.0.0/16 Self I* 10.104.0.0/16 Self I* 10.105.0.0/16 Self Iuser@juniper-vMX-1:LogicalSystem-2> show route advertising-protocol bgp 10.1.1.1inet.0: 14 destinations, 14 routes (14 active, 0 holddown, 0 hidden) Prefix Nexthop MED Lclpref AS path* 10.200.0.0/16 Self I* 10.201.0.0/16 Self I* 10.202.0.0/16 Self I* 10.203.0.0/16 Self I* 10.204.0.0/16 Self I* 10.205.0.0/16 Self IImported routes before BGP prefix filtering:user@juniper-vMX-1:LogicalSystem-1> show route receive-protocol bgp 10.1.1.2 inet.0: 14 destinations, 14 routes (14 active, 0 holddown, 0 hidden) Prefix Nexthop MED Lclpref AS path* 10.200.0.0/16 10.1.1.2 64513 I* 10.201.0.0/16 10.1.1.2 64513 I* 10.202.0.0/16 10.1.1.2 64513 I* 10.203.0.0/16 10.1.1.2 64513 I* 10.204.0.0/16 10.1.1.2 64513 I* 10.205.0.0/16 10.1.1.2 64513 Iinet6.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)user@juniper-vMX-1:LogicalSystem-2> show route receive-protocol bgp 10.1.1.1inet.0: 14 destinations, 14 routes (14 active, 0 holddown, 0 hidden) Prefix Nexthop MED Lclpref AS path* 10.100.0.0/16 10.1.1.1 64512 I* 10.101.0.0/16 10.1.1.1 64512 I* 10.102.0.0/16 10.1.1.1 64512 I* 10.103.0.0/16 10.1.1.1 64512 I* 10.104.0.0/16 10.1.1.1 64512 I* 10.105.0.0/16 10.1.1.1 64512 Iinet6.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)