← 返回命令列表

Linux command

avahi-autoipd.action 命令

网络

复制后可按需替换文件名、目录或参数。

常用示例

Add

/etc/avahi/avahi-autoipd.action BIND [interface] [ip_address]

Remove

/etc/avahi/avahi-autoipd.action CONFLICT [interface] [ip_address]

Remove

/etc/avahi/avahi-autoipd.action UNBIND [interface] [ip_address]

Remove

/etc/avahi/avahi-autoipd.action STOP [interface] [ip_address]

说明

avahi-autoipd.action is the action script automatically called by avahi-autoipd whenever an IPv4 Link-Local address has been acquired or when an IP address conflict is detected. The script handles adding or removing the specified address from the network interface. The script receives three arguments: an event string, the network interface name, and the IPv4LL address. Based on the event type, it performs the appropriate network configuration: > BIND - An IP address has been successfully acquired; the script adds it to the network interface > CONFLICT - avahi-autoipd detected the IP address is already in use on the local network; the script removes the configured address > UNBIND - A routable address has been configured to the interface by another program; the script removes the IPv4LL address to avoid conflicts > STOP - avahi-autoipd is shutting down; the script removes the IP address from the interface The default script typically uses ip or ifconfig commands to manipulate interface addresses. Users can customize this script to integrate with specific network management systems or add additional configuration steps.

参数

_event_
Event type: BIND, CONFLICT, UNBIND, or STOP
_interface_
Network interface name (e.g., eth0, wlan0)
_address_
IPv4LL address from the 169.254.0.0/16 range

FAQ

What is the avahi-autoipd.action command used for?

avahi-autoipd.action is the action script automatically called by avahi-autoipd whenever an IPv4 Link-Local address has been acquired or when an IP address conflict is detected. The script handles adding or removing the specified address from the network interface. The script receives three arguments: an event string, the network interface name, and the IPv4LL address. Based on the event type, it performs the appropriate network configuration: > BIND - An IP address has been successfully acquired; the script adds it to the network interface > CONFLICT - avahi-autoipd detected the IP address is already in use on the local network; the script removes the configured address > UNBIND - A routable address has been configured to the interface by another program; the script removes the IPv4LL address to avoid conflicts > STOP - avahi-autoipd is shutting down; the script removes the IP address from the interface The default script typically uses ip or ifconfig commands to manipulate interface addresses. Users can customize this script to integrate with specific network management systems or add additional configuration steps.

How do I run a basic avahi-autoipd.action example?

Run `/etc/avahi/avahi-autoipd.action BIND [interface] [ip_address]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does _event_ do in avahi-autoipd.action?

Event type: BIND, CONFLICT, UNBIND, or STOP