Quantcast
Channel: Admins Goodies » python
Viewing all articles
Browse latest Browse all 10

IPv6 Address Switch

$
0
0

Question

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.

Asked by Austin Modo

Answer

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

Answered by Falk Stern

Viewing all articles
Browse latest Browse all 10

Trending Articles