Discussion:
[quagga-users 13762] OSPF: *** sendmsg in ospf_write failed to 224.0.0.5, id 4350, off 0, len 80, interface dummy0, mtu 1500: Operation not permitted
Matshidze, Calvin C
2014-08-17 10:46:23 UTC
Permalink
Dear List,

I have implemented zebra and quagga for dynamic routing using IPTABLES and SNAT (to enable SOURCEVIPA) on SuSE Linux.

The configuration is as follows:

VIPA=10.81.250.211
Interface IP=10.144.184.77
Gateway= 10.144.184.1 and 10.144.184.2

The IPTABLES rule to make 10.81.250.211 the source IP for all packets is as follows:

iptables -t nat -A POSTROUTING -p tcp -o eth1 -s 10.144.184.77 -j SNAT --to 10.81.250.211

When I I start OSPF it start up fine but the OSPF neighbor do not connect and instead i see this message on the log:

"*** sendmsg in ospf_write failed to 224.0.0.5, id 4312, off 0, len 80, interface dummy0, mtu 1500: Operation not permitted"

Any ideas what I could be doing wrong which is causing the above error message?

Thanks a lot in advance

Below is an extract from the log:

2014/08/17 04:17:03 OSPF: OSPFd 0.99.9 starting: ***@2604
2014/08/17 04:17:03 OSPF: ospfTrapIfStateChange trap sent: 10.81.250.211 now DROther
2014/08/17 04:17:03 OSPF: interface 10.81.250.211 [6] join AllSPFRouters Multicast group.
2014/08/17 04:17:03 OSPF: ospfTrapIfStateChange trap sent: 10.144.184.77 now DROther
2014/08/17 04:17:03 OSPF: interface 10.144.184.77 [3] join AllSPFRouters Multicast group.
2014/08/17 04:17:03 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.2 now Init/DROther
2014/08/17 04:17:03 OSPF: DR-Election[1st]: Backup 10.144.184.2
2014/08/17 04:17:03 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:03 OSPF: DR-Election[1st]: Backup 0.0.0.0
2014/08/17 04:17:03 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:03 OSPF: Packet[DD]: Neighbor 192.168.128.11 Negotiation done (Slave).
2014/08/17 04:17:03 OSPF: nsm_change_state(192.168.128.11, Loading -> Full): scheduling new router-LSA origination
2014/08/17 04:17:03 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.101 now Init/DROther
2014/08/17 04:17:03 OSPF: DR-Election[1st]: Backup 10.144.184.101
2014/08/17 04:17:03 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:03 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.1 now Init/DROther
2014/08/17 04:17:03 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:03 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:03 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.101 now ExStart/DROther
2014/08/17 04:17:03 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:03 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:03 OSPF: Link State Update: Neighbor[192.168.128.9] state ExStart is less than Exchange
2014/08/17 04:17:03 OSPF: Packet[DD]: Neighbor 192.168.128.9 Negotiation done (Slave).
2014/08/17 04:17:04 OSPF: nsm_change_state(192.168.128.9, Exchange -> Full): scheduling new router-LSA origination
2014/08/17 04:17:04 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.59 now Init/DROther
2014/08/17 04:17:04 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:04 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:04 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.54 now Init/DROther
2014/08/17 04:17:04 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:04 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:04 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.41 now Init/DROther
2014/08/17 04:17:04 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:04 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:04 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.104 now Init/DROther
2014/08/17 04:17:04 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:04 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:04 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.19 now Init/DROther
2014/08/17 04:17:04 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:04 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:04 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.53 now Init/DROther
2014/08/17 04:17:04 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:04 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:04 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.125 now Init/DROther
2014/08/17 04:17:04 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:04 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:04 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.17 now Init/DROther
2014/08/17 04:17:04 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:04 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:05 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.127 now Init/DROther
2014/08/17 04:17:05 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:05 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:05 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.42 now Init/DROther
2014/08/17 04:17:05 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:05 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:05 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.18 now Init/DROther
2014/08/17 04:17:05 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:05 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:05 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.110 now Init/DROther
2014/08/17 04:17:05 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:05 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:06 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.73 now Init/DROther
2014/08/17 04:17:06 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:06 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:08 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.21 now Init/DROther
2014/08/17 04:17:08 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:08 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:09 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.117 now Init/DROther
2014/08/17 04:17:09 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:09 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:09 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.102 now Init/DROther
2014/08/17 04:17:09 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:09 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:10 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.103 now Init/DROther
2014/08/17 04:17:10 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:10 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:12 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.47 now Init/DROther
2014/08/17 04:17:12 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:12 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:12 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.44 now Init/DROther
2014/08/17 04:17:12 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:12 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:12 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.66 now Init/DROther
2014/08/17 04:17:12 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:12 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:12 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.58 now Init/DROther
2014/08/17 04:17:12 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:12 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:12 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.22 now Init/DROther
2014/08/17 04:17:12 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:12 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:12 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.119 now Init/DROther
2014/08/17 04:17:12 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:12 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:12 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.56 now Init/DROther
2014/08/17 04:17:12 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:12 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:13 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.109 now Init/DROther
2014/08/17 04:17:13 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:13 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:13 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.57 now Init/DROther
2014/08/17 04:17:13 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:13 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:13 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.98 now Init/DROther
2014/08/17 04:17:13 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:13 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:13 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.99 now Init/DROther
2014/08/17 04:17:13 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:13 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:13 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.116 now Init/DROther
2014/08/17 04:17:13 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:13 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:13 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.105 now Init/DROther
2014/08/17 04:17:13 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:13 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:13 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.82 now Init/DROther
2014/08/17 04:17:13 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:13 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:13 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.108 now Init/DROther
2014/08/17 04:17:13 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:13 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:13 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.106 now Init/DROther
2014/08/17 04:17:13 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:13 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:13 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.126 now Init/DROther
2014/08/17 04:17:13 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:13 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:13 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.32 now Init/DROther
2014/08/17 04:17:13 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:13 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:13 OSPF: ospfTrapNbrStateChange trap sent: 10.144.184.27 now Init/DROther
2014/08/17 04:17:13 OSPF: DR-Election[1st]: Backup 10.144.184.1
2014/08/17 04:17:13 OSPF: DR-Election[1st]: DR 10.144.184.2
2014/08/17 04:17:13 OSPF: *** sendmsg in ospf_write failed to 224.0.0.5, id 4312, off 0, len 80, interface dummy0, mtu 1500: Operation not permitted




Standard Bank email disclaimer and confidentiality note
Please go to http://www.standardbank.co.za/site/homepage/emaildisclaimer.html to read our email disclaimer and confidentiality note. Kindly email ***@standardbank.co.za (no content or subject line necessary) if you cannot view that page and we will email our email disclaimer and confidentiality note to you.
Nick Hilliard
2014-08-17 12:46:50 UTC
Permalink
On 17/08/2014 11:46, Matshidze, Calvin C wrote:
> Any ideas what I could be doing wrong which is causing the above error message?

you probably want to disable ospf on interface dummy0 and have it operate
on just the physical interfaces. Also, bear in mind that OSPF is designed
to work with real interface IP addresses and if you do stuff like natting
or masquerading these addresses, it will almost certainly break in weird ways.

Incidentally, if all you're trying to do is create a reliable default
gateway, it would be better to do this with something like VRRP or CARP.

Nick
Nick Hilliard
2014-08-17 15:34:14 UTC
Permalink
On 17/08/2014 15:13, Matshidze, Calvin C wrote:
> Thanks for the advice Nick. All I'm trying to do is make dummy0 IP act
> as the source IP for physical interface IP 10.144.184.77. So if I
> disable OSPF on dummy0 as you suggested I should be OK I guess, right? I
> plan to attempt it as u suggested.

no idea. you haven't given much info about how your box is configured or
what you're trying to do. Anything which nats OSPF sessions is doomed to
failure. If you have interfaces with overlapping IP addresses, then that
will probably also cause trouble with OSPF.

Nick
Matshidze, Calvin C
2014-08-18 10:16:33 UTC
Permalink
Hi Nick,

Please find more info on what I am trying to do. I'm basically trying to have all the IP packets leaving the box use the source IP (10.81.250.211) instead of using the physical IP interface IP address (10.144.184.77).

Currently I have this working with static routes on the switch without OSPF - and now I'm trying to use OPSF and have static routes removed on the switch.

Here's how the box is configured:

1. Daemons

ZLNX14:~ # cat /etc/quagga/daemons
zebra=yes
bgpd=no
ospfd=yes
ospf6d=no
ripd=no
ripngd=no

2. OSPFD.CONF
ZLNX14:~ # cat /etc/quagga/ospfd.conf
! -*- ospf -*-
!
! OSPFd configuration file
!
!
hostname ZLNX14
password zebra
enable password zebra
!
interface dummy0
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 ECBF011F04D56B9E ip ospf priority 0
ip ospf cost 1 !
interface eth2
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 ECBF011F04D56B9E ip ospf priority 0
ip ospf cost 1 !
interface lo
!
interface sit0
!
router ospf
ospf router-id 10.81.250.211
network 10.144.184.77/24 area 0.0.0.5
network 10.81.250.211/32 area 0.0.0.5 area 0.0.0.5 authentication
message-digest area 0.0.0.5 stub no-summary !
line vty
exec-timeout 0 0
!
log file /var/log/quagga/ospfd.log

3. ZEBRA.CONF

ZLNX14:~ # cat /etc/quagga/zebra.conf
! -*- zebra -*-
!
! zebra configuration file
!
! $Id: zebra.conf.sample,v 1.1.1.1 2002/12/13 20:15:30 paul Exp $ !
hostname ZLNX14
password zebra
enable password zebra
!
ip prefix-list ANY permit 0.0.0.0/0 le 32 route-map RM1 permit 10
match ip address prefix-list ANY
set src 10.81.250.211
!
ip protocol ospf route-map RM1
!
! Interface's description.
!
interface dummy0
ip address 10.81.250.211/32
ipv6 nd suppress-ra
!
interface eth2
ip address 10.144.184.77/24
ipv6 nd suppress-ra
!
interface lo
!
interface sit0
ipv6 nd suppress-ra
!
ip forwarding
!
line vty
exec-timeout 0 0
!
!
log file /var/log/quagga/zebra.log


INTERFACE DISPLAY

ZLNX14:~ # ifconfig
dummy0 Link encap:Ethernet HWaddr 36:38:EE:EE:D2:A7
inet addr:10.81.250.211 Bcast:0.0.0.0 Mask:255.255.255.255
inet6 addr: fe80::3438:eeff:feee:d2a7/64 Scope:Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:17197 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:1616422 (1.5 Mb)

eth1 Link encap:Ethernet HWaddr 02:00:EC:A2:00:40
inet6 addr: fe80::ecff:fea2:40/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1
RX packets:44424 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4919719 (4.6 Mb) TX bytes:258 (258.0 b)

eth2 Link encap:Ethernet HWaddr 00:14:5E:78:C5:16
inet addr:10.144.184.77 Bcast:10.144.184.255
Mask:255.255.255.0
inet6 addr: fe80::14:5e00:4178:c516/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:840135 errors:0 dropped:0 overruns:0 frame:0
TX packets:158162 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:199433911 (190.1 Mb) TX bytes:163126033 (155.5 Mb)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:16417 errors:0 dropped:0 overruns:0 frame:0
TX packets:16417 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:19321250 (18.4 Mb) TX bytes:19321250 (18.4 Mb)

Please let me know if there's any specific information you need to

Thanks in advance

Regards,

Calvin Matshidze


| System z | Standard Bank South Africa |Riverclub Computer Centre 44
| Borrowdale Ave | RiverClub| Post Code 2149 | +27 11 700 1482 | +27
| 82 706 0583 |
Email: ***@standardbank.co.za | www.standardbank.com

-----Original Message-----
From: Nick Hilliard [mailto:***@inex.ie]
Sent: 17 August 2014 05:34 PM
To: Matshidze, Calvin C; Quagga-***@lists.quagga.net
Subject: Re: [quagga-users 13762] OSPF: *** sendmsg in ospf_write
failed to 224.0.0.5, id 4350, off 0, len 80, interface dummy0, mtu
1500: Operation not permitted

On 17/08/2014 15:13, Matshidze, Calvin C wrote:
Thanks for the advice Nick. All I'm trying to do is make dummy0 IP
act as the source IP for physical interface IP 10.144.184.77. So if I
disable OSPF on dummy0 as you suggested I should be OK I guess, right?
I plan to attempt it as u suggested.

no idea. you haven't given much info about how your box is configured or what you're trying to do. Anything which nats OSPF sessions is doomed to failure. If you have interfaces with overlapping IP addresses, then that will probably also cause trouble with OSPF.

Nick
Standard Bank email disclaimer and confidentiality note Please go to
http://www.standardbank.co.za/site/homepage/emaildisclaimer.html to read our email disclaimer and confidentiality note. Kindly email ***@standardbank.co.za (no content or subject line necessary) if you cannot view that page and we will email our email disclaimer and confidentiality note to you.
Loading...