[Xorp-hackers] OLSR seems to be mostly working, but no subnet routes
Ben Greear
greearb at candelatech.com
Tue Jul 7 16:29:08 PDT 2009
I'm doing some testing with OLSR (plus my hacks to make it work with
multiple router tables and multiple instances of xorp).
I thought it was working previously, but I wasn't paying close enough
attention. It is adding routes to individual interfaces, but no subnet routes,
so traffic won't actually flow across my network.
A diagram of my network is at:
http://www.candelatech.com/oss/olsr_diag.pdf
The routes for router 3 are:
10.2.2.2 via 10.2.3.2 dev 2.3.3 proto xorp metric 5 notify
10.1.2.2 via 10.2.3.2 dev 2.3.3 proto xorp metric 5 notify
10.1.2.1 via 10.1.3.1 dev 1.3.3 proto xorp metric 5 notify
10.2.3.2 via 10.2.3.2 dev 2.3.3 proto xorp metric 5 notify
10.1.3.1 via 10.1.3.1 dev 1.3.3 proto xorp metric 5 notify
10.1.1.1 via 10.1.3.1 dev 1.3.3 proto xorp metric 5 notify
10.2.3.0/24 dev 2.3.3 scope link
10.1.3.0/24 dev 1.3.3 scope link
10.3.3.0/24 dev br3 scope link
unreachable default proto xorp metric 1 notify
fe80::/64 dev 2.3.3 metric 1024 mtu 1500 advmss 1440 hoplimit 4294967295
unreachable default dev lo metric 1024 error -101 mtu 16436 advmss 16376 hoplimit 4294967295
I was assuming that OLSR would be sharing subnet routes for the subnets directly connected
to remote OLSR routers, and not just the interface IP routes.
My config for router 3 is below. Others are similar:
root at nehalem# show
protocols {
olsr4 {
main-address: 10.3.3.3
interface br3 {
vif br3 {
address 10.3.3.3 {
}
}
}
interface "1.3.3" {
vif "1.3.3" {
address 10.1.3.3 {
interface-cost: 2
}
}
}
interface "2.3.3" {
vif "2.3.3" {
address 10.2.3.3 {
interface-cost: 2
}
}
}
}
static {
interface-route 0.0.0.0/0 {
next-hop-interface: "my_discard"
next-hop-vif: "my_discard"
}
}
}
fea {
unicast-forwarding4 {
table-id: 10003
}
}
interfaces {
interface "my_discard" {
unreachable: true
vif "my_discard" {
}
}
interface br3 {
vif br3 {
address 10.3.3.3 {
prefix-length: 24
}
}
}
interface "1.3.3" {
vif "1.3.3" {
address 10.1.3.3 {
prefix-length: 24
}
}
}
interface "2.3.3" {
vif "2.3.3" {
address 10.2.3.3 {
prefix-length: 24
}
}
}
}
Thanks,
Ben
--
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc http://www.candelatech.com
More information about the Xorp-hackers
mailing list