For IPv4 addresses:
Linux
ifconfig interface address netmask netmask
Linux iproute2
ip addr add address/prefixlength dev interface
FreeBSD
ifconfig interface address netmask netmask
OpenBSD
ifconfig interface address netmask netmask
NetBSD
ifconfig interface address netmask netmask
Solaris
ifconfig interface address netmask netmask
Darwin (MacOS/X)
ifconfig interface address netmask netmask
Windows
netsh interface ip set address interface static address netmask
For IPv6 addresses:
Linux
ifconfig interface add address/prefixlength
FreeBSD
ifconfig interface inet6 address prefixlen prefixlength
OpenBSD
ifconfig interface inet6 address prefixlen prefixlength
NetBSD
ifconfig interface inet6 address prefixlen prefixlength
Solaris
ifconfig interface inet6 plumb up
ifconfig interface inet6 addif address address
Darwin (MacOS/X)
ifconfig interface inet6 address prefixlen prefixlength
Windows
netsh interface ipv6 add address interface static address/prefixlength
tinc Manual: 7. Platform specific information
No comments:
Post a Comment