Cisco ·ÓÉÆ÷ÅäÖ㺠! version 12.3 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname R1 ! ! ip subnet-zero no ip source-route ip cef ip vrf vpn_a rd 2:1 route-target export 111:1 route-target import 111:1 route-target import 111:2 ! ip vrf vpn_b rd 3:304 route-target export 222:304 route-target export 111:2 route-target import 222:3 route-target import 111:1 ! mpls label protocol ldp mpls ldp logging neighbor-changes no ftp-server write-enable ! ! ! ! interface Loopback0 ip address 192.168.40.1 255.255.255.255 ip router isis ! interface Loopback200 ip vrf forwarding vpn_a ip address 10.10.64.1 255.255.255.0 ! interface Loopback300 ip vrf forwarding vpn_b ip address 10.10.65.1 255.255.255.0 ! interface ATM2/0 no ip address no atm ilmi-keepalive ! interface ATM2/0.1 point-to-point ip address 192.168.34.4 255.255.255.0 ip router isis pvc 1/134 protocol ip 192.168.34.3 brvpn_adcast encapsulation aal5snap ! tag-switching ip ! router isis net 47.0001.0000.0000.4444.00 ! router bgp 65888 no synchronization bgp router-id 192.168.40.1 bgp log-neighbor-changes neighbor rr-server peer-group neighbor rr-server remote-as 65888 neighbor rr-server update-source Loopback0 neighbor 192.168.30.1 peer-group rr-server no auto-summary ! address-family vpnv4 neighbor 192.168.30.1 activate neighbor 192.168.30.1 send-community both exit-address-family ! address-family ipv4 vrf vpn_b redistribute connected no auto-summary no synchronization exit-address-family ! no ip http server ip classless ! ! ! ! line con 0 line aux 0 line vty 0 4 login ! ! end Juniper ·ÓÉÆ÷ÅäÖÃ: version 6.0R1.5; system { host-name R2; login { user juny { uid 2001; class super-user; authentication { encrypted-password "$1$fhr423rkSB$0/fnrTsdfljwerWbeHX0"; # SECRET-DATA } } } services { telnet; } } chassis { no-source-route; } interfaces { at-0/0/1 { description "To ATM Backbone"; atm-options { vpi 1 { maximum-vcs 1023; } } unit 2 { encapsulation atm-snap; vci 1.134; family inet { address 192.168.34.3/24; } family iso; family mpls; } } vt-0/3/0 { unit 200 { family inet; family mpls; } unit 300 { family inet; family mpls; } } lo0 { unit 0 { family inet { address 192.168.30.1/32; } family iso { address 47.0001.0000.0000.3333.00; } } unit 200 { description "For vpn_a "; family inet { address 10.10.0.1/32; } } unit 300 { description "For vpn_b "; family inet { address 10.10.1.1/32; } } } } routing-options { router-id 192.168.30.1; autonomous-system 65888; } protocols { mpls { interface at-0/0/1.2; } bgp { local-address 192.168.30.1; group rr-client { type internal; local-address 192.168.30.1; family inet-vpn { any; } cluster 192.168.30.1; neighbor 192.168.10.1; neighbor 192.168.20.1; neighbor 192.168.40.1; neighbor 192.168.50.1; neighbor 192.168.60.1; } } isis { level 2 wide-metrics-only; interface at-0/0/1.2; interface lo0.0; } ldp { interface at-0/0/1.2; interface lo0.0; } } policy-options { policy-statement vpn_a-import { term a { from community [ vpn_a vpn_a-im ]; then accept; } term b { then reject; } } policy-statement vpn_a-export { term a { from protocol direct; then { community add vpn_a; accept; } } term b { then reject; } } policy-statement vpn_b-import { term a { from community [ vpn_b-province-to-city vpn_b-r4-site1 vpn_a ]; then accept; } term b { then reject; } } policy-statement vpn_b-export { term a { from protocol direct; then { community add vpn_b-site1-to-province; community add vpn_a-im; accept; } } term b { then reject; } } community vpn_a members target:111:1; community vpn_a-im members target:111:2; community vpn_b members target:111:2; community vpn_b-province-to-city members target:222:1; community vpn_b-r4-site1 members target:222:304; community vpn_b-site1-to-province members target:222:3; } routing-instances { vpn_a { description "For vpn_a"; instance-type vrf; interface lo0.200; interface vt-0/3/0.200; route-distinguisher 2:1; vrf-import vpn_a-import; vrf-export vpn_a-export; routing-options { auto-export; } } vpn_b { description "For vpn_b"; instance-type vrf; interface lo0.300; interface vt-0/3/0.300; route-distinguisher 3:3; vrf-import vpn_b-import; vrf-export vpn_b-export; routing-options { auto-export; } } }