In this example, DVMRP is used to announce unicast routes used solely for multicast reverse-path forwarding (RPF). Include the mode unicast-routing statement at the [edit protocols dvmrp interface] hierarchy level. Redistribute static routes by including the static statement at the [edit routing-options] hierarchy level to export the routes to all DVMRP neighbors.
- [edit]
- routing-options {
-
- rib inet.2 {
-
- static {
- route 0.0.0.0/0 discard;
- }
- }
-
- rib-groups {
-
- pim-rg {
- import-rib inet.2;
- }
-
- dvmrp-rg {
- export-rib inet.2;
- import-rib inet.2;
- }
- }
- protocols {
-
- dvmrp {
- rib-group inet dvmrp-rg;
- export dvmrp-export;
-
- interface all {
- mode unicast-routing;
- }
-
- pim {
- rib-group inet pim-rg;
- interface all;
- }
- }
- policy-options {
-
- policy-statement dvmrp-export {
-
- term 10 {
-
- from {
- protocol static;
- route-filter 0.0.0.0/0 exact;
- }
- then accept;
- }
- }
- }