ospfd in 4.6

View: New views
4 Messages — Rating Filter:   Alert me  

ospfd in 4.6

by Gregory Edigarov-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Also cc'd to bugs@...

Hello Henning and Claudio.

In fact, it would be very nice if I am mistaken somewhere but i seems
like we have completely broken ospfd in 4.6.
I made a simple test setup:


box A:

fib-update yes
router-id 192.168.3.1
redistribute connected

area 0.0.0.0 {
       interface vlan2
       interface gif0 {
               passive
       }
       interface vlan3 {
               passive
       }
       interface tun0 {
               passive
       }
}

box B:

fib-update yes
router-id 192.168.3.2
redistribute connected

area 0.0.0.0 {
        interface ste0
        interface vlan20 {
                 passive
        }
        interface vlan30 {
                 passive
        }
}

the boxes are interconnected via vlan2 on box A, and ste0 on box B.
pings are all ok, there are no firewalls in between.

with started ospfd on both machines command:
ospfctl sh rib shows nothing, and routes never got added into kernel.

the same configurations but under 4.4.& 4.5 worked just fine, so could
you please look into the issue.


Parent Message unknown Re: ospfd in 4.6

by Gregory Edigarov-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Nov 7, 2009 at 4:53 PM, Pawlowski Marcin Piotr
<pmp.openbsd@...> wrote:

> On Sat, 7 Nov 2009 16:35:40 +0200
> Gregory Edigarov <gregory.edigarov@...> wrote:
>
>> Also cc'd to bugs@...
>>
>> Hello Henning and Claudio.
>>
>> In fact, it would be very nice if I am mistaken somewhere but i seems
>> like we have completely broken ospfd in 4.6.
>> I made a simple test setup:
>>
>>
>> box A:
>>
>> fib-update yes
>> router-id 192.168.3.1
>> redistribute connected
>>
>> area 0.0.0.0 {
>>        interface vlan2
>>        interface gif0 {
>>                passive
>>        }
>>        interface vlan3 {
>>                passive
>>        }
>>        interface tun0 {
>>                passive
>>        }
>> }
>>
>> box B:
>>
>> fib-update yes
>> router-id 192.168.3.2
>> redistribute connected
>>
>> area 0.0.0.0 {
>>         interface ste0
>>         interface vlan20 {
>>                  passive
>>         }
>>         interface vlan30 {
>>                  passive
>>         }
>> }
>>
>> the boxes are interconnected via vlan2 on box A, and ste0 on box B.
>> pings are all ok, there are no firewalls in between.
>>
>> with started ospfd on both machines command:
>> ospfctl sh rib shows nothing, and routes never got added into kernel.
>>
>> the same configurations but under 4.4.& 4.5 worked just fine, so could
>> you please look into the issue.
>>
>
> Hi,
> sorry for this stupid question but did You run 'pfctl -d' before trying
> that one (asking because I don't know what You mean by "no firewalls
> in between")?
>
> Cheers,
> pmp
>

Hi,
of course firewalls were disabled on both hosts.


Re: ospfd in 4.6

by Stuart Henderson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 2009/11/07 16:35, Gregory Edigarov wrote:
> In fact, it would be very nice if I am mistaken somewhere but i seems
> like we have completely broken ospfd in 4.6.

ospfd is definitely not "completely broken" in 4.6.

you'll need to provide much more debugging information than this.
these would probably be a good start:

ospfctl sh
ospfctl sh int
ospfctl sh nei

maybe there's something in the log too. (sometimes it can help
to run it in the foreground "ospfd -d" and look over the full
output).


Re: ospfd in 4.6

by Gregory Edigarov-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Nov 7, 2009 at 11:28 PM, Stuart Henderson <stu@...> wrote:

> On 2009/11/07 16:35, Gregory Edigarov wrote:
>> In fact, it would be very nice if I am mistaken somewhere but i seems
>> like we have completely broken ospfd in 4.6.
>
> ospfd is definitely not "completely broken" in 4.6.
>
> you'll need to provide much more debugging information than this.
> these would probably be a good start:
>
> ospfctl sh
> ospfctl sh int
> ospfctl sh nei
>
> maybe there's something in the log too. (sometimes it can help
> to run it in the foreground "ospfd -d" and look over the full
> output).
>
>

ok, so here we're going:

first box:

# ospfd -vvvd
startup
orig_asext_lsa: 0.0.0.0/0 age 0
rde_asext_get: 192.168.3.0/30 is net LSA
rde_asext_get: 192.168.3.4/30 is net LSA
orig_rtr_lsa: area 0.0.0.0
orig_rtr_lsa: stub net, interface vlan3
orig_rtr_lsa: stub net, interface vlan2
if_fsm: event UP resulted in action START and changing state for
interface vlan3 from DOWN to DOWN
orig_rtr_lsa: area 0.0.0.0
orig_rtr_lsa: stub net, interface vlan3
orig_rtr_lsa: stub net, interface vlan2
if_fsm: event UP resulted in action START and changing state for
interface vlan2 from DOWN to WAIT
spf_calc: area 0.0.0.0 calculated
if_act_elect: interface vlan2 old dr none new dr 192.168.3.1, old bdr
none new bdr none
orig_rtr_lsa: area 0.0.0.0
orig_rtr_lsa: stub net, interface vlan3
orig_rtr_lsa: stub net, interface vlan2
orig_rtr_lsa: area 0.0.0.0
orig_rtr_lsa: stub net, interface vlan3
orig_rtr_lsa: stub net, interface vlan2
if_fsm: event WAITTIMER resulted in action ELECT and changing state
for interface vlan2 from WAIT to DR
nbr_fsm: event HELLO_RECEIVED resulted in action
START_INACTIVITY_TIMER and changing state for neighbor ID 192.168.3.2
from DOWN to INIT

# ospfctl sh
Router ID: 192.168.3.1
Uptime: 00:07:12
RFC1583 compatibility flag is disabled
SPF delay is 1 sec(s), hold time between two SPFs is 5 sec(s)
Number of external LSA(s) 1
Number of areas attached to this router: 1

Area ID: 0.0.0.0
  Number of interfaces in this area: 2
  Number of fully adjacent neighbors in this area: 0
  SPF algorithm executed 1 time(s)
  Number LSA(s) 1

# ospfctl sh ne
ID              Pri State        DeadTime Address         Iface     Uptime
192.168.3.2     1   INIT/OTHER   00:00:31 192.168.3.2     vlan2     -

# ospfctl sh int
Interface   Address            State  HelloTimer Linkstate  Uptime    nc  ac
vlan3       192.168.3.5/30     DOWN   -          active     00:00:00   0   0
vlan2       192.168.3.1/30     DR     00:00:09   active     00:07:31   1   0

second box:
# ospfd -dvvv
startup
rde_asext_get: 192.168.3.0/30 is net LSA
rde_asext_get: 192.168.10.0/30 is net LSA
rde_asext_get: 192.168.10.8/30 is net LSA
orig_rtr_lsa: area 0.0.0.0
orig_rtr_lsa: stub net, interface vlan30
orig_rtr_lsa: stub net, interface vlan20
orig_rtr_lsa: stub net, interface ste0
if_fsm: event UP resulted in action START and changing state for
interface vlan30 from DOWN to WAIT
orig_rtr_lsa: area 0.0.0.0
orig_rtr_lsa: stub net, interface vlan30
orig_rtr_lsa: stub net, interface vlan20
orig_rtr_lsa: stub net, interface ste0
if_fsm: event UP resulted in action START and changing state for
interface vlan20 from DOWN to WAIT
orig_rtr_lsa: area 0.0.0.0
orig_rtr_lsa: stub net, interface vlan30
orig_rtr_lsa: stub net, interface vlan20
orig_rtr_lsa: stub net, interface ste0
if_fsm: event UP resulted in action START and changing state for
interface ste0 from DOWN to WAIT
spf_calc: area 0.0.0.0 calculated
if_act_elect: interface vlan30 old dr none new dr 192.168.10.9, old
bdr none new bdr none
orig_rtr_lsa: area 0.0.0.0
orig_rtr_lsa: stub net, interface vlan30
orig_rtr_lsa: stub net, interface vlan20
orig_rtr_lsa: stub net, interface ste0
orig_rtr_lsa: area 0.0.0.0orig_rtr_lsa: stub net, interface vlan30
orig_rtr_lsa: stub net, interface vlan20
orig_rtr_lsa: stub net, interface ste0
if_fsm: event WAITTIMER resulted in action ELECT and changing state
for interface vlan30 from WAIT to DR
if_act_elect: interface vlan20 old dr none new dr 192.168.10.1, old
bdr none new bdr none
orig_rtr_lsa: area 0.0.0.0
orig_rtr_lsa: stub net, interface vlan30
orig_rtr_lsa: stub net, interface vlan20
orig_rtr_lsa: stub net, interface ste0
orig_rtr_lsa: area 0.0.0.0
orig_rtr_lsa: stub net, interface vlan30
orig_rtr_lsa: stub net, interface vlan20
orig_rtr_lsa: stub net, interface ste0
if_fsm: event WAITTIMER resulted in action ELECT and changing state
for interface vlan20 from WAIT to DR
if_act_elect: interface ste0 old dr none new dr 192.168.3.2, old bdr
none new bdr none
orig_rtr_lsa: area 0.0.0.0
orig_rtr_lsa: stub net, interface vlan30
orig_rtr_lsa: stub net, interface vlan20
orig_rtr_lsa: stub net, interface ste0
orig_rtr_lsa: area 0.0.0.0
orig_rtr_lsa: stub net, interface vlan30
orig_rtr_lsa: stub net, interface vlan20
orig_rtr_lsa: stub net, interface ste0
if_fsm: event WAITTIMER resulted in action ELECT and changing state
for interface ste0 from WAIT to DR

# ospfctl sh
Router ID: 192.168.3.2
Uptime: 00:00:37
RFC1583 compatibility flag is disabled
SPF delay is 1 sec(s), hold time between two SPFs is 5 sec(s)
Number of external LSA(s) 0
Number of areas attached to this router: 1

Area ID: 0.0.0.0
  Number of interfaces in this area: 3
  Number of fully adjacent neighbors in this area: 0
  SPF algorithm executed 1 time(s)
  Number LSA(s) 1

# ospfctl sh ne
ID              Pri State        DeadTime Address         Iface     Uptime

# ospfctl sh int
Interface   Address            State  HelloTimer Linkstate  Uptime    nc  ac
vlan30      192.168.10.9/30    DR     00:00:09   active     00:01:00   0   0
vlan20      192.168.10.1/30    DR     00:00:09   active     00:01:00   0   0
ste0        192.168.3.2/30     DR     00:00:09   active     00:01:00   0   0