Linux command
bird 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start
bird -c [/etc/bird/bird.conf]
Parse configuration
bird -p
Run
bird -d
Run
bird -f -u [bird] -g [bird]
Start
bird -s [/run/bird/bird.ctl]
说明
bird (BIRD Internet Routing Daemon) is a dynamic IP routing daemon supporting multiple routing protocols including BGP, OSPF, RIP, and Babel. It's designed for high-performance routing on Unix-like systems. The daemon is widely used for internet routing, particularly by ISPs and in data centers.
参数
- -c _file_
- Use given configuration file instead of the default /etc/bird/bird.conf.
- -d
- Enable debug messages to stderr and run in foreground.
- -D _file_
- Log debugging information to given file instead of stderr.
- -f
- Run in foreground (without debug messages).
- -p
- Just parse the configuration file and exit. Returns zero if valid.
- -s _socket_
- Use given filename for the control socket (default: /run/bird/bird.ctl).
- -P _file_
- Create a PID file with the given filename.
- -u _user_
- Drop privileges and run as given user instead of root.
- -g _group_
- Run with given group ID.
- -l
- Look for configuration file and control socket in the current working directory.
- -R
- Apply graceful restart recovery after start.
- --help
- Display command-line options.
- --version
- Display BIRD version.
FAQ
What is the bird command used for?
bird (BIRD Internet Routing Daemon) is a dynamic IP routing daemon supporting multiple routing protocols including BGP, OSPF, RIP, and Babel. It's designed for high-performance routing on Unix-like systems. The daemon is widely used for internet routing, particularly by ISPs and in data centers.
How do I run a basic bird example?
Run `bird -c [/etc/bird/bird.conf]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -c _file_ do in bird?
Use given configuration file instead of the default /etc/bird/bird.conf.