[Xorp-users] A question on exporting connected routes into OSPF
Atanu Ghosh
atanu at ICSI.Berkeley.EDU
Tue Jan 8 16:25:35 PST 2008
Hi,
I tried your config and it worked fine for me.
interfaces {
interface fxp0 {
description: "fxp0"
vif fxp0 {
address 5.8.27.2 {
prefix-length: 24
}
address 8.65.1.10 {
prefix-length: 32
}
}
}
}
Xorp> show ospf4 database
OSPF link state database, Area 0.0.0.0
Type ID Adv Rtr Seq Age Opt Cksum Len
Router *5.8.27.2 5.8.27.2 0x80000001 189 0x2 0x23b0 36
ASExt-2 *5.8.27.0 5.8.27.2 0x80000001 189 0x2 0xf362 36
ASExt-2 *8.65.1.10 5.8.27.2 0x80000001 189 0x2 0xc48f 36
I am using the latest code from CVS and I explictly configured the
second address in the interface block.
Atanu.
>>>>> "Donghai" == Donghai Ma <donghaima at gmail.com> writes:
Donghai> Hello List,
Donghai> I am new to XORP and having difficulties to get XORP to distribute
Donghai> connected routes into OSPF. For example, after I add an address to
Donghai> eth1:
Donghai> $ ip addr add 8.65.1.10/32 dev eth1
Donghai> I'd like the connected route 8.65.1.10/32 be distributed by the OSPF
Donghai> process.
Donghai> After reading through the XORP manual I have the latest 1.4 release
Donghai> running on my Linux box. The OSPF process is receiving routes
Donghai> correctly from the upstream router. But the route export/distribution
Donghai> does not work as I had hoped. When I add or delete ip addresses the
Donghai> XORP process does not do OSPF LS Update.
Donghai> My question is: does XORP currently support this kind of route
Donghai> distribution? And if yes how to make this work?
Donghai> Any help is very much appreciated!
Donghai> Thanks,
Donghai> -Donghai Ma
Donghai> PS.
Donghai> Here is my configuration:
Donghai> -------------------------------------------- xorp config file starts
Donghai> --------------------------------------------
Donghai> /* $XORP: xorp/rtrmgr/config.boot 1.46 2007/03/12 10:16:05 atanu Exp $
Donghai> */
Donghai> interfaces {
Donghai> restore-original-config-on-shutdown: false
Donghai> interface eth1 {
Donghai> description: "eth1"
Donghai> disable: false
Donghai> /* default-system-config */
Donghai> vif eth1 {
Donghai> disable: false
Donghai> address 5.8.27.2 {
Donghai> prefix-length: 24
Donghai> broadcast: 5.8.27.255
Donghai> disable: false
Donghai> }
Donghai> }
Donghai> }
Donghai> }
Donghai> fea {
Donghai> unicast-forwarding4 {
Donghai> disable: false
Donghai> forwarding-entries {
Donghai> retain-on-startup: false
Donghai> retain-on-shutdown: false
Donghai> }
Donghai> }
Donghai> }
Donghai> policy {
Donghai> /* Describe connected routes for redistribution */
Donghai> policy-statement POLICY_CONNECTED {
Donghai> term 1 {
Donghai> from {
Donghai> protocol: "connected"
Donghai> }
Donghai> then {
Donghai> trace 3
Donghai> accept
Donghai> }
Donghai> }
Donghai> }
Donghai> }
Donghai> protocols {
Donghai> ospf4 {
Donghai> router-id: 5.8.27.2
Donghai> area 0.0.0.0 {
Donghai> area-type: "normal"
Donghai> interface eth1 {
Donghai> /* link-type: "broadcast" */
Donghai> vif eth1 {
Donghai> address 5.8.27.2 {
Donghai> }
Donghai> }
Donghai> }
Donghai> }
Donghai> export: "POLICY_CONNECTED"
Donghai> }
Donghai> }
Donghai> -------------------------------------------- xorp config file ends
Donghai> --------------------------------------------
Donghai> _______________________________________________
Donghai> Xorp-users mailing list
Donghai> Xorp-users at xorp.org
Donghai> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users
More information about the Xorp-users
mailing list