Example IPv6 configuration for DHCP and Router Advertisement
search cancel

Example IPv6 configuration for DHCP and Router Advertisement

book

Article ID: 328201

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

You might want to set up DHCPv6 and Router Advertisement (RA) services to provide IPv6 configuration for virtual machines in a vSphere 6.0 environment.


Resolution

Example RA configuration with radvd

The configuration file of the RA radvd service is located at /etc/radvd.conf. The contents of a configuration file are similar to the following:


AdvManagedFlag on;
AdvOtherConfigFlag on;
prefix 2001:192:168:1::/64
{
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr off;
};
};

Example DHCPv6 configuration

Using wide-dhcpv6-server package on Ubuntu 14.04.

The configuration file is located at /etc/wide-dhcpv6/dhcpv6s.conf. The contents of a configuration file are similar to the following:

option domain-name "example.com"
interface eth0{
address-pool pool1 3600;
};

pool pool1{
range 2001:192:168:1::100 to 2001:192:168:1::500;
};

Using dhcpv6 package on CentOS 6.5.

The configuration file is located at /etc/dhcpv6s.conf. The contents of a configuration file are similar to the following:

server-preference 255;
renew-time 1000;
rebind-time 1600;
prefer-life-time 2000;
valid-life-time 2500;
allow rapid-commit;
option dns_servers 2001:192:168:1::7 example.com;
link <name> {
range 2001:192:168:1::100 to 2001:192:168:1::500/64;
prefix 2001:192:168:1::/64;
};

};

 

Note: A protocol conflict might occur when you configure a DHCPv6 server with dhcpv6 package and a DHCP client is configured with wide-dhcpv6-client package. In this case the client might not get an IPv6 address properly.