Config Router

  • Google Sheets
  • CCNA Online training
    • CCNA
  • CISCO Lab Guides
    • CCNA Security Lab Manual With Solutions
    • CCNP Route Lab Manual with Solutions
    • CCNP Switch Lab Manual with Solutions
  • Juniper
  • Linux
  • DevOps Tutorials
  • Python Array
You are here: Home / Juniper / Sample configuration of DHCPv6 local server handing over IA_NA and IA_PD

Sample configuration of DHCPv6 local server handing over IA_NA and IA_PD

May 26, 2016 by Marques Brownlee

This article provides a sample configuration of the DHCPv6 local server, when the client requests for both IA_NA and IA_PD.

A sample configuration of the DHCPv6 local server, when the client requests for both IA_NA and IA_PD.

The configuration is as follows:

dynamic-profiles {
    CVLAN {
        interfaces {
            "$junos-interface-ifd-name" {
                unit "$junos-interface-unit" {
                    demux-source [ inet inet6 ];
                    proxy-arp;
                    vlan-id "$junos-vlan-id";
                    family inet {
                        unnumbered-address lo0.0;
                    }
                    family inet6 {
                        unnumbered-address lo0.0 preferred-source-address 2001:4610:0000:0700::1;
                    }
                }
            }
        }        
    }
    dhcpv6-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;
                    }
                    family inet6 {
                        demux-source {
                            "$junos-subscriber-ipv6-multi-address";
                        }
                        unnumbered-address lo0.0 preferred-source-address 2001:4610:0000:0700::1;
                    }
                }
            }
        }
    }
}
system {
    services {
        dhcp-local-server {
            dhcpv6 {
                group local {           
                    dynamic-profile dhcpv6-demux;
                    overrides {
                        delegated-pool dhcpv6-pd;
                    }
                    interface ge-1/0/3.0;
                }
            }
            forward-snooped-clients all-interfaces;
        }
    }
}
interfaces {
    lo0 {
        unit 0 {
            family inet {
                address 192.168.1.1/32;
            }
            family inet6 {
                address 2001:4610:0000:0700::1/128;
            }
        }
    }
    ge-1/0/3 {
        hierarchical-scheduler maximum-hierarchy-levels 2;
        flexible-vlan-tagging;
        auto-configure {
            vlan-ranges {
                dynamic-profile CVLAN {
                    accept any;
                    ranges {
                        220-220;
                    }
                }
                authentication {
                    password shaleen;
                    username-include {
                        domain-name mx.com;
                        user-prefix shaleen;
                    }
                }
                access-profile acc-prof;
            }
            remove-when-no-subscribers;
        }
        mtu 9192;
        encapsulation flexible-ethernet-services;
    }
}
access {
    address-assignment {
        pool dhcpv6-pd {
            family inet6 {
                prefix fc00:60::/64;
                range r1 prefix-length 64;
                dhcp-attributes {
                    maximum-lease-time 300;
                }
            }
        }
        pool local {
            family inet {
                network 192.168.1.0/24;
                range r1 {
                    low 192.168.1.2;
                    high 192.168.1.254;
                }
            }
        }
        pool ipv6-wan {
            family inet6 {
                prefix 2001:4610:0000:0700::/64;
                range wan {
                    low 2001:4610:0000:0700:0000:0000:0000:0002/128;
                    high 2001:4610:0000:0700::ffff/128;
                }
                dhcp-attributes {
                    maximum-lease-time 1200;
                    dns-server {
                        2001:4600:4::1:53;
                        2001:4600:4:1000::1:53;
                    }
                }
            }
        }
    }
}
access-profile acc-prof;

Subscriber is up:


jtac@ERX-MX240-2-RE1# run show subscribers 
Interface           IP Address/VLAN ID                      User Name                      LS:RI
ge-1/0/3.1073741828  220                                    [email protected]            default:default      
demux0.1073741829   2001:4610:0:700::4                                                default:default      
*                   fc00:60::/64


jtac@ERX-MX240-2-RE1# run show subscribers extensive 
Type: VLAN
User Name: [email protected]
Logical System: default
Routing Instance: default
Interface: ge-1/0/3.1073741828
Interface type: Dynamic
Dynamic Profile Name: CVLAN
Idle Timeout (seconds): 1800
State: Active
Radius Accounting ID: 2584
Session ID: 2584
VLAN Id: 220
Login Time: 2013-02-01 21:33:42 UTC

Type: DHCP
IPv6 Address: 2001:4610:0:700::4
IPv6 Prefix: fc00:60::/64
Logical System: default
Routing Instance: default
Interface: demux0.1073741829
Interface type: Dynamic
Dynamic Profile Name: dhcpv6-demux
MAC Address: 1c:99:4a:3b:00:00
Idle Timeout (seconds): 900
State: Active
Radius Accounting ID: 2585
Session ID: 2585
VLAN Id: 220
Login Time: 2013-02-01 21:33:43 UTC
DHCP Options: len 68
00 08 00 02 00 00 00 01 00 0e 00 01 00 01 18 8d 66 a8 1c 99
4a 3b 00 00 00 06 00 08 00 02 00 07 00 17 00 18 00 03 00 0c
00 00 00 0a 00 04 9d 40 00 07 62 00 00 19 00 0c 00 00 00 0a
00 04 9d 40 00 07 62 00
IPv6 Address Pool: ipv6-wan
IPv6 Delegated Network Prefix Length: 64
IPv6 Delegated Address Pool: dhcpv6-pd
IPv6 Delegated Network Prefix Length: 64

jtac@ERX-MX240-2-RE1# run show route protocol access 

inet6.0: 13 destinations, 13 routes (13 active, 0 holddown, 0 hidden)
Restart Complete
+ = Active Route, - = Last Active, * = Both

fc00:60::/64       *[Access/13] 00:07:09
                    > to 2001:4610:0:700::4 via demux0.1073741829

[edit groups DHCPv6]
jtac@ERX-MX240-2-RE1# run show route protocol access-internal 
inet6.0: 13 destinations, 13 routes (13 active, 0 holddown, 0 hidden)
Restart Complete
+ = Active Route, - = Last Active, * = Both

2001:4610:0:700::4/128
                   *[Access-internal/12] 00:07:16
                    > to #0 0.0.0.0.0.0 via demux0.1073741829


jtac@ERX-MX240-2-RE1# run show dhcpv6 server binding detail 

Session Id:  2585
     Client IPv6 Prefix:                    fc00:60::/64
     Client IPv6 Address:                   2001:4610:0:700::4/128
     Client DUID:                           LL_TIME0x1-0x188d66a8-1c:99:4a:3b:00:00
     State:                                 BOUND(DHCPV6_LOCAL_SERVER_STATE_BOUND)
     Lease Expires:                         2013-02-01 21:46:17 UTC
     Lease Expires in:                      174 seconds
     Lease Start:                           2013-02-01 21:33:43 UTC
     Last Packet Received:                  2013-02-01 21:41:17 UTC
     Incoming Client Interface:             ge-1/0/3.1073741828
     Client Interface Vlan Id:              220
     Demux Interface:                       demux0.1073741829
     Server Ip Address:                     0.0.0.0
     Client Pool Name:                      ipv6-wan
     Client Prefix Pool Name:               dhcpv6-pd
     Client Profile Name:                   dhcpv6-demux
     Client Id Length:                      14
     Client Id:                             /0x00010001/0x188d66a8/0x1c994a3b/0x0000

 

Related

Filed Under: Juniper Tagged With: DHCPv6 local server, IA_NA, IA_PD

Recent Posts

  • How do I give user access to Jenkins?
  • What is docker volume command?
  • What is the date format in Unix?
  • What is the difference between ARG and ENV Docker?
  • What is rsync command Linux?
  • How to Add Music to Snapchat 2021 Android? | How to Search, Add, Share Songs on Snapchat Story?
  • How to Enable Snapchat Notifications for Android & iPhone? | Steps to Turn on Snapchat Bitmoji Notification
  • Easy Methods to Fix Snapchat Camera Not Working Black Screen Issue | Reasons & Troubleshooting Tips to Solve Snapchat Camera Problems
  • Detailed Procedure for How to Update Snapchat on iOS 14 for Free
  • What is Snapchat Spotlight Feature? How to Make a Spotlight on Snapchat?
  • Snapchat Hack Tutorial 2021: Can I hack a Snapchat Account without them knowing?

Copyright © 2025 · News Pro Theme on Genesis Framework · WordPress · Log in