Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

Thanks.

share|improve this question

migrated from stackoverflow.com Sep 7 '12 at 7:44

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

1 Answer 1

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

 
discard

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.