View previous topic :: View next topic |
Author |
Message |
bombcar Guru


Joined: 08 Apr 2003 Posts: 453 Location: Wisconsin
|
Posted: Sun Feb 07, 2010 5:25 am Post subject: [SOLVED] Adding large numbers of IPv6 addresses? |
|
|
I know that /etc/conf.d/net supports:
Code: |
config_eth0=(
"172.20.20.21/24"
"2001:0DB8:beaf::2/64"
"2001:0DB8:beaf::7/64"
"2001:0DB8:beaf::6/64"
"2001:0DB8:beaf::5/64"
"2001:0DB8:beaf::4/64"
"2001:0DB8:beaf::3/64"
)
|
but is there an easier way? It looks like:
Code: | # Or you can use sequence expressions
#config_eth0=( "192.168.0.{2..4}/24" )
# which does the same as above. |
would let me do:
Code: |
config_eth0=(
"172.20.20.21/24"
"2001:0DB8:beaf::{2..7}/64"
)
|
Does anyone know if that will work? |
|
Back to top |
|
 |
bombcar Guru


Joined: 08 Apr 2003 Posts: 453 Location: Wisconsin
|
Posted: Sun Feb 07, 2010 5:28 am Post subject: |
|
|
It works! I now have 100 IPv6 addresses! SSL! |
|
Back to top |
|
 |
bombcar Guru


Joined: 08 Apr 2003 Posts: 453 Location: Wisconsin
|
Posted: Sun Feb 07, 2010 9:21 am Post subject: |
|
|
As a side note, it might be worth pointing out that "2001:0DB8:beaf::{1..100}/64" didn't necessarily do what might be expected; it used 1..100 as a decimal and so the IP addresses were not in order (as IPv6 expressed that way is hex), so it went from ::9 to ::10 and skipped ::A through ::F. |
|
Back to top |
|
 |
Mad Merlin Veteran

Joined: 09 May 2005 Posts: 1155
|
|
Back to top |
|
 |
|