This example provides a step-by-step procedure to configure multicast VPN extranets using static rendezvous points. It is organized in the following sections:
This example uses the following hardware and software components:
In the topology shown in Figure 33:
The topology of the network is shown in Figure 33.
Figure 33: MVPN Extranets Topology Diagram

![]() |
Note: In any configuration session, it is good practice to verify periodically that the configuration can be committed using the commit check command. |
In this example, the router being configured is identified using the following command prompts:
To configure multicast VPN extranets, perform the following tasks:
- user@ce1# set interfaces lo0 unit 0 family
inet address 192.168.6.1/32 primary
- user@pe1# set interfaces lo0 unit 0 family
inet address 192.168.1.1/32 primary
- user@pe2# set interfaces lo0 unit 0 family
inet address 192.168.2.1/32 primary
- user@ce2# set interfaces lo0 unit 0 family
inet address 192.168.4.1/32 primary
- user@pe3# set interfaces lo0 unit 0 family
inet address 192.168.7.1/32 primary
- user@ce3# set interfaces lo0 unit 0 family
inet address 192.168.9.1/32 primary
Use the show interfaces terse command to verify that the correct IP address is configured on the loopback interface.
- user@ce1# set interfaces fe-1/3/0 unit 0 family
inet address 10.10.12.1/24
- user@pe1# set interfaces fe-0/1/0 unit 0 description
"to H2"
- user@pe1# set interfaces fe-0/1/0 unit 0 family
inet address 10.2.11.2/30
- user@pe1# set interfaces fe-0/1/1 unit 0 description
"to PE3 fe-0/1/1.0"
- user@pe1# set interfaces fe-0/1/1 unit 0 family
inet address 10.0.17.13/30
- user@pe1# set interfaces ge-0/3/0 unit 0 family
inet address 10.0.12.9/30
- user@pe2# set interfaces fe-0/1/3 unit 0 description
"to PE3 fe-0/1/3.0"
- user@pe2# set interfaces fe-0/1/3 unit 0 family
inet address 10.0.27.13/30
- user@pe2# set interfaces ge-1/3/0 unit 0 description
"to PE1 ge-0/3/0.0"
- user@pe2# set interfaces ge-1/3/0 unit 0 family
inet address 10.0.12.10/30
- user@ce2# set interfaces fe-0/1/1 unit 0 description
"to H4"
- user@ce2# set interfaces fe-0/1/1 unit 0 family
inet address 10.10.11.2/24
- user@pe3# set interfaces fe-0/1/1 unit 0 description
"to PE1 fe-0/1/1.0"
- user@pe3# set interfaces fe-0/1/1 unit 0 family
inet address 10.0.17.14/30
- user@pe3# set interfaces fe-0/1/3 unit 0 description
"to PE2 fe-0/1/3.0"
- user@pe3# set interfaces fe-0/1/3 unit 0 family
inet address 10.0.27.14/30
- user@ce3# set interfaces fe-0/1/0 unit 0 description
"to H3"
- user@ce3# set interfaces fe-0/1/0 unit 0 family
inet address 10.3.11.3/24
Use the show interfaces terse command to verify that the correct IP address and address family type areconfigured on the interfaces.
- user@ce1# set interfaces so-0/0/3 unit 0 description
"to PE1 so-0/0/3.0;"
- user@ce1# set interfaces so-0/0/3 unit 0 family
inet address 10.0.16.1/30
- user@pe1# set interfaces so-0/0/3 unit 0 description
"to CE1 so-0/0/3.0"
- user@pe1# set interfaces so-0/0/3 unit 0 family
inet address 10.0.16.2/30
- user@pe2# set interfaces so-0/0/1 unit 0 description
"to CE2 so-0/0/1:0.0"
- user@pe2# set interfaces so-0/0/1 unit 0 family
inet address 10.0.24.1/30
- user@ce2# set interfaces so-0/0/1 unit 0 description
"to PE2 so-0/0/1"
- user@ce2# set interfaces so-0/0/1 unit 0 family
inet address 10.0.24.2/30
- user@pe3# set interfaces so-0/0/1 unit 0 description
"to CE3 so-0/0/1.0"
- user@pe3# set interfaces so-0/0/1 unit 0 family
inet address 10.0.79.1/30
- user@ce3# set interfaces so-0/0/1 unit 0 description
"to PE3 so-0/0/1"
- user@ce3# set interfaces so-0/0/1 unit 0 family
inet address 10.0.79.2/30
Use the show configuration interfaces command to verify that the correct IP address and address family type are configured on the interfaces.
user@host> commit checkconfiguration check succeedsuser@host> commitcommit completeOn the PE routers, configure an interior gateway protocol such as OSPF or IS-IS. This example configures Open Shortest Path First (OSPF).
- user@pe1# set protocols ospf area 0.0.0.0
interface ge-0/3/0.0 metric 100
- user@pe1# set protocols ospf area 0.0.0.0
interface fe-0/1/1.0 metric 100
- user@pe1# set protocols ospf area 0.0.0.0
interface lo0.0 passive
- user@pe1# set protocols ospf area 0.0.0.0
interface fxp0.0 disable
- user@pe2# set protocols ospf area 0.0.0.0
interface fe-0/1/3.0 metric 100
- user@pe2# set protocols ospf area 0.0.0.0
interface ge-1/3/0.0 metric 100
- user@pe2# set protocols ospf area 0.0.0.0
interface lo0.0 passive
- user@pe2# set protocols ospf area 0.0.0.0
interface fxp0.0 disable
- user@pe3# set protocols ospf area 0.0.0.0
interface lo0.0 passive
- user@pe3# set protocols ospf area 0.0.0.0
interface fe-0/1/3.0 metric 100
- user@pe3# set protocols ospf area 0.0.0.0
interface fe-0/1/1.0 metric 100
- user@pe3# set protocols ospf area 0.0.0.0
interface fxp0.0 disable
- user@pe1# set routing-options router-id 192.168.1.1
- user@pe2# set routing-options router-id 192.168.2.1
- user@pe3# set routing-options router-id 192.168.7.1
Use the show ospf overview and show configuration protocols ospf commands to verify that the correct interfaces have been configured for the OSPF protocol.
- user@pe1# set protocols ospf traffic-engineering
- user@pe2# set protocols ospf traffic-engineering
- user@pe3# set protocols ospf traffic-engineering
Use the show ospf overview and show configuration protocols ospf commands to verify that traffic engineering support is enabled for the OSPF protocol.
user@host> commit checkconfiguration check succeedsuser@host> commitcommit completeuser@PE1> show ospf neighborsAddress Interface State ID Pri Dead 10.0.17.14 fe-0/1/1.0 Full 192.168.7.1 128 32 10.0.12.10 ge-0/3/0.0 Full 192.168.2.1 128 33
Verify that the neighbor state with the other two PE routers is Full.
The unicast statement enables the router to use BGP to advertise network layer reachability information (NLRI). The signaling statement enables the router to use BGP as the signaling protocol for the VPN.
- user@pe1# set protocols bgp group group-mvpn
type internal
- user@pe1# set protocols bgp group group-mvpn
local-address 192.168.1.1
- user@pe1# set protocols bgp group group-mvpn
family inet-vpn unicast
- user@pe1# set protocols bgp group group-mvpn
family inet-mvpn signaling
- user@pe1# set protocols bgp group group-mvpn
neighbor 192.168.2.1
- user@pe1# set protocols bgp group group-mvpn
neighbor 192.168.7.1
- user@pe2# set protocols bgp group group-mvpn
type internal
- user@pe2# set protocols bgp group group-mvpn
local-address 192.168.2.1
- user@pe2# set protocols bgp group group-mvpn
family inet-vpn unicast
- user@pe2# set protocols bgp group group-mvpn
family inet-mvpn signaling
- user@pe2# set protocols bgp group group-mvpn
neighbor 192.168.1.1
- user@pe2# set protocols bgp group group-mvpn
neighbor 192.168.7.1
- user@pe3# set protocols bgp group group-mvpn
type internal
- user@pe3# set protocols bgp group group-mvpn
local-address 192.168.7.1
- user@pe3# set protocols bgp group group-mvpn
family inet-vpn unicast
- user@pe3# set protocols bgp group group-mvpn
family inet-mvpn signaling
- user@pe3# set protocols bgp group group-mvpn
neighbor 192.168.1.1
- user@pe3# set protocols bgp group group-mvpn
neighbor 192.168.2.1
user@host> commit checkconfiguration check succeedsuser@host> commitcommit completeuser@PE1> show bgp groupGroup Type: Internal AS: 65000 Local AS: 65000 Name: group-mvpn Index: 0 Flags: Export Eval Holdtime: 0 Total peers: 2 Established: 2 192.168.2.1+54883 192.168.7.1+58933 bgp.l3vpn.0: 0/0/0/0 bgp.mvpn.0: 0/0/0/0 Groups: 1 Peers: 2 External: 0 Internal: 2 Down peers: 0 Flaps: 0 Table Tot Paths Act Paths Suppressed History Damp State Pending bgp.l3vpn.0 0 0 0 0 0 0 bgp.mvpn.0 0 0 0 0 0 0
Verify that the peer state for the other two PE routers is Established and that the lo0.0 addresses of the other PE routers are shown as peers.
- user@pe1# set protocols ldp deaggregate
- user@pe1# set protocols ldp interface fe-0/1/1.0
- user@pe1# set protocols ldp interface ge-0/3/0.0
- user@pe1# set protocols ldp interface fxp0.0
disable
- user@pe1# set protocols ldp interface lo0.0
- user@pe2# set protocols ldp deaggregate
- user@pe2# set protocols ldp interface fe-0/1/3.0
- user@pe2# set protocols ldp interface ge-1/3/0.0
- user@pe2# set protocols ldp interface fxp0.0
disable
- user@pe2# set protocols ldp interface lo0.0
- user@pe3# set protocols ldp deaggregate
- user@pe3# set protocols ldp interface fe-0/1/1.0
- user@pe3# set protocols ldp interface fe-0/1/3.0
- user@pe3# set protocols ldp interface fxp0.0
disable
- user@pe3# set protocols ldp interface lo0.0
user@host> commit checkconfiguration check succeedsuser@host> commitcommit completeuser@PE1> show ldp routeDestination Next-hop intf/lsp Next-hop address
10.0.12.8/30 ge-0/3/0.0
10.0.12.9/32
10.0.17.12/30 fe-0/1/1.0
10.0.17.13/32
10.0.27.12/30 fe-0/1/1.0 10.0.17.14
ge-0/3/0.0 10.0.12.10
192.168.1.1/32 lo0.0
192.168.2.1/32 ge-0/3/0.0 10.0.12.10
192.168.7.1/32 fe-0/1/1.0 10.0.17.14
224.0.0.5/32
224.0.0.22/32Verify that a next-hop interface and next-hop address have been established for each remote destination in the core network. Notice that local destinations do not have next-hop interfaces, and remote destinations outside the core do not have next-hop addresses.
- user@pe1# set protocols rsvp interface ge-0/3/0.0
- user@pe1# set protocols rsvp interface fe-0/1/1.0
- user@pe1# set protocols rsvp interface lo0.0
- user@pe1# set protocols rsvp interface fxp0.0
disable
- user@pe2# set protocols rsvp interface fe-0/1/3.0
- user@pe2# set protocols rsvp interface ge-1/3/0.0
- user@pe2# set protocols rsvp interface lo0.0
- user@pe2# set protocols rsvp interface fxp0.0
disable
- user@pe3# set protocols rsvp interface fe-0/1/3.0
- user@pe3# set protocols rsvp interface fe-0/1/1.0
- user@pe3# set protocols rsvp interface lo0.0
- user@pe3# set protocols rsvp interface fxp0.0
disable
user@host> commit checkconfiguration check succeedsuser@host> commitcommit completeVerify these steps using the show configuration protocols rsvp command. You can verify the operation of RSVP only after the LSP is established in Step 10 of “Configuring MVPN Extranet Policy”.
- user@pe1# set protocols mpls interface ge-0/3/0.0
- user@pe1# set protocols mpls interface fe-0/1/1.0
- user@pe1# set protocols mpls interface fxp0.0
disable
- user@pe2# set protocols mpls interface fe-0/1/3.0
- user@pe2# set protocols mpls interface ge-1/3/0.0
- user@pe2# set protocols mpls interface fxp0.0
disable
- user@pe3# set protocols mpls interface fe-0/1/3.0
- user@pe3# set protocols mpls interface fe-0/1/1.0
- user@pe3# set protocols mpls interface fxp0.0
disable
Verify this steps using the show configuration protocols mpls command.
- user@pe1# set interfaces fe-0/1/1 unit 0 family
mpls
- user@pe1# set interfaces ge-0/3/0 unit 0 family
mpls
- user@pe2# set interfaces fe-0/1/3 unit 0 family
mpls
- user@pe2# set interfaces ge-1/3/0 unit 0 family
mpls
- user@pe3# set interfaces fe-0/1/3 unit 0 family
mpls
- user@pe3# set interfaces fe-0/1/1 unit 0 family
mpls
Use the show mpls interface command to verify that the core-facing interfaces have the MPLS address family configured.
user@host> commit checkconfiguration check succeedsuser@host> commitcommit completeYou can verify the operation of MPLS after the LSP is established.
Configure a virtual tunnel (VT) interface on all MVPN routing instances on each PE where hosts in different instances need to receive multicast traffic from the same source.
- user@pe1# set routing-instances green instance-type
vrf
- user@pe1# set routing-instances green interface
so-0/0/3.0
- user@pe1# set routing-instances green interface
vt-1/2/0.1 multicast
- user@pe1# set routing-instances green interface
lo0.1
- user@pe1# set routing-instances red instance-type
vrf
- user@pe1# set routing-instances red interface
fe-0/1/0.0
- user@pe1# set routing-instances red interface
vt-1/2/0.2
- user@pe1# set routing-instances red interface
lo0.2
Use the show configuration routing-instances green and show configuration routing-instances red commands to verify that the virtual tunnel interfaces have been correctly configured.
- user@pe2# set routing-instances green instance-type
vrf
- user@pe2# set routing-instances green interface
so-0/0/1.0
- user@pe2# set routing-instances green interface
vt-1/2/0.1
- user@pe2# set routing-instances green interface
lo0.1
Use the show configuration routing-instances green command.
- user@pe3# set routing-instances blue instance-type
vrf
- user@pe3# set routing-instances blue interface
so-0/0/1.0
- user@pe3# set routing-instances blue interface
vt-1/2/0.3
- user@pe3# set routing-instances blue interface
lo0.1
Use the show configuration routing-instances blue command to verify that the instance type has been configured correctly and the correct interfaces have been configured in the routing instance.
![]() |
Tip: To help in troubleshooting, this example configures the route distinguisher to match the router ID. This allows you to associate a route with the router that advertised it. |
- user@pe1# set routing-instances green protocols
mvpn
- user@pe1# set routing-instances red protocols
mvpn
- user@pe2# set routing-instances green protocols
mvpn
- user@pe3# set routing-instances blue protocols
mvpn
Use the show configuration routing-instance command to verify that the route distinguisher is configured correctly and the MVPN protocol is enabled in the routing instance.
- user@pe1# set interfaces lo0 unit 1 description
"green VRF loopback"
- user@pe1# set interfaces lo0 unit 1 family
inet address 10.10.1.1/32
- user@pe1# set interfaces lo0 unit 2 description
"red VRF loopback"
- user@pe1# set interfaces lo0 unit 2 family
inet address 10.2.1.1/32
- user@pe2# set interfaces lo0 unit 1 description
"green VRF loopback"
- user@pe2# set interfaces lo0 unit 1 family
inet address 10.10.22.2/32
- user@pe3# set interfaces lo0 unit 1 description
"blue VRF loopback"
- user@pe3# set interfaces lo0 unit 1 family
inet address 10.3.33.3/32
Use the show interfaces terse command to verify that the loopback logical interfaces are correctly configured.
- user@pe1# set interfaces vt-1/2/0 unit 1 description
"green VRF multicast vt"
- user@pe1# set interfaces vt-1/2/0 unit 1 family
inet
- user@pe1# set interfaces vt-1/2/0 unit 2 description
"red VRF unicast and multicast vt"
- user@pe1# set interfaces vt-1/2/0 unit 2 family
inet
- user@pe1# set interfaces vt-1/2/0 unit 3 description
"blue VRF multicast vt"
- user@pe1# set interfaces vt-1/2/0 unit 3 family
inet
- user@pe2# set interfaces vt-1/2/0 unit 1 description
"green VRF unicast and multicast vt"
- user@pe2# set interfaces vt-1/2/0 unit 1 family
inet
- user@pe2# set interfaces vt-1/2/0 unit 3 description
"blue VRF unicast and multicast vt"
- user@pe2# set interfaces vt-1/2/0 unit 3 family
inet
- user@pe3# set interfaces vt-1/2/0 unit 3 description
"blue VRF unicast and multicast vt"
- user@pe3# set interfaces vt-1/2/0 unit 3 family
inet
Use the show interfaces terse command to verify that the virtual tunnel interfaces have the correct address family type configured.
- user@pe1# set routing-instances green provider-tunnel
rsvp-te label-switched-path-template default-template
- user@pe1# set routing-instances red provider-tunnel
rsvp-te label-switched-path-template default-template
- user@pe2# set routing-instances green provider-tunnel
rsvp-te label-switched-path-template default-template
- user@pe3# set routing-instances blue provider-tunnel
rsvp-te label-switched-path-template default-template
Use the show configuration routing-instance command to verify that the provider tunnel is configured to use the default LSP template.
![]() |
Note: You cannot commit the configuration for the VRF instance until you configure the VRF target in the next section. |
- user@pe1# set policy-options community green-com
members target:65000:1
- user@pe1# set policy-options community red-com
members target:65000:2
- user@pe1# set policy-options community blue-com
members target:65000:3
- user@pe2# set policy-options community green-com
members target:65000:1
- user@pe2# set policy-options community red-com
members target:65000:2
- user@pe2# set policy-options community blue-com
members target:65000:3
- user@pe3# set policy-options community green-com
members target:65000:1
- user@pe3# set policy-options community red-com
members target:65000:2
- user@pe3# set policy-options community blue-com
members target:65000:3
Use the show policy-options command to verify that the correct VPN community name and route target are configured.
- user@pe1# set policy-options policy-statement
green-red-blue-import term t1 from community green-com
- user@pe1# set policy-options policy-statement
green-red-blue-import term t1 from community red-com
- user@pe1# set policy-options policy-statement
green-red-blue-import term t1 from community blue-com
- user@pe1# set policy-options policy-statement
green-red-blue-import term t1 then accept
- user@pe1# set policy-options policy-statement
green-red-blue-import term t2 then reject
- user@pe2# set policy-options policy-statement
green-red-blue-import term t1 from community green-com
- user@pe2# set policy-options policy-statement
green-red-blue-import term t1 from community red-com
- user@pe2# set policy-options policy-statement
green-red-blue-import term t1 from community blue-com
- user@pe2# set policy-options policy-statement
green-red-blue-import term t1 then accept
- user@pe2# set policy-options policy-statement
green-red-blue-import term t2 then reject
- user@pe3# set policy-options policy-statement
green-red-blue-import term t1 from community green-com
- user@pe3# set policy-options policy-statement
green-red-blue-import term t1 from community red-com
- user@pe3# set policy-options policy-statement
green-red-blue-import term t1 from community blue-com
- user@pe3# set policy-options policy-statement
green-red-blue-import term t1 then accept
- user@pe3# set policy-options policy-statement
green-red-blue-import term t2 then reject
Use the show policy green-red-blue-import command to verify that the VPN import policy is correctly configured.
- user@pe1# set routing-instances green vrf-import
green-red-blue-import
- user@pe1# set routing-instances red vrf-import
green-red-blue-import
- user@pe2# set routing-instances green vrf-import
green-red-blue-import
- user@pe3# set routing-instances blue vrf-import
green-red-blue-import
Use the show configuration routing-instances command to verify that the correct VRF import policy has been applied.
For the PE3 router the vrf-target statement is included without specifying the export option. If you do not specify the import or export options, default VRF import and export policies are generated that accept imported routes and tag exported routes with the specified target community.
![]() |
Note: You must configure the same route target on each PE router for a given VPN routing instance. |
- user@pe1# set routing-instances green vrf-target
export target:65000:1
- user@pe1# set routing-instances red vrf-target
export target:65000:2
- user@pe2# set routing-instances green vrf-target
export target:65000:1
- user@pe3# set routing-instances blue vrf-target
target:65000:3
Use the show configuration routing-instances command to verify that the correct VRF export targets have been configured.
- user@pe1# set policy-options policy-statement
load-balance then load-balance per-packet
- user@pe2# set policy-options policy-statement
load-balance then load-balance per-packet
- user@pe3# set policy-options policy-statement
load-balance then load-balance per-packet
Use the show policy-options command to verify that the load balance policy statement has been correctly configured.
user@host> commit checkconfiguration check succeedsuser@host> commitcommit completeuser@PE1> show rsvp neighborRSVP neighbor: 2 learned Address Idle Up/Dn LastChange HelloInt HelloTx/Rx MsgRcvd 10.0.17.14 5 1/0 43:52 9 293/293 247 10.0.12.10 0 1/0 50:15 9 336/336 140
Verify that the other PE routers are listed as RSVP neighbors.
user@PE1> show mpls lsp p2mpIngress LSP: 2 sessions P2MP name: 192.168.1.1:1:mvpn:green, P2MP branch count: 2 To From State Rt P ActivePath LSPname 192.168.2.1 192.168.1.1 Up 0 * 192.168.2.1:192.168.1.1:1:mvpn:green 192.168.7.1 192.168.1.1 Up 0 * 192.168.7.1:192.168.1.1:1:mvpn:green P2MP name: 192.168.1.1:2:mvpn:red, P2MP branch count: 2 To From State Rt P ActivePath LSPname 192.168.2.1 192.168.1.1 Up 0 * 192.168.2.1:192.168.1.1:2:mvpn:red 192.168.7.1 192.168.1.1 Up 0 * 192.168.7.1:192.168.1.1:2:mvpn:red Total 4 displayed, Up 4, Down 0 Egress LSP: 2 sessions P2MP name: 192.168.2.1:1:mvpn:green, P2MP branch count: 1 To From State Rt Style Labelin Labelout LSPname 192.168.1.1 192.168.2.1 Up 0 1 SE 299888 3 192.168.1.1:192.168.2.1:1:mvpn:green P2MP name: 192.168.7.1:3:mvpn:blue, P2MP branch count: 1 To From State Rt Style Labelin Labelout LSPname 192.168.1.1 192.168.7.1 Up 0 1 SE 299872 3 192.168.1.1:192.168.7.1:3:mvpn:blue Total 2 displayed, Up 2, Down 0 Transit LSP: 0 sessions Total 0 displayed, Up 0, Down 0
In this display from the PE1 router, notice that there are two ingress LSPs for the green VPN and two for the red VPN configured on this router. Verify that the state of each ingress LSP is up. Also notice that there is one egress LSP for each of the green and blue VPNs. Verify that the state of each egress LSP is up.
![]() |
Tip: The LSP name displayed in the show mpls lsp p2mp command output can be used in the ping mpls rsvp <lsp-name> multipath command. |
- user@pe1# set policy-options policy-statement
BGP-export term t1 from protocol direct
- user@pe1# set policy-options policy-statement
BGP-export term t1 then accept
- user@pe1# set policy-options policy-statement
BGP-export term t2 from protocol static
- user@pe1# set policy-options policy-statement
BGP-export term t2 then accept
- user@pe2# set policy-options policy-statement
BGP-export term t1 from protocol direct
- user@pe2# set policy-options policy-statement
BGP-export term t1 then accept
- user@pe2# set policy-options policy-statement
BGP-export term t2 from protocol static
- user@pe2# set policy-options policy-statement
BGP-export term t2 then accept
- user@pe3# set policy-options policy-statement
BGP-export term t1 from protocol direct
- user@pe3# set policy-options policy-statement
BGP-export term t1 then accept
- user@pe3# set policy-options policy-statement
BGP-export term t2 from protocol static
- user@pe3# set policy-options policy-statement
BGP-export term t2 then accept
Use the show policy BGP-export command to verify that the BGP export policy is correctly configured.
- user@pe1# set routing-instances green protocols
bgp group PE-CE export BGP-export
- user@pe1# set routing-instances green protocols
bgp group PE-CE neighbor 10.0.16.1 peer-as 65001
- user@pe2# set routing-instances green protocols
bgp group PE-CE export BGP-export
- user@pe2# set routing-instances green protocols
bgp group PE-CE neighbor 10.0.24.2 peer-as 65009
- user@pe3# set routing-instances blue protocols
bgp group PE-CE export BGP-export
- user@pe3# set routing-instances blue protocols
bgp group PE-CE neighbor 10.0.79.2 peer-as 65003
- user@ce1# set policy-options policy-statement
BGP-export term t1 from protocol direct
- user@ce1# set policy-options policy-statement
BGP-export term t1 then accept
- user@ce1# set policy-options policy-statement
BGP-export term t2 from protocol static
- user@ce1# set policy-options policy-statement
BGP-export term t2 then accept
- user@ce2# set policy-options policy-statement
BGP-export term t1 from protocol direct
- user@ce2# set policy-options policy-statement
BGP-export term t1 then accept
- user@ce2# set policy-options policy-statement
BGP-export term t2 from protocol static
- user@ce2# set policy-options policy-statement
BGP-export term t2 then accept
- user@ce3# set policy-options policy-statement
BGP-export term t1 from protocol direct
- user@ce3# set policy-options policy-statement
BGP-export term t1 then accept
- user@ce3# set policy-options policy-statement
BGP-export term t2 from protocol static
- user@ce3# set policy-options policy-statement
BGP-export term t2 then accept
Use the show policy BGP-export command to verify that the BGP export policy is correctly configured.
- user@ce1# set protocols bgp group PE-CE export
BGP-export
- user@ce1# set protocols bgp group PE-CE neighbor
10.0.16.2 peer-as 65000
- user@ce2# set protocols bgp group PE-CE export
BGP-export
- user@ce2# set protocols bgp group PE-CE neighbor
10.0.24.1 peer-as 65000
- user@ce3# set protocols bgp group PE-CE export
BGP-export
- user@ce3# set protocols bgp group PE-CE neighbor
10.0.79.1 peer-as 65000
user@host> commit checkconfiguration check succeedsuser@host> commitcommit completeuser@PE1> show bgp group pe-ceGroup Type: External Local AS: 65000 Name: PE-CE Index: 1 Flags: <> Export: [ BGP-export ] Holdtime: 0 Total peers: 1 Established: 1 10.0.16.1+60500 green.inet.0: 2/3/3/0
Verify that the peer state for the CE routers is Established and that the IP address configured on the peer SONET interface is shown as the peer.
- user@pe1# set routing-instances green protocols
pim interface lo0.1 mode sparse
- user@pe1# set routing-instances green protocols
pim interface so-0/0/3.0 mode sparse
- user@pe1# set routing-instances red protocols
pim interface lo0.2 mode sparse
- user@pe1# set routing-instances red protocols
pim interface fe-0/1/0.0 mode sparse
- user@pe2# set routing-instances green protocols
pim interface lo0.1 mode sparse
- user@pe2# set routing-instances green protocols
pim interface so-0/0/1.0 mode sparse
- user@pe3# set routing-instances blue protocols
pim interface lo0.1 mode sparse
- user@pe3# set routing-instances blue protocols
pim interface so-0/0/1.0 mode sparse
user@host> commit checkconfiguration check succeedsuser@host> commitcommit completeuser@PE1> show pim interfaces instance
greenInstance: PIM.green Name Stat Mode IP V State NbrCnt JoinCnt DR address lo0.1 Up Sparse 4 2 DR 0 0 10.10.1.1 lsi.0 Up SparseDense 4 2 P2P 0 0 pe-1/2/0.32769 Up Sparse 4 2 P2P 0 0 so-0/0/3.0 Up Sparse 4 2 P2P 1 2 vt-1/2/0.1 Up SparseDense 4 2 P2P 0 0 lsi.0 Up SparseDense 6 2 P2P 0 0
Also notice that the normal mode for the virtual tunnel interface and label-switched interface is SparseDense.
- user@ce1# set protocols pim interface fe-1/3/0.0
mode sparse
- user@ce1# set protocols pim interface so-0/0/3.0
mode sparse
- user@ce2# set protocols pim interface fe-0/1/1.0
mode sparse
- user@ce2# set protocols pim interface so-0/0/1.0
mode sparse
- user@ce3# set protocols pim interface fe-0/1/0.0
mode sparse
- user@ce3# set protocols pim interface so-0/0/1.0
mode sparse
Use the show pim interfaces command to verify that the PIM interfaces have been configured to use sparse mode.
user@host> commit checkconfiguration check succeedsuser@host> commitcommit completeuser@CE1> show pim interfacesInstance: PIM.master Name Stat Mode IP V State NbrCnt JoinCnt DR address fe-1/3/0.0 Up Sparse 4 2 DR 0 0 10.10.12.1 pe-1/2/0.32769 Up Sparse 4 2 P2P 0 0 so-0/0/3.0 Up Sparse 4 2 P2P 1 1
user@host> commit checkconfiguration check succeedsuser@host> commitcommit completeuser@PE1> show pim rps instance <instance-name>Instance: PIM.green Address family INET RP address Type Holdtime Timeout Groups Group prefixes 10.10.22.2 static 0 None 1 224.0.0.0/4 Address family INET6
Verify that the correct IP address is shown as the RP.
user@CE1> show pim rpsInstance: PIM.master Address family INET RP address Type Holdtime Timeout Groups Group prefixes 10.10.22.2 static 0 None 1 224.0.0.0/4 Address family INET6
Verify that the correct IP address is shown as the RP.
user@CE1> show route table green.mvpn.0
| find 1green.mvpn.0: 7 destinations, 9 routes (7 active, 1 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
1:192.168.1.1:1:192.168.1.1/240
*[MVPN/70] 03:38:09, metric2 1
Indirect
1:192.168.1.1:2:192.168.1.1/240
*[MVPN/70] 03:38:05, metric2 1
Indirect
1:192.168.2.1:1:192.168.2.1/240
*[BGP/170] 03:12:18, localpref 100, from 192.168.2.1
AS path: I
> to 10.0.12.10 via ge-0/3/0.0
1:192.168.7.1:3:192.168.7.1/240
*[BGP/170] 03:12:18, localpref 100, from 192.168.7.1
AS path: I
> to 10.0.17.14 via fe-0/1/1.0user@PE1> show route table green.mvpn.0
| find 55:192.168.2.1:1:32:10.10.12.52:32:224.1.1.1/240
*[BGP/170] 03:12:18, localpref 100, from 192.168.2.1
AS path: I
> to 10.0.12.10 via ge-0/3/0.0user@PE1> show route table green.mvpn.0
| find 77:192.168.1.1:1:65000:32:10.10.12.52:32:224.1.1.1/240
*[MVPN/70] 03:22:47, metric2 1
Multicast (IPv4)
[PIM/105] 03:34:18
Multicast (IPv4)
[BGP/170] 03:12:18, localpref 100, from 192.168.2.1
AS path: I
> to 10.0.12.10 via ge-0/3/0.0user@CE1> show route advertising-protocol
bgp 192.168.2.1 table green.mvpn.0 detailgreen.mvpn.0: 7 destinations, 9 routes (7 active, 1 holddown, 0 hidden)
* 1:192.168.1.1:1:192.168.1.1/240 (1 entry, 1 announced)
BGP group group-mvpn type Internal
Route Distinguisher: 192.168.1.1:1
Nexthop: Self
Flags: Nexthop Change
Localpref: 100
AS path: [65000] I
Communities: target:65000:1
PMSI: Flags 0:RSVP-TE:label[0:0:0]:Session_13[192.168.1.1:0:56822:192.168.1.1]user@PE1> show mvpn c-multicastMVPN instance: Legend for provider tunnel I-P-tnl -- inclusive provider tunnel S-P-tnl -- selective provider tunnel Legend for c-multicast routes properties (Pr) DS -- derived from (*, c-g) RM -- remote VPN route Instance: green C-mcast IPv4 (S:G) Ptnl St 10.10.12.52/32:224.1.1.1/32 RSVP-TE P2MP:192.168.1.1, 56822,192.168.1.1 RM 0.0.0.0/0:239.255.255.250/32 MVPN instance: Legend for provider tunnel I-P-tnl -- inclusive provider tunnel S-P-tnl -- selective provider tunnel Legend for c-multicast routes properties (Pr) DS -- derived from (*, c-g) RM -- remote VPN route Instance: red C-mcast IPv4 (S:G) Ptnl St 10.10.12.52/32:224.1.1.1/32 DS 0.0.0.0/0:224.1.1.1/32
user@PE1> show route table green.mvpn.0
| find 66:192.168.2.1:1:65000:32:10.10.22.2:32:224.1.1.1/240
*[PIM/105] 04:01:23
Multicast (IPv4)
6:192.168.2.1:1:65000:32:10.10.22.2:32:239.255.255.250/240
*[PIM/105] 22:39:46
Multicast (IPv4)
![]() |
Note: The multicast address 255.255.255.250 shown in the step above is not related to this example. |
user@PE1> show route table green.mvpn.0
| find 66:192.168.2.1:1:65000:32:10.10.22.2:32:239.255.255.250/240
*[PIM/105] 06:43:39
Multicast (IPv4)user@PE1> show route table green.mvpn.0
| find 66:192.168.1.1:2:65000:32:10.2.1.1:32:224.1.1.1/240
*[PIM/105] 00:02:32
Multicast (IPv4)
6:192.168.1.1:2:65000:32:10.2.1.1:32:239.255.255.250/240
*[PIM/105] 00:05:49
Multicast (IPv4)
![]() |
Note: The multicast address 255.255.255.250 shown in the step above is not related to this example. |
The configuration and verification parts of this example have been completed. The following section is for your reference.
The relevant sample configuration for the CE1 router follows.
Router CE1
- interfaces {
-
- so-0/0/3 {
-
- unit 0 {
- description "to PE1 so-0/0/3.0";
-
- family inet {
- address 10.0.16.1/30;
- }
- }
- }
-
- fe-1/3/0 {
-
- unit 0 {
-
- family inet {
- address 10.10.12.1/24;
- }
- }
- }
-
- lo0 {
-
- unit 0 {
- description "CE1 Loopback";
-
- family inet {
-
- address 192.168.6.1/32 {
- primary;
- }
- address 127.0.0.1/32;
- }
- }
- }
- }
- routing-options {
- autonomous-system 65001;
- router-id 192.168.6.1;
-
- forwarding-table {
- export load-balance;
- }
- }
- protocols {
-
- bgp {
-
- group PE-CE {
- export BGP-export;
-
- neighbor 10.0.16.2 {
- peer-as 65000;
- }
- }
- }
-
- pim {
-
- rp {
-
- static {
- address 10.10.22.2;
- }
- }
-
- interface fe-1/3/0.0 {
- mode sparse;
- }
-
- interface so-0/0/3.0 {
- mode sparse;
- }
- }
- }
- policy-options {
-
- policy-statement BGP-export {
-
- term t1 {
- from protocol direct;
- then accept;
- }
-
- term t2 {
- from protocol static;
- then accept;
- }
- }
-
- policy-statement load-balance {
-
- then {
- load-balance per-packet;
- }
- }
- }
The relevant sample configuration for the PE1 router follows.
Router PE1
- interfaces {
-
- so-0/0/3 {
-
- unit 0 {
- description "to CE1 so-0/0/3.0";
-
- family inet {
- address 10.0.16.2/30;
- }
- }
- }
-
- fe-0/1/0 {
-
- unit 0 {
- description "to H2";
-
- family inet {
- address 10.2.11.2/30;
- }
- }
- }
-
- fe-0/1/1 {
-
- unit 0 {
- description "to PE3 fe-0/1/1.0";
-
- family inet {
- address 10.0.17.13/30;
- }
- family mpls;
- }
- }
-
- ge-0/3/0 {
-
- unit 0 {
- description "to PE2 ge-1/3/0.0";
-
- family inet {
- address 10.0.12.9/30;
- }
- family mpls;
- }
- }
-
- vt-1/2/0 {
-
- unit 1 {
- description "green VRF multicast vt";
- family inet;
- }
-
- unit 2 {
- description "red VRF unicast and multicast vt";
- family inet;
- }
-
- unit 3 {
- description "blue VRF multicast vt";
- family inet;
- }
- }
-
- lo0 {
-
- unit 0 {
- description "PE1 Loopback";
-
- family inet {
-
- address 192.168.1.1/32 {
- primary;
- }
- address 127.0.0.1/32;
- }
- }
-
- unit 1 {
- description "green VRF loopback";
-
- family inet {
- address 10.10.1.1/32;
- }
- }
-
- unit 2 {
- description "red VRF loopback";
-
- family inet {
- address 10.2.1.1/32;
- }
- }
- }
- }
- routing-options {
- autonomous-system 65000;
- router-id 192.168.1.1;
-
- forwarding-table {
- export load-balance;
- }
- }
- protocols {
-
- rsvp {
- interface ge-0/3/0.0;
- interface fe-0/1/1.0;
- interface lo0.0;
-
- interface fxp0.0 {
- disable;
- }
- }
-
- mpls {
- interface ge-0/3/0.0;
- interface fe-0/1/1.0;
-
- interface fxp0.0 {
- disable;
- }
- }
-
- bgp {
-
- group group-mvpn {
- type internal;
- local-address 192.168.1.1;
-
- family inet-vpn {
- unicast;
- }
-
- family inet-mvpn {
- signaling;
- }
- neighbor 192.168.2.1;
- neighbor 192.168.7.1;
- }
- }
-
- ospf {
- traffic-engineering;
-
- area 0.0.0.0 {
-
- interface ge-0/3/0.0 {
- metric 100;
- }
-
- interface fe-0/1/1.0 {
- metric 100;
- }
-
- interface lo0.0 {
- passive;
- }
-
- interface fxp0.0 {
- disable;
- }
- }
- }
-
- ldp {
- deaggregate;
- interface ge-0/3/0.0;
- interface fe-0/1/1.0;
-
- interface fxp0.0 {
- disable;
- }
- interface lo0.0;
- }
- }
- policy-options {
-
- policy-statement BGP-export {
-
- term t1 {
- from protocol direct;
- then accept;
- }
-
- term t2 {
- from protocol static;
- then accept;
- }
- }
-
- policy-statement green-red-blue-import {
-
- term t1 {
- from community [ green-com red-com blue-com ];
- then accept;
- }
-
- term t2 {
- then reject;
- }
- }
-
- policy-statement load-balance {
-
- then {
- load-balance per-packet;
- }
- }
- community green-com members target:65000:1;
- community red-com members target:65000:2;
- community blue-com members target:65000:3;
- }
- routing-instances {
-
- green {
- instance-type vrf;
- interface so-0/0/3.0;
-
- interface vt-1/2/0.1 {
- multicast;
- }
- interface lo0.1;
- route-distinguisher 192.168.1.1:1;
-
- provider-tunnel {
-
- rsvp-te {
-
- label-switched-path-template {
- default-template;
- }
- }
- }
- vrf-import green-red-blue-import;
- vrf-target export target:65000:1;
- vrf-table-label;
-
- routing-options {
- auto-export;
- }
-
- protocols {
-
- bgp {
-
- group PE-CE {
- export BGP-export;
-
- neighbor 10.0.16.1 {
- peer-as 65001;
- }
- }
- }
-
- pim {
-
- rp {
-
- static {
- address 10.10.22.2;
- }
- }
-
- interface so-0/0/3.0 {
- mode sparse;
- }
- interface lo0.1 {a
- mode sparse;
- }
- }
- mvpn;
- }
-
- red {
- instance-type vrf;
- interface fe-0/1/0.0;
- interface vt-1/2/0.2;
- interface lo0.2;
- route-distinguisher 192.168.1.1:2;
-
- provider-tunnel {
-
- rsvp-te {
-
- label-switched-path-template {
- default-template;
- }
- }
- }
- vrf-import green-red-blue-import;
- vrf-target export target:65000:2;
-
- routing-options {
- auto-export;
- }
-
- protocols {
-
- pim {
-
- rp {
-
- local {
- address 10.2.1.1;
- }
- }
-
- interface fe-0/1/0.0 {
- mode sparse;
- }
-
- interface lo0.2 {
- mode sparse;
- }
- }
- mvpn;
- }
- }
- }
The relevant sample configuration for the PE2 router follows.
Router PE2
- interfaces {
-
- so-0/0/1 {
-
- unit 0 {
- description "to CE2 so-0/0/1:0.0";
-
- family inet {
- address 10.0.24.1/30;
- }
- }
- }
-
- fe-0/1/3 {
-
- unit 0 {
- description "to PE3 fe-0/1/3.0";
-
- family inet {
- address 10.0.27.13/30;
- }
- family mpls;
- }
-
- vt-1/2/0 {
-
- unit 1 {
- description "green VRF unicast and multicast vt";
- family inet;
- }
-
- unit 3 {
- description "blue VRF unicast and multicast vt";
- family inet;
- }
- }
- }
-
- ge-1/3/0 {
-
- unit 0 {
- description "to PE1 ge-0/3/0.0";
-
- family inet {
- address 10.0.12.10/30;
- }
- family mpls;
- }
- }
-
- lo0 {
-
- unit 0 {
- description "PE2 Loopback";
-
- family inet {
-
- address 192.168.2.1/32 {
- primary;
- }
- address 127.0.0.1/32;
- }
- }
-
- unit 1 {
- description "green VRF loopback";
-
- family inet {
- address 10.10.22.2/32;
- }
- }
- }
-
- routing-options {
- router-id 192.168.2.1;
- autonomous-system 65000;
-
- forwarding-table {
- export load-balance;
- }
- }
-
- protocols {
-
- rsvp {
- interface fe-0/1/3.0;
- interface ge-1/3/0.0;
- interface lo0.0;
-
- interface fxp0.0 {
- disable;
- }
- }
-
- mpls {
- interface fe-0/1/3.0;
- interface ge-1/3/0.0;
-
- interface fxp0.0 {
- disable;
- }
- }
-
- bgp {
-
- group group-mvpn {
- type internal;
- local-address 192.168.2.1;
-
- family inet-vpn {
- unicast;
- }
-
- family inet-mvpn {
- signaling;
- }
- neighbor 192.168.1.1;
- neighbor 192.168.7.1;
- }
- }
-
- ospf {
- traffic-engineering;
-
- area 0.0.0.0 {
-
- interface fe-0/1/3.0 {
- metric 100;
- }
-
- interface ge-1/3/0.0 {
- metric 100;
- }
-
- interface lo0.0 {
- passive;
- }
-
- interface fxp0.0 {
- disable;
- }
- }
- }
-
- ldp {
- deaggregate;
- interface fe-0/1/3.0;
- interface ge-1/3/0.0;
-
- interface fxp0.0 {
- disable;
- }
- interface lo0.0;
- }
- }
-
- policy-options {
-
- policy-statement BGP-export {
-
- term t1 {
- from protocol direct;
- then accept;
- }
-
- term t2 {
- from protocol static;
- then accept;
- }
- }
-
- policy-statement green-red-blue-import {
-
- term t1 {
- from community [ green-com red-com blue-com ];
- then accept;
- }
-
- term t2 {
- then reject;
- }
- }
-
- policy-statement load-balance {
-
- then {
- load-balance per-packet;
- }
- }
- community green-com members target:65000:1;
- community red-com members target:65000:2;
- community blue-com members target:65000:3;
- }
-
- routing-instances {
-
- green {
- instance-type vrf;
- interface so-0/0/1.0;
- interface vt-1/2/0.1;
- interface lo0.1;
- route-distinguisher 192.168.2.1:1;
-
- provider-tunnel {
-
- rsvp-te {
-
- label-switched-path-template {
- default-template;
- }
- }
- }
- vrf-import green-red-blue-import;
- vrf-target export target:65000:1;
-
- routing-options {
- auto-export;
- }
-
- protocols {
-
- bgp {
-
- group PE-CE {
- export BGP-export;
-
- neighbor 10.0.24.2 {
- peer-as 65009;
- }
- }
- }
-
- pim {
-
- rp {
-
- local {
- address 10.10.22.2;
- }
- }
-
- interface so-0/0/1.0 {
- mode sparse;
- }
-
- interface lo0.1 {
- mode sparse;
- }
- }
- mvpn;
- }
- }
- }
- }
The relevant sample configuration for the CE2 router follows.
Router CE2
- interfaces {
-
- fe-0/1/1 {
-
- unit 0 {
- description "to H4";
-
- family inet {
- address 10.10.11.2/24;
- }
- }
- }
-
- so-0/0/1 {
-
- unit 0 {
- description "to PE2 so-0/0/1";
-
- family inet {
- address 10.0.24.2/30;
- }
- }
- }
-
- lo0 {
-
- unit 0 {
- description "CE2 Loopback";
-
- family inet {
-
- address 192.168.4.1/32 {
- primary;
- }
- address 127.0.0.1/32;
- }
- }
- }
- }
- routing-options {
- router-id 192.168.4.1;
- autonomous-system 65009;
-
- forwarding-table {
- export load-balance;
- }
- }
- protocols {
-
- bgp {
-
- group PE-CE {
- export BGP-export;
-
- neighbor 10.0.24.1 {
- peer-as 65000;
- }
- }
- }
-
- pim {
-
- rp {
-
- static {
- address 10.10.22.2;
- }
- }
-
- interface so-0/0/1.0 {
- mode sparse;
- }
-
- interface fe-0/1/1.0 {
- mode sparse;
- }
- }
- }
- policy-options {
-
- policy-statement BGP-export {
-
- term t1 {
- from protocol direct;
- then accept;
- }
-
- term t2 {
- from protocol static;
- then accept;
- }
- }
-
- policy-statement load-balance {
-
- then {
- load-balance per-packet;
- }
- }
- }
The relevant sample configuration for the PE3 router follows.
Router PE3
- interfaces {
-
- so-0/0/1 {
-
- unit 0 {
- description "to CE3 so-0/0/1.0";
-
- family inet {
- address 10.0.79.1/30;
- }
- }
- }
-
- fe-0/1/1 {
-
- unit 0 {
- description "to PE1 fe-0/1/1.0";
-
- family inet {
- address 10.0.17.14/30;
- }
- family mpls;
- }
- }
-
- fe-0/1/3 {
-
- unit 0 {
- description "to PE2 fe-0/1/3.0";
-
- family inet {
- address 10.0.27.14/30;
- }
- family mpls;
- }
- }
-
- vt-1/2/0 {
-
- unit 3 {
- description "blue VRF unicast and multicast vt";
- family inet;
- }
- }
-
- lo0 {
-
- unit 0 {
- description "PE3 Loopback";
-
- family inet {
-
- address 192.168.7.1/32 {
- primary;
- }
- address 127.0.0.1/32;
- }
- }
-
- unit 1 {
- description "blue VRF loopback";
-
- family inet {
- address 10.3.33.3/32;
- }
- }
- }
- }
- routing-options {
- router-id 192.168.7.1;
- autonomous-system 65000;
-
- forwarding-table {
- export load-balance;
- }
- }
- protocols {
-
- rsvp {
- interface fe-0/1/3.0;
- interface fe-0/1/1.0;
- interface lo0.0;
-
- interface fxp0.0 {
- disable;
- }
- }
-
- mpls {
- interface fe-0/1/3.0;
- interface fe-0/1/1.0;
-
- interface fxp0.0 {
- disable;
- }
- }
-
- bgp {
-
- group group-mvpn {
- type internal;
- local-address 192.168.7.1;
-
- family inet-vpn {
- unicast;
- }
-
- family inet-mvpn {
- signaling;
- }
- neighbor 192.168.1.1;
- neighbor 192.168.2.1;
- }
- }
-
- ospf {
- traffic-engineering;
-
- area 0.0.0.0 {
-
- interface fe-0/1/3.0 {
- metric 100;
- }
-
- interface fe-0/1/1.0 {
- metric 100;
- }
-
- interface lo0.0 {
- passive;
- }
-
- interface fxp0.0 {
- disable;
- }
- }
- }
-
- ldp {
- deaggregate;
- interface fe-0/1/3.0;
- interface fe-0/1/1.0;
-
- interface fxp0.0 {
- disable;
- }
- interface lo0.0;
- }
- }
- policy-options {
-
- policy-statement BGP-export {
-
- term t1 {
- from protocol direct;
- then accept;
- }
-
- term t2 {
- from protocol static;
- then accept;
- }
- }
-
- policy-statement green-red-blue-import {
-
- term t1 {
- from community [ green-com red-com blue-com ];
- then accept;
- }
-
- term t2 {
- then reject;
- }
- }
-
- policy-statement load-balance {
-
- then {
- load-balance per-packet;
- }
- }
- community green-com members target:65000:1;
- community red-com members target:65000:2;
- community blue-com members target:65000:3;
- }
- routing-instances {
-
- blue {
- instance-type vrf;
- interface vt-1/2/0.3;
- interface so-0/0/1.0;
- interface lo0.1;
- route-distinguisher 192.168.7.1:3;
-
- provider-tunnel {
-
- rsvp-te {
-
- label-switched-path-template {
- default-template;
- }
- }
- }
- vrf-import green-red-blue-import;
- vrf-target target:65000:3;
-
- routing-options {
- auto-export;
- }
-
- protocols {
-
- bgp {
-
- group PE-CE {
- export BGP-export;
-
- neighbor 10.0.79.2 {
- peer-as 65003;
- }
- }
- }
-
- pim {
-
- rp {
-
- local {
- address 10.3.33.3;
- }
- }
-
- interface so-0/0/1.0 {
- mode sparse;
- }
-
- interface lo0.1 {
- mode sparse;
- }
- }
- mvpn ;
- }
- }
- }
The relevant sample configuration for the CE3 router follows.
Router CE3
- interfaces {
-
- so-0/0/1 {
-
- unit 0 {
- description "to PE3";
-
- family inet {
- address 10.0.79.2/30;
- }
- }
- }
-
- fe-0/1/0 {
-
- unit 0 {
- description "to H3";
-
- family inet {
- address 10.3.11.3/24;
- }
- }
- }
-
- lo0 {
-
- unit 0 {
- description "CE3 loopback";
-
- family inet {
-
- address 192.168.9.1/32 {
- primary;
- }
- address 127.0.0.1/32;
- }
- }
- }
- }
- routing-options {
- router-id 192.168.9.1;
- autonomous-system 65003;
-
- forwarding-table {
- export load-balance;
- }
- }
- protocols {
-
- bgp {
-
- group PE-CE {
- export BGP-export;
-
- neighbor 10.0.79.1 {
- peer-as 65000;
- }
- }
- }
-
- pim {
-
- rp {
-
- static {
- address 10.3.33.3;
- }
- }
-
- interface so-0/0/1.0 {
- mode sparse;
- }
-
- interface fe-0/1/0.0 {
- mode sparse;
- }
- }
- }
- policy-options {
-
- policy-statement BGP-export {
-
- term t1 {
- from protocol direct;
- then accept;
- }
-
- term t2 {
- from protocol static;
- then accept;
- }
- }
-
- policy-statement load-balance {
-
- then {
- load-balance per-packet;
- }
- }
- }