linux平台及常见的类unix平台ipv6设置常用命令

Linux:
ip地址追加:ip -6 addr add fe80::52e5:49ff:fe24:cdd4/64 dev eth0
添加/删除虚拟网卡:ifconfig eth0:0 192.168.10.10 up/down


AIX:
网卡配置:smitty mktcpip和smitty tcpip命令
查看网卡等适配器命令:lsdev -c adapter
添加或删除IP地址:ifconfig en1 10.10.10.10 netmask 255.255.252.0 alias/delete
删除ipv6地址命令:ifconfig en1 inet6 fe80::4c50:55ff:fe43:c124/64 delete
添加ipv6地址命令:ifconfig en1 inet6 fe80::4c50:55ff:fe43:c124/64alias
mkdev -l ent1


Solaris平台:

(详细设置参考:https://docs.huihoo.com/solaris/11.1/simplified-chinese/html/E36458/ipv6-config-tasks-64.html#scrolltoc)
ipadm create-addr -T addrconf net0 启用net0网卡上的ipv6
添加ipv6:ipadm create-addr -a fe80::0123:4567:89ab:cdef/10 net0/v6
ipadm delete-addr命令和ifconfig inet6 unplumb命令
删除ip地址:ipadm show-addr
ipadm delete-addr net0/v6

posted @ 2022-10-13 15:24  法卡萨多  阅读(968)  评论(0编辑  收藏  举报