SRX Services Gateway
Highlighted
SRX Services Gateway

DHCPv6 over VDSL - Not sending, no route (or source address)?

‎11-21-2018 01:56 AM

Hello,

 

Trying to setup a simple dhcpv6 client on a SRX220H2, running 12.3X48-D75.4.

 

The device appears to not be sending the DHCP requests out, either due to a lack of route to the multicast target, or no source address? - have some trace data captured, bit baffled.  Hoping it is something simple that is not configured correctly.

 

The pt-1/0/0 interface does appear to have a fe80 address, which should be enough to sort things out:

pt-1/0/0.0              up    up   inet     a.b.c.d/23
                                   inet6    fe80::6664:9bff:fe04:d2ae/64

IPv4 services are provided via DHCP over the same VDSL interface as well.  Interface is located within the default routing instance, but the device does run a few. 

 

Config extract:

 

user@GATE> show configuration interfaces pt-1/0/0 
traps;
vdsl-options {
    vdsl-profile 17a;
}
unit 0 {
    family inet {
        dhcp-client {
            no-dns-propagation;
            retransmission-attempt 6;
            retransmission-interval 5;
            update-server;
        }
    }
    family inet6 {
        dhcpv6-client {
            client-type statefull;
            client-ia-type ia-pd;
            update-router-advertisement {
                interface vlan.0;
            }
            client-identifier duid-type duid-ll;
            req-option fqdn;
        }
    }
}

DHCPv6 client status:

 

 

user@GATE> show dhcpv6 client binding           

IP/prefix                       Expires     State      ClientType    Interface       Client DUID
::/0                            0           INIT       STATEFUL      pt-1/0/0.0      LL0x3-64:64:9b:04:d2:ae

user@GATE> show dhcpv6 client binding detail 

Client Interface: pt-1/0/0.0
     Hardware Address:             64:64:9b:04:d2:ae
     State:                        INIT(DHCPV6_CLIENT_STATE_INIT)
     ClientType:                   STATEFUL
     Bind Type:                    IA_PD
     Preferred prefix length       0
     Sub prefix length             64
     Client DUID:                  LL0x3-64:64:9b:04:d2:ae
     Rapid Commit:                 Off
     Server Ip Address:            ::/0
     Client IP Prefix:             ::/0

Update RA interfaces:
     Interface: vlan.0

Configured traceoptions, to generate the output below:

set system processes dhcp-service traceoptions file dhcp-trace
set system processes dhcp-service traceoptions file size 10m
set system processes dhcp-service traceoptions file files 10
set system processes dhcp-service traceoptions level all
set system processes dhcp-service traceoptions flag all

 

Debug output - of interest to me is this line:

[DEBUG][default:default][(null)][INET6][pt-1/0/0.0][SID=0] jdhcp_v6_client_pdu_send: Failed to send 1 packet to ff02::1:2 Error=Can't assign requested address

 

 

Nov 21 15:16:51.077266 [INFO] [default:default][(null)][INET6][pt-1/0/0.0][SID=0] JDHCPD_CLIENT_EVENT: Client got event CLIENT_EVENT_LEASE_TIMEOUT in state DHCPV6_CLIENT_STATE_SELECTING
Nov 21 15:16:51.077912 [DEBUG][default:default][(null)][INET6][pt-1/0/0.0][SID=0] jdhcp_v6_client_pdu_send: Preparing to send 1 PDU
Nov 21 15:16:51.078232 [DEBUG][default:default][(null)][INET6][pt-1/0/0.0][SID=0] jdhcp_v6_client_pdu_send: 
Dump of 1 PDU to be sent

Nov 21 15:16:51.078572 [INFO] [default:default][(null)][INET6][pt-1/0/0.0] >>>>>>>>>> Decode message from == ::/0 <<<<<<<<<<
Nov 21 15:16:51.078805 [INFO] [default:default][(null)][INET6][pt-1/0/0.0] --[ msgtype == DHCPV6-SOLICIT ]--------------------------
Nov 21 15:16:51.078988 [INFO] [default:default][(null)][INET6][pt-1/0/0.0] --[ len == 40 ]--
Nov 21 15:16:51.079194 [INFO] [default:default][(null)][INET6][pt-1/0/0.0] --[ xid == 82f6b4 ]--
Nov 21 15:16:51.079376 [INFO] [default:default][(null)][INET6][pt-1/0/0.0] --[ msgtype == DHCPV6-SOLICIT ]--------------------------
Nov 21 15:16:51.079568 [INFO] [default:default][(null)][INET6][pt-1/0/0.0] --[ len == 40 ]--
Nov 21 15:16:51.079745 [INFO] [default:default][(null)][INET6][pt-1/0/0.0] --[ xid == 82f6b4 ]--
Nov 21 15:16:51.079940 [INFO] [default:default][(null)][INET6][pt-1/0/0.0] --[ OPTION_CLIENTID 
Nov 21 15:16:51.080155 [INFO] [default:default][(null)][INET6][pt-1/0/0.0]       OPTION code   1, len  10, data 00 03 00 01 64 64 9b 04 dc ae ]--
Nov 21 15:16:51.080358 [INFO] [default:default][(null)][INET6][pt-1/0/0.0] --[ OPTION_IA_PD 
Nov 21 15:16:51.080530 [INFO] [default:default][(null)][INET6][pt-1/0/0.0]       OPTION code  25, len  12, iaid 0, T1 4294967295, T2 4294967295 ]--
Nov 21 15:16:51.080738 [INFO] [default:default][(null)][INET6][pt-1/0/0.0] --[ OPTION_OPT_REQ 
Nov 21 15:16:51.080934 [INFO] [default:default][(null)][INET6][pt-1/0/0.0]       OPTION code   6, len   2, data 00 27 ]--
Nov 21 15:16:51.081134 [DEBUG][default:default][(null)][INET6][pt-1/0/0.0] dhcpv6_option_parse:     Parsing suboptions of OPTION_IA_PD - Start
Nov 21 15:16:51.081336 [DEBUG][default:default][(null)][INET6][pt-1/0/0.0] dhcpv6_option_parse:     Parsing suboptions of OPTION_IA_PD - Done
Nov 21 15:16:51.081516 [DEBUG][default:default][(null)][INET6][pt-1/0/0.0] dhcpv6_packet_decode: dhcpv6 pkt parsing - End
Nov 21 15:16:51.081810 DH_SVC_SENDMSG_FAILURE: sendmsg() from :: to port 547 at ff02::1:2 via interface 80 and routing instance default failed: Can't assign requested address
Nov 21 15:16:51.082212 [WARN]  dhcpv6_client_io_send_packet: sendmsg() from :: to ff02::1:2/547 via interface 80 and routing instance default failed: Can't assign requested address
Nov 21 15:16:51.082475 [DEBUG][default:default][(null)][INET6][pt-1/0/0.0][SID=0] jdhcp_v6_client_pdu_send: Failed to send 1 packet to ff02::1:2 Error=Can't assign requested address
Nov 21 15:16:51.082698 [DEBUG][default:default][(null)][INET6][pt-1/0/0.0][SID=0] dhcpv6_client_pdu_retransmit: retransmit send packet 1 from ifl pt-1/0/0.0
Nov 21 15:16:51.082900 [DEBUG][default:default][(null)][INET6][pt-1/0/0.0][SID=0] dhcpv6_start_lease_timer: STARTING LEASE TIMER
Nov 21 15:16:51.083073 starting lease timer for 4 seconds

 

 

If anyone has any ideas, I'm happy to try anything.  Security policies/etc should be a-ok, but hey ...

 

Thanks!

 

 

 

1 REPLY 1
Highlighted
SRX Services Gateway

Re: DHCPv6 over VDSL - Not sending, no route (or source address)?

‎11-22-2018 11:23 PM

As a minor note, I've found if I configure this:

set interfaces vlan unit 0 family inet6 address d00f:d00f:d00f:d00f:d00f::1/127

The dhcpv6 process seems to do this:

GATE% tcpdump -ni pt-1/0/0.0 -s 1500 -vvvxxxXXX ip6
Address resolution is OFF.
Listening on pt-1/0/0.0, capture size 1500 bytes

15:12:37.768354 Out 
        Juniper PCAP Flags [Ext], PCAP Extension(s) total length 16
          Device Media Type Extension TLV #3, length 1, value: Ethernet (1)
          Logical Interface Encapsulation Extension TLV #6, length 1, value: Ethernet (14)
          Device Interface Index Extension TLV #1, length 2, value: 38400
          Logical Interface Index Extension TLV #4, length 4, value: 80
        -----original packet-----
        IP6 (hlim 255, next-header: UDP (17), length: 46) d00f:d00f:d00f:d00f:d00f::1.546 > ff02::1:2.547: [udp sum ok] dhcp6 solicit(C cliaddr=1:a:3:1:6464:9b04:dcae:e relayaddr=0:19:c::ffff:ffff:ffff)
0x0000   3333 0001 0002 6464 9b04 d2ae 86dd 6000        33....dd......`.
0x0010   0000 002e 11ff d00f d00f d00f d00f d00f        ................
0x0020   0000 0000 0001 ff02 0000 0000 0000 0000        ................
0x0030   0000 0001 0002 0222 0223 002e 2546 01ed        .......".#..%F..
0x0040   e86a 0001 000a 0003 0001 6464 9b04 dcae        .j........dd....
0x0050   000e 0000 0019 000c 0000 0000 ffff ffff        ................
0x0060   ffff ffff                                      ....

If I remove the 'bogus' address from vlan.0, it goes back to refusing to send dhcpv6 requests due to no route/unassigned address.

 

Why is an address on vlan.0 being used on pt-1/0/0.0 for dhcpv6 origination? 

Shouldn't pt-1/0/0.0 be using the fe80 address for the dhcpv6 messages?

Feedback