How to set up a DHCPv6-PD client successfully?

upyzl zj262144 at gmail.com
Thu Dec 19 11:49:35 UTC 2013


Hi there. I'm a college student using ISC DHCP for our lab project (IPv6
Network test for PCs & smart Phones).
Now I got problems when implement DHCPv6-PD...

Environment:

VM1 (DHCPv6 Server): Ubuntu 12.04.3 x64 server  /  ISC DHCP Server
4.1-ESV-R4  /  RADVD 1.8.3
VM2 (DHCPv6-PD Client): Ubuntu 12.04.3 x64 desktop  /  ISC DHCP Client
4.1-ESV-R4  /  RADVD 1.8.3
VM3 (IPv6 Host): Ubuntu 12.04.3 x64 desktop

all VMs in a VMware ESXi system

simple network topo:

    VM1 ------ (eth0)VM2(eth1) ------ VM3

[Server] config:(/etc/dhcp/dhcpd6.conf)
---------------------
default-lease-time 600;
max-lease-time 7200;
log-facility local7;

# Server IP: 2001:db8:20:1::1
subnet6 2001:db8:20:1::/64 {
        # Range for clients
        range6 2001:db8:20:1::100 2001:db8:20:1::249;
        # Additional options
        option dhcp6.name-servers 2001:db8:21:1::fe;
        # Prefix Delegation
        prefix6 2001:db8:20:100:: 2001:db8:20:f00 /56;
}
---------------------
/etc/radvd.conf
---------------------
interface eth0 {
  AdvSendAdvert on;
  MaxRtrAdvInterval 30;
  AdvManagedFlag on;
  AdvOtherConfigFlag on;
}
---------------------
running:
/etc/init.d/radvd start
service isc-dhcpv6-server start

[PD-Client]:(/etc/dhcp/
dhclient6.conf)
---------------------
interface "eth0" {
  send dhcp6.ia-na 1;
  send dhcp6.ia-pd 1;
  request dhcp6.domain-search, dhcp6.name-servers;
  script "/etc/dhcp/pd-script";
}
---------------------

/etc/dhcp/pd-script
---------------------
#!/bin/bash

if [ x"$new_ip6_prefix" != x ]; then
    ip addr add $new_ip6_prefix dev eth1;
fi
---------------------

/etc/radvd.conf
---------------------
interface eth1 {

  AdvSendAdvert on;
  MaxRtrAdvInterval 30;
  AdvDefaultPreference high;
  AdvManagedFlag off;
  AdvOtherConfigFlag off;
  AdvLinkMTU 1280;

  prefix ::/64 {

    AdvOnLink on;
    AdvAutonomous on;

  };

};
---------------------

running:
dhclient -cf "/etc/dhcp/dhclient6.conf" -P -N eth0  (also try: dhclient -cf
"/etc/dhcp/dhclient6.conf" -P -S -nw eth0)
/etc/init.d/radvd start

sysctl -p:
net.ipv6.conf.all.forwarding = 1
net.ipv6.conf.eth0.accept_ra = 2


But the fact this PD-Client even didn't receive any info from
Server...(Could I post *.PCAPs by tcpdump to attachment?)

On the other hand, when I instead use wide-dhcpv6-client, It works
OK(reference: http://www.ipcalypse.ca/?p=204), the host got the address as
PD serves
But our goal is all to use ISC DHCP (also my tutor demand), so how to solve
the issue, please...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20131219/a1e81598/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tcpdump_Capture.zip
Type: application/zip
Size: 3173 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20131219/a1e81598/attachment.zip>


More information about the dhcp-users mailing list