Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to configure IPv6 in Fedora system

Shulou Source: shulou.com Published: 2022-06-01 23:29:45 09月16日 Update

How to configure IPv6 in a Fedora system? In view of this problem, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.

1. List the current IPv6 address

Use "ip"

How to use it:

Copy the code

The code is as follows:

# / sbin/ip-6 addr show dev

Example: a static host address

Copy the code

The code is as follows:

# / 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 address and its survival time:

Copy the code

The code is as follows:

# / 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 global dynamic

Valid_lft 16sec preferred_lft 6sec

Inet6 3ffe:400:100:f101:2e0:18ff:fe90:9205/64 scope global dynamic

Valid_lft 2591997sec preferred_lft 604797sec inet6 fe80::2e0:18ff:fe90:9205/10 scope link

Use "ifconfig"

How to use it:

Copy the code

The code is as follows:

# / sbin/ifconfig

For example, it lists only the IPv6 address:

Copy the code

The code is as follows:

# / sbin/ifconfig eth0 | grep "inet6 addr:"

Inet6 addr: fe80::210:a4ff:fee3:9566/10 Scope:Link

Inet6 addr: 3ffe:ffff:0:f101::1/64 Scope:Global

Inet6 addr: fec0:0:0:f101::1/64 Scope:Site

two。 Add an IPv6 address

Its principle is the same as IPv4's "IP ALIAS" (IP alias).

Use "ip"

How to use it:

Copy the code

The code is as follows:

# / sbin/ip-6 addr add / dev

Example:

Copy the code

The code is as follows:

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

Use "ifconfig"

How to use it:

Copy the code

The code is as follows:

# / sbin/ifconfig inet6 add /

Example:

Copy the code

The code is as follows:

# / sbin/ifconfig eth0 inet6 add 3ffe:ffff:0:f101::1/64

3. Remove IPv6 address

This is not often used. Do not use it to remove addresses that do not exist. Some of the early cores will die because they can't stand it.

Use "ip"

How to use it:

Copy the code

The code is as follows:

# / sbin/ip-6 addr del / dev

Example:

Copy the code

The code is as follows:

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

Use "ifconfig"

How to use it:

Copy the code

The code is as follows:

# / sbin/ifconfig inet6 del /

Example:

Copy the code

The code is as follows:

# / sbin/ifconfig eth0 inet6 del 3ffe:ffff:0:f101::1/64

This is the answer to the question about how to configure IPv6 in the Fedora system. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.

Tags: Code address method usage example problem system configuration more help answer easy same easy host content alias principle can't stand it boy. Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info MySQL macOS Huawei Apple