The Dynamic Host Configuration Protocol for IPv6 (DHCPv6) is defined in RFC 3315, Dynamic Host Configuration Protocol for IPv6 (DHCPv6). The protocol enables DHCPv6 servers to pass configuration parameters such as IPv6 network addresses to IPv6 nodes.
Option : IA_NA (3), Length : 40
IAID : 1
Time1: 1800 seconds
Time2: 2880 seconds
Option : IAADDR (5), Length : 24
Address : 2001:DB8:B001:101::1
Preferred Lifetime : 3600 seconds
Valid Lifetime : 86400 seconds
Option : IA_PD (25), Length : 41
IAID : 1
Time1: 1800 seconds
Time2: 2880 seconds
Option : IAPREFIX (26), Length : 25
Prefix : 2001:DB8:A001:100::/56
Preferred Lifetime : 3600 seconds
Valid Lifetime : 86400 seconds
A:BNG-1# configure subscriber-mgmt
A:BNG-1>config>subscr-mgmt# info
----------------------------------------------
authentication-policy "radius-1" create
description "Radius authentication policy"
password <encrypted password>
radius-authentication-server
router "Base"
server 1 address 172.16.1.1 secret <encrypted secret>
exit
exit
sla-profile "sla-profile-1" create
exit
sub-profile "sub-profile-1" create
exit
sub-ident-policy "sub-ident-1" create
sub-profile-map
use-direct-map-as-default
exit
sla-profile-map
use-direct-map-as-default
exit
exit
----------------------------------------------
A:BNG-1>config>subscr-mgmt# exit all
A:BNG-1# configure service vprn 1
A:BNG-1>config>service>vprn# info
----------------------------------------------
vrf-import "import-1"
route-distinguisher 64496:1
auto-bind ldp
vrf-target export target:64496:1
subscriber-interface "sub-int-1" create
address 10.1.255.254/16
dhcp
gi-address 10.1.255.254
exit
group-interface "group-int-1" create
description "radius authentication and authorization"
ipv6
router-advertisements
managed-configuration
no shutdown
exit
dhcp6
proxy-server
no shutdown
exit
exit
exit
dhcp
server 172.16.0.1
trusted
lease-populate 10
no shutdown
exit
authentication-policy "radius-1"
sap 1/1/2:1 create
sub-sla-mgmt
sub-ident-policy "sub-ident-1"
multi-sub-sap 10
no shutdown
exit
exit
exit
ipv6
delegated-prefix-len 56
subscriber-prefixes
prefix 2001:DB8:A001::/48 pd
prefix 2001:DB8:B001:100::/56 wan-host
exit
exit
exit
service-name "dual-stack"
no shutdown
----------------------------------------------
A:BNG-1>config>service>vprn#
*A:BNG-1# configure subscriber-mgmt
*A:BNG-1>config>subscr-mgmt# info
----------------------------------------------
sla-profile "sla-profile-1" create
exit
sub-profile "sub-profile-1" create
radius-accounting-policy "aaa-policy"
exit
sub-ident-policy "sub-ident-1" create
sub-profile-map
use-direct-map-as-default
exit
sla-profile-map
use-direct-map-as-default
exit
strings-from-option 254
exit
local-user-db "ludb-1" create
dhcp
match-list mac
host "host-1" create
host-identification
mac 00:0a:bc:00:00:01
exit
address gi-address
identification-strings 254 create
subscriber-id "sub-1"
sla-profile-string "sla-profile-1"
sub-profile-string "sub-profile-1"
exit
options
subnet-mask 255.255.0.0
default-router 10.1.255.254
exit
ipv6-address 2001:DB8:B001:101::1
ipv6-prefix 2001:DB8:A001:100::/56
no shutdown
exit
exit
no shutdown
exit
----------------------------------------------
*A:BNG-1>config>subscr-mgmt# exit all
A:BNG-1# configure service vprn 1
A:BNG-1>config>service>vprn# info
----------------------------------------------
dhcp
local-dhcp-server "dhcp-s1" create
user-db "ludb-1"
use-gi-address
pool "pool-1" create
subnet 10.1.0.0/16 create
options
subnet-mask 255.255.0.0
default-router 10.1.255.254
exit
address-range 10.1.0.1 10.1.0.255
exit
exit
no shutdown
exit
exit
vrf-import "import-1"
route-distinguisher 64496:1
auto-bind ldp
vrf-target export target:64496:1
interface "dhcp-s1" create
address 192.0.2.1/32
local-dhcp-server "dhcp-s1"
loopback
exit
subscriber-interface "sub-int-1" create
address 10.1.255.254/16
dhcp
gi-address 10.1.255.254
exit
group-interface "group-int-2" create
description "Local user database authentication and authorization"
ipv6
router-advertisements
managed-configuration
no shutdown
exit
dhcp6
user-db "ludb-1"
proxy-server
no shutdown
exit
exit
exit
dhcp
server 192.0.2.1
trusted
lease-populate 10
no shutdown
exit
sap 1/1/2:2 create
sub-sla-mgmt
sub-ident-policy "sub-ident-1"
multi-sub-sap 10
no shutdown
exit
exit
exit
ipv6
delegated-prefix-len 56
subscriber-prefixes
prefix 2001:DB8:A001::/48 pd
prefix 2001:DB8:B001:100::/56 wan-host
exit
exit
exit
service-name "dual-stack"
no shutdown
----------------------------------------------
A:BNG-1>config>service>vprn#
IPv6 subscriber prefixes must be defined at the subscriber-interface <
sub-int-name>
ipv6 subscriber-prefixes context. Three types of prefixes can be configured:
•
|
wan-host — Prefix from which the IPv6 addresses are assigned that are to be used on the Routed Gateway WAN interface (network facing).
|
•
|
pd — Prefix from which the IPv6 Prefix Delegation prefixes are assigned that are to be used by the Routed Gateway for allocation in the home network (LAN interfaces).
|
•
|
pd wan-host (both) — Prefix from which both IPv6 addresses (wan-host) and IPv6 Prefix Delegation prefixes (pd) can be assigned. This requires that the delegated prefix length is set to 64 bits.
|
•
|
/64 for wan-host subscriber prefixes
|
The delegated prefix length is configured in the subscriber-interface <
sub-int-name>
ipv6 context. The recommended value by Broadband Forum standards is /56 (default =
/64) [ref. WT-177 - IPv6 in the context of TR-101]. The configured length applies to all
pd subscriber prefixes on a subscriber-interface.
Table 30 provides an overview of the subscriber-prefix parameters that apply:
The DHCPv6 proxy server must be enabled in the subscriber-interface <
sub-int-name>
group-interface <
group-int-name>
ipv6 dhcp6 proxy-server context. The default is
shutdown.
service
vprn 1 customer 1 create
subscriber-interface "sub-int-1" create
group-interface "group-int-1" create
ipv6
dhcp6
proxy-server
renew-timer 1800 # default
rebind-timer 2880 # default
valid-lifetime 86400 # default
preferred-lifetime 3600 # default
client-applications dhcp # default
no shutdown
exit
service
vprn 1 customer 1 create
subscriber-interface "sub-int-1" create
group-interface "group-int-1" create
ipv6
router-advertisements
managed-configuration
no shutdown
exit
service
vprn 1 customer 1 create
subscriber-interface "sub-int-1" create
group-interface "group-int-1" create
ipv6
router-advertisements
shutdown
current-hop-limit 64
no managed-configuration
max-advertisement 1800
min-advertisement 900
no mtu
no other-stateful-configuration
prefix-options
no autonomous
preferred-lifetime 3600
valid-lifetime 86400
exit
reachable-time 0
retransmit-time 0
router-lifetime 4500
exit
subscriber-mgmt
authentication-policy "radius-1" create
description "Radius authentication policy"
password <hashed password> hash2
radius-authentication-server
router "Base"
server 1 address 172.16.1.1 secret <hashed secret> hash2
exit
exit
vprn 1 customer 1 create
subscriber-interface "sub-int-1" create
group-interface "group-int-1" create
authentication-policy "radius-1"
00:0a:bc:00:00:01 Auth-Type := Local, Cleartext-Password := "password"
Alc-Subsc-ID-Str = "sub-1",
Alc-Subsc-Prof-Str = "sub-profile-1",
Alc-SLA-Prof-Str = "sla-profile-1",
Alc-IPv6-Address = 2001:db8:b001:101::1,
Delegated-IPv6-Prefix = 2001:db8:a001:100::/56,
Alc-Ipv6-Primary-DNS = 2001:db8:dddd:1::1,
Alc-Ipv6-Secondary-DNS = 2001:db8:dddd:2::1
subscriber-mgmt
local-user-db "ludb-1" create
dhcp
match-list mac
host "host-1" create
host-identification
mac 00:0a:bc:00:00:01
exit
address gi-address # IPv4 host
identification-strings 254 create
subscriber-id "sub-1"
sla-profile-string "sla-profile-1"
sub-profile-string "sub-profile-1"
exit
options
subnet-mask 255.255.0.0 # IPv4 host
default-router 10.1.255.254 # IPv4 host
exit
ipv6-address 2001:DB8:B001:101::1 # IPv6 host
ipv6-prefix 2001:DB8:A001:100::/56 # IPv6 host
no shutdown
exit
exit
no shutdown
exit
exit
vprn 1 customer 1 create
subscriber-interface "sub-int-1" create
group-interface "group-int-2" create
ipv6
dhcp6
user-db "ludb-1"
DHCPv4 lease state population is enabled by default on a group-interface with DHCP configured as no shutdown. The number of DHCPv4 leases allowed on each SAP of the group-interface must be configured with the
lease-populate option (by default a single DHCPv4 host is allowed on each SAP of the group-interface).
configure
service
vprn 1 customer 1 create
subscriber-interface "sub-int-1" create
group-interface "group-int-1" create
ipv6
dhcp6
proxy-server
no shutdown
exit
exit
exit
dhcp
server 172.16.0.1
trusted
lease-populate 10
no shutdown
exit
*A:BNG-1# show service id 1 dhcp lease-state ?
- lease-state [wholesaler <service-id>] [sap <sap-id>|sdp <sdp-id:vc-id>|
interface <interface-name>|ip-address <ip-address[/mask]>|chaddr
<ieee-address>|mac <ieee-address>|{[port <port-id>] [no-inter-dest-id |
inter-dest-id <inter-dest-id>]}] [detail]
*A:BNG-1# show service id 1 dhcp6 lease-state detail
===============================================================================
DHCP lease states for service 1
===============================================================================
Service ID : 1
IP Address : 2001:DB8:A001:100::/56
Client HW Address : 00:0a:bc:00:00:01
Subscriber-interface : sub-int-1
Group-interface : group-int-1
SAP : 1/1/2:1
Remaining Lifetime : 23h59m49s
Persistence Key : 0x0000004d
Sub-Ident : "sub-1"
Sub-Profile-String : "sub-profile-1"
SLA-Profile-String : "sla-profile-1"
App-Profile-String : ""
Lease ANCP-String : ""
Lease Int Dest Id : ""
Category-Map-Name : ""
Dhcp6 ClientId (DUID): 00010001133ebdd2000c29c851ca
Dhcp6 IAID : 1
Dhcp6 IAID Type : prefix
Dhcp6 Client Ip : FE80::20A:BCFF:FE00:1
Primary-Dns : 2001:DB8:DDDD:1::1
Secondary-Dns : 2001:DB8:DDDD:2::1
Sub-Ident origin : Radius
Strings origin : Radius
Lease Info origin : Radius
ServerLeaseStart : 09/02/2010 16:13:11
ServerLastRenew : 09/02/2010 16:13:11
ServerLeaseEnd : 09/03/2010 16:13:11
Radius User-Name : "00:0a:bc:00:00:01"
-------------------------------------------------------------------------------
Service ID : 1
IP Address : 2001:DB8:B001:101::1/128
Client HW Address : 00:0a:bc:00:00:01
Subscriber-interface : sub-int-1
Group-interface : group-int-1
SAP : 1/1/2:1
Remaining Lifetime : 23h59m49s
Persistence Key : 0x0000004c
Sub-Ident : "sub-1"
Sub-Profile-String : "sub-profile-1"
SLA-Profile-String : "sla-profile-1"
App-Profile-String : ""
Lease ANCP-String : ""
Lease Int Dest Id : ""
Category-Map-Name : ""
Dhcp6 ClientId (DUID): 00010001133ebdd2000c29c851ca
Dhcp6 IAID : 1
Dhcp6 IAID Type : non-temporary
Dhcp6 Client Ip : FE80::20A:BCFF:FE00:1
Primary-Dns : 2001:DB8:DDDD:1::1
Secondary-Dns : 2001:DB8:DDDD:2::1
Sub-Ident origin : Radius
Strings origin : Radius
Lease Info origin : Radius
ServerLeaseStart : 09/02/2010 16:13:11
ServerLastRenew : 09/02/2010 16:13:11
ServerLeaseEnd : 09/03/2010 16:13:11
Radius User-Name : "00:0a:bc:00:00:01"
-------------------------------------------------------------------------------
Number of lease states : 2
===============================================================================
*A:BNG-1#
*A:BNG-1# show service active-subscribers
===============================================================================
Active Subscribers
===============================================================================
-------------------------------------------------------------------------------
Subscriber sub-1 (sub-profile-1)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
(1) SLA Profile Instance sap:1/1/2:1 - sla:sla-profile-1
-------------------------------------------------------------------------------
IP Address
MAC Address PPPoE-SID Origin
--------------------------------------------------------
10.1.0.3
00:0a:bc:00:00:01 N/A DHCP
2001:DB8:A001:100::/56
00:0a:bc:00:00:01 N/A IPoE-DHCP6
2001:DB8:B001:101::1/128
00:0a:bc:00:00:01 N/A IPoE-DHCP6
-------------------------------------------------------------------------------
Number of active subscribers : 1
===============================================================================
*A:BNG-1#
The optional hierarchy parameter for the active-subscribers display provides a top-down level overview for this subscriber:
*A:BNG-1# show service active-subscribers hierarchy
===============================================================================
Active Subscriber hierarchy
===============================================================================
-- sub-1 (sub-profile-1)
|
|-- sap:1/1/2:1 - sla:sla-profile-1
| |
| |-- 10.1.0.3
| | 00:0a:bc:00:00:01 - N/A (DHCP)
| |
| |-- 2001:DB8:A001:100::/56
| | 00:0a:bc:00:00:01 - N/A (IPoE-DHCP6)
| |
| |-- 2001:DB8:B001:101::1/128
| | 00:0a:bc:00:00:01 - N/A (IPoE-DHCP6)
| |
===============================================================================
A:BNG-1#
subscriber-mgmt
sla-profile "sla-profile-1" create
host-limit 3
exit
A:BNG-1# show router 1 route-table ipv4 protocol sub-mgmt
===============================================================================
Route Table (Service: 1)
===============================================================================
Dest Prefix Type Proto Age Pref
Next Hop[Interface Name] Metric
-------------------------------------------------------------------------------
10.1.0.3/32 Remote Sub Mgmt 00h01m44s 0
[group-int-1] 0
-------------------------------------------------------------------------------
No. of Routes: 1
===============================================================================
A:BNG-1#
A:BNG-1# show router 1 route-table ipv6 protocol sub-mgmt
===============================================================================
IPv6 Route Table (Service: 1)
===============================================================================
Dest Prefix Type Proto Age Pref
Next Hop[Interface Name] Metric
-------------------------------------------------------------------------------
2001:DB8:A001:100::/56 Remote Sub Mgmt 00h01m50s 0
[group-int-1] 0
2001:DB8:B001:101::1/128 Remote Sub Mgmt 00h01m50s 0
[group-int-1] 0
-------------------------------------------------------------------------------
No. of Routes: 2
===============================================================================
A:BNG-1#
A:BNG-1# show log log-id 99
debug
router "1"
ip
dhcp # DHCPv4
detail-level medium
mode egr-ingr-and-dropped
exit
dhcp6 # DHCPv6
mode egr-ingr-and-dropped
detail-level high # needed to see the option content
exit
exit
local-dhcp-server dhcp-s1 # local dhcp server
detail-level medium
mode egr-ingr-and-dropped
exit
exit
subscriber-mgmt
local-user-db ludb-1 # local user database
detail all
exit
exit
radius detail # RADIUS
exit
A:BNG-1# show router 1 dhcp statistics
====================================================================
DHCP Global Statistics (Service: 1)
====================================================================
Rx Packets : 3192
Tx Packets : 3177
Rx Malformed Packets : 0
Rx Untrusted Packets : 0
Client Packets Discarded : 0
Client Packets Relayed : 737
Client Packets Snooped : 860
Client Packets Proxied (RADIUS) : 0
Client Packets Proxied (Lease-Split) : 0
Server Packets Discarded : 15
Server Packets Relayed : 733
Server Packets Snooped : 847
DHCP RELEASEs Spoofed : 0
DHCP FORCERENEWs Spoofed : 0
====================================================================
A:BNG-1#
*A:BNG-1# show router 1 dhcp6 statistics
===========================================================================
DHCP6 statistics (Router: 1)
===========================================================================
Msg-type Rx Tx Dropped
---------------------------------------------------------------------------
1 SOLICIT 3 0 0
2 ADVERTISE 0 3 0
3 REQUEST 3 0 0
4 CONFIRM 0 0 0
5 RENEW 313 0 6
6 REBIND 0 0 0
7 REPLY 0 312 0
8 RELEASE 2 0 0
9 DECLINE 0 0 0
10 RECONFIGURE 0 0 0
11 INFO_REQUEST 0 0 0
12 RELAY_FORW 0 0 0
13 RELAY_REPLY 0 0 0
---------------------------------------------------------------------------
Dhcp6 Drop Reason Counters :
---------------------------------------------------------------------------
1 Dhcp6 oper state is not Up on src itf 0
2 Dhcp6 oper state is not Up on dst itf 0
3 Relay Reply Msg on Client Itf 0
4 Hop Count Limit reached 0
5 Missing Relay Msg option, or illegal msg type 0
6 Unable to determine destination client Itf 0
7 Out of Memory 0
8 No global Pfx on Client Itf 0
9 Unable to determine src Ip Addr 0
10 No route to server 0
11 Subscr. Mgmt. Update failed 6
12 Received Relay Forw Message 0
13 Packet too small to contain valid dhcp6 msg 0
14 Server cannot respond to this message 0
15 No Server Id option in msg from server 0
16 Missing or illegal Client Id option in client msg 0
17 Server Id option in client msg 0
18 Server DUID in client msg does not match our own 0
19 Client sent message to unicast while not allowed 0
20 Client sent message with illegal src Ip address 0
21 Client message type not supported in pfx delegation 0
22 Nbr of addrs or pfxs exceeds allowed max (128) in msg 0
23 Unable to resolve client's mac address 0
24 The Client was assigned an illegal address 0
25 Illegal msg encoding 0
26 Client message not supported 0
27 IA options in info request 0
28 No IA option in client msg 0
29 No addresses in confirm msg 0
===========================================================================
A:BNG-1#
*A:BNG-1# show subscriber-mgmt authentication "radius-1" statistics
===============================================================================
Authentication Policy Statistics
===============================================================================
-------------------------------------------------------------------------------
Policy name : radius-1
subscriber packets authenticated : 16
subscriber packets rejected : 0
-------------------------------------------------------------------------------
radius server requests requests requests requests requests requests
idx IP-address accepted rejected no reply md5 failed pending send failed
-------------------------------------------------------------------------------
1 172.16.1.1 16 0 0 0 0 0
===============================================================================
A:BNG-1#
service
vpls 2 customer 1 create
sap 1/1/2:* capture-sap create
trigger-packet dhcp dhcp6
authentication-policy "radius-1"
exit
no shutdown
exit
configure
system
persistence
subscriber-mgmt
description "DHCP lease state persistency"
location cf2:
exit
exit
*A:BNG-1# file dir cf2:
Volume in drive cf2 on slot A has no label.
Volume in drive cf2 on slot A is formatted as FAT32.
Directory of cf2:\
09/02/2010 01:27p 536871424 submgmt.006
1 File(s) 536871424 bytes.
0 Dir(s) 1558183424 bytes free.
*A:BNG-1# tools perform subscriber-mgmt downgrade ?
- downgrade target-version <target> [reboot]
<target> : The version you want to downgrade to
8.0 (current) - submgmt.006
7.0 - submgmt.005
6.0 - submgmt.004
5.0 - submgmt.003
4.0 - submgmt.pst
<reboot> : reboot system after successful conversion
*A:BNG-1# show service id 1 dhcp6 lease-state detail
===============================================================================
DHCP lease states for service 1
===============================================================================
Service ID : 1
IP Address : 2001:DB8:A001:100::/56
Client HW Address : 00:0a:bc:00:00:01
Subscriber-interface : sub-int-1
Group-interface : group-int-1
SAP : 1/1/2:1
Remaining Lifetime : 23h49m47s
Persistence Key : 0x0000004d
- - - snip - - -
*A:BNG-1# tools dump persistence submgt record 0x0000004d
-----------------------------------
Persistency File Record
-----------------------------------
Filename : cf2:\submgmt.006
Key : 0000004d
Last Update : 2010/09/02 16:13:12 (UTC)
Action : ADD
Data :
Host Type : IpV6 node address
Service ID : 1
SAP ID : 1/1/2:1
IP : 2001:DB8:A001:100::/56
NH MAC : 00:0a:bc:00:00:01
Created : 2010/09/02 16:13:11 (UTC)
Session Timeout: 0 (seconds)
Sub-ID : sub-1
Sub-prof-ID : sub-profile-1
SLA-prof-ID : sla-profile-1
App-prof-ID : NULL
ANCP-Str : NULL
Int-dest-ID : NULL
Cat-map-str : NULL
Sub-Id is def : NO
Int-dest is def: YES
Address Origin : 1
SubId Origin : 1
Strings Origin : 1
RADIUS Fallback: NO
Managed routes : None
BgpPrngPlcyAttr: None
Class Attr : 1 bytes
Radius Username: 00:0a:bc:00:00:01
Pri. IPv6 DNS : 2001:DB8:DDDD:1::1
Sec. IPv6 DNS : 2001:DB8:DDDD:2::1