root# show | no-more ASBR-1 { interfaces { em1 { unit 4 { vlan-id 4; family inet { address 21.21.21.1/30; } family mpls; } } em2 { unit 3 { vlan-id 3; family inet { address 20.20.20.2/30; } family mpls; } } lo0 { unit 4 { family inet { address 4.4.4.4/32; } } } } protocols { rsvp { interface em2.3; interface lo0.4; } mpls { label-switched-path To-PE-1 { to 2.2.2.2; } interface em2.3; interface lo0.4; } bgp { group to_PE-1 { type internal; local-address 4.4.4.4; family inet { labeled-unicast { resolve-vpn; } } export testing; neighbor 2.2.2.2 { family inet { labeled-unicast; } } } group to_ASBR-2 { type external; family inet { labeled-unicast; } export To-ASBR-2; peer-as 200; neighbor 21.21.21.2; } } ospf { traffic-engineering; area 0.0.0.0 { interface em2.3; interface lo0.4; } } } policy-options { policy-statement To-ASBR-2 { term 1 { from { protocol ospf; route-filter 2.2.2.2/32 exact; } then accept; } term 2 { then reject; } } policy-statement testing { term 1 { from { protocol direct; route-filter 4.4.4.4/32 exact; } then accept; } } } routing-options { autonomous-system 100; } } ASBR-2 { interfaces { em1 { unit 5 { vlan-id 5; family inet { address 22.22.22.1/30; } family mpls; } } em2 { unit 4 { vlan-id 4; family inet { address 21.21.21.2/30; } family mpls; } } lo0 { unit 5 { family inet { address 5.5.5.5/32; } } } } protocols { rsvp { interface em1.5; interface lo0.5; } mpls { label-switched-path To-PE-2 { to 7.7.7.7; } interface em1.5; interface lo0.5; } bgp { group To-ASBR-1 { type external; local-address 21.21.21.2; family inet { labeled-unicast; } export To-ASBR-1; peer-as 100; neighbor 21.21.21.1; } group To-PE-2 { type internal; local-address 5.5.5.5; family inet { labeled-unicast; } neighbor 7.7.7.7; } } ospf { traffic-engineering; area 0.0.0.0 { interface em1.5; interface lo0.5; } } } policy-options { policy-statement To-ASBR-1 { term 1 { from { protocol ospf; route-filter 7.7.7.7/32 exact; } then accept; } term 2 { then reject; } } } routing-options { autonomous-system 200; } } CE-1 { interfaces { em1 { unit 1 { vlan-id 1; family inet { address 18.18.18.1/30; } } } lo0 { unit 1 { family inet { address 1.1.1.1/32; } } } } protocols { ospf { area 0.0.0.2 { interface em1.1; interface lo0.1; } } } } P-1 { interfaces { em1 { unit 3 { vlan-id 3; family inet { address 20.20.20.1/30; } family mpls; } } em2 { unit 2 { vlan-id 2; family inet { address 19.19.19.2/30; } family mpls; } } lo0 { unit 3 { family inet { address 3.3.3.3/32; } } } } protocols { rsvp { interface em1.3; interface em2.2; interface lo0.3; } mpls { interface em1.3; interface em2.2; interface lo0.3; } ospf { traffic-engineering; area 0.0.0.0 { interface em1.3; interface em2.2; interface lo0.3; } } } } P-2 { interfaces { em1 { unit 6 { vlan-id 6; family inet { address 23.23.23.1/30; } family mpls; } } em2 { unit 5 { vlan-id 5; family inet { address 22.22.22.2/30; } family mpls; } } lo0 { unit 6 { family inet { address 6.6.6.6/32; } } } } protocols { rsvp { interface em1.6; interface em2.5; interface lo0.6; } mpls { interface em1.6; interface em2.5; interface lo0.6; } ospf { traffic-engineering; area 0.0.0.0 { interface lo0.6; interface em1.6; interface em2.5; } } } } PE-1 { interfaces { em1 { unit 2 { vlan-id 2; family inet { address 19.19.19.1/30; } family mpls; } } em2 { unit 1 { vlan-id 1; family inet { address 18.18.18.2/30; } } } lo0 { unit 2 { family inet { address 2.2.2.2/32; } } } } protocols { rsvp { interface em1.2; interface lo0.2; } mpls { label-switched-path to_ASBR-1 { to 4.4.4.4; } interface em1.2; interface lo0.2; } bgp { group To_ASBR-1 { type internal; local-address 2.2.2.2; neighbor 4.4.4.4 { family inet { labeled-unicast { resolve-vpn; } } } } group to_PE-2 { multihop { ttl 20; } local-address 2.2.2.2; family inet-vpn { unicast; } neighbor 7.7.7.7 { peer-as 200; } } } ospf { traffic-engineering; area 0.0.0.0 { interface lo0.2; interface em1.2; } } } policy-options { policy-statement bgp-to-ospf { term 1 { from protocol bgp; then accept; } term 2 { then reject; } } policy-statement vpnexport { term 1 { from { protocol bgp; community test_comm; } then accept; } term 2 { then reject; } } policy-statement vpnimport { term 1 { from { protocol bgp; community test_comm; } then accept; } term 2 { then reject; } } community test_comm members target:1:100; } routing-instances { vpn2CE1 { instance-type vrf; interface em2.1; route-distinguisher 1:100; vrf-import vpnimport; vrf-export vpnexport; protocols { ospf { export bgp-to-ospf; area 0.0.0.2 { interface em2.1; } } } } } routing-options { autonomous-system 100; } } PE-2 { interfaces { em1 { unit 7 { vlan-id 7; family inet { address 24.24.24.1/30; } family mpls; } } em2 { unit 6 { vlan-id 6; family inet { address 23.23.23.2/30; } family mpls; } } lo0 { unit 7 { family inet { address 7.7.7.7/32; } } } } protocols { rsvp { interface em2.6; interface lo0.7; } mpls { label-switched-path To-ASBR-2 { to 5.5.5.5; } interface em2.6; interface lo0.7; } bgp { group To-ASBR-2 { type internal; local-address 7.7.7.7; family inet { labeled-unicast { resolve-vpn; } } neighbor 5.5.5.5; } group To-PE-1 { multihop { ttl 20; } local-address 7.7.7.7; family inet-vpn { unicast; } neighbor 2.2.2.2 { peer-as 100; } } } ospf { traffic-engineering; area 0.0.0.0 { interface em2.6; interface lo0.7; } } } routing-options { autonomous-system 200; } } [edit logical-systems]