Figure 327 shows a bridged RGW scenario. Subscriber-1has two devices, device-1 and device-2. Device-1 is a dual stack PPPoE device and is assigned an IPv4 address for host-1 and an IPv6 SLAAC prefix for host-2, both running over a single PPPoE session. Device-2 is a single stack IPoE device and is assigned an IPv4 address for host-3.
Figure 328 shows a routed dual stack RGW scenario. Subscriber-2 has two devices but they are hidden behind the RGW. The IP-addresses used by these devices are not known by the BNG. The RGW contains three hosts:
Figure 329 shows two objects closely related to subscribers and subscriber hosts:
configure
subscriber-mgmt
sla-profile "sla-prof-1" create
ingress
qos 100
exit
exit
egress
qos 100
exit
exit
exit
configure
subscriber-mgmt
sub-profile "sub-prof-1" create
ingress
policer-control-policy "pol-ctrl-1"
exit
exit
egress
scheduler-policy "down-1"
exit
exit
exit
configure
service
ies 1
subscriber-interface "sub-int-1"
group-interface "grp-int-1-1"
sap 1/1/1:101 create
description "data SAP for DLSAM-1"
sub-sla-mgmt
multi-sub-sap 400
--- snip ---
no shutdown
exit
exit
configure
subscriber-mgmt
sub-ident-policy "sub-id-pol-1" create
description "direct mapping policy"
sub-profile-map
use-direct-map-as-default
exit
sla-profile-map
use-direct-map-as-default
exit
app-profile-map
use-direct-map-as-default
exit
exit
configure
subscriber-mgmt
sub-ident-policy "sub-id-pol-2" create
description "explicit mapping policy"
sub-profile-map
entry key "sub-string-1" sub-profile "sub-prof-1"
entry key "sub-string-2" sub-profile "sub-prof-2"
entry key "sub-string-3" sub-profile "sub-prof-3"
exit
sla-profile-map
entry key "sla-string-1" sla-profile "sla-prof-1"
entry key "sla-string-2" sla-profile "sla-prof-2"
entry key "sla-string-21" sla-profile "sla-prof-20"
entry key "sla-string-22" sla-profile "sla-prof-20"
exit
exit
configure
service
ies 1
subscriber-interface "sub-int-1" create
--- snip ---
group-interface "grp-int-1-1" create
--- snip ---
sap 1/1/1:111 create
sub-sla-mgmt
def-sub-profile "sub-prof-1"
def-sla-profile "sla-prof-1"
sub-ident-policy "sub-id-pol-1"
multi-sub-sap 400
no shutdown
exit
exit
exit
exit
Multiple ESM data sources from Figure 330 can be consulted for instantiating a subscriber host. When multiple ESM data sources are used, they are accessed in following sequence:
configure
service
ies 1
subscriber-interface "sub-int-1-1"
group-interface "grp-int-1-1"
sap 1/1/1:111 create
sub-sla-mgmt
def-sub-profile "sub-prof-1"
def-sla-profile "sla-prof-1"
sub-ident-policy "sub-id-pol-1"
multi-sub-sap 400
no shutdown
exit
In the example shown in Figure 331, a unique IP address is retrieved from LUDB/RADIUS. No interaction with a DHCP server is needed at all.
DHCP clients require a DHCP server address in the DHCP messages, and as such a server-id (IPv6) and/or an
emulated-server (IPv4) must be configured, see the example below. IPCP and SLAAC do not require a DHCP server so these commands can be omitted.
configure
service
ies 1
subscriber-interface "sub-int-1" create
--- snip ---
group-interface "grp-int-1-1" create
ipv6
dhcp6
--- snip ---
proxy-server
server-id duid-ll
client-applications dhcp ppp
no shutdown
exit
exit
exit
arp-populate
dhcp
proxy-server
emulated-server 10.1.1.254
no shutdown
exit
--- snip ---
exit
In the example shown in Figure 332, the IPv4/IPv6 address/prefix is obtained from a DHCP server, using a pool-name as returned by LUDB/RADIUS.
•
|
gi-address – The gateway IPv4-address used by the relay-agent.
|
•
|
server - The DHCP server IPv4-address, 10.11.11.11 in the example.
|
•
|
option – The options added/removed to/from messages towards the server. In the example the circuit-id, the remote-id and the pool-name are added.
|
•
|
trusted – This parameter ensures that DHCP messages with option 82 included and the gi-address set to zero are being processed instead of being dropped.
|
•
|
server - The DHCP server IPv6 address, 2001:DB8::11 in the example.
|
configure
service
ies 1
subscriber-interface "sub-int-1"
--- snip ---
group-interface "grp-int-1-1"
ipv6
--- snip ---
dhcp6
relay
server 2001:DB8::11
client-applications dhcp ppp
no shutdown
exit
exit
exit
dhcp
option
action replace
circuit-id
remote-id
vendor-specific-option
pool-name
exit
exit
server 10.11.11.1
trusted
lease-populate 100
client-applications dhcp ppp
gi-address 10.1.1.254
no shutdown
exit
In the example shown in Figure 333 LUDB/RADIUS returns a pool-name which is resolved into an IP address using Local Address Assignment (LAA). LAA is implemented using a procedure call to an internal DHCP server, and not through the typical DHCPv4 DORA or DHCPv6 SARR sequence.
•
|
server – The internal DHCPv4 server to contact, identified by name.
|
•
|
default-pool – Defines the pool name to use in case neither the LUDB nor the RADIUS server provides a pool-name.
|
•
|
server – the DHCPv6 server to contact, identified by name.
|
configure
service
ies 1
subscriber-interface "sub-int-1" create
--- snip ---
group-interface "grp-int-1-1" create
local-address-assignment
server "int-dhcp-v4"
client-application ppp-v4
default-pool "pool4-2"
ipv6
server "int-dhcp-v6"
client-application ppp-slaac ipoe-wan
exit
no shutdown
exit
configure
service
ies 1
subscriber-interface "sub-int-1"
group-interface "grp-int-1-1"
sap 1/1/1:111
description "sap for customer 1"
static-host ip 10.1.1.101 create
sla-profile "sla-prof-2"
sub-profile "sub-prof-2"
subscriber 03-7654321
no shutdown
exit
exit
The following command shows the details for a single static host. The forwarding state is Not Fwding, meaning that no traffic can be forwarded to and from that host in this state.
*A:BNG# show service id 1 static-host ip-address 10.1.1.101 detail
===============================================================================
Static Hosts for service 1
===============================================================================
Sap IP Address Configured MAC Dynamic MAC
Subscriber Admin State Fwding State
-------------------------------------------------------------------------------
1/1/1:111 10.1.1.101 N/A N/A
03-7654321 Up Not Fwding
-------------------------------------------------------------------------------
Subscriber-interface : sub-int-1
Group-interface : grp-int-1-1
Sub Profile : sub-prof-2
SLA Profile : sla-prof-2
App Profile : N/A
-------------------------------------------------------------------------------
Number of static hosts : 1
===============================================================================
*A:BNG# #
*A:BNG# show service id 1 static-host
===============================================================================
Static Hosts for service 1
===============================================================================
Sap IP Address Configured MAC Dynamic MAC
Subscriber Admin State Fwding State
-------------------------------------------------------------------------------
1/1/1:111 10.1.1.101 N/A 00:00:00:99:99:99
03-7654321 Up Fwding
-------------------------------------------------------------------------------
Number of static hosts : 1
===============================================================================
*A:BNG# #
00:00:00:22:22:22 Auth-Type := Local, Cleartext-Password := ""
Alc-Subsc-ID-Str = "sub-22",
Alc-Subsc-Prof-Str = "sub-string-1",
Alc-SLA-Prof-Str = "sla-string-1"
BSAN64|40|1/1/2:300 Auth-Type := Local, User-Password == "LetMeIn"
Alc-Subsc-ID-Str = "subscriber-300",
Alc-Subsc-Prof-Str = "subpro1-string",
Alc-SLA-Prof-Str = "slapro1-string",
Session-Timeout = 600
sub202@provider Cleartext-Password := "sub202"
Alc-Subsc-ID-Str = "sub-44",
Alc-Subsc-Prof-Str = "sub-string-3",
Alc-SLA-Prof-Str = "sla-string-22",
Framed-IP-Address = 10.2.1.202,
Framed-IP-Netmask = 255.255.255.0
configure
router
radius-server
server "server-1" address 192.168.202.84 secret secret-1 create
exit
configure
aaa
radius-server-policy "rad-serv-pol-1" create
description "Radius AAA server policy"
servers
router "Base"
server 1 name "server-1"
exit
exit
configure
subscriber-mgmt
authentication-policy "auth-pol-1" create
pppoe-access-method pap-chap
include-radius-attribute
circuit-id
remote-id
exit
radius-server-policy "rad-serv-pol-1"
configure
service
ies 1
subscriber-interface "sub-int-1"
group-interface "grp-int-1-1"
-- snip --
authentication-policy "auth-pol-1"
-- snip –
exit
group-interface "grp-int-1-2"
-- snip --
authentication-policy "auth-pol-1"
-- snip –
exit
A:BNG# show service id 1 dhcp lease-state mac 00:00:00:22:22:22 detail
===============================================================================
DHCP lease states for service 1
===============================================================================
Service ID : 1
IP Address : 10.1.1.9
Client HW Address : 00:00:00:22:22:22
Subscriber-interface : sub-int-1
Group-interface : grp-int-1-1
SAP : 1/1/1:112
Up Time : 0d 00:03:30
Remaining Lease Time : 9d 23:56:30
Remaining SessionTime: N/A
Persistence Key : N/A
Sub-Ident : "sub-22"
Sub-Profile-String : "sub-string-2" # profile string before translation
SLA-Profile-String : "sla-string-2" # profile string before translation
App-Profile-String : ""
Lease ANCP-String : ""
Lease Int Dest Id : ""
Category-Map-Name : ""
--- snip ---
Lease-Time : 10d 00:00:00
DHCP Server Addr : 10.11.11.1
Radius User-Name : "00:00:00:22:22:22"
-------------------------------------------------------------------------------
Number of lease states : 1
===============================================================================
A:BNG#
*A:BNG# show service id 1 subscriber-hosts mac 00:00:00:22:22:22 detail
=============================================================
Subscriber Host table
=============================================================
Sap Subscriber
IP Address
MAC Address PPPoE-SID Origin Fwding State
-------------------------------------------------------------
1/1/1:112 sub-22
10.1.1.6
00:00:00:22:22:22 N/A DHCP Fwding
-------------------------------------------------------------
Subscriber-interface : sub-int-1
Group-interface : grp-int-1-1
Sub Profile : sub-prof-2 # profile name after translation
SLA Profile : sla-prof-2 # profile name after translation
App Profile : N/A
Egress Q-Group : N/A
--- snip ---
-------------------------------------------------------------
Number of subscriber hosts : 1
=============================================================
*A:BNG#
*A:BNG# show service id 1 ppp session user-name sub202@provider detail
===============================================================================
PPP sessions for service 1
==============================================================================
User-Name : sub202@provider
Description : svc:1 sap:1/1/1:212 mac:00:00:00:44:44:44 sid:1
Up Time : 0d 00:17:13
Type : oE
Termination : local
IP/L2TP-Id/If-Id : 10.2.1.202
MC-Standby : No
Session Time Left : N/A
--- snip ---
Subscriber : "sub-44"
Sub-Profile-String : "sub-string-3" # profile string before translation
SLA-Profile-String : "sla-string-22" # profile string before translation
ANCP-String : ""
Int-Dest-Id : ""
App-Profile-String : ""
Category-Map-Name : ""
--- snip ---
Radius Class :
Radius User-Name : sub202@provider
--- snip ---
-------------------------------------------------------------------------------
No. of sessions: 1
===============================================================================
*A:BNG# #
*A:BNG# show service id 1 subscriber-hosts mac 00:00:00:44:44:44 detail
=============================================================
Subscriber Host table
=============================================================
Sap Subscriber
IP Address
MAC Address PPPoE-SID Origin Fwding State
-------------------------------------------------------------
1/1/1:212 sub-44
10.2.1.202
00:00:00:44:44:44 1 IPCP Fwding
-------------------------------------------------------------
Subscriber-interface : sub-int-2
Group-interface : grp-int-2-1
Sub Profile : sub-prof-3 # profile name after translation
SLA Profile : sla-prof-20 # profile name after translation
App Profile : N/A
--- snip ---
-------------------------------------------------------------
Number of subscriber hosts : 1
=============================================================
*A:BNG#
The example below defines an LUDB named ludb-1 which matches DHCP hosts by means of MAC address, and PPP hosts by means of username.
configure
subscriber-mgmt
local-user-db "ludb-1" create
dhcp
match-list mac
host "host-121" create
host-identification
mac 00:00:00:aa:aa:aa
exit
address 10.1.1.121
identification-strings 254 create
subscriber-id "sub-121"
sla-profile-string "sla-string-3"
sub-profile-string "sub-string-2"
exit
options
subnet-mask 255.255.255.0
default-router 10.1.1.254
exit
ipv6-wan-address-pool "pool6-2"
ipv6-delegated-prefix-pool "pool6-2"
no shutdown
exit
host "host-122" create
host-identification
mac 00:00:00:bb:bb:bb
exit
auth-policy "auth-pol-1"
no shutdown
exit
exit
ppp
match-list username
host "host-123" create
host-identification
username "user@domain"
exit
address 10.1.1.123/32
password pap user
identification-strings 254 create
subscriber-id "sub-123"
sla-profile-string "sla-string-3"
sub-profile-string "sub-string-1"
exit
no shutdown
exit
exit
no shutdown
exit
The following example shows the LUDB named ludb-1 applied to group-interface
grp-int-1-2 in the dhcp and the pppoe context.
configure
service
ies 1
subscriber-interface "sub-int-1"
address 10.1.1.254/24
address 10.1.2.254/24
group-interface "grp-int-1-2"
dhcp
--- snip ---
gi-address 10.1.1.254
user-db "ludb-1"
no shutdown
exit
no authentication-policy
sap 1/1/1:121 create
sub-sla-mgmt
def-sub-profile "sub-prof-1"
def-sla-profile "sla-prof-1"
sub-ident-policy "sub-id-pol-1"
multi-sub-sap
no shutdown
exit
exit
sap 1/1/1:122 create
sub-sla-mgmt
def-sub-profile "sub-prof-1"
def-sla-profile "sla-prof-1"
sub-ident-policy "sub-id-pol-1"
multi-sub-sap
no shutdown
exit
exit
pppoe
session-limit 100
user-db "ludb-1"
no shutdown
exit
exit
For host-121, with MAC-address 00:00:00:aa:aa:aa, all ESM data is provided by the LUDB. The detailed DHCP lease state shows the actual profile strings, the subscriber-ID and the IP address used. The Lease Info origin is set to UserDb.
A:BNG# show service id 1 dhcp lease-state mac 00:00:00:aa:aa:aa detail
===============================================================================
DHCP lease states for service 1
===============================================================================
Service ID : 1
IP Address : 10.1.1.121
Client HW Address : 00:00:00:aa:aa:aa
Subscriber-interface : sub-int-1
Group-interface : grp-int-1-2
SAP : 1/1/1:121
--- snip ---
Sub-Ident : "sub-121"
Sub-Profile-String : "sub-string-2"
SLA-Profile-String : "sla-string-3"
--- snip ---
Lease Info origin : UserDb
--- snip ---
Ip-Netmask : 255.255.255.0
Broadcast-Ip-Addr : 10.1.1.255
Default-Router : 10.1.1.254
Primary-Dns : N/A
Secondary-Dns : N/A
--- snip ---
Relay Agent Information
Circuit Id : BNG|1|grp-int-1-2|1/1/1:121
Radius User-Name : ""
-------------------------------------------------------------------------------
Number of lease states : 1
===============================================================================
*A:BNG#
*A:BNG# show service id 1 dhcp6 lease-state mac 00:00:00:aa:aa:aa detail
===============================================================================
DHCP lease states for service 1
===============================================================================
Service ID : 1
IP Address : 2001:DB8:201::1/128
Client HW Address : 00:00:00:aa:aa:aa
Subscriber-interface : sub-int-1
Group-interface : grp-int-1-2
SAP : 1/1/1:121
--- snip ---
Sub-Ident : "sub-121"
Sub-Profile-String : "sub-string-2"
SLA-Profile-String : "sla-string-3"
--- snip ---
Pool Name : "pool6-2"
Dhcp6 Server Addr : 2001:DB8::11
--- snip ---
Lease Info origin : DHCP
--- snip ---
Radius User-Name : ""
-------------------------------------------------------------------------------
Service ID : 1
IP Address : 2001:DB8:202::/56
Client HW Address : 00:00:00:aa:aa:aa
Subscriber-interface : sub-int-1
Group-interface : grp-int-1-2
SAP : 1/1/1:121
--- snip ---
Sub-Ident : "sub-121"
Sub-Profile-String : "sub-string-2"
SLA-Profile-String : "sla-string-3"
--- snip ---
Pool Name : "pool6-2"
Dhcp6 Server Addr : 2001:DB8::11
--- snip ---
Lease Info origin : DHCP
--- snip ---
Radius User-Name : ""
-------------------------------------------------------------------------------
Number of lease states : 2
===============================================================================
*A:BNG#
Because only an authentication policy is defined for host-122, with MAC address 00:00:00:bb:bb:bb, the profile strings and the subscriber-ID are provided by the RADIUS server. The IP address is provided by the DHCP server. The Lease Info origin is set to DHCP.
A:BNG# show service id 1 dhcp lease-state mac 00:00:00:bb:bb:bb detail
===============================================================================
DHCP lease states for service 1
===============================================================================
Service ID : 1
IP Address : 10.1.1.5
Client HW Address : 00:00:00:bb:bb:bb
Subscriber-interface : sub-int-1
Group-interface : grp-int-1-2
SAP : 1/1/1:122
--- snip ---
Sub-Ident : "sub-122"
Sub-Profile-String : "sub-string-3"
SLA-Profile-String : "sla-string-1"
--- snip ---
Lease Info origin : DHCP
Ip-Netmask : 255.255.255.0
Broadcast-Ip-Addr : N/A
Default-Router : 10.1.1.254
--- snip ---
Lease-Time : 10d 00:00:00
DHCP Server Addr : 10.11.11.1
Relay Agent Information
Circuit Id : BNG|1|grp-int-1-2|1/1/1:122
Radius User-Name : "00:00:00:bb:bb:bb"
-------------------------------------------------------------------------------
Number of lease states : 1
===============================================================================
A:BNG#
For host-123, the subscriber-ID, the profile strings and the IP-address are provided by the LUDB. Similar to
host-121, no interaction with a RADIUS server is needed at all. The IP origin is set to local-user-db.
A:BNG# show service id 1 ppp session user-name "user@domain" detail
===============================================================================
PPP sessions for service 1
===============================================================================
User-Name : user@domain
Description : svc:1 sap:1/1/1:122 mac:00:00:00:cc:cc:cc sid:1
Up Time : 0d 00:46:10
Type : oE
-- snip --
PPP MTU : 1492
PPP Auth-Protocol : PAP
PPP User-Name : user@domain
Subscriber-interface : sub-int-1
Group-interface : grp-int-1-2
IP Origin : local-user-db
DNS Origin : none
NBNS Origin : none
Subscriber : "sub-123"
Sub-Profile-String : "sub-string-1"
SLA-Profile-String : "sla-string-3"
-- snip --
IP Address : 10.1.1.123/32
-- snip --
Circuit-Id :
Remote-Id :
Radius Session-TO : N/A
Radius Class :
Radius User-Name :
Logical-Line-Id :
-------------------------------------------------------------------------------
No. of sessions: 1
===============================================================================
A:BNG#
configure
subscriber-mgmt
sla-profile "sla-prof-3" create
host-limit 4
ingress
qos 100
exit
exit
egress
qos 100
exit
exit
exit
configure
service
ies 1
subscriber-interface "sub-int-1"
group-interface "grp-int-1-1"sub-sla-mgmt
sap 1/1/1:112 create
sub-sla-mgmt
def-sub-profile "sub-prof-1"
def-sla-profile "sla-prof-1"
sub-ident-policy "sub-id-pol-2"
multi-sub-sap
no shutdown
exit
exit
configure
service
ies 1
subscriber-interface "sub-int-1"
address 10.1.1.254/24
group-interface "grp-int-1-1"
dhcp
proxy-server
emulated-server 10.1.1.254
no shutdown
exit
server 10.11.11.1
trusted
lease-populate 100
client-applications dhcp ppp
gi-address 10.1.1.254
no shutdown
exit
configure
service
ies 1
subscriber-interface "sub-int-1"
group-interface "grp-int-1-1"
ppp
session-limit 50
exit
pppoe
session-limit 40
sap-session-limit 30
no shutdown
exit
configure
subscriber-mgmt
sla-profile "sla-prof-3" create
host-limit 4
ingress
qos 100
exit
ip-filter 1
ipv6-filter 1
exit
egress
qos 100
exit
ip-filter 2
ipv6-filter 2
exit
configure
subscriber-mgmt
radius-accounting-policy "rad-acct-pol-1" create
host-accounting interim-update
update-interval 5
include-radius-attribute
framed-ip-addr
sla-profile
sub-profile
exit
radius-accounting-server
router "Base"
server 1 address 192.168.202.84 secret secret-1
exit
radius-server-policy "rad-serv-pol-1"
exit
configure
subscriber-mgmt
sub-profile "sub-prof-1" create
radius-accounting-policy "rad-acct-pol-1"
ingress
policer-control-policy "pol-ctrl-1"
exit
exit
egress
scheduler-policy "down-1"
exit
exit
exit
configure
subscriber-mgmt
sub-profile "sub-prof-2" create
accounting-policy 10
collect-stats
ingress
scheduler-policy "sched-up-1"
exit
egress
scheduler-policy "sched-down-1"
exit
exit
exit
The collect-stats command activates the generation of accounting files.
configure
service
ies 1
subscriber-interface "sub-int-1"
group-interface "grp-int-1-1"
sap 1/1/1:111
description "sap for customer 1"
static-host ip 10.1.1.101 create
app-profile "app-prof-3"
sla-profile "sla-prof-2"
sub-profile "sub-prof-1"
subscriber 03-7654321
no shutdown
exit
exit
configure
service
ies 1
subscriber-interface "sub-int-1"
group-interface "grp-int-1-1"sub-sla-mgmt
sap 1/1/1:112 create
sub-sla-mgmt
def-sub-profile "sub-prof-1"
def-sla-profile "sla-prof-1"
def-app-profile "app-prof-1"
sub-ident-policy "sub-id-pol-2"
multi-sub-sap
no shutdown
exit
exit
configure
service
ies 1
subscriber-interface "sub-int-1"
group-interface "grp-int-1-1"
sap 1/1/1:111
description "sap for customer 1"
static-host ip 10.1.1.101 create
inter-dest-id "bsan-1"
sla-profile "sla-prof-2"
sub-profile "sub-prof-1"
subscriber 03-7654321
no shutdown
exit
exit