How to Set and remove IPv6 addresses on Fedora 1. How to Use "ip" to list the current IPv6 address: #/sbin/ip-6addrshowdev & lt; interface & gt; example: A static host address #/sbin/ip-6addrshowdeveth02: eth0: & lt; BROADCAST, MULTICAST, UP & gt;
How to Set and cancel IPv6 addresses on Fedora
1. Use "ip" to list the current IPv6 address"
Usage:
# /sbin/ip -6 addr show dev
Example: A static host address
# /sbin/ip -6 addr show dev eth0
2: eth0: mtu 1500 qdisc pfifo_ fast qlen 100
inet6 fe80::210:a4ff:fee3:9566/10 scope link
inet6 3ffe:ffff:0:f101::1/64 scope global
inet6 fec0:0:0:f101::1/64 scope site
Automatically Set the address and its survival time:
# /sbin/ip -6 addr show dev eth0
3: eth0: mtu 1500 qdisc pfifo_fast qlen 100
inet6 2002:d950:f5f8:f101:2e0:18ff:fe90:9205/64 scope globaldynamic
valid_lft 16sec preferred_lft 6sec
inet6 3ffe:400:100:f101:2e0:18ff:fe90:9205/64 scope globaldynamic
valid_lft 2591997sec preferred_lft 604797sec inet6 fe80::2e0:18ff:fe90:9205/10 scope link
Use "ifconfig"
Usage:
# /sbin/ifconfig
For example, it only lists IPv6 addresses:
# /sbin/ifconfig eth0 |grep "inet6 addr:"
inet6 addr: fe80::210:a4ff:fee3:9566/10Scope:Link
inet6 addr:3ffe:ffff:0:f101::1/64Scope:Global
inet6 addr: fec0:0:0:f101::1/64Scope:Site
2. Add an IPv6 address
The principle is the same as that of "ip alias" (ip alias) in IPv4.
Use "ip"
Usage:
# /sbin/ip -6 addr add / dev
Example:
# /sbin/ip -6 addr add 3ffe:ffff:0:f101::1/64 dev eth0
Use "ifconfig"
Usage:
# /sbin/ifconfig inet6 add /
Example:
# /sbin/ifconfig eth0 inet6 add 3ffe:ffff:0:f101::1/64
3. Remove IPv6 addresses
This is not commonly used. Do not use it to remove addresses that do not exist. Some early cores will be suspended because they cannot stand it.
Use "ip"
Usage:
# /sbin/ip -6 addr del / dev
Example:
# /sbin/ip -6 addr del 3ffe:ffff:0:f101::1/64 dev eth0
Use "ifconfig"
Usage:
# /sbin/ifconfig inet6 del /
Example:
# /sbin/ifconfig eth0 inet6 del 3ffe:ffff:0:f101::1/64
IPV6 address http://www.linuxidc.com/Linux/2013-01/78078.htm for Cisco CCIE Certification knowledge points
WireShark capture IPV6 packet use tutorial http://www.linuxidc.com/Linux/2013-01/77518.htm
Use IPV6 source without traffic update http://www.linuxidc.com/Linux/2012-07/66240.htm on Ubuntu 12.04 Campus Network
Build IPV6 ftp server http://www.linuxidc.com/Linux/2012-07/65150.htm in Linux
CentOS IPV6 settings http://www.linuxidc.com/Linux/2012-06/63644.htm
Configure update source http://www.linuxidc.com/Linux/2012-06/63643.htm in CentOS pure IPV6 environment
CentOS 6 IPV6 disabling method http://www.linuxidc.com/Linux/2012-06/63642.htm
How to disable IPv6 http://www.linuxidc.com/Linux/2014-07/104192.htm on Ubuntu, Linux Mint, Debian
For more information about Fedora, see Fedora topics page http://www.linuxidc.com/topicnews.aspx? Tid = 5
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-08/121116.htm