Re: Ospf multiple areas not redistributing

2015-09-04 Thread Roger Skjetlein
This is the interface status when in area 0.0.0.0

Interface em0, line protocol is UP
  Internet address 10.0.30.1/24, Area 0.0.0.0
  Linkstate unknown
  Router ID 10.0.11.2, network type BROADCAST, cost: 10
  Transmit delay is 1 sec(s), state DR, priority 1
  Designated Router (ID) 10.0.11.2, interface address 10.0.30.1
  Backup Designated Router (ID) 0.0.0.0, interface address 0.0.0.0
  Timer intervals configured, hello 10, dead 40, wait 40, retransmit 5
Hello timer due in 00:00:02+162msec
Uptime 2d01h05m
  Neighbor count is 0, adjacent neighbor count is 0

This is the interface status when in area 10.0.30.0

Interface em0, line protocol is UP
  Internet address 10.0.30.1/24, Area 10.0.30.0
  Linkstate unknown
  Router ID 10.0.11.2, network type BROADCAST, cost: 10
  Transmit delay is 1 sec(s), state DR, priority 1
  Designated Router (ID) 10.0.11.2, interface address 10.0.30.1
  Backup Designated Router (ID) 0.0.0.0, interface address 0.0.0.0
  Timer intervals configured, hello 10, dead 40, wait 40, retransmit 5
Hello timer due in 00:00:07+845msec
Uptime 00:04:22
  Neighbor count is 0, adjacent neighbor count is 0

Database from the router

Router Link States (Area 10.0.30.0)

Link ID Adv Router  Age  Seq#   Checksum
10.0.11.2   10.0.11.2   290  0x8001 0x11e1

Summary Net Link States (Area 10.0.30.0)

Link ID Adv Router  Age  Seq#   Checksum
10.0.0.010.0.11.2   270  0x8001 0x62bb
10.0.1.010.0.11.2   270  0x8001 0x57c5
10.0.10.0   10.0.11.2   270  0x8001 0x8f8e
10.0.11.128 10.0.11.2   289  0x8001 0x6d32
10.0.11.132 10.0.11.2   270  0x8001 0x4556
10.0.20.0   10.0.11.2   289  0x8001 0x21f2

Router Link States (Area 0.0.0.0)

Link ID Adv Router  Age  Seq#   Checksum
10.0.10.200 10.0.10.200 281  0x81c0 0x3339
10.0.11.2   10.0.11.2   276  0x81a0 0x725d
10.0.20.1   10.0.20.1   290  0x8126 0x9fea

Summary Net Link States (Area 0.0.0.0)

Link ID Adv Router  Age  Seq#   Checksum
10.0.0.010.0.10.200 1033 0x807d 0x6382
10.0.1.010.0.10.200 1763 0x807c 0x5a8b
10.0.10.0   10.0.10.200 1463 0x807d 0x9055
10.0.20.0   10.0.20.1   810  0x8091 0x6223

# ospfctl show rib
Destination  Nexthop   Path TypeType  CostUptime
10.0.10.200  10.0.11.134   Intra-Area   Router10
 00:07:05
10.0.20.110.0.11.130   Intra-Area   Router10
 00:07:24
10.0.0.0/24  10.0.11.134   Inter-Area   Network   30
 00:07:05
10.0.1.0/24  10.0.11.134   Inter-Area   Network   30
 00:07:05
10.0.10.0/24 10.0.11.134   Inter-Area   Network   20
 00:07:05
10.0.11.128/30   10.0.11.130   Intra-Area   Network   20
 00:07:24
10.0.11.132/30   10.0.11.134   Intra-Area   Network   20
 00:07:05
10.0.20.0/24 10.0.11.130   Inter-Area   Network   20
 00:07:24

# ospfctl show fib
flags: * = valid, O = OSPF, C = Connected, S = Static
Flags  Prio Destination  Nexthop
*S8 0.0.0.0/0129.241.43.193
*O   32 10.0.0.0/24  10.0.11.134
*O   32 10.0.1.0/24  10.0.11.134
*O   32 10.0.10.0/24 10.0.11.134
* 1 10.0.11.2/32 10.0.11.2
*O   32 10.0.11.128/30   10.0.11.130
* 1 10.0.11.129/32   10.0.11.129
* 4 10.0.11.130/32   10.0.11.129
*O   32 10.0.11.132/30   10.0.11.134
* 1 10.0.11.133/32   10.0.11.133
* 4 10.0.11.134/32   10.0.11.133
*O   32 10.0.20.0/24 10.0.11.130
*C4 10.0.30.0/24 link#1
*C0 127.0.0.0/8  link#0
*S8 127.0.0.0/8  127.0.0.1
* 1 127.0.0.1/32 127.0.0.1
*C4 n.n.n.n/26link#2
*S8 224.0.0.0/4  127.0.0.1



As seen from another router

Router Link States (Area 10.0.10.0)

Link ID Adv Router  Age  Seq#   Checksum
10.0.10.50  10.0.10.50  233  0x8082 0xe038
10.0.10.100 10.0.10.100 239  0x8089 0x46eb
10.0.10.200 10.0.10.200 240  0x8087 0xaca2

Net Link States (Area 10.0.10.0)

Link ID Adv Router  Age  Seq#   Checksum
10.0.10.200 10.0.10.200 240  0x8082 0xccb2

Summary Net Link States (Area 10.0.10.0)

Link ID Adv Router  Age  Seq#   Checksum
10.0.11.128 10.0.10.200 250  0x8001 0x309f
10.0.11.130 10.0.10.200 250  0x8001 0xc90b
10.0.11.132 10.0.10.200 1600 0x807d 0x461d
10.0.20.0   10.0.10.200 250  0x8001 0xe360

# ospfctl show rib
Destination  Nexthop   Path TypeType  CostUptime
10.0.10.200  10.0.10.200   Intra-Area   Router10
 00:05:49
10.0.0.0/24  

Re: Ospf multiple areas not redistributing

2015-09-04 Thread Roger Skjetlein
On Wed, Sep 2, 2015 at 1:54 PM, Kapetanakis Giannis <
bil...@edu.physics.uoc.gr> wrote:

> On 02/09/15 10:31, Roger Skjetlein wrote:
>
>> Hi,
>>
>>
>> have an issue with ospfd when using multiple areas and networks from area
>> 10.0.30.0 not distributed to 0.0.0.0.
>>
>> eg
>>
>> the network for em0 is 10.0.30.0/24 and is never seen in ospf routing
>> table. Moving interface em0 to area 0.0.0.0 solves the distribution of the
>> network, but not having multiple areas.
>>
>> OpenBSD 5.7/i386
>>
>
> I also have the exact same issue and solved it by moving to area 0.0.0.0
>
> Check out this thread
> http://marc.info/?l=openbsd-misc=136995074911854=2
> don't know it's current status and what happened with the patch.
>
> hint: if you have a second ospf router on 10.0.30.0 area then the route is
> distributed.
>
>
>
Yes, saw your thread on this and was suprised that this still was an issue
when i could get the other area subnet to be distributed in the network.
Followed your recommendation/workaround and the network was distributed,
but it didnt really solve my problem, that is to have several areas.


--
"Over vidden flyger renen;
efter den i vind og væde! -
Bedre det, end bryde stenen
op af fattig jord dernede!"



Ospf multiple areas not redistributing

2015-09-02 Thread Roger Skjetlein
Hi,


have an issue with ospfd when using multiple areas and networks from area
10.0.30.0 not distributed to 0.0.0.0.

eg

excerpt from config

area 0.0.0.0 {
 interface gre0
 interface gre1
}
area 10.0.30.0 {
 interface em0
}

the network for em0 is 10.0.30.0/24 and is never seen in ospf routing
table. Moving interface em0 to area 0.0.0.0 solves the distribution of the
network, but not having multiple areas.

OpenBSD 5.7/i386


--
"Over vidden flyger renen;
efter den i vind og væde! -
Bedre det, end bryde stenen
op af fattig jord dernede!"



Re: Ospf multiple areas not redistributing

2015-09-02 Thread Gregory Edigarov

On 09/02/2015 10:31 AM, Roger Skjetlein wrote:

Hi,


have an issue with ospfd when using multiple areas and networks from area
10.0.30.0 not distributed to 0.0.0.0.

eg

excerpt from config

area 0.0.0.0 {
  interface gre0
  interface gre1
}
area 10.0.30.0 {
  interface em0
}

the network for em0 is 10.0.30.0/24 and is never seen in ospf routing
table. Moving interface em0 to area 0.0.0.0 solves the distribution of the
network, but not having multiple areas.
please show more info, specifically ospfctl sh database, ospfctl sh rib 
from at least two routers in your network.




Re: Ospf multiple areas not redistributing

2015-09-02 Thread Kapetanakis Giannis

On 02/09/15 10:31, Roger Skjetlein wrote:

Hi,


have an issue with ospfd when using multiple areas and networks from area
10.0.30.0 not distributed to 0.0.0.0.

eg

excerpt from config

area 0.0.0.0 {
  interface gre0
  interface gre1
}
area 10.0.30.0 {
  interface em0
}

the network for em0 is 10.0.30.0/24 and is never seen in ospf routing
table. Moving interface em0 to area 0.0.0.0 solves the distribution of the
network, but not having multiple areas.

OpenBSD 5.7/i386


I also have the exact same issue and solved it by moving to area 0.0.0.0

Check out this thread
http://marc.info/?l=openbsd-misc=136995074911854=2
don't know it's current status and what happened with the patch.

hint: if you have a second ospf router on 10.0.30.0 area then the route 
is distributed.


G