Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure IPv6 in Fedora system

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report