Hello list,
I am trying to configure OSPF in my environment between OpenBSD 4.7
(Release)-AMD64, an Allied Telesyn 9924T switch and a Cisco ASA 5505.
The ASA and the Switch appear to have no problems forming a neighbor
relationship, however the OpenBSD box is having more problems. Below
is the interface information for em0:
# cat /etc/hostname.em0
10.50.3.1 255.255.255.0 description "Local LAN Connection"
# ifconfig em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:0c:29:e4:3a:59
description: Local LAN Connection
priority: 0
media: Ethernet autoselect (1000baseT full-duplex,master)
status: active
inet 10.50.3.1 netmask 0xff000000 broadcast 255.255.255.0
And the ospfd.conf:
# cat /etc/ospfd.conf
area 0.0.0.0 {
interface em0 {
}
}
When I start ospfd on my OpenBSD machine, I receive the message:
# ospfd -d
startup
orig_rtr_lsa: area 0.0.0.0
orig_rtr_lsa: stub net, interface em0
if_fsm: event UP resulted in action START and changing state for
interface em0 from DOWN to WAIT
recv_hello: invalid netmask, interface em0
spf_calc: area 0.0.0.0 calculated
recv_hello: invalid netmask, interface em0
And on the Cisco side of things:
Sep 5 18:43:07.939: OSPF: Mismatched hello parameters from 10.50.3.1
Sep 5 18:43:07.939: OSPF: Dead R 40 C 40, Hello R 10 C 10 Mask R 255.0.0.0
C
255.255.255.0
Which tells me that it is configured to expect a netmask of
255.255.255.0 but it is actually receiving a 255.0.0.0 netmask. The
only thing I can think of is that osfpd is not getting the correct
netmask from ifconfig, so it is sending the classful /8 netmask to the
other clients. I didn't see anything in ospfd.conf regarding
netmasks, so I'm a little confused as to how to proceed.
Regards,
Mattias