[quagga-users 12941] Ripd reload problem by using `SIGHUP`

icelee1127 at sina.com icelee1127 at sina.com
Fri Jul 27 11:58:34 BST 2012


Hello,
I'm using quagga-0.99.17 on Fedora12, trying to use 'SIGHUP' to reload configuration file `ripd.conf`.
I refer to the content[5.1 Starting and Stopping ripd ]in Quagga Routing Suite at the next line link.
http://www.nongnu.org/quagga/docs/docs-info.html#SEC38

But with using the following command, there are some problems about the action of rip advertisement.
# kill -s SIGHUP `cat /var/run/quagga/ripd.pid`

---------------------------------------------------------------------------------
<My Environment setting>
* Network settings about Fedora12 is like the following:
   eth1: 192.168.67.105/18  with DHCPClient mode, used as WAN port
   eth0: 192.168.0.1/24     used as LAN port

* ripd.conf is as the following:
! -*- rip -*-
!
! RIPd configuration file
!
hostname ripd
password zebra
!
router rip
  network eth0
  network eth1
  redistribute kernel
  redistribute static
  redistribute connected
interface eth0
  ip rip send version 2
  ip rip receive version 1 2
interface eth1
  ip rip send version 2
  ip rip receive version 1 2

* By using wireshark i captured package(RIP) in LAN area.
No.     Time           Source                Destination           Protocol Length Info
165     25.303115000   192.168.0.1           224.0.0.9             RIPv2    86     Response
 Routing Information Protocol
    IP Address   Netmask     Next Hop   Metric
#1    0.0.0.0         0.0.0.0          0.0.0.0       1
#2    192.168.64.0    255.255.192.0    0.0.0.0       1
---------------------------------------------------------------------------------

Following is the specific problem.

I modified the `ripd.conf` as the following to send rip advertisement version 1,
   interface eth0
     ip rip send version 2  -->  ip rip send version 1
   interface eth1
     ip rip send version 2  -->  ip rip send version 1

and use the `SIGHUP` to reload the `ripd.conf` by the first time.
  [root at localhost user]# kill -s SIGHUP `cat /var/run/quagga/ripd.pid`

After that, when i captured package(RIP) in LAN area, unbelievable action was appeared by ripd.

No.     Time           Source                Destination           Protocol Length Info
 51     20.825760000   192.168.0.1           192.168.0.255         RIPv1    86     Response
 52     20.826033000   192.168.0.1           192.168.0.255         RIPv1    86     Response
111     47.860236000   192.168.0.1           192.168.0.255         RIPv1    86     Response
112     47.860490000   192.168.0.1           192.168.0.255         RIPv1    86     Response
165     72.897868000   192.168.0.1           192.168.0.255         RIPv1    86     Response
166     72.898125000   192.168.0.1           192.168.0.255         RIPv1    86     Response
 Routing Information Protocol
    IP Address   Metric
#1    0.0.0.0         1
#2    192.168.0.0     1
 
!!!  Problem 1. 
* At almost the same time, RIPv1 advertisement was sent out 2 times.
  You can see the packages of No 51&52, No 111&112, No 165&166.
!!!  Problem 2. 
* #2 route of [192.168.0.0] should not be sent out originally. But it was be sent out anyway.
 
 

Then i modified the `ripd.conf` as the following to send rip advertisement version 2,
   interface eth0
     ip rip send version 1  -->  ip rip send version 2
   interface eth1
     ip rip send version 1  -->  ip rip send version 2

and use the `SIGHUP` to reload the `ripd.conf` by the second time.
  [root at localhost user]# kill -s SIGHUP `cat /var/run/quagga/ripd.pid`

After that, when i captured package(RIP) in LAN area, unbelievable action was appeared by ripd.

No.     Time           Source                Destination           Protocol Length Info
 61     23.637850000   192.168.0.1           224.0.0.9             RIPv2    106    Response
 62     23.638111000   192.168.0.1           224.0.0.9             RIPv2    106    Response
 63     23.638354000   192.168.0.1           224.0.0.9             RIPv2    106    Response
124     52.669058000   192.168.0.1           224.0.0.9             RIPv2    106    Response
125     52.669315000   192.168.0.1           224.0.0.9             RIPv2    106    Response
126     52.669526000   192.168.0.1           224.0.0.9             RIPv2    106    Response
215     86.717067000   192.168.0.1           224.0.0.9             RIPv2    106    Response
216     86.717222000   192.168.0.1           224.0.0.9             RIPv2    106    Response
217     86.717344000   192.168.0.1           224.0.0.9             RIPv2    106    Response
    IP Address   Netmask     Next Hop   Metric
#1    0.0.0.0         0.0.0.0          0.0.0.0       1
#2    192.168.0.0     255.255.255.0    0.0.0.0       1
#3    192.168.64.0    255.255.192.0    0.0.0.0       1
 
Just like the first time, almost the same problem was appeared.
!!!  Problem 1. 
* At almost the same time, RIPv2 advertisement was sent out 3 times.
  You can see the packages of No 61&62&63, No 124&125&126, No 215&216&217.
!!!  Problem 2. 
* #2 route of [192.168.0.0/24] should not be sent out originally. But it was be sent out anyway.
 
I checked the process of ripd in Fedora as following.
There is only one ripd in operation.
[root at localhost user]# ps aux | grep ripd
quagga    2323  0.1  0.1   3256  1176 ?        Ss   19:19   0:02 ripd -d
root      2391  0.0  0.0   5288   796 pts/1    S+   19:45   0:00 grep ripd

-------------------------------------------------------------------

When i use kill command without `SIGHUP`, action of rip advertisement is correct.
  [root at localhost user]# kill `cat /var/run/quagga/ripd.pid`
  [root at localhost user]# ripd -d

I captured package(RIP) in LAN area, correct action is appeared by ripd.
No.     Time           Source                Destination           Protocol Length Info
  5   0.093682000    192.168.0.1           224.0.0.9             RIPv2    86     Response
 60   26.129786000   192.168.0.1           224.0.0.9             RIPv2    86     Response
115   51.167535000   192.168.0.1           224.0.0.9             RIPv2    86     Response
    IP Address   Netmask     Next Hop   Metric
#1    0.0.0.0         0.0.0.0          0.0.0.0       1
#2    192.168.64.0    255.255.192.0    0.0.0.0       1

RIPv2 advertisement was sent out just 1 time about 30 seconds interval.
And the route of [192.168.0.0/24] was not be sent out.
These is the correct action by ripd.
 
 

Thanks.
Li Bing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quagga.net/pipermail/quagga-users/attachments/20120727/5eeb0025/attachment.html>


More information about the Quagga-users mailing list