How to enable and disable IPv6 addresses on Fedora

Source: Internet
Author: User
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:

  1. # /sbin/ip -6 addr show dev

Example: A static host address

  1. # /sbin/ip -6 addr show dev eth0
  2. 2: eth0: mtu 1500 qdisc pfifo_ fast qlen 100
  3. inet6 fe80::210:a4ff:fee3:9566/10 scope link
  4. inet6 3ffe:ffff:0:f101::1/64 scope global
  5. inet6 fec0:0:0:f101::1/64 scope site

Automatically Set the address and its survival time:

  1. # /sbin/ip -6 addr show dev eth0
  2. 3: eth0: mtu 1500 qdisc pfifo_fast qlen 100
  3. inet6 2002:d950:f5f8:f101:2e0:18ff:fe90:9205/64 scope globaldynamic
  4. valid_lft 16sec preferred_lft 6sec
  5. inet6 3ffe:400:100:f101:2e0:18ff:fe90:9205/64 scope globaldynamic
  6. valid_lft 2591997sec preferred_lft 604797sec inet6 fe80::2e0:18ff:fe90:9205/10 scope link
Use "ifconfig"

Usage:

  1. # /sbin/ifconfig

For example, it only lists IPv6 addresses:

  1. # /sbin/ifconfig eth0 |grep "inet6 addr:"
  2. inet6 addr: fe80::210:a4ff:fee3:9566/10Scope:Link
  3. inet6 addr:3ffe:ffff:0:f101::1/64Scope:Global
  4. 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:

  1. # /sbin/ip -6 addr add / dev

Example:

  1. # /sbin/ip -6 addr add 3ffe:ffff:0:f101::1/64 dev eth0
Use "ifconfig"

Usage:

  1. # /sbin/ifconfig inet6 add /

Example:

  1. # /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:

  1. # /sbin/ip -6 addr del / dev

Example:

  1. # /sbin/ip -6 addr del 3ffe:ffff:0:f101::1/64 dev eth0
Use "ifconfig"

Usage:

  1. # /sbin/ifconfig inet6 del /

Example:

  1. # /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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.