• Welcome to Hurricane Electric's IPv6 Tunnel Broker Forums.

DHCP gets lease, but doesn't add address to interface

Started by fukawi2, December 14, 2011, 10:02:29 PM

Previous topic - Next topic

fukawi2

I'm not sure if I'm crazy or what, but this doesn't make sense...

I have native IPv6 from my ISP to my router/firewall (CentOS 6).
I have radvd advertising a subnet to my LAN segment.
I have isc dhcp offering DHCP leases in the same prefix to the same LAN segment.

My desktop is seeing the radvd RA's and configuring itself with a stateless address (I still don't know how; I assume it's the kernel that does this, not a daemon).
If I try to run a DHCP client, it says it's getting a lease and adding it, but it doesn't. Same behavior with isc dhclient and wide dhcp6c

# dhclient -6 -v -pf /var/run/dhclient.eth0.ipv6.pid -lf /var/lib/dhcp/dhclient.eth0.ipv6.leases -1 eth0
Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Bound to *:546
Listening on Socket/eth0
Sending on   Socket/eth0
PRC: Confirming active lease (INIT-REBOOT).
XMT: Forming Confirm, 0 ms elapsed.
XMT:  X-- IA_NA 65:4e:99:b0
XMT:  | X-- Confirm Address 2001:44b8:4126:c642::dddd:424c
XMT:  V IA_NA appended.
XMT: Confirm on eth0, interval 940ms.
RCV: Reply message on eth0 from fe80::210:18ff:fe0f:7ee2.
RCV:  X-- Server ID: 00:01:00:01:16:78:58:ae:00:10:18:0f:7e:e2
message status code Success: "All addresses still on link."
PRC: Bound to lease 00:01:00:01:16:78:58:ae:00:10:18:0f:7e:e2.


The above address is not on the interface, only the one that has been statelessly configured.
# ip a s eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 1c:6f:65:4e:99:b0 brd ff:ff:ff:ff:ff:ff
    inet 172.31.0.21/25 brd 172.31.0.127 scope global eth0
    inet6 2001:44b8:4126:c642:1e6f:65ff:fe4e:99b0/64 scope global dynamic
       valid_lft 86394sec preferred_lft 14394sec
    inet6 fe80::1e6f:65ff:fe4e:99b0/64 scope link
       valid_lft forever preferred_lft forever


dhcp server configuration:

default-lease-time 2592000;
preferred-lifetime 604800;
option dhcp-renewal-time 3600;
option dhcp-rebinding-time 7200;
option dhcp6.info-refresh-time 21600;
allow leasequery;
option dhcp6.domain-search "comapny.com.au","company.com";
subnet6 2001:44b8:4126:c642::/64 {
option dhcp6.name-servers 2001:44b8:4126:c642::f1;
range6 2001:44b8:4126:c642::dddd:0000 2001:44b8:4126:c642::dddd:ffff;
}


radvd config:
interface bond0.42 {
AdvSendAdvert on;
MinRtrAdvInterval 30;
MaxRtrAdvInterval 100;
AdvManagedFlag on;
AdvOtherConfigFlag on;
# Disable Mobile IPv6 support
AdvHomeAgentFlag off;
prefix 2001:44b8:4126:c642::/64 {
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr off;
};
};

cholzhauer

I'm pretty sure you have to tell it to accept DHCPv6 (with Windows you need to set two flags)

You didn't mention what OS you're running, but I"m sure if you Google for "[Your OS] dhcp ipv6 flag" you'll find what you want

fukawi2

Quote from: cholzhauer on December 15, 2011, 05:32:35 AM
I'm pretty sure you have to tell it to accept DHCPv6 (with Windows you need to set two flags)

You didn't mention what OS you're running, but I"m sure if you Google for "[Your OS] dhcp ipv6 flag" you'll find what you want
Sorry, I did miss that. Firewall is running CentOS 6. My desktop is Debian 'squeeze'.

Much Google-fu has returned not much thus far, although I haven't tried any searches with the keyword 'flag' so I'll give that a shot.

Thanks for taking the time to reply :)