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

Emmanuel Vize emmanuel.vize at 6wind.com
Wed Apr 16 06:51:31 BST 2008

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 écrit :
> 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

More information about the Quagga-dev mailing list