Sunday, April 12, 2015

Ubuntu and IPv6


If Using a VM, enable IPv6

Enable IPv6 on ESX Host

To enable IPv6 using the vSphere Client:
  1. Connect to the host or vCenter Server using the vSphere Client.
  2. Select the host in the inventory and click the Configuration tab.
  3. Under the Hardware section, click the Networking link.
  4. In the Virtual Switch view, click the top-level Properties link.
  5. Select Enable IPv6 support on this host system.
  6. Click OK.
  7. Restart the host for changes to take effect.

    Note: To disable IPv6, deselect the checkbox and restart.

Enabling IPv6 on vSphere Wb Client

To enable IPv6 in ESXi 5.5:
  1. In the vSphere Web Client, navigate to the host.
  2. In the Manage tab, click Networking and click Advanced.
  3. Click Edit.
  4. In the IPv6 support dropdown menu, select Enable.
  5. Click OK.
  6. Reboot the host to apply the changes.

Setup IPv6 to AUTO
sudo sysctl -w net.ipv6.conf.eth1.autoconf=0
sudo sysctl -w net.ipv6.conf.eth1.accept_ra=0

Verify IPv6 Module


Check if ipv6 is enabled (0 means enabled, 1 disabled)
root@edge-workstation:/# cat /proc/sys/net/ipv6/conf/all/disable_ipv6


Install ipv6 utils
apt-get install iproute iputils-ping iputils-tracepath$ apt-cache search ipv6

Configure static IPv6 address


 
Make sure you are root:
$ sudo -suOpen network configuration file
# vim /etc/network/interfacesAppend the following lines:
### Static IPv6
iface eth1 inet6 static
pre-up modprobe ipv6
address 2001:480:230::42
netmask 64
gateway 2001:480:230::1
Restart Network
# /etc/init.d/networking restart

Verify IPv6 Configuration

See your IPv6 address, enter:
# ifconfig eth0
# ip -6 address show eth0
Display kernel IPv6 routing table:
# netstat -nr -6Verify that it works with ping6 or traceroute6
# ping6 ipv6.google.com# traceroute6 ipv6.google.com

No comments:

Post a Comment