Alright, so I'm having a bit of trouble here on my CentOS 6 router. I have radvd running for router advertisements and I have dhcpd6 running to provide my hosts with specific IP's that I want to give them. Below are my configurations.
This is my /etc/radvd.conf
Code:
interface vi0 {
AdvLinkMTU 1500;
AdvSendAdvert on;
AdvManagedFlag off;
AdvOtherConfigFlag on;
MinRtrAdvInterval 3;
MaxRtrAdvInterval 10;
prefix 2001:470:d:286::/64 {
AdvOnLink on;
AdvRouterAddr on;
AdvAutonomous off; };
};
This is a portion of /etc/dhcp/dhcpd6.conf.
Code:
#
# DHCP for IPv6 Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd6.conf.sample
# see 'man 5 dhcpd.conf'
# run 'service dhcpd6 start' or 'dhcpd -6 -cf /etc/dhcp/dhcpd6.conf'
#
# Logging
log-facility local7;
# Global Defaults
allow leasequery;
authoritative;
default-lease-time 2592000;
preferred-lifetime 604800;
option dhcp-renewal-time 3600;
option dhcp-rebinding-time 7200;
option dhcp6.info-refresh-time 21600;
#max-lease-time 7200;
subnet6 2001:470:d:286::/64 {
interface vi0;
range6 2001:470:d:286::1100 2001:470:d:286::1254;
option dhcp6.name-servers 2001:470:d:286::1,2001:4860:4860::8888,2001:4860:4860::8844;
option dhcp6.domain-search "bromosapien.net";
}
# My Devices
host sokel {
host-identifier option dhcp6.client-id 00:01:00:01:1A:D1:F0:78:00:00:00:00:00:00;
fixed-address6 2001:470:d:286::2;
}
The problem is, the clients on the network are not getting IP's. They are getting the DNS information perfectly fine, but they do not get IP's from the range I specified, nor is my 'host' block here even working.
If I change AdvAutonomous, IP's will start coming out,
but, if they are already configured with a static address, they get another address. Or, if they're the host "sokel", they get both the ::2 address and another IPv6 address that is WAY outside of the range I specified.
What is the preferred way to make this 'stateful' and make it so the clients will pull IP's from the range I specify or get an address I specify in a host block? What am I doing wrong exactly for what I want to achieve?
Summary of what I'm trying to achieve:
- Clients not in host blocks get an IP in the range specified in the subnet block
- Each host only gets one address, including the ones in the host blocks or statically configured hosts
** Update **
If DHCPv6 is on by itself, with no radvd, IP's are handed out as needed. If radvd turns on (with the configuration above), they all lose their addresses. Not sure how to prevent that.