Sometimes you may need to add several global ipv6 addresses to the same interface card. This is allowed in IPv6 in almost all the OSs. In fedora it can be done in several ways. I have tried it in following way and succeeded.
Example:
You already have IPv6 enabled in your Fedora server and need to add another global IPv6 to the interface eth0
Edit the ifcfg-eth0 and add the following special key word with the IPv6 address you want to add as the secondary. IPV6ADDR_SECONDARIES=200x:yyyy:xxxx::1/64
Then restart the network and you will notice that the given IPv6 is also got configured.
Sample ifcfg-eth0 file after adding the secondary IPv6
DEVICE=eth0
ONBOOT=yes
NETWORKING_IPV6=yes
IPV6INIT=yes
IPV6ADDR=2xxx:xxxx:xxxx:xxxx::a
IPV6_DEFAULTGW=2xxx:xxxx:xxxx:xxxx::ffff
IPV6ADDR_SECONDARIES=2yyyy:yyyy:yyy::b/64
Check the configurations by ifconfig command
References:
http://www.cyberciti.biz/faq/redhat-centos-rhel-fedora-linux-add-multiple-ip-samenic/
Example:
You already have IPv6 enabled in your Fedora server and need to add another global IPv6 to the interface eth0
Edit the ifcfg-eth0 and add the following special key word with the IPv6 address you want to add as the secondary. IPV6ADDR_SECONDARIES=200x:yyyy:xxxx::1/64
Then restart the network and you will notice that the given IPv6 is also got configured.
Sample ifcfg-eth0 file after adding the secondary IPv6
ONBOOT=yes
NETWORKING_IPV6=yes
IPV6INIT=yes
IPV6ADDR=2xxx:xxxx:xxxx:xxxx::a
IPV6_DEFAULTGW=2xxx:xxxx:xxxx:xxxx::ffff
IPV6ADDR_SECONDARIES=2yyyy:yyyy:yyy::b/64
Check the configurations by ifconfig command
References:
http://www.cyberciti.biz/faq/redhat-centos-rhel-fedora-linux-add-multiple-ip-samenic/
No comments:
Post a Comment