Hai All,

I have two OpenBSD 3.9 box, both running OSPFD default on OBSD 3.9.
I add static route on OBSD1 and found that the whole ospf rib disappear.
Any clue?

OBSD1

ospfd.conf
# $OpenBSD: ospfd.conf,v 1.2 2005/02/06 20:07:09 norby Exp $

# macros
password="secret"

router-id 192.168.1.100

redistribute connected
redistribute static

# areas
area 0.0.0.0 {
        interface ste0 {
                auth-type simple
                auth-key $password
        }


}

OBSD2
ospfd.conf
# $OpenBSD: ospfd.conf,v 1.2 2005/02/06 20:07:09 norby Exp $

# macros
password="secret"

router-id 192.168.3.111

redistribute connected
redistribute default

# areas
area 0.0.0.0 {
        interface fxp0 {
                auth-type simple
                auth-key $password
        }


}

OBSD1
# ospfctl show n
ID              Pri State        DeadTime Address         Iface     Uptime
192.168.3.111   1   FULL/DR      00:00:39 192.168.7.1     ste0      00:02:31

# ospfctl show f
flags: * = valid, O = OSPF, C = Connected, S = Static
Flags  Destination          Nexthop
*O     0.0.0.0/0            192.168.7.1
*O     10.10.10.0/24        192.168.7.1
*S     127.0.0.0/8          127.0.0.1
*C     127.0.0.1/8          link#0
*      127.0.0.1/32         127.0.0.1
*C     192.168.1.0/24       link#1
*O     192.168.3.0/24       192.168.7.1
*C     192.168.7.0/30       link#2
 C     192.168.7.4/30       link#3
*S     224.0.0.0/4          127.0.0.1

# ospfctl show r
Destination          Nexthop           Path Type    Type      Cost    Uptime
192.168.3.111        192.168.7.1       Intra-Area   Router    10      00:03:14
192.168.7.0/30       192.168.7.2       Intra-Area   Network   10      00:03:14
0.0.0.0/0            192.168.7.1       Type 1 ext   Network   110     00:03:14
10.10.10.0/24        192.168.7.1       Type 1 ext   Network   110     00:03:14
192.168.3.0/24       192.168.7.1       Type 1 ext   Network   110     00:03:14

# ospfctl show d

                Router Link States (Area 0.0.0.0)

Link ID         Adv Router      Age  Seq#       Checksum
192.168.1.100   192.168.1.100   203  0x80000010 0xbdf9
192.168.3.111   192.168.3.111   204  0x8000000f 0xdcc2

                Net Link States (Area 0.0.0.0)

Link ID         Adv Router      Age  Seq#       Checksum
192.168.7.1     192.168.3.111   538  0x80000001 0x97cd

                Type-5 AS External Link States

Link ID         Adv Router      Age  Seq#       Checksum
0.0.0.0         192.168.3.111   578  0x80000001 0x8d85
10.10.10.0      192.168.3.111   414  0x80000001 0x24d0
192.168.1.0     192.168.1.100   208  0x80000001 0x2194
192.168.3.0     192.168.3.111   578  0x80000001 0xbaeb

OBSD2
# ospfctl show n
ID              Pri State        DeadTime Address         Iface     Uptime
192.168.1.100   1   FULL/BCKUP   00:00:30 192.168.7.2     fxp0      00:05:30

# ospfctl show f
flags: * = valid, O = OSPF, C = Connected, S = Static
Flags  Destination          Nexthop
*S     0.0.0.0/0            192.168.3.1
*C     10.10.10.0/24        link#3
*S     127.0.0.0/8          127.0.0.1
*C     127.0.0.1/8          link#0
*      127.0.0.1/32         127.0.0.1
*O     192.168.1.0/24       192.168.7.2
*C     192.168.3.0/24       link#2
*C     192.168.7.0/30       link#1
*S     224.0.0.0/4          127.0.0.1

# ospfctl show r
Destination          Nexthop           Path Type    Type      Cost    Uptime
192.168.1.100        192.168.7.2       Intra-Area   Router    10      00:05:55
192.168.7.0/30       192.168.7.1       Intra-Area   Network   10      00:08:53
192.168.1.0/24       192.168.7.2       Type 1 ext   Network   110     00:05:55

# ospfctl show d

                Router Link States (Area 0.0.0.0)

Link ID         Adv Router      Age  Seq#       Checksum
192.168.1.100   192.168.1.100   682  0x80000010 0xbdf9
192.168.3.111   192.168.3.111   681  0x8000000f 0xdcc2

                Net Link States (Area 0.0.0.0)

Link ID         Adv Router      Age  Seq#       Checksum
192.168.7.1     192.168.3.111   1015 0x80000001 0x97cd

                Type-5 AS External Link States

Link ID         Adv Router      Age  Seq#       Checksum
0.0.0.0         192.168.3.111   1055 0x80000001 0x8d85
10.10.10.0      192.168.3.111   891  0x80000001 0x24d0
192.168.1.0     192.168.1.100   1060 0x80000001 0x2194
192.168.3.0     192.168.3.111   1055 0x80000001 0xbaeb

Adding static route on OBSD1
route add 172.16.10.0/24 192.168.1.99

# route add 172.16.10.0/24 192.168.1.99
add net 172.16.10.0/24: gateway 192.168.1.99
# ospfctl show r
Destination          Nexthop           Path Type    Type      Cost    Uptime

Thanks and looking forward to hear from you.
Riwan

Reply via email to