[quagga-users 14009] Re: Running Multiple Instances of Quagga

Jafar Al-Gharaibeh jafar at atcorp.com
Mon Jun 15 21:10:40 BST 2015

HI Olivier,

    In my case, I have a number of programs that continuously issuing  
vtysh commands based on state/variables. I have two instances of Quagga 
running, one in the the global network namespace, and the other in a new 
network namespace call it newns. In the places where I want to 
communicate with Quagga in newns, I added "ip netns exe newns" before 
the vtysh command, but that didn't do the trick. What I hear  you saying 
is that if I do the mount trick, my command would work (connect to the 
correct Quagga). is that correct?


On 6/15/2015 2:29 PM, Olivier Tilmans wrote:
> Hello,
> When doing that exact setup I usually use telnet instead of vtysh  (e.g.
> `telnet localhost 2604` -- for ospfd) which works flawlessly.
> If you want to use vtysh, the alternative would be to call `mount
> --bind` to remount the part of the FS where the vtysh socket is in a
> netns specific directory.
> The default location of the sockets is /var/run ; look into config.h for
> one of the *_VTYSH_PATH defines.
> You could then do in each namespace, prior to running quagga:
> `mkdir -p /tmp/nsX/var/run && mount --bind /var/run /tmp/nsX/var/run`
> where X is the namespace number.
> Best,
> Olivier.
> On 11/06/15 18:30, Jafar Al-Gharaibeh wrote:
>> Hi,
>>    While we are waiting for the dust to settle on VRF support, and also
>> adding VRF-aware daemons, I'm trying to run multiple instances of Quagga
>> on the same machine isolated in network namespaces. There are several
>> command line options that help doing that, like pointing to different
>> config files, pid files, etc. Things seem to be a little more tricky
>> when it comes to vtysh.
>> Going through the email-list history didn't reveal enough information on
>> how to do it properly, but I know that several people on the list
>> indicated that they have done this kind of setup before. Did anybody
>> create a guide/help on  how to do that?  Maybe have scripts that you are
>> willing to share?
>> Thanks in Advance,
>> Jafar
>> _______________________________________________
>> Quagga-users mailing list
>> Quagga-users at lists.quagga.net
>> https://lists.quagga.net/mailman/listinfo/quagga-users
> _______________________________________________
> Quagga-users mailing list
> Quagga-users at lists.quagga.net
> https://lists.quagga.net/mailman/listinfo/quagga-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quagga.net/pipermail/quagga-users/attachments/20150615/2f614cdd/attachment.html>

More information about the Quagga-users mailing list