Example: Basic Multicast over a Layer 3 VPN Configuration
![]()
In Figure 17, the multicast source sends to group
229.1.1.1, and the receiver listens to the same group address. The VPN-RP is located at router CE1, while the SP-RP is located at router P0. The routing instances are named VPN-A on both routers PE0 and PE1.CE0
[edit]protocols {pim {rp{dense-groups {229.0.0.0/8;}static {address 10.254.245.91;}}interface all {mode sparse-dense;version 2;}interface fxp0.0 {disable;}}}In this example, the statement
interface allis configured. If the topology requires only a few interfaces to be configured for PIM, then loopback interfacelo0must also be one of the configured interfaces.PE0
[edit]protocols {pim {rp {static {address 10.254.71.47;}}interface all {mode sparse;version 2;}interface fxp0.0 {disable;}}}Router PE0 also requires a standard VPN configuration, along with the PIM instance configuration. The
vpn-group-addresscommand is the only new PIM option with PIM used exclusively with a routing instance multicast configuration.[edit]routing-instances {VPN-A {instance-type vrf;interface t1-0/3/0:0.0;interface lo0.1route-distinguisher 10.254.71.46:100;vrf-import VPNA-import;vrf-export VPNA-export;protocols {ospf {export bgp-to-ospf;area 0.0.0.0 {interface t1-0/3/0:0.0;interface lo0.1;}}pim {dense-groups {229.0.0.0/8;}vpn-group-address 239.1.1.1;rp {static {address 10.254.245.91;}}interface t1-0/3/0:0.0 {mode sparse-dense;version 2;}interface lo0.1 {mode sparse-dense;version 2;}}}}P0
[edit]protocols {pim {rp {local {address 10.254.71.47;}}interface all {mode sparse;version 2;}interface fxp0.0 {disable;}}}Again, if the configuration calls for specific interfaces to be configured for PIM, loopback interface
lo0must be included as one of the interfaces running PIM.PE1
[edit]protocols {pim {rp {static {address 10.254.71.47;}}interface all {mode sparse;version 2;}interface fxp0.0 {disable;}}}routing-instances {VPN-A {instance-type vrf;interface t1-1/0/0:0.0;interface lo0.1;route-distinguisher 10.254.71.51:100;vrf-import VPNA-import;vrf-export VPNA-export;protocols {ospf {export bgp-to-ospf;area 0.0.0.0 {interface t1-1/0/0:0.0;interface lo0.1;}}pim {dense-groups {229.0.0.0/8;}vpn-group-address 239.1.1.1;rp {static {address 10.254.245.91;}}interface t1-1/0/0:0.0 {mode sparse-dense;version 2;}interface lo0.1 {mode sparse-dense;version 2;}}}}CE1
[edit]protocols {pim {dense-groups {229.0.0.0/8;}rp {local {address 10.254.245.91;}}interface all {mode sparse-dense;version 2;}interface fxp0.0 {disable;}}}