IPOE commands

subscriber-mgmt

Syntax

subscriber-mgmt

Context

config

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

Commands in this context configure subscriber management entities. A subscriber is uniquely identified by a subscriber identification string. Each subscriber can have one DHCP session active at any time. Each session is referred to as a subscriber host and is identified by its IP address and MAC address.

Note:

On 7210 SAS-K 2F6C4T, the 7x50 subscriber management CLI is inherited to allow users to configure a DHCP address for specific hosts when using DHCP server for local craft access. 7210 SAS platforms do not support subscriber management. In all the commands under this section, in the context of 7210 SAS usage, DHCP subscriber refers to an IP host requesting an IP address.

local-user-db

Syntax

local-user-db local-user-db-name [create]

Context

config>subscr-mgmt

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command configures a local user database.

Default

no local-user-db

Parameters

local-user-db-name

Specifies the name of a local user database.

create

Keyword to create the local user database.

ipoe

Syntax

ipoe

Context

config>subscr-mgmt>loc-user-db

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command configures IPoE host parameters.

mask

Syntax

mask type dhcp-match-type {[prefix-string prefix-string | prefix-length prefix-length] [suffix-string suffix-string | suffix-length suffix-length]}

no mask type dhcp-match-type

Context

config>subscr-mgmt>loc-user-db>ipoe

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command configures the mask.

Parameters

dhcp-match-type

Specifies up to four matching types to identify a host.

Values

DHCP: circuit-id, option60, remote-id, sap-id, string, system-id

PPP: circuit-id, remote-id, service-name, username

prefix-string prefix-string

Specifies a substring that is removed from the start of the incoming circuit ID before it is matched against the value configured in the DHCP or PPPOE circuit ID. This string can contain only printable ASCII characters. The ‟*” character is a wildcard that matches any substring. If a ‟\” character is masked, use the escape key so it becomes ‟\\”.

Values

127 characters maximum

prefix-length prefix-length

Specifies the number of characters to remove from the start of the incoming circuit ID before it is matched against the value configured in the DHCP circuit ID.

Values

1 to 127

suffix-string suffix-string

Specifies a substring that is removed from the end of the incoming circuit ID before it is matched against the value configured in DHCP circuit ID. This string can only contain printable ASCII characters. The ‟*” character is a wildcard that matches any substring. If a ‟\” character is masked, use the escape key so it becomes ‟\\”.

Values

127 characters maximum

suffix-length suffix-length

Specifies the number of characters to remove from the end of the incoming circuit ID before it is matched against the value configured in the DHCP circuit ID.

Values

1 to 127

host

Syntax

host host-name [create]

no host host-name

Context

config>subscr-mgmt>loc-user-db>ipoe

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command defines a DHCP subscriber.

Parameters

host-name

Specifies the host name.

create

Keyword used to create the host name. The create keyword requirement can be enabled or disabled in the environment>create context.

address

Syntax

address gi-address [scope scope]

address ip-address[/prefix-length]

address pool pool-name [secondary-pool sec-pool-name] [delimiter delimiter]

address use-pool-from-client [delimiter delimiter]

no address

Context

config>subscr-mgmt>loc-user-db>ipoe>host

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command configures the IP address definition for the host.

When the user database is from a local DHCP server, this command defines the IP address the server ‟offers” to the DHCP-client.

When the user database is used for PPPoE authentication, the gi-address parameter cannot be used. A fixed IP address then causes PPPoE to use this IP address. If no IP address is specified, the PPPoE looks for an IP address by other means (in this case, DHCP). If a pool name is specified, this pool is sent in the DHCP request so that it can be used by the DHCP server to determine which address to give to the host.

The no form of this command causes no IP address to be assigned to this host. In a user database referred to from a local DHCP server, creating a host without address information causes the matching client to never receive an IP address.

The no form of this command reverts to the default.

Default

no address

Parameters

gi-address

When specified, the gi-address of the DHCP message is taken to look for a subnet in the local DHCP server. The first available free address of the subnet is taken and ‟offered” to the host. When local-user-db is used for PPPoE authentication, this has the same result as no address.

ip-address

Specifies the fixed IP address to use for this host.

pool-name/sec-pool-name

Specifies the primary (and secondary) pool (in the local DHCP server) to use to search for an available address. The first available IP address from any subnet in the pool is used. When the local user database is used for PPPoE authentication, the specified pool name is sent to the DHCP server in a vendor-specific suboption under Option 82

use-pool-from-client

Specifies to use the pool-name in the Option 82 vendor-specific suboption.

delimiter delimiter

Specifies a single ASCII character as the delimiter to separate primary and secondary pool names in Option 82 VSO.

gi-address

Syntax

gi-address ip-address

no gi-address

Context

config>subscr-mgmt>loc-user-db>ipoe>host

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command configures the selection of GI addresses based on the host entry in local use database.

The gi-address must be a valid address (associated with an interface) within the routing context that received the DHCP message on the access side.

Default

no gi-address

Parameters

ip-address

Specifies the IPv4 GI address.

auth-domain-name

Syntax

auth-domain-name domain-name

no auth-domain-name

Context

config>subscr-mgmt>loc-user-db>ipoe>host

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command specifies the domain name that is appended to a user name in RADIUS-authentication-request messages for the specific host.

Parameters

domain-name

Specifies the domain name to be appended to a user name in RADIUS-authentication-request message for the specific host.

host-identification

Syntax

host-identification

Context

config>subscr-mgmt>loc-user-db>ipoe>host

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

Commands in this context configure host identification parameters.

server

Syntax

server ip-address

no server

Context

config>subscr-mgmt>loc-user-db>ipoe>host

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command configures the IP address of the DHCP server to which to relay.

The no form of this command removes the DHCP server IP address from the configuration.

The configured DHCP server IP address must reference one of the addresses configured under the DHCP CLI context of an IES or VPRN subscriber.

Default

no server

Parameters

ip-address

Specifies the IP address of the DHCP server.

circuit-id

Syntax

circuit-id string ascii-string

circuit-id hex hex-string

no circuit-id

Context

config>subscr-mgmt>loc-user-db>ipoe>host>host-ident

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command specifies the circuit ID to match.

Parameters

ascii-string

Specifies the circuit ID from the Option 82.

hex-string

Specifies the circuit ID in hexadecimal format from the Option 82.

Values

0x0 to 0xFFFFFFFF (maximum 254 hex nibbles)

encap-tag-range

Syntax

encap-tag-range start-tag start-tag end-tag end-tag

no encap-tag-range

Context

config>subscr-mgmt>loc-user-db>ipoe>host>host-ident

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command configures a range of encapsulation tags as the host identifications. The encapsulation tag is dot1q or qinq on an Ethernet port.

For dot1q, the start and end tag is single number, ranging from 0 ti 4094; for QinQ, the start and end tag format is x.y, x or y could be ‟*”, which indicates to ignore the inner or outer tag.

This command can be used only when encap-tag-range is configured as one of the match-list parameters.

The no form of this command removes the values from the configuration.

Parameters

start-tag start-tag

Specifies the value of the start label in the range of SAPs allowed on this host.

Values

start-tag

dot1q

qtag1

qinq

(qtag1.qtag2 | qtag1.* | *.qtag2)

qtag1

0 to 4094

qtag2

0 to 4094

vpi

0 to 4095 (NNI)

0 to 255 (UNI)

vci

1 to 65535

end-tag end-tag

Specifies the value of the end label in the range of SAPs allowed on this host.

Values

end-tag

dot1q

qtag1

qinq

(qtag1.qtag2 | qtag1.* | *.qtag2)

qtag1

0 to 4094

qtag2

0 to 4094

vpi

0 to 4095 (NNI)

0 to 255 (UNI)

vci

1 to 65535

mac

Syntax

mac ieee-address

no mac

Context

config>subscr-mgmt>loc-user-db>ipoe>host>host-ident

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command specifies the MAC address to match.

Parameters

ieee-address

Specifies the 48-bit MAC address in the form aa:bb:cc:dd:ee:ff or aa-bb-cc-dd-ee-ff, where aa, bb, cc, dd, ee, and ff are hexadecimal numbers.

option60

Syntax

option60 hex-string

no option60

Context

config>subscr-mgmt>loc-user-db>ipoe>host>host-ident

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command specifies the Vendor-Identifying Vendor Option to match. Option 60 is encoded as Type-Length-Value (TLV). The hex-string portion of Option 60 in the received DHCP request is used for matching. Only the first 32 bytes can be defined using this command. If Option 60 included in the message is longer, those bytes are ignored.

The no form of this command reverts to the default.

Default

no option60

Parameters

hex-string

Specifies the hex value of this option.

Values

0x0 to 0xFFFFFFFF(maximum 254 hex nibbles)

remote-id

Syntax

remote-id hex-string

remote-id ascii-string

no remote-id

Context

config>subscr-mgmt>loc-user-db>ipoe>host>host-ident

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command specifies the remote ID of the host.

The no form of this command reverts to the default value.

Default

no remote-id

Parameters

remote-id

Specifies the remote ID.

sap-id

Syntax

sap-id sap-id

no sap-id

Context

config>subscr-mgmt>loc-user-db>ipoe>host>host-ident

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command specifies the SAP ID from the Nokia vendor-specific suboption in Option 82 to match.

Parameters

sap-id

Specifies a SAP ID, up to 255 characters.

service-id

Syntax

service-id service-id

no service-id

Context

config>subscr-mgmt>loc-user-db>ipoe>host>host-ident

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command specifies an existing service ID from the Nokia vendor-specific suboption in Option 82 to match.

Parameters

service-id

Specifies an existing service ID.

Values

1 to 2147483647

string

Syntax

string string

no string

Context

config>subscr-mgmt>loc-user-db>ipoe>host>host-ident

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command specifies the string from the Nokia vendor-specific suboption in Option 82 to match.

Parameters

string

Specifies the string, up to 255 characters.

system-id

Syntax

system-id system-id

no system-id

Context

config>subscr-mgmt>loc-user-db>ipoe>host>host-ident

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command specifies the system ID from the Nokia vendor-specific suboption in Option 82 to match.

Parameters

system-id

Specifies the system ID, up to 255 characters.

options

Syntax

options

Context

config>subscr-mgmt>loc-user-db>ipoe>host

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

Commands in this context configure pool options. The options defined at the host level are overruled if the same option is defined at the local user database level.

custom-option

Syntax

custom-option option-number address [ip-address...(up to 4 max)]

custom-option option-number hex hex-string

custom-option option-number string ascii-string

no custom-option option-number

Context

config>subscr-mgmt>loc-user-db>ipoe>host>options

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command configures specific DHCP options. The options defined at the host level are overruled if the same option is defined at the local user database level.

The no form of this command removes the option from the configuration.

Parameters

option-number

Specifies the option number that the DHCP server uses to send the identification strings to the DHCP client.

Values

1 to 254

address ip-address

Specifies the IP address of this host.

hex hex-string

Specifies the hex value of this option.

Values

0x0 to 0xFFFFFFFF (maximum 254 hex nibbles)

string ascii-string

Specifies the value of this option, up to 127 characters.

default-router

Syntax

default-router ip-address [ip-address...(up to 4 max)]

no default-router

Context

config>subscr-mgmt>loc-user-db>ipoe>host>options

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command configures the IP address of the default router for a DHCP client. Up to four IP addresses can be specified.

The no form of this command removes the addresses from the configuration.

Parameters

ip-address

Specifies the IP address of the default router. This address must be unique within the subnet and specified in dotted decimal notation.

Values

a.b.c.d

dns-server

Syntax

dns-server address [ip-address...(up to 4 max)]

no dns-server

Context

config>subscr-mgmt>loc-user-db>ipoe>host>options

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command configures the IP address of the DNS server.

Parameters

ipv6-address

Specifies the IPv4 address of the DNS server. This address must be unique within the subnet and specified in dotted decimal notation.

Values

a.b.c.d

domain-name

Syntax

domain-name domain-name

no domain-name

Context

config>subscr-mgmt>loc-user-db>ipoe>host>options

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command configures the default domain for a DHCP client that the router uses to complete unqualified host names (without a dotted-decimal domain name).

The no form of this command removes the name from the configuration.

Parameters

domain-name

Specifies the domain name for the client, up to 127 characters.

lease-rebind-time

Syntax

lease-rebind-time [days days] [hrs hours] [min minutes] [sec seconds]

no lease-rebind-time

Context

config>subscr-mgmt>loc-user-db>ipoe>host>options

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command configures the time the client transitions to a rebinding state.

The no form of this command removes the time from the configuration.

Parameters

days

Specifies the number of days in the lease rebind time.

Values

0 to 3650

hours

Specifies the number of hours in the lease rebind time.

Values

0 to 23

minutes

Specifies the number of minutes in the lease rebind time.

Values

0 to 59

seconds

Specifies the number of seconds in the lease rebind time.

Values

0 to 59

lease-renew-time

Syntax

lease-renew-time [days days] [hrs hours] [min minutes] [sec seconds]

no lease-renew-time

Context

config>subscr-mgmt>loc-user-db>ipoe>host>options

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command configures the time the client transitions to a renew state.

The no form of this command removes the time from the configuration.

Parameters

days

Specifies the number of days in the lease renew time.

Values

0 to 3650

hours

Specifies the number of hours in the lease renew time.

Values

0 to 23

minutes

Specifies the number of minutes in the lease renew time.

Values

0 to 59

seconds

Specifies the number of seconds in the lease renew time.

Values

0 to 59

lease-time

Syntax

lease-time [days days] [hrs hours] [min minutes] [sec seconds]

no lease-time

Context

config>subscr-mgmt>loc-user-db>ipoe>host>options

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command configures the amount of time that the DHCP server grants to the DHCP client to use a particular IP address.

The no form of this command removes the lease time parameters from the configuration.

Parameters

days

Specifies the number of days in the lease time.

Values

0 to 3650

hours

Specifies the number of hours in the lease time.

Values

0 to 23

minutes

Specifies the number of minutes in the lease time.

Values

0 to 59

seconds

Specifies the number of seconds in the lease time.

Values

0 to 59

subnet-mask

Syntax

subnet-mask ip-address

no subnet-mask

Context

config>subscr-mgmt>loc-user-db>ipoe>host>options

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command specifies the subnet-mask option to the client. The mask can either be defined (for supernetting) or taken from the pool address.

The no form of this command removes the address from the configuration.

Parameters

ip-address

Specifies the IP address of the subnet mask. This address must be unique within the subnet and specified in dotted decimal notation.

Values

a.b.c.d

mask

Syntax

mask type dhcp-match-type {[prefix-string prefix-string | prefix-length prefix-length] [suffix-string suffix-string | suffix-length suffix-length]}

no mask type dhcp-match-type

Context

config>subscr-mgmt>loc-user-db>ipoe

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command configures the mask.

Parameters

dhcp-match-type

Specifies the data type that represents the type of matching done to identify a DHCP host.

Values

circuit-id, option60, remote-id, sap-id, string, system-id

prefix-string prefix-string

Specifies a substring that is stripped of the start of the incoming circuit ID before it is matched against the value configured in the DHCP circuit ID. This string can only contain printable ASCII characters. The ‟*” character is a wildcard that matches any substring. If a "\" character is masked, use the escape key so it becomes "\\".

Values

127 characters maximum, ‟*”

prefix-length prefix-length

Specifies the number of characters to remove from the start of the incoming circuit ID before it is matched against the value configured in the circuit ID.

Values

1 to 127

suffix-string suffix-string

Specifies a substring that is stripped of the end of the incoming circuit ID before it is matched against the value configured in circuit ID.

This string can contain only printable ASCII characters. The ‟*” character is a wildcard that matches any substring. If a "\" character is masked, use the escape key so it becomes "\\".

Values

127 characters maximum

suffix-length suffix-length

Specifies the number of characters to remove from the end of the incoming circuit ID before it is matched against the value configured in the circuit ID.

Values

1 to 127

match-list

Syntax

match-list match-type-1 [match-type-2...(up to 4 max)]

no match-list

Context

config>subscr-mgmt>loc-user-db>ipoe

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command specifies the type of matching done to identify a host.

Default

no match-list

Parameters

match-type-x

Specifies up to four matching types to identify a host.

Values

circuit-id, mac, option60, remote-id, sap-id, service-id, string, system-id

circuit-id — Specifies the DHCP4 option (82,1) or DHCP6 option 18.

mac — Specifies the MAC address of the client. Chaddr in DHCP4 and DUID in IPv6.

option60 — Specifies the DHCP4 option 60.

remote-id — Specifies the DHCP4 option (82,2) or DHCP6 option 37

sap-id — Specifies the SAP ID on which DHCPv4 packet are received. This parameter is inserted as ALU VSO (82,9,4) by the DHCPv4 relay in router. The parameter is inserted under the vendor-specific-option context of the DHCPv4 relay. Because the DHCP relay configuration is enabled under the group-interface context, the group-interface and service-id must be known before the sap-id can be used for local user database matching.

service-id — Specifies the service ID of the ingress SAP for DHCPv4 packets. This parameter is inserted as ALU VSO (82,9,3) by the DHCPv4 relay in the router. This parameter is insered under the vendor-specific-option context of the DHCPv4 relay.

string — Specifies the custom string configured under the vendor-specific-option context of the DHCPv4 relay. The string is inserted as ALU VSO (82,9,5) by the DHCPv4 relay in router. Because the DHCP relay configuration is enabled under the group-interface context, the group-interface and service-id must be known before the string can be used for local user database matching.

system-id — Specifies the system ID of the node name configured under the system>name context. This parameter is inserted as ALU VSO (82,9,1) by the DHCPv4 relay in the router. This parameter is inserted under the vendor-specific-option context of the DHCPv4 relay. Because the DHCP relay configuration is enabled under the group-interface context, the group-interface and service-id must be known before the system-id can be used for local user database matching.

shutdown

Syntax

[no] shutdown

Context

config>subscr-mgmt>loc-user-db

config>subscr-mgmt>loc-user-db>ipoe>host

Platforms

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description

This command administratively disables an entity. When disabled, an entity does not change, reset, or remove any configuration settings or statistics.

The operational state of the entity is disabled as well as the operational state of any entities contained within. Many objects must be shut down before they may be deleted.

The no form of this command places the entity into an administratively enabled state.