[Xorp-users] xorp with click and RIP

Robert Joseph Suk rsuk at ucsc.edu
Wed Dec 5 12:54:35 PST 2007


Hello,
  I'm trying to set up a xorp/click configuration which 
runs RIP. I have RIP working with xorp, but when I enable 
the user click forwarding path, I get strange behavior. If 
I 'duplicate-routes-to-kernel' everything works fine. 
However, when I don't duplicate routes-to-kernel, the 
routes still show up in xorpsh (show route table ipv4 
unicast rip/final), but if I ping any of those addresses, 
I get 'no route to host'. Xorp also cannot send RIP 
updates, getting the send_from_multicast_if failed.

The reason I want to turn 'duplicate-routes-to-kernel' 
off, is so that I can check that the click forwarding path 
is working.

I already added a static route 0.0.0.0/0 to an attached 
interface, and put "multicast_host="YES"" in my rc.conf.
I'm running BSD6.2, and my xorp config is below. The click 
config I'm running is simply the one generated by 
'make-ip-conf.pl' which is a basic IP router
Any ideas why xorp sees the routes in xorpsh but can't use 
them?


interfaces{
         restore-original-config-on-shutdown: false
         interface xl0 {
                 description: "from 10.0.2"
                 disable: false
                 vif xl0 {
                         disable: false
                         address 10.0.2.33 {
                                 prefix-length: 24
                                 broadcast: 10.0.2.255
                                 disable: false
                         }
                 }
         }
         interface xl1 {
                 description: "to 10.0.3"
                 disable: false
                 vif xl1 {
                         disable: false
                         address 10.0.3.33 {
                                 prefix-length: 24
                                 broadcast: 10.0.3.255
                                 disable: false
                         }
                 }
         }
} /* </interfaces> */

fea{
         unicast-forwarding4 {
                 disable: true
         }

         unicast-forwarding6 {
                 disable: true
         }

         click {
                 disable: false  /*run autogenerated 
config from /conf/make-ip-conf.pl*/
                 duplicate-routes-to-kernel: true

                 kernel-click{
                         disable: true
                 }

                 user-click{
                         disable: false
                         command-file: 
"/usr/local/bin/click"
                         command-extra-arguments: "-R"
                         command-execute-on-startup: true
                         startup-config-file: 
"/usr/local/xorp/iprouter_auto.click"
                         user-click-config-generator-file: 
"/usr/local/fea/xorp_fea_click_config_generator"
                 }
         }
} /* </fea> */
plumbing{
         mfea4 {
                 disable: true
         }
         mfea6{
                 disable: true
         }
}
policy {
         /*Describe connected routes for redistribution*/
         policy-statement connected {
                 term export {
                         from {
                                 protocol: "connected"
                         }
                 }
         }
}

protocols {
         static{
                 route 0.0.0.0/0{
                         next-hop: 10.0.2.22
                         metric: 1
                 }
         }
         rip {
                 export: "connected"

                 /*run on both interfaces*/
                 interface xl0 {
                         vif xl0 {
                                 address 10.0.2.33 {
                                         disable: false
                                 }
                         }
                 }
                 interface xl1 {
                         vif xl1 {
                                 address 10.0.3.33 {
                                         disable: false
                                 }
                         }
                 }
         } /* </rip> */
} /* </protocols>*/



-Robbie



More information about the Xorp-users mailing list