56 Posts in 20 Topics by 17 members

IPv6 Trial

Forum » IPv6 Trial » Unable to get a DHCPv6 lease on Linux

Page: 1 Go to End
Author Topic: Unable to get a DHCPv6 lease on Linux 2221 Views

Unable to get a DHCPv6 lease on Linux Link to this post

Hi,

So finally I've got some kit sorted that should be able to do this. PCI ADSL + Linux should be fine...

I've got it to the point where pppd can pull up the PPPoATM connection, and negotiate IPv6CP:

Plugin pppoatm.so loaded.
using channel 7
Using interface ppp0
Connect: ppp0 <--> 0.100
sent [LCP ConfReq id=0x1 <magic 0xc1b73f6d>]
rcvd [LCP ConfReq id=0x2f <auth pap> <magic 0xde62dc0>]
sent [LCP ConfAck id=0x2f <auth pap> <magic 0xde62dc0>]
rcvd [LCP ConfAck id=0x1 <magic 0xc1b73f6d>]
sent [LCP EchoReq id=0x0 magic=0xc1b73f6d]
sent [PAP AuthReq id=0x1 user="nbertram@adsl.xnet.co.nz" password=<hidden>]
rcvd [LCP EchoRep id=0x0 magic=0xde62dc0]
rcvd [PAP AuthAck id=0x1 ""]
PAP authentication succeeded
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
sent [IPV6CP ConfReq id=0x1 <addr fe80::905b:6161:a820:bb73>]
rcvd [LCP ProtRej id=0xd9 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [IPV6CP ConfAck id=0x1 <addr fe80::905b:6161:a820:bb73>]
rcvd [IPCP ConfNak id=0x2 <addr 118.90.50.238> <ms-dns1 58.28.5.2> <ms-dns3 58.28.6.2>]
sent [IPCP ConfReq id=0x3 <addr 118.90.50.238> <ms-dns1 58.28.5.2> <ms-dns3 58.28.6.2>]
rcvd [IPCP ConfAck id=0x3 <addr 118.90.50.238> <ms-dns1 58.28.5.2> <ms-dns3 58.28.6.2>]
rcvd [IPCP ConfReq id=0x9f <addr 58.28.15.31>]
sent [IPCP ConfAck id=0x9f <addr 58.28.15.31>]
Cannot determine ethernet address for proxy ARP
local IP address 118.90.50.238
remote IP address 58.28.15.31
primary DNS address 58.28.5.2
secondary DNS address 58.28.6.2

Leaving me with this interface:

ppp0 Link encap:Point-to-Point Protocol
inet addr:118.90.50.238 P-t-P:58.28.15.31 Mask:255.255.255.255
inet6 addr: fe80::905b:6161:a820:bb73/10 Scope:Link
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:156 (156.0 B) TX bytes:173 (173.0 B)

So then I'm trying to get a DHCPv6 lease using Dibbler, but here's what it says:

2009.11.06 16:07:01 Client Info Interface ppp0/9 configuation has been loaded.
2009.11.06 16:07:01 Client Info My DUID is 00:01:00:01:12:86:4e:d0:00:40:63:c5:8f:5c.
2009.11.06 16:07:01 Client Notice Creating control (::) socket on the lo/1 interface.
2009.11.06 16:07:01 Client Notice Creating socket (addr=fe80::905b:6161:a820:bb73) on the ppp0/9 interface.
2009.11.06 16:07:01 Client Info Socket bound to fe80::905b:6161:a820:bb73/port=546
2009.11.06 16:07:01 Client Info Creating SOLICIT message with 1 IA(s), no TA and 0 PD(s) on ppp0/9 interface.
2009.11.06 16:07:02 Client Info Processing msg (SOLICIT,transID=0x4ecc29,opts: 1 3 8 6)
2009.11.06 16:07:03 Client Info Processing msg (SOLICIT,transID=0x4ecc29,opts: 1 3 8 6)
2009.11.06 16:07:05 Client Info Processing msg (SOLICIT,transID=0x4ecc29,opts: 1 3 8 6)
2009.11.06 16:07:09 Client Info Processing msg (SOLICIT,transID=0x4ecc29,opts: 1 3 8 6)
2009.11.06 16:07:17 Client Info Processing msg (SOLICIT,transID=0x4ecc29,opts: 1 3 8 6)
2009.11.06 16:07:34 Client Info Processing msg (SOLICIT,transID=0x4ecc29,opts: 1 3 8 6)
2009.11.06 16:08:09 Client Info Processing msg (SOLICIT,transID=0x4ecc29,opts: 1 3 8 6)
2009.11.06 16:09:18 Client Info Processing msg (SOLICIT,transID=0x4ecc29,opts: 1 3 8 6)
... (etc etc)

So what have I got wrong here? It looks like there's nothing listening on the other side...

Re: Unable to get a DHCPv6 lease on Linux Link to this post

After further investigation, I seem to have the same problem as in http://wxnz.net/ipv6-capable-xdsl-devices/show/9#post9

If I set up Dibbler so it doesn't ask for an address, just DNS/domain details, then it gets a reply, but as soon as it asks for an actual address, no reply is forthcoming...

Could it be the same RADIUS config problem with my prefix?

Re: Unable to get a DHCPv6 lease on Linux Link to this post

Hi There,

I have checked the config for your username - and all looks good. However i dont even see a link-local address from you - so it looks like the IPv6CP process is not working.

Cheers,

Callum

Re: Unable to get a DHCPv6 lease on Linux Link to this post

I've solved the problem now. If you ask for an IP address (option "ia" in Dibbler), you get no reply, since the DHCPv6 server is only working in prefix delegation mode.

If, however, you set up the client to only ask for a prefix, it will answer :)

My Dibbler client config now looks like:

iface ppp0 {
pd
option dns-server
}

And works just fine:

2009.11.12 16:59:41 Client Debug Parsing /etc/dibbler/client.conf done, result=0
2009.11.12 16:59:41 Client Debug 1 interface(s) specified in /etc/dibbler/client.conf
2009.11.12 16:59:41 Client Info Interface ppp0/4 configuation has been loaded.
2009.11.12 16:59:41 Client Info My DUID is 00:01:00:01:12:86:4e:d0:00:40:63:c5:8f:5c.
2009.11.12 16:59:41 Client Debug Bind reuse enabled (multiple instances allowed).
2009.11.12 16:59:41 Client Notice Creating control (::) socket on the lo/1 interface.
2009.11.12 16:59:41 Client Notice Creating socket (addr=fe80::553b:1edd:8965:cdf3) on the ppp0/4 interface.
2009.11.12 16:59:41 Client Info Socket bound to fe80::553b:1edd:8965:cdf3/port=546
2009.11.12 16:59:41 Client Info Creating SOLICIT message with 0 IA(s), no TA and 1 PD(s) on ppp0/4 interface.
2009.11.12 16:59:41 Client Debug Sleeping for 1 second(s).
2009.11.12 16:59:42 Client Info Processing msg (SOLICIT,transID=0xb0e327,opts: 1 25 8 6)
2009.11.12 16:59:42 Client Debug Sending SOLICIT on ppp0/4 to multicast.
2009.11.12 16:59:42 Client Debug Sleeping for 1 second(s).
2009.11.12 16:59:42 Client Debug Received 186 bytes on interface ppp0/4 (socket=7, addr=fe80::90:1a00:c142:bf14.).
2009.11.12 16:59:42 Client Warning Option 20 in message 2 is not supported.
2009.11.12 16:59:42 Client Warning Option 20 is invalid. Ignoring.
2009.11.12 16:59:42 Client Info Received ADVERTISE on ppp0/4,TransID=0xb0e327, 6 opts: 2 1 25 23 24 13
2009.11.12 16:59:42 Client Debug Sleeping for 1 second(s).
2009.11.12 16:59:43 Client Info Processing msg (SOLICIT,transID=0xb0e327,opts: 1 25 8 6)
2009.11.12 16:59:43 Client Info Creating REQUEST. Backup server list contains 1 server(s).
2009.11.12 16:59:43 Client Debug Advertise from Server ID=00:02:00:00:0a:4c:45:33:32:30:2f:37:34:35:41:43:33:33:45:58:32:2f:c1, no preference option, assumed 0, no auth info.[using this]
2009.11.12 16:59:43 Client Debug Authentication is disabled, not including auth options in message.
2009.11.12 16:59:43 Client Debug Sleeping for 1 second(s).
2009.11.12 16:59:44 Client Info Processing msg (REQUEST,transID=0xd94a65,opts: 1 25 8 6 2)
2009.11.12 16:59:44 Client Debug Sending REQUEST on ppp0/4 to multicast.
2009.11.12 16:59:44 Client Debug Sleeping for 1 second(s).
2009.11.12 16:59:44 Client Debug Received 186 bytes on interface ppp0/4 (socket=7, addr=fe80::90:1a00:c142:bf14.).
2009.11.12 16:59:44 Client Warning Option 20 in message 7 is not supported.
2009.11.12 16:59:44 Client Warning Option 20 is invalid. Ignoring.
2009.11.12 16:59:44 Client Info Received REPLY on ppp0/4,TransID=0xd94a65, 6 opts: 2 1 25 23 24 13
2009.11.12 16:59:44 Client Debug PD: Adding PD (iaid=1) to addrDB.
2009.11.12 16:59:44 Client Debug PD: Adding 2001:e20:2000:500:: prefix to PD (iaid=1) to addrDB.
2009.11.12 16:59:44 Client Notice PD: IPv6 forwarding enabled, so prefix operation will apply to all interfaces.
2009.11.12 16:59:44 Client Notice PD: Adding prefix 2001:e20:2000:500::/56 to all interfaces (prefix will be split to /64 prefixes).
2009.11.12 16:59:44 Client Debug PD: Interface ppp0/4 is the interface, where prefix has been obtained, skipping.
2009.11.12 16:59:44 Client Notice PD: Adding prefix 2001:e20:2000:500::/56 on the eth0/2 interface.
2009.11.12 16:59:44 Client Debug PD: Interface lo/1 is not multicast capable, ignoring.
2009.11.12 16:59:44 Client Debug RENEW will be sent (T1) after 150, REBIND (T2) after 240 seconds.
2009.11.12 16:59:44 Client Notice Setting up DNS server 2001:e20:1000:4::2 on interface ppp0/4.
2009.11.12 16:59:44 Client Notice Setting up DNS server 2001:e20:1000:6::2 on interface ppp0/4.
2009.11.12 16:59:44 Client Info DNS server 2001:e20:1000:4::2 is already set on interface ppp0/4, no change is needed.
2009.11.12 16:59:44 Client Info DNS server 2001:e20:1000:6::2 is already set on interface ppp0/4, no change is needed.
2009.11.12 16:59:44 Client Notice Setting up Domain wxnz.net on interface ppp0/4.
2009.11.12 16:59:44 Client Notice Status SUCCESS :
2009.11.12 16:59:44 Client Debug Sleeping for 150 second(s).

Some manual fiddlery is still required to add a host route for IPv6 down the PPP link and then actually put an IP on the ppp0 interface using the discovered prefix. Maybe I'm missing something though and need to have a look through the Dibbler docs again at some point, but for now, it works!

    2221 Views
Go to Top