1

With IPv6 networking we prefer to configure as little as possible on the end device and rely on SLAAC to configure, default route and address info. and then manually add additional addresses as needed without interfering with SLAAC operations.

On Ubuntu this is trivial:

iface ens192 inet6 auto
    up /sbin/ip -6 addr add some:pref:ix::some:suff:ix/64 dev $IFACE

and the relevant ifconfig output like this:

ens192    Link encap:Ethernet  HWaddr 00:50:56:xx:xx:xx  
      inet addr:xxx.xxx.xxx.xxx  Bcast:xxx.xxx.xxx.xxx  Mask:255.255.255.224
      inet6 addr: some:pref:ix::some:suff:ix/64 Scope:Global
      inet6 addr: fe80::250:56ff:xxxx:xxxx/64 Scope:Link
      inet6 addr: some:pref:ix::defa:ult:suff:ix/64 Scope:Global

However i'm struggling to work out how i might achieve similar results in CentOS or other Redhat based (specifically 6.x) releases

1 Answer 1

3

In /etc/sysconfig/network-scripts/ifcfg-ens192 you will set IPV6ADDR_SECONDARIES to a space-separated list of IPv6 addresses and prefixes.

For example:

IPV6ADDR_SECONDARIES="2001:db8:f107:30::2a/64 2001:db8:f107:30::2b/64"
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.