[quagga-dev 5304] Re: how to communicate with quagga daemons?

huhao huhao at is.iscas.ac.cn
Wed Apr 16 08:56:00 BST 2008

hi Emmanuel

I have read your mail.Your advice is to open a TCP session with the quagga daemons in my C program and send my command or configuration through the session, is  that right?

I know CLI or vtysh, but all my programs should be run  automatically in background,which means I can't type commands in command line.

Thanks so much for your advice,I will see how quagga daemons communicate in TCP session.  I will show you any progress.

Hope to hear from you all for more instructions.

Best regards

---------- Original Message ----------------------------------
From: Emmanuel Vize <emmanuel.vize at 6wind.com>
Date:  Wed, 16 Apr 2008 07:51:31 +0200

>Hi HuHao,
>Quagga offers another approach:
>You can access directly each daemon during runtime and configure it.
>You can use vtysh to access the CLI of zebra. The commands you type here
>will be sent to the corresponding daemons.
>Or you can have a direct access to each daemon, via a telnet socket.
>Each daemon has its own dedicated port
>telnet 2605 : bgp,  2602 for RIP, 2603 for RIPNG, 2604 for
>OSPF, 2606 for OSPF6, 2608 for IS-IS.
>Once your there, you have a CLI close to the CISCO CLI. And you can
>change your configurations dynamically.
>Your C program could open a TCP session with the quagga daemons and send
>the new commands.
>Or, more simply, you can write the configuration in a file, and send
>this file to vtysh  (try vtysh -help).
>huhao a 閏rit :
>> hi all:
>> 	I have installed quagga 0.98.6, and I want to communicate with quagga
>> daemons. That is, I need to send new configuration to quagga runtimely
>> in my programs (not Linux terminal) and quagga will act on this new
>> configuration at once. All my programs should be written in C language.
>> 	Problem: 
>> 	I have considered two approaches:
>> 	The first one and the easiest one is to modify the configuration file
>> of each daemon. This approach is my first choice, however, each daemon
>> should restart to read the configuration file, isn't it? While I do not
>> want daemons to restart, is it possible? i need your instructions.
>> 	The second one of course is to modify quagga itself. I am intended to
>> send configurations to quagga interfaces by my program, then quagga will
>> analyze and set the configurations. But I know little about the quagga
>> development, i do not know how quagga works and whether can this
>> approach works. Can you help me?
>> 	Any instructions is graceful. Thank you all.
>> 	Best regards
>> 				POP
>> _______________________________________________
>> Quagga-dev mailing list
>> Quagga-dev at lists.quagga.net
>> http://lists.quagga.net/mailman/listinfo/quagga-dev
>Emmanuel Vize
>Project Leader
>Tel: +33-1-39-30-92-12
>Fax: +33-1-39-30-92-11
>visit our web http://www.6wind.com
>Quagga-dev mailing list
>Quagga-dev at lists.quagga.net

Sent via the WebMail system at is.iscas.ac.cn


More information about the Quagga-dev mailing list