[j-nsp] Subscriber management / dual stacked VLAN / DHCP help

Matthew Crocker matthew at corp.crocker.com
Sun Oct 9 10:17:10 EDT 2022


Hello,

I’m working with a Juniper MX204 to support DHCP subscriber management over stacked-VLANs with dynamic profiles.  I’ve followed a bunch of examples and I can’t seem to get the DHCP server & clients to communicate properly.

I believe I have the stacked-vlan demuxing working but I can’t get the DHCP part to work.

I think I need to terminate DHCP subnet on the router somewhere but I’m not sure what interface to attach it to (loopback?)

I have an Adtran TA5k attached to the ae0 interface with 3 ONTs and 3 residential gateways running DHCP clients.
I see the stack vlans getting demuxed as subscribers

show subscribers
Interface             IP Address/VLAN ID                      User Name                      LS:RI
demux0.3221225472     0x8100.302 0x8100.12                                              default:default
demux0.3221225473     0x8100.302 0x8100.11                                              default:default
demux0.3221225474     0x8100.302 0x8100.303                                             default:default

I don’t see any  DHCP assigned addresses

DHCP log:

Oct  9 13:36:58.335016 [MSTR][DEBUG] jdhcpd_packet_info_new: PACKET - Allocated new v4 packet 0xaccd858
Oct  9 13:36:58.335065 [MSTR][DEBUG][default:default][SVR][INET][demux0.3221225473] --[ DHCP/BOOTP   from == 0.0.0.0, port == 68 ]--
Oct  9 13:36:58.335077 [MSTR][DEBUG][default:default][SVR][INET][demux0.3221225473] --[ DHCP/BOOTP   size == 300, op == 1 ]--
Oct  9 13:36:58.335086 [MSTR][DEBUG][default:default][SVR][INET][demux0.3221225473] --[ DHCP/BOOTP  flags == 0 ]--
Oct  9 13:36:58.335095 [MSTR][DEBUG][default:default][SVR][INET][demux0.3221225473] --[ DHCP/BOOTP  htype == 1, hlen == 6 ]--
Oct  9 13:36:58.335103 [MSTR][DEBUG][default:default][SVR][INET][demux0.3221225473] --[ DHCP/BOOTP   hops == 0, xid == 519c0224 ]--
Oct  9 13:36:58.335112 [MSTR][DEBUG][default:default][SVR][INET][demux0.3221225473] --[ DHCP/BOOTP   secs == 65535, flags == 0000 ]--
Oct  9 13:36:58.335122 [MSTR][DEBUG][default:default][SVR][INET][demux0.3221225473] --[ DHCP/BOOTP ciaddr == 0.0.0.0 ]--
Oct  9 13:36:58.335131 [MSTR][DEBUG][default:default][SVR][INET][demux0.3221225473] --[ DHCP/BOOTP yiaddr == 0.0.0.0 ]--
Oct  9 13:36:58.335140 [MSTR][DEBUG][default:default][SVR][INET][demux0.3221225473] --[ DHCP/BOOTP siaddr == 0.0.0.0 ]--
Oct  9 13:36:58.335149 [MSTR][DEBUG][default:default][SVR][INET][demux0.3221225473] --[ DHCP/BOOTP giaddr == 0.0.0.0 ]--
Oct  9 13:36:58.335165 [MSTR][DEBUG][default:default][SVR][INET][demux0.3221225473] --[ DHCP/BOOTP chaddr == e8 2c 6d e8 1e 90 00 00 00 00 00 00 00 00 00 00 ]--
Oct  9 13:36:58.335174 [MSTR][DEBUG][default:default][SVR][INET][demux0.3221225473] --[ DHCP/BOOTP  sname ==  ]--
Oct  9 13:36:58.335182 [MSTR][DEBUG][default:default][SVR][INET][demux0.3221225473] --[ DHCP/BOOTP   file ==  ]--
Oct  9 13:36:58.335193 [MSTR][DEBUG][default:default][SVR][INET][demux0.3221225473] --[ OPTION code  53, len   1, data DHCP-DISCOVER ]--
Oct  9 13:36:58.335203 [MSTR][DEBUG][default:default][SVR][INET][demux0.3221225473] --[ OPTION code  57, len   2, data 02 40 ]--
Oct  9 13:36:58.335216 [MSTR][DEBUG][default:default][SVR][INET][demux0.3221225473] --[ OPTION code  55, len  10, data 01 03 06 0c 0f 1c 2a 2b 79 d4 ]--
Oct  9 13:36:58.335229 [MSTR][DEBUG][default:default][SVR][INET][demux0.3221225473] --[ OPTION code  60, len  14, data 38 33 34 2d 35 2d 53 4d 41 52 54 2f 4f 53 ]--
Oct  9 13:36:58.335241 [MSTR][DEBUG][default:default][SVR][INET][demux0.3221225473] --[ OPTION code  12, len  10, data 38 33 34 2d 35 2d 31 45 39 30 ]--
Oct  9 13:36:58.335250 [MSTR][INFO] [default:default][SVR][INET][demux0.3221225473] --[ OPTION code 255, len   0 ]--
Oct  9 13:36:58.335260 [MSTR][INFO]  jdhcpd_is_alq_topology_discover_configured: There is no relay configuration in routing context default.default

Oct  9 13:36:58.335280 [MSTR][DEBUG][default:default][SVR][INET][demux0.3221225473] jdhcpd_find_client_from_client_pdu: BOOTPREQUEST could not find client table ent
Oct  9 13:36:58.335289 [MSTR][DEBUG] jdhcpd_packet_map_to_wholesale_client: No wholesale clients moved out routing instance default:default
Oct  9 13:36:58.335297 [MSTR][DEBUG] jdhcpd_packet_map_to_wholesale_client: Client entry NOT found
Oct  9 13:36:58.335305 [MSTR][NOTE]  jdhcpd_packet_handle: RECEIVE DISCOVER: stats_safd 0x0 , safd 0xac1e100 demux0.3221225473
Oct  9 13:36:58.335318 [MSTR][DEBUG][default:default][SVR][INET][demux0.3221225473] jdhcpd_process_forward_only_or_drop: Returning ... forward-only flags not set (flags=deaddead, rc_flags 8a4080d) for routing context 0
Oct  9 13:36:58.335371 [MSTR][DEBUG][default:default][SVR][INET][SID=0] jdhcpd_packet_handle: new client table entry created for ifindex 536870986
Oct  9 13:36:58.335385 [MSTR][DEBUG][default:default][SVR][INET][demux0.3221225473] jdhcpd_process_offer_advertise_delay: Returning ... offer delay not set (flags=0, rc_flags 8a4080d) for routing context 0, rc(acac000)
Oct  9 13:36:58.335396 [MSTR][DEBUG][default:default][SVR][INET][SID=0] jdhcpd_packet_handle: Set client next-hop mac addr:  e8 2c 6d e8 1e 90 state(0)
Oct  9 13:36:58.335415 [MSTR][INFO]  jdhcpd_client_set_pkt: *********** Setting v4 packet 0xaccd858
Oct  9 13:36:58.335633 [MSTR][INFO] [default:default][SVR][INET][demux0.3221225473][SID=1283] jdhcpd_get_v4_v6_protocol_attributes: get configured protocol-attributes

Relevant configs below

--- JUNOS 19.4R3.11 Kernel 64-bit  JNPR-11.0-20200922.4042921_buil

show configuration interfaces ae0
description "TA5K SMA";
flexible-vlan-tagging;
auto-configure {
    stacked-vlan-ranges {
        dynamic-profile Auto-Stacked-VLAN-Demux {
            accept any;
            ranges {
                302-399,any;
            }
        }
    }
}

show configuration dynamic-profiles
Auto-Stacked-VLAN-Demux {
    interfaces {
        demux0 {
            unit "$junos-interface-unit" {
                demux-source inet;
                proxy-arp;
                vlan-tags outer "$junos-stacked-vlan-id" inner "$junos-vlan-id";
                demux-options {
                    underlying-interface "$junos-interface-ifd-name";
                }
                family inet {
                    unnumbered-address lo0.0 preferred-source-address 100.100.100.1/32;
                }
            }
        }
    }
}
DHCP-IP-Demux {
    interfaces {
        demux0 {
            unit "$junos-interface-unit" {
                proxy-arp;
                demux-options {
                    underlying-interface "$junos-underlying-interface";
                }
                family inet {
                    demux-source {
                        $junos-subscriber-ip-address;
                    }
                    unnumbered-address lo0.0 preferred-source-address 100.100.100.1/32;
                }
            }
        }
    }
}

show configuration system services dhcp-local-server
service-profile user-profile;
group gpon-data1 {
    dynamic-profile DHCP-IP-Demux;
    interface ae0.0;
    interface demux0.0;
}

address-assignment {
    pool FTTH1 {
        family inet {
            network 66.59.55.0/24;
            range FTTH1 {
                low 66.59.55.5;
                high 66.59.55.254;
            }
            dhcp-attributes {
                name-server {
                    8.8.8.8;
                    8.8.4.4;
                }
                router {
                    66.59.55.1;
                }
            }
        }
    }


More information about the juniper-nsp mailing list