LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-16-2020, 10:05 AM   #1
StarburstHost
LQ Newbie
 
Registered: Dec 2020
Location: United States
Distribution: CentOS
Posts: 5

Rep: Reputation: 0
Need IPv6 configuration help on CentOS 8


Having a problem with getting the server to recognize the whole /64 IPv6 allocation.
This is on a CentOS 8 server.

IPV6INIT="yes"
IPV6ADDR="2605:a140:2045:8941::1/64"
IPV6_DEFAULTGW="fe80::1"
IPV6_DEFAULTDEV="eth0"
IPV6ADDR_SECONDARIES="2605:a140:2045:8941::2 2605:a140:2045:8941::3 2605:a140:2045:8941::4 2605:a140:2045:8941:0:30:40b7:f60d"

It won't recognize the whole /64, and using the IPV6ADDR_SECONDARIES isn't really an option.

Any help would be appreciated it.
 
Old 12-16-2020, 10:37 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,347

Rep: Reputation: Disabled
What do you mean by "it won't recognize the whole /64?"

Surely, you don't expect the server to be assigned all 18,446,744,073,709,551,616 addresses in the subnet?
 
Old 12-16-2020, 10:39 AM   #3
StarburstHost
LQ Newbie
 
Registered: Dec 2020
Location: United States
Distribution: CentOS
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Ser Olmy View Post
What do you mean by "it won't recognize the whole /64?"

Surely, you don't expect the server to be assigned all 18,446,744,073,709,551,616 addresses in the subnet?
Would love to see the specs for a server that could handle that.
Thought some of the new servers do have 10Gbps ports.

But would like it to handle at least 100-200 that can be assigned to sites.
 
Old 12-16-2020, 12:35 PM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,347

Rep: Reputation: Disabled
Web sites don't need dedicated IPs.

But if you want, say, 200 addresses, you'll actually have to put them in the config file manually. Just generate them with a command-line tool and paste them into the file. It won't look particularly good, but it'll work.
 
Old 12-16-2020, 06:13 PM   #5
StarburstHost
LQ Newbie
 
Registered: Dec 2020
Location: United States
Distribution: CentOS
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Ser Olmy View Post
Web sites don't need dedicated IPs.

But if you want, say, 200 addresses, you'll actually have to put them in the config file manually. Just generate them with a command-line tool and paste them into the file. It won't look particularly good, but it'll work.
Know of any such creature (IP list generator)?

I've searched and haven't found one that would spit out a list I could cut & paste.
Guess I could use Excel up to a point.
 
Old 12-16-2020, 11:25 PM   #6
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,347

Rep: Reputation: Disabled
Quote:
Originally Posted by StarburstHost View Post
Know of any such creature (IP list generator)?
Code:
seq 1 1 200 | xargs printf "2605:a140:2045:8941::%x "

Last edited by Ser Olmy; 12-16-2020 at 11:42 PM.
 
Old 12-16-2020, 11:52 PM   #7
StarburstHost
LQ Newbie
 
Registered: Dec 2020
Location: United States
Distribution: CentOS
Posts: 5

Original Poster
Rep: Reputation: 0
Know any other trick to manually add it to the IPV6ADDR_SECONDARIES?

Or just the cut & paste 1 very long line?
 
Old 12-17-2020, 12:09 AM   #8
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,347

Rep: Reputation: Disabled
Cutting and pasting with the mouse will work just fine.

I guess you could use sed:
Code:
sed -i "s/IPV6ADDR_SECONDARIES=\"/IPV6ADDR_SECONDARIES=\"$(seq 1 1 200 | xargs printf "2605:a140:2045:8941::%x ")/" <filename>
Replace <filename> with the name of the configuration file.
 
Old 12-17-2020, 09:20 AM   #9
StarburstHost
LQ Newbie
 
Registered: Dec 2020
Location: United States
Distribution: CentOS
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Ser Olmy View Post
Cutting and pasting with the mouse will work just fine.

I guess you could use sed:
Code:
sed -i "s/IPV6ADDR_SECONDARIES=\"/IPV6ADDR_SECONDARIES=\"$(seq 1 1 200 | xargs printf "2605:a140:2045:8941::%x ")/" <filename>
Replace <filename> with the name of the configuration file.
Thanks, I'll give that a try.


I saw an example of:

IPV6ADDR_SECONDARIES="2605:a140:2045:8941::2 \
2605:a140:2045:8941::3 \
2605:a140:2045:8941::4 \
2605:a140:2045:8941:0:30:40b7:f60d"


But when I tried it, it didn't work. :\
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need to have a review on a script for radvd ipv6 , user can get ipv6 dns ??!! dr.x Linux - Networking 1 09-01-2014 04:45 AM
Cannot connect to ipv6 website with ipv6 address superweijiafeng Linux - Networking 3 07-08-2014 03:55 PM
LXer: Another IPv6 Crash Course For Linux: Real IPv6 Addresses, Routing, Name Services LXer Syndicated Linux News 0 04-21-2011 07:40 AM
BIND9 as forwarder, IPv6 queries from IPv6 forwarders Nonoo Linux - Server 1 11-23-2009 01:57 PM
How to set IPv6 address on IPv6 router tlemons Linux - Networking 3 09-17-2007 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration