Hi,
I have the following set-up:
|----R2----other routers
|
ISP----R1
|
|----R3----other routers
There is a static default route on R1 pointing to ISP's gateway
(192.168.60.253).
R1, R2, R3 and other routers (except ISP's) are running ospfd in area
0.0.0.0. R1 should be injecting a default route into ospf domain towards
itself.
Below are ospfd.conf's from these routers:
R1:
-----------------------
# cat /etc/ospfd.conf
router-id 10.10.10.9
redistribute default
area 0.0.0.0 {
interface trunk0
interface vr2
}
R2:
-----------------------
# cat /etc/ospfd.conf
router-id 10.10.10.18
area 0.0.0.0 {
interface trunk0
interface vlan208
}
R3:
-----------------------
# cat /etc/ospfd.conf
router-id 10.10.10.19
area 0.0.0.0 {
interface trunk0
interface vlan208
}
All adjacencies are up and routes are updated fine except for default
route originated from R1. If you look into "ospfctl show database"
command output on R2 for example, you can see that this default route's
LSA is there. But for some reason it does not end up in kernel routing
table.
$ ospfctl show data
Router Link States (Area 0.0.0.0)
Link ID Adv Router Age Seq# Checksum
10.10.10.9 10.10.10.9 1182 0x80000041 0xd4de
10.10.10.18 10.10.10.18 1653 0x8000004f 0x02cb
10.10.10.19 10.10.10.19 83 0x80000050 0x18b0
10.10.10.20 10.10.10.20 1966 0x80000093 0x6760
10.10.10.26 10.10.10.26 1314 0x80000048 0xbc64
10.10.10.27 10.10.10.27 1323 0x80000048 0xba63
10.10.10.34 10.10.10.34 1149 0x8000003c 0x2c5e
10.10.10.35 10.10.10.35 1134 0x8000004e 0x5d22
Net Link States (Area 0.0.0.0)
Link ID Adv Router Age Seq# Checksum
10.10.10.9 10.10.10.9 1672 0x8000003d 0x9aaf
10.10.10.20 10.10.10.20 1722 0x80000037 0xce40
10.10.10.27 10.10.10.27 1313 0x80000049 0x05f9
10.10.10.34 10.10.10.34 1139 0x8000001c 0xc746
Type-5 AS External Link States
Link ID Adv Router Age Seq# Checksum
0.0.0.0 10.10.10.9 1182 0x80000013 0x41d2
$ netstat -nr
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu Prio
Iface
10.10.10.0/29 link#9 UC 0 0 - 4
vlan201
10.10.10.8/29 link#10 UC 3 0 - 4
vlan208
10.10.10.8/29 10.10.10.13 UG 0 0 - 32
vlan208
10.10.10.9 00:00:24:ce:06:d8 UHLc 3 16267 - 4
vlan208
10.10.10.13 00:00:24:ce:06:d2 UHLc 1 2 - 4 lo0
10.10.10.14 00:00:24:ce:06:d6 UHLc 0 1 - 4
vlan208
10.10.10.16/29 link#7 UC 3 0 - 4
trunk0
10.10.10.16/29 10.10.10.18 UG 0 0 - 32
trunk0
10.10.10.18 00:00:24:ce:06:d0 UHLc 1 0 - 4 lo0
10.10.10.19 00:00:24:ce:06:d4 UHLc 0 266 - 4
trunk0
10.10.10.20 e8:ba:70:ef:bf:c1 UHLc 3 329 - 4
trunk0
10.10.10.24/29 10.10.10.20 UG 0 0 - 32
trunk0
10.10.10.32/29 10.10.10.20 UG 0 530 - 32
trunk0
127/8 127.0.0.1 UGRS 0 0 33200 8 lo0
127.0.0.1 127.0.0.1 UH 1 6 33200 4 lo0
192.168.0/24 10.10.10.20 UG 1 4820 - 32
trunk0
192.168.60.252/30 10.10.10.9 UG 0 0 - 32
vlan208
224/4 127.0.0.1 URS 0 0 33200 8 lo0
What am I doing wrong?
I have deleted /etc/mygate on all routers except R1 and deleted default
route and rebooted just in case.
I am running OpenBSD 4.9 release on Soekris boxes.
Thank you,
Shohrukh