The access-type command configures the access type of a BAS interface. The access type can be leased line access for Layer 2 access, Layer 2 leased line access, Layer 3 access, or Layer 3 leased line access.
The undo access-type command disables the BAS interface.
By default, a BAS interface is disabled.
This command is supported only on the NetEngine 8000 F1A.
access-type layer2-subscriber [ bas-interface-name bname | default-domain { pre-authentication predname | authentication [ force | replace ] dname } * | accounting-copy radius-server rd-name ] *
access-type layer2-leased-line user-name uname password { cipher cipher-password | simple simple-password } [ bas-interface-name bname | default-domain authentication dname | accounting-copy radius-server rd-name | nas-port-type port-type ] *
access-type layer3-subscriber [ default-domain { pre-authentication dname | authentication [ force | replace ] dname } * ]
access-type layer3-leased-line { user-name uname | user-name-template } password { cipher cipher-password | simple simple-password } [ bas-interface-name bname | default-domain authentication dname | accounting-copy radius-server rd-name | nas-port-type port-type | mac-address mac-address | client-id client-id ] *
access-type l2vpn-leased-line user-name uname password { cipher cipher-password | simple simple-password } [ bas-interface-name bname | default-domain authentication dname | accounting-copy radius-server rd-name | nas-port-type port-type ] *
undo access-type
Parameter | Description | Value |
---|---|---|
bas-interface-name bname |
Specifies a BAS interface name. |
The value is a string of 1 to 32 characters. |
default-domain |
Indicates the default domain. |
- |
pre-authentication dname |
Specifies the name of the pre-authentication domain. |
The value is a string of 1 to 64 characters. |
pre-authentication predname |
Specifies the name of the default pre-authentication domain. If no pre-authentication domain is configured on a BAS interface, default0 is used. |
The value is a string of 1 to 64 characters. |
authentication dname |
Specifies the name of the domain. |
The value is a string of 1 to 64 characters. |
force |
Specifies a mandatory authentication domain. A user uses the authentication and accounting scheme configured in this domain, irrespective of whether the user name contains a domain name or what the domain name is. If the user name contains a domain name, the domain name remains unchanged during authentication; if the user name does not contain a domain name, the mandatory authentication domain name is added to the user name. This parameter does not take effect for EAP authentication users. |
- |
replace |
Specifies a mandatory substitute authentication domain. A user uses the authentication and accounting schemes configured in this domain, irrespective of whether the user name contains a domain name or what the domain name is. If the user name contains a domain name, the domain name is replaced by the mandatory substitute authentication domain name during authentication; if the user name does not contain a domain name, the mandatory substitute authentication domain name is added to the user name. This parameter does not take effect for EAP authentication users. |
- |
accounting-copy radius-server rd-name |
Specifies a RADIUS accounting copy server. |
The value is a string of 1 to 32 characters. |
radius-server rd-name |
Specifies a RADIUS accounting copy server. |
The value is a string of 1 to 32 characters. |
layer2-leased-line |
Indicates Layer 2 leased line users. |
- |
user-name uname |
Specifies a leased line user name.
|
The value is a string of 1 to 253 characters. |
password |
Specifies a password. |
- |
cipher cipher-password |
Specifies a user password.
|
The value is a string of 1 to 128 case-sensitive characters in simple text or a string of 1 to 268 case-sensitive characters in ciphertext. |
simple simple-password |
Specifies a user password.
|
If a password is entered in simple mode, the value is a string of 1 to 128 characters. |
nas-port-type port-type |
Specifies a NAS interface type. |
- |
layer3-subscriber |
Indicates Layer 3 common users. |
- |
layer3-leased-line |
Indicates Layer 3 leased line users. |
- |
user-name-template |
Specifies a user name template. |
- |
mac-address mac-address |
Specifies the MAC address of a Layer 3 leased line user. |
The value is a 12-digit hexadecimal number, in the format of H-H-H. Each H is 4 digits. If an H contains fewer than 4 digits, the left-most digits are padded with zeros. For example, e0 is displayed as 00e0. |
client-id client-id |
Specifies the client ID of a Layer 3 leased line user. |
The value is a string of 1 to 64 case-sensitive characters without metacharacters, such as spaces and question marks. |
l2vpn-leased-line |
Indicates Layer 2 vpn leased line users. |
- |
layer2-subscriber |
Indicates Layer 2 common users. |
- |
Usage Scenario
To configure the access type of a BAS interface as a Layer 2 common user, Layer 2 leased line user, Layer 3 common user, or Layer 3 leased line user, run the access-type command.
Configuration Impact
After this command is run, only the packets sent by the user and the packets arriving at the user can be forwarded after the user goes online.
Precautions
This command is supported only on the admin VS.
If the dhcp relay, dhcp select, dhcp option82, and ip relay commands are run on an interface, the bas command can be run on the same interface. However, the access-type layer2-subscriber, access-type layer3-subscriber, and access-type layer2-leased-line commands cannot be run on the same interface. Otherwise, an error message is displayed:Error:This interface has the configurations of other services, and cannot be configured as an access interface. Both an RBP (remote-backup-profile rbp-name) and Layer 3 users access (access-type layer3-subscriber) can be configured only on an Eth-Trunk interface.