Configuring Accesses with the SRC CLI
You must configure an access for an enterprise or a site. An access determines the way that the enterprise or site accesses Internet services, and specifies a set of services that are available to the particular access.
Subscriber classification scripts can use access subscription properties to match the interface in the network with an access in the directory. Typically, the interface alias, interface description, interface name, unique ID, NAS port ID, and router name are used to match an interface to an access.
You can specify multiple accesses; for example, you might want to specify primary and secondary services for Internet access.
subscribers retailername
subscriber-folderfolder-name
enterprisename
accessname
{routing-protocolrouting-protocol
; interface-aliasinterface-alias
; interface-descriptioninterface-description
; interface-nameinterface-name
; unique-idunique-id
; port-idport-id
; device-namedevice-name
; display-namedisplay-name
; accounting-user-idaccounting-user-id
; substitution [substitution...
];}subscribers retailername
subscriber-folderfolder-name
enterprisename
sitename
accessname
{routing-protocolrouting-protocol
; interface-aliasinterface-alias
; interface-descriptioninterface-description
; interface-nameinterface-name
; unique-idunique-id
; port-idport-id
; device-namedevice-name
; display-namedisplay-name
; accounting-user-idaccounting-user-id
; substitution [substitution...
];}To configure a subscription to an access service:
- From configuration mode, enter the subscription configuration. In this procedure, Acme is the name of the enterprise and AcmeAccess is the name of the access.
user@host#edit subscribers retailer SP-TM subscriber-folder subscribers enterprise Acme access AcmeAccess
- (Optional) Record routing protocols used at the enterprise or site. If you build a custom enterprise manager application, you can access this information through the enterprise portal APIs.
[edit subscribers retailer SP-TM subscriber-folder subscribers enterprise Acme access AcmeAccess]user@host#set routing-protocol
routing-protocol
- (Optional) Configure the description of a router interface.
[edit subscribers retailer SP-TM subscriber-folder subscribers enterprise Acme access AcmeAccess]user@host#set interface-alias
interface-alias
- (Optional) Configure the alternate name of the interface that SNMP uses.
[edit subscribers retailer SP-TM subscriber-folder subscribers enterprise Acme access AcmeAccess]user@host#set interface-description
interface-description
- (Optional) Configure the name of the interface using your router CLI syntax
[edit subscribers retailer SP-TM subscriber-folder subscribers enterprise Acme access AcmeAccess]user@host#set interface-name
interface-name
- (Optional) Configure the router's unique ID, which is the index of the router in the SNMP table for all interfaces.
[edit subscribers retailer SP-TM subscriber-folder subscribers enterprise Acme access AcmeAccess]user@host#set unique-id
unique-id
- (Optional) Configure the network access server (NAS) port ID reported by the JUNOSe router through the Common Open Policy Service (COPS).
[edit subscribers retailer SP-TM subscriber-folder subscribers enterprise Acme access AcmeAccess]user@host#set port-id
port-id
- (Optional) Configure the name of the router to which this access connects.
[edit subscribers retailer SP-TM subscriber-folder subscribers enterprise Acme access AcmeAccess]user@host#set router-name
router-name
- (Optional) Configure the name that is displayed in enterprise management portals, if different from the service name.
[edit subscribers retailer SP-TM subscriber-folder subscribers enterprise Acme access AcmeAccess]user@host#set display-name
display-name
- (Optional) Configure the value that identifies the service in accounting records.
[edit subscribers retailer SP-TM subscriber-folder subscribers enterprise Acme access AcmeAccess]user@host#set accounting-user-id
accounting-user-id
- (Optional) Configure the actual values for parameters associated with this subscription.
[edit subscribers retailer SP-TM subscriber-folder subscribers enterprise Acme access AcmeAccess]user@host#set substitution
[substitution...
]- (Optional) Verify your configuration.
[edit subscribers retailer SP-TM subscriber-folder subscribers enterprise Acme access AcmeAccess]user@host#show
interface-alias cust123-456;interface-name fastethernet6/0.1;