Sunday, August 24, 2014

Linux IPv6


I- set IPv6 address on interface vmnet3
ifconfig vmnet3 inet6 add 2002:f388:1:1::2/64

2- show IPv6 address on interface vmnet3
# ip -6 addr show dev vmnet3
7: vmnet3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
    inet6 2002:f388:1:1::2/64 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::250:56ff:fec0:3/64 scope link
       valid_lft forever preferred_lft forever


3- ping and ssh over ipv6
# ping6 2002:f388:1:1::1
PING 2002:f388:1:1::1(2002:f388:1:1::1) 56 data bytes
64 bytes from 2002:f388:1:1::1: icmp_seq=1 ttl=64 time=0.309 ms
64 bytes from 2002:f388:1:1::1: icmp_seq=2 ttl=64 time=0.165 ms


# ssh -6 2002:f388:1:1::1 -l root
root@2002:f388:1:1::1's password:

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Aug 24 18:59:36 2014 from 2002:f388:1:1::2
root@debian:~# ip -6 address show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
    inet6 2002:f388:1:1::1/64 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::20c:29ff:fe78:121/64 scope link
       valid_lft forever preferred_lft forever



-----------------------

I- disable IPv6 on vmnet3
# echo 1 > /proc/sys/net/ipv6/conf/vmnet3/disable_ipv6
II- disable IPv6 on vmnet3 and persist after reboot
edit /etc/sysctl.conf and add the following line and reboot
net.ipv6.conf.vmnet3.disable_ipv6 = 1

No comments:

Post a Comment