[Xorp-users] Want help on static route config for xorp

Pavlin Radoslavov pavlin at icir.org
Mon Jan 15 11:00:37 PST 2007


> I am using Vmware & want to use Xorp !
> 
> i have following topology :
> 
> 
> 	A -------------------> B ---------------------> C
> 192.168.0.2          eth0  192.168.0.199       172.20.16.22
>                      eth1  172.20.16.199
> 
> Now if xorp is configured properly on B then A will be able to ping C
> ! (please correct me if wrong)

Your configuration seems fine, except for this static route:

        route 192.168.0.199/16 {
            next-hop: 172.20.16.199
            metric: 1
        }

You don't need to install static routes for directly-connected
subnets, so you should remove this entry.

Also, make sure that hos A itself has a route toward C and the
next-hop router toward C is B. Same applies for C.

Regards,
Pavlin

> 
> **********************************************************************************************************
> This is my config file which i wrote with help of getting_started.html
> from www.xorp.org I want it to work for static configuration.
> 
> interfaces {
>     restore-original-config-on-shutdown: false
>     interface eth0 {
>         description: "data interface"
>         disable: false
>         /* default-system-config */
>         vif eth0 {
>             disable: false
>             address 192.168.0.199 {
>                 prefix-length: 24
>                 broadcast: 192.168.0.255
>                 disable: false
>             }
> /*
>             address 10:10:10:10:10:10:10:10 {
>                 prefix-length: 64
>                 disable: false
>             }
> */
>         }
>     }
>     interface eth1 {
> 	description: " Data Interface "
> 	disable: false
> 	vif eth1 {
> 	    disable: false
> 	    address 172.20.16.199 {
> 		prefix-length: 24
> 		broadcast: 172.20.16.255
> 		disable: false
>              }
> 	}
>     }
> }
> 
> fea {
>     unicast-forwarding4 {
>         disable: false
>     }
> 
>     unicast-forwarding6 {
>         disable: false
>     }
> }
> 
> 
> protocols {
>     static {
>         route 192.168.0.199/16 {
>             next-hop: 172.20.16.199
>             metric: 1
>         }
> /*
>         mrib-route 10.20.0.0/16 {
>             next-hop: 10.10.10.30
>             metric: 1
>         }
> 
>         route 20:20:20:20::/64 {
>             next-hop: 10:10:10:10:10:10:10:20
>             metric: 1
>         }
>         mrib-route 20:20:20:20::/64 {
>             next-hop: 10:10:10:10:10:10:10:30
>             metric: 1
>         }
> */
>     }
> }
> 
> ********************************************************************************************************************************
> This was o/p when i tried to run xorp_rtrmgr & i am not able to ping
> from A to C !! please let me know what is missing ???
> 
> linux:/usr/local/xorp # ./bin/xorp_rtrmgr -b ./static_config.boot
> [ 2007/01/13 07:50:10  INFO xorp_rtrmgr:4206 RTRMGR +240
> master_conf_tree.cc execute ] Changed modules: interfaces, fea, rib,
> policy, static_routes
> [ 2007/01/13 07:50:10  INFO xorp_rtrmgr:4206 RTRMGR +99
> module_manager.cc execute ] Executing module: interfaces
> (fea/xorp_fea)
> [ 2007/01/13 07:50:12 INFO xorp_fea MFEA ] MFEA enabled
> [ 2007/01/13 07:50:12 INFO xorp_fea MFEA ] CLI enabled
> [ 2007/01/13 07:50:12 INFO xorp_fea MFEA ] CLI started
> [ 2007/01/13 07:50:12 INFO xorp_fea MFEA ] MFEA enabled
> [ 2007/01/13 07:50:12 INFO xorp_fea MFEA ] CLI enabled
> [ 2007/01/13 07:50:12 INFO xorp_fea MFEA ] CLI started
> [ 2007/01/13 07:50:12  INFO xorp_rtrmgr:4206 RTRMGR +99
> module_manager.cc execute ] Executing module: fea (fea/xorp_fea)
> [ 2007/01/13 07:50:18  INFO xorp_rtrmgr:4206 RTRMGR +99
> module_manager.cc execute ] Executing module: rib (rib/xorp_rib)
> [ 2007/01/13 07:50:20  INFO xorp_rtrmgr:4206 RTRMGR +99
> module_manager.cc execute ] Executing module: policy
> (policy/xorp_policy)
> [ 2007/01/13 07:50:22  INFO xorp_rtrmgr:4206 RTRMGR +99
> module_manager.cc execute ] Executing module: static_routes
> (static_routes/xorp_static_routes)
> [ 2007/01/13 07:50:24  INFO xorp_rtrmgr:4206 RTRMGR +2228 task.cc
> run_task ] No more tasks to run
> 
> 
> 
> thanks,
> ashish
> 
> _______________________________________________
> Xorp-users mailing list
> Xorp-users at xorp.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users



More information about the Xorp-users mailing list