Linux command
zebra 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Start zebra daemon
sudo zebra -d
Start with specific config file
sudo zebra -d -f [/etc/quagga/zebra.conf]
Run in foreground
sudo zebra -A [127.0.0.1]
Start with VTY on specific port
sudo zebra -d -P [2601]
Connect to zebra shell
telnet localhost 2601
说明
zebra is the core routing manager daemon from Quagga (formerly GNU Zebra). It manages the kernel routing table and provides the Zserv API for protocol daemons like ospfd, bgpd, and ripd to communicate routing updates. Zebra abstracts the kernel's routing interface, allowing protocol daemons to be portable across Unix variants. It receives routes from protocol daemons and installs them in the kernel FIB (Forwarding Information Base). Configuration uses a Cisco-like CLI accessible via telnet or the vtysh unified shell. Routes can be viewed and static routes configured through this interface.
参数
- -d, --daemon
- Run as daemon in background.
- -f, --config_file _file_
- Use specified configuration file.
- -P, --vty_port _port_
- VTY (telnet) port number.
- -A, --vty_addr _address_
- VTY bind address.
- -u, --user _user_
- Run as specified user.
- -g, --group _group_
- Run as specified group.
- -v, --version
- Display version.
- -h, --help
- Display help.
FAQ
What is the zebra command used for?
zebra is the core routing manager daemon from Quagga (formerly GNU Zebra). It manages the kernel routing table and provides the Zserv API for protocol daemons like ospfd, bgpd, and ripd to communicate routing updates. Zebra abstracts the kernel's routing interface, allowing protocol daemons to be portable across Unix variants. It receives routes from protocol daemons and installs them in the kernel FIB (Forwarding Information Base). Configuration uses a Cisco-like CLI accessible via telnet or the vtysh unified shell. Routes can be viewed and static routes configured through this interface.
How do I run a basic zebra example?
Run `sudo zebra -d` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -d, --daemon do in zebra?
Run as daemon in background.