For IPv4 addresses:
Linux
ifconfig interface address netmask netmaskLinux iproute2
ip addr add address/prefixlength dev interfaceFreeBSD
ifconfig interface address netmask netmaskOpenBSD
ifconfig interface address netmask netmaskNetBSD
ifconfig interface address netmask netmaskSolaris
ifconfig interface address netmask netmaskDarwin (MacOS/X)
ifconfig interface address netmask netmaskWindows
netsh interface ip set address interface static address netmaskFor IPv6 addresses:
Linux
ifconfig interface add address/prefixlengthFreeBSD
ifconfig interface inet6 address prefixlen prefixlengthOpenBSD
ifconfig interface inet6 address prefixlen prefixlengthNetBSD
ifconfig interface inet6 address prefixlen prefixlengthSolaris
ifconfig interface inet6 plumb up
ifconfig interface inet6 addif address addressDarwin (MacOS/X)
ifconfig interface inet6 address prefixlen prefixlengthWindows
netsh interface ipv6 add address interface static address/prefixlength tinc Manual: 7. Platform specific information
No comments:
Post a Comment