[CentOS] IPv6 range provisioning question

Fri Jun 12 14:54:08 UTC 2009
Vadtec <vadtec at vadtec.net>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David V wrote:
> Filipe Brandenburger wrote:
> 
>> Shouldn't it be something like this?
>> IPV6ADDR_SECONDARIES="2001:0470:0103:001A::3/64
>> 2001:0470:0103:001A::4/64 2001:0470:0103:001A::5/64
>> 2001:0470:0103:001A::6/64 2001:0470:0103:001A::7/64
>> 2001:0470:0103:001A::8/64"
>>
>> HTH,
>> Filipe
> 
> 
> Thanks Felipe and Shawn, guess I hadn't tested it enough yet. That is 
> the correct syntax.
> 
> Here is an example from one of my boxes:
> 
> [dveasey at test network-scripts]$ more ifcfg-eth0
> USERCTL=yes
> DEVICE=eth0
> BOOTPROTO=dhcp
> ONBOOT=yes
> TYPE=Ethernet
> ETHTOOL_OPTS="speed 100 duplex full autoneg off"
> IPV6INIT=yes
> IPV6ADDR=2001:1938:108:4400::2/64
> IPV6ADDR_SECONDARIES="2001:4830:1128:4200::2/64 
> 2001:4830:1128:4200::3/64 2001:4830:1128:4200::4/64"
> PEERDNS=yes
> 
> [dveasey at test network-scripts]$ /sbin/ip addr ls dev eth0
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast 
> qlen 1000
>      link/ether 00:30:18:b0:c0:91 brd ff:ff:ff:ff:ff:ff
>      inet 10.8.9.248/19 brd 10.8.31.255 scope global eth0
>      inet6 2001:4830:1128:4200::4/64 scope global
>         valid_lft forever preferred_lft forever
>      inet6 2001:4830:1128:4200::3/64 scope global
>         valid_lft forever preferred_lft forever
>      inet6 2001:4830:1128:4200::2/64 scope global
>         valid_lft forever preferred_lft forever
>      inet6 2001:1938:108:4400::2/64 scope global
>         valid_lft forever preferred_lft forever
>      inet6 fe80::230:18ff:feb0:c091/64 scope link
>         valid_lft forever preferred_lft forever
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos

Yes, I know about IPV6ADDR_SECONDARIES. My goal was to provision an entire range
automatically. I will handle the issue with a PHP CLI script run from rc.local
to provision the IPs as needed.

Thanks for all the help.

Vadtec
vadtec at vadtec.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJKMmwQAAoJEEJXIw5V8gieCYYQAOasRlo854C0ikB2J8hkWEJs
JHY+azEC7DVbiXcDbot3WrNkQDGx0Pc2iAmoszurQq3hpcCxjPRnI4fKKLs9ZJDo
6cWW2EOVwAI32aVNcFF/wjTcaWc9EfiG6kUyisHU9aHnTUE5wtoWYui9Bt7mphie
Cuf+qgVuHJIvwmmZi8I22OJra6qCQVK9q0muEi5+5DL0jJ/Co5OHjTPpLSmL3Gnr
HFeKkYhrtpywhr8xa3wC+hkLd18j0M1zItGHNfhY2TeD8dzB14HpAu9lkBueLBVC
1SfwPbNmGLRkC0SEch2hzSGZgNvVlxYNU5Orgp0dfzq0bXq47ET/NpV65CnKQWlJ
8bXN15rixygAIQ+4uyVAYOiQFiqVskNJ030SZm93/hiH1TUv1wS9W4hxOa3HRaEr
ZLXjAtHOEYQSyaKgupNQRNNOc3yvUajC18wEeJ3bUidMrVr8acXG9vCyWsJpl/Yu
s6HrxUFvE0Jl6eoE6hptUaMD3F3NlI4pdHsF72PY+h/sLTYHHwqHZtpLRzrl10cb
LxygqWq1CqhkXTzc9/HDqmRLTWnSwn6phQdmA//MXrgo+PJGfEVwF0Mr4vS8nHlf
Mc1MBS0c4Cn6mGpT2xfttM+X8CcgASGJVaadkT+B+ioWdq5TQ/QTyz2qyXbVqA77
ttx5sxpH0VdGEsepB+pp
=MpkA
-----END PGP SIGNATURE-----