centos enable ipv6

Issues related to configuring your network
Post Reply
championxie
Posts: 1
Joined: 2022/07/05 03:07:25

centos enable ipv6

Post by championxie » 2022/07/05 03:25:41

hi guys
In the version of centos6 and centos7, when the ipv6 function is enabled, and there are multiple IPV6 addresses at the same time, is it possible to keep only IPV6ADDR_SECONDARIE, and write all the ipv6 addresses in this list at the same time,remove the IPV6ADDR field

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: centos enable ipv6

Post by TrevorH » 2022/07/05 12:19:04

You could try reading what it says in /usr/share/doc/initscripts-9.49.53/sysconfig.txt
IPV6ADDR=<IPv6 address>[/<prefix length>]
Specify a primary static IPv6 address here
Optional, if normal host and a router advertisement daemon is on local link
Required, if node is a router and interface should route packets
Note: if prefix length is omitted, 64 is assumed
Example:
IPV6ADDR="3ffe:ffff:0:5::1"
IPV6ADDR="3ffe:ffff:0:1::1/128"
IPV6ADDR_SECONDARIES="<IPv6 address>[/<prefix length>] ..." (optional)
A list of secondary IPv6 addresses (e.g. useful for virtual hosting)
Example:
IPV6ADDR_SECONDARIES="3ffe:ffff:0:1::10 3ffe:ffff:0:2::11/128"
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply