[BEGIN] 2012/9/14 ¤W¤È 01:06:40 logical-systems { R1 { interfaces { fe-0/3/0 { unit 201 { vlan-id 201; family inet { address 100.100.100.1/30; } } } lo0 { unit 1001 { family inet { address 1.1.1.1/32; } } } } protocols { ospf { area 0.0.0.2 { interface lo0.1001; interface fe-0/3/0.201; } } } } R2 { interfaces { so-0/0/0 { unit 1001 { dlci 1001; family inet { address 200.200.200.1/30; } family mpls; } } lo0 { unit 1002 { family inet { address 2.2.2.2/32; } } } fe-0/3/1 { unit 201 { vlan-id 201; family inet { address 100.100.100.2/30; } family mpls; } } } protocols { rsvp { interface so-0/0/0.1001; } mpls { label-switched-path To_PE2 { to 4.4.4.4; } interface so-0/0/0.1001; interface fe-0/3/1.201; } bgp { group To_PE2 { type internal; local-address 2.2.2.2; neighbor 4.4.4.4 { family inet-vpn { unicast; } } } } ospf { traffic-engineering; area 0.0.0.0 { interface so-0/0/0.1001; interface lo0.1002; } } } policy-options { policy-statement import-vpn-route { term 1 { from { protocol bgp; community im200; } then accept; } term 2 { then reject; } } policy-statement export-vpn-route { term 1 { from protocol ospf; then { community add im199; accept; } } term 2 { then reject; } } policy-statement export-bgp-to-vpn1 { term 1 { from protocol bgp; then accept; } term 2 { then reject; } } community im199 members target:199:001; community im200 members target:200:001; } routing-instances { vpn2CE1 { instance-type vrf; interface fe-0/3/1.201; route-distinguisher 65001:001; vrf-import import-vpn-route; vrf-export export-vpn-route; protocols { ospf { export export-bgp-to-vpn1; area 0.0.0.2 { interface fe-0/3/1.201; } } } } } routing-options { router-id 2.2.2.2; autonomous-system 100; } } R3 { interfaces { so-0/1/0 { unit 1001 { dlci 1001; family inet { address 200.200.200.2/30; } family mpls; } } lo0 { unit 1003 { family inet { address 3.3.3.3/32; } } } so-0/0/0 { unit 1003 { dlci 1003; family inet { address 203.203.203.1/30; } family mpls; } } } protocols { rsvp { interface so-0/1/0.1001; interface so-0/0/0.1003; } mpls { interface so-0/0/0.1003; interface so-0/1/0.1001; } ospf { traffic-engineering; area 0.0.0.0 { interface so-0/1/0.1001; interface so-0/0/0.1003; interface lo0.1003; } } } } R4 { interfaces { so-0/1/0 { unit 1003 { dlci 1003; family inet { address 203.203.203.2/30; } family mpls; } } fe-0/3/2 { unit 1004 { vlan-id 1004; family inet { address 204.204.204.1/30; } family mpls; } } lo0 { unit 1004 { family inet { address 4.4.4.4/32; } } } } protocols { rsvp { interface so-0/1/0.1003; } mpls { label-switched-path To_PE1 { to 2.2.2.2; } interface so-0/1/0.1003; interface fe-0/3/2.1004; } bgp { group To_PE1 { type internal; local-address 4.4.4.4; neighbor 2.2.2.2 { family inet-vpn { unicast; } } } } ospf { traffic-engineering; area 0.0.0.0 { interface so-0/1/0.1003; interface lo0.1004; } } } policy-options { policy-statement import-vpn-route { term 1 { from { protocol bgp; community im199; } then accept; } term 2 { then reject; } } policy-statement export-vpn-route { term 1 { from protocol [ bgp local static direct ]; then { community add im200; accept; } } term 2 { then reject; } } community im200 members target:200:001; community im199 members target:199:001; } routing-instances { vpn2CE2 { instance-type vrf; interface fe-0/3/2.1004; route-distinguisher 65001:001; vrf-import import-vpn-route; vrf-export export-vpn-route; routing-options { static { route 5.5.5.5/32 next-hop 204.204.204.2; } } protocols { bgp { group To_CE2 { type external; local-address 204.204.204.1; peer-as 20; neighbor 204.204.204.2; } } } } } routing-options { router-id 4.4.4.4; autonomous-system 100; } } R5 { interfaces { fe-0/3/3 { unit 1004 { vlan-id 1004; family inet { address 204.204.204.2/30; } } } lo0 { unit 1005 { family inet { address 5.5.5.5/32; } } } } protocols { bgp { group To_PE2 { type external; local-address 204.204.204.2; neighbor 204.204.204.1 { peer-as 100; } } } } routing-options { router-id 5.5.5.5; autonomous-system 20; } } } [edit groups l3vpn] lab# [END] 2012/9/14 ¤W¤È 01:06:55