User Tools

Site Tools


latex2wiki:user_manual:rip_and_ripng

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
latex2wiki:user_manual:rip_and_ripng [2014/11/12 01:01]
Ben Greear [Example Configurations] Fix ripng example.
latex2wiki:user_manual:rip_and_ripng [2014/11/13 21:12] (current)
Ben Greear [Example Configurations]
Line 234: Line 234:
 </​code>​ </​code>​
  
-In the above configuration, ​RIP is configured to export routes for directly connected subnets and for routes+In the above configuration, ​RIPng is configured to export routes for directly connected subnets and for routes
 that are statically configured. The RIP metric advertised is configured to be 0 for connected subnets and 1 that are statically configured. The RIP metric advertised is configured to be 0 for connected subnets and 1
 for static routes. for static routes.
  
-RIP is configured on only one interface/​vif (dc0/dc0), with address ​10.10.10.10. This router will send and+RIP is configured on only one interface/​vif (eth0/eth0), with address ​2001:998::1. This router will send and
 receive routes from any RIP neighbors that it discovers on that vif/​address. receive routes from any RIP neighbors that it discovers on that vif/​address.
 +
 +Below is a more complete example that shows rip and ripng working together, with some policy filtering to keep ripng from receiving ipv4 routes and vice versa.
 +
 +<​code>​
 +interfaces {
 +    interface my_discard {
 +        unreachable:​ true
 +        vif my_discard {
 +        }
 +    }
 +
 +    interface "​rddVR7"​ {
 +        vif "​rddVR7"​ {
 +            address 9.20.1.1 {
 +                prefix-length:​ 24
 +            }
 +            address 2001:​1005::​2 {
 +                prefix-length:​ 64
 +                disable: false
 +            }
 +            address fe80::​c40e:​2aff:​fed4:​3a49 {
 +                prefix-length:​ 64
 +                disable: false
 +            }
 +        }
 +    }
 +
 +}
 +
 +fea {
 +    unicast-forwarding4 {
 +        disable: false
 +        table-id: 10002
 +    }
 +    unicast-forwarding6 {
 +        disable: false
 +        table-id: 10002
 +    }
 +}
 +
 +
 +policy {
 +    network4-list all-4 {
 +        network 0.0.0.0/0 {
 +            modifier: "​orlonger"​
 +        }
 +    }
 +
 +    policy-statement connected-to-m0-4 {
 +        term export {
 +            from {
 +                protocol: "​connected"​
 +                network4-list:​ "​all-4"​
 +            }
 +            then {
 +                metric: 0
 +            }
 +        }
 +    }
 +
 +    policy-statement connected-to-m1-4 {
 +        term export {
 +            from {
 +                protocol: "​connected"​
 +                network4-list:​ "​all-4"​
 +            }
 +            then {
 +                metric: 1
 +            }
 +        }
 +    }
 +
 +    policy-statement static-to-m2-4 {
 +        term export {
 +            from {
 +                protocol: "​static"​
 +                network4-list:​ "​all-4"​
 +                nexthop4 != 0.0.0.0..0.0.0.0
 +            }
 +            then {
 +                metric: 2
 +            }
 +        }
 +    }
 +
 +    network6-list all-6 {
 +        network ::/0 {
 +            modifier: "​orlonger"​
 +        }
 +    }
 +
 +    policy-statement connected-to-m0-6 {
 +        term export {
 +            from {
 +                protocol: "​connected"​
 +                network6-list:​ "​all-6"​
 +            }
 +            then {
 +                metric: 0
 +            }
 +        }
 +    }
 +
 +    policy-statement connected-to-m1-6 {
 +        term export {
 +            from {
 +                protocol: "​connected"​
 +                network6-list:​ "​all-6"​
 +            }
 +            then {
 +                metric: 1
 +            }
 +        }
 +    }
 +
 +    policy-statement static-to-m2-6 {
 +        term export {
 +            from {
 +                protocol: "​static"​
 +                network6-list:​ "​all-6"​
 +                nexthop6 != ::..::
 +            }
 +            then {
 +                metric: 2
 +            }
 +        }
 +    }
 +
 +}  /* end of policies */
 +
 +protocols {
 +    static {
 +        interface-route 0.0.0.0/0 {
 +            next-hop-interface:​ "​my_discard"​
 +            next-hop-vif:​ "​my_discard"​
 +        }
 +        interface-route ::/0 {
 +            next-hop-interface:​ "​my_discard"​
 +            next-hop-vif:​ "​my_discard"​
 +        }
 +    }
 +
 +    rip {
 +        /* Redistribute connected and static routes */
 +        export: "​connected-to-m0-4,​static-to-m2-4" ​       /* Run on specified network interface addresses */
 +        interface "​rddVR7"​ {
 +            vif "​rddVR7"​ {
 +                address 9.20.1.1 {
 +                     ​metric:​ 1
 +                     ​accept-default-route:​ true
 +                }
 +            }
 +        }
 +
 +        traceoptions {
 +            flag {
 +                all {
 +                    disable: false
 +                }
 +            }
 +        }
 +    }
 +
 +    ripng {
 +        /* Redistribute connected and static routes */
 +        export: "​connected-to-m0-6,​static-to-m2-6" ​       /* Run on specified network interface addresses */
 +        interface "​rddVR7"​ {
 +            vif "​rddVR7"​ {
 +                address fe80::​c40e:​2aff:​fed4:​3a49 {
 +                     ​metric:​ 1
 +                     ​accept-default-route:​ true
 +                }
 +            }
 +        }
 +
 +        traceoptions {
 +            flag {
 +                all {
 +                    disable: false
 +                }
 +            }
 +        }
 +    }
 +
 +}
 +</​code>​
  
 ===== Monitoring RIP ===== ===== Monitoring RIP =====
latex2wiki/user_manual/rip_and_ripng.txt ยท Last modified: 2014/11/13 21:12 by Ben Greear