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 set and cancel IPv6 address on Fedora

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

Share

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

In this issue, the editor will bring you about how to set and cancel the IPv6 address on Fedora. The article is rich in content and analyzes and describes it from a professional point of view. I hope you can get something after reading this article.

1. List the current IPv6 address using "ip"

How to use it:

# / sbin/ip-6 addr show dev

Example: a static host address

# / sbin/ip-6 addr show dev eth02: eth0: mtu 1500 qdisc pfifo_ fast qlen 100inet6 fe80::210:a4ff:fee3:9566/10 scope linkinet6 3ffe:ffff:0:f101::1/64 scope globalinet6 fec0:0:0:f101::1/64 scope site

Automatically set address and its survival time:

# / sbin/ip-6 addr show dev eth0 3: eth0: mtu 1500 qdisc pfifo_fast qlen 100inet6 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:

# / sbin/ifconfig

For example, it lists only the IPv6 address:

# / sbin/ifconfig eth0 | grep "inet6 addr:" inet6 addr: fe80::210:a4ff:fee3:9566/10 Scope:Linkinet6 addr: 3ffe:ffff:0:f101::1/64 Scope:Globalinet6 addr: fec0:0:0:f101::1/64 Scope:Site2. Add an IPv6 address

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

Use "ip"

How to use it:

# / sbin/ip-6 addr add / dev

Example:

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

How to use it:

# / sbin/ifconfig inet6 add /

Example:

# / sbin/ifconfig eth0 inet6 add 3ffe:ffff:0:f101::1/643. 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:

# / sbin/ip-6 addr del / dev

Example:

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

How to use it:

# / sbin/ifconfig inet6 del /

Example:

# / sbin/ifconfig eth0 inet6 del 3ffe:ffff:0:f101::1/64 the above is how to set and cancel IPv6 addresses on Fedora. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

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