Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have IPv6 addresses on a Linux based server. How can I switch the current address to a new one? Is there a way to do it using shell commands? How about using Python?


share|improve this question

migrated from Sep 7 '12 at 7:44

This question came from our site for professional and enthusiast programmers.

up vote 5 down vote accepted

Easy: ip -6 address add 2001:dead:beef::2/64 dev eth0.

The same goes for removal: ip -6 address delete 2001:dead:beef::1/64 dev eth0

To show your addresses: ip -6 address show

share|improve this answer
Thank you very much! If I have anymore trouble, I know who to contact! – Austin Modo Sep 7 '12 at 14:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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