Configure RIP (for routing instances, include the statements at the [edit routing-instances routing-instance-name protocols rip] hierarchy level):
- [edit policy-options]
- policy-statement redist-direct {
- from protocol direct;
- then accept;
- }
- [edit]
- interfaces {
-
- so-0/0/0 {
-
- unit 0 {
- family inet;
- }
- }
-
- at-1/1/0 {
-
- unit 0 {
- family inet;
- }
- }
-
- at-1/1/0 {
-
- unit 42 {
- family inet;
- }
- }
-
- at-1/1/1 {
-
- unit 42 {
- family inet;
- }
- }
- }
- policy-statement redist-direct {
- from protocol direct;
- then accept;
- }
- [edit protocols rip]
- metric-in 3;
- receive both;
- group wan {
- metric-out 2;
- export redist-direct;
- neighbor so-0/0/0.0;
- neighbor at-1/1/0.0;
- neighbor at-1/1/0.42;
-
- neighbor at-1/1/1.42 {
- receive version-2;
- }
- }
- group local {
-
- neighbor ge-2/3/0.0 {
- metric-in 1;
- send broadcast;
- }
- }