Linux command
avahi-autoipd 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Start
avahi-autoipd [interface]
Run in background
avahi-autoipd -D [interface]
Kill
avahi-autoipd --kill [interface]
Refresh
avahi-autoipd --refresh [interface]
Check
avahi-autoipd --check [interface]
Wait
avahi-autoipd --wait [interface]
说明
avahi-autoipd implements IPv4LL (_Dynamic Configuration of IPv4 Link-Local Addresses_), a protocol defined in IETF RFC3927 for automatic IP address configuration from the link-local 169.254.0.0/16 range without requiring a central server. Primarily intended for ad-hoc networks which lack a DHCP server, it serves as a core component of the Zeroconf stack. The daemon can operate standalone or integrate with DHCP clients as a fallback mechanism when DHCP is unavailable. When started, avahi-autoipd probes the network for address conflicts, acquires an available link-local address, and continuously monitors for conflicts. Upon successful acquisition, it executes /etc/avahi/avahi-autoipd.action script to configure the network interface. The daemon responds to signals: SIGINT and SIGTERM trigger shutdown, while SIGHUP forces re-announcement of the current IP address.
参数
- -D, --daemonize
- Daemonize after startup; implies syslog logging
- -k, --kill
- Terminate running daemon on specified interface
- -r, --refresh
- Re-announce acquired IP address (equivalent to SIGHUP)
- -c, --check
- Return 0 if daemon is running on interface
- -s, --syslog
- Log to syslog instead of STDERR
- --debug
- Enable verbose mode for detailed logging
- --no-drop-root
- Retain root privileges (not recommended for security)
- --no-chroot
- Skip chroot operation
- -S, --start=_address_
- Acquire the specified IPv4LL address
- -w, --wait
- Wait for successful IP acquisition before detaching
- --force-bind
- Acquire IPv4LL address even if routable address is present
- --no-proc-title
- Don't modify process name during operation
- -h, --help
- Display help information
- -v, --version
- Show version details
FAQ
What is the avahi-autoipd command used for?
avahi-autoipd implements IPv4LL (_Dynamic Configuration of IPv4 Link-Local Addresses_), a protocol defined in IETF RFC3927 for automatic IP address configuration from the link-local 169.254.0.0/16 range without requiring a central server. Primarily intended for ad-hoc networks which lack a DHCP server, it serves as a core component of the Zeroconf stack. The daemon can operate standalone or integrate with DHCP clients as a fallback mechanism when DHCP is unavailable. When started, avahi-autoipd probes the network for address conflicts, acquires an available link-local address, and continuously monitors for conflicts. Upon successful acquisition, it executes /etc/avahi/avahi-autoipd.action script to configure the network interface. The daemon responds to signals: SIGINT and SIGTERM trigger shutdown, while SIGHUP forces re-announcement of the current IP address.
How do I run a basic avahi-autoipd example?
Run `avahi-autoipd [interface]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -D, --daemonize do in avahi-autoipd?
Daemonize after startup; implies syslog logging