How do I configure PPPoE authentication users

15

[Huawei] aaa //Enter the AAA view.
[Huawei-aaa] local-user user1@system password //Create a local user and configure the login password of the local user.
By default, the login password of the local user is admin@huawei.com.
The configured user name and password must be the same as those configured on the PPPoE client.
[Huawei-aaa] local-user user1@system service-type ppp //Set the service type to PPP.

Determine whether to run the domain command to configure a domain as needed. By default, the default domain exists in the system and the default domain contains the default authentication scheme. If the user name of a user does not contain the domain name, the user is added to the default domain and local authentication is performed for the user by default.

Other related questions:
How to configure MAC address authentication on S series switches
MAC address authentication controls a user's network access rights based on the access port and the user's MAC address. The user does not need to install any client software. For switches running V200R003C10 and earlier versions, NAC can be configured only in common mode. For switches running V200R005C00 and later versions, NAC can be configured in common or unified mode. Accordingly, MAC address authentication can be configured in common or unified mode. For switches running V200R009C00, the configuration model of NAC unified mode changes. Query the appropriate product manual based on the switch model and version. The following links are for reference only. - See "NAC Configuration (Common Mode) - Example for Configuring MAC Address Authentication to Control Internal User Access" in S2750&S5700&S6720 V200R008C00 Configuration Guide - User Access and Authentication. - See "NAC Configuration (Unified Mode) - Example for Configuring MAC Address Authentication to Control Internal User Access (RADIUS Authentication Is Used)" or "NAC Configuration (Unified Mode) - Example for Configuring MAC Address Authentication to Control Internal User Access" in S2750&S5700&S6720 V200R008C00 Configuration Guide - User Access and Authentication. - See "NAC Configuration (Unified Mode) - Example for Configuring MAC Address Authentication" in S1720&S2700&S5700&S6720 V200R009C00 Configuration Guide - User Access and Authentication.

How to configure local authentication for a MAC address authentication user when the user's MAC address is used as the user name for authentication
You can configure local authentication for MAC address authentication users on S series switches (except the S1700). Perform the following operations to configure local authentication for a MAC address authentication user when the user's MAC address is specified as the user name for authentication (the configuration in NAC common mode is used as an example and is applicable to switches running all versions).
1. Configure an AAA scheme and a local account.
[HUAWEI] aaa
[HUAWEI-aaa] authentication-scheme a1
[HUAWEI-aaa-authen-a1] authentication-mode local   //Set the user's authentication mode to local authentication.
[HUAWEI-aaa-authen-a1] quit
[HUAWEI-aaa] local-user 000b-09d4-8828 password cipher Huawei@123  //Configure a local account and specify the user's MAC address as the user name.
[HUAWEI-aaa] local-user 000b-09d4-8828 service-type bind   //Configure the access type. You can set the access type of the local authentication user to 802.1x, Bind, PPP, or web.
2. Configure an authentication domain.
[HUAWEI-aaa] domain huawei
[HUAWEI-aaa-domain-huawei] authentication-scheme a1
[HUAWEI-aaa-domain-huawei] quit
[HUAWEI-aaa] quit
[HUAWEI] domain huawei   //Configure the authentication domain huawei as the global default authentication domain.
3. Specify the user's MAC address as the user name for local authentication.
[HUAWEI] mac-authen username macaddress format with-hyphen password cipher Huawei@123
4. Enable MAC address authentication.
[HUAWEI] mac-authen  //Enable MAC address authentication globally.
[HUAWEI] interface gigabitethernet 1/0/1  //Enter the view of the interface connected to the user.
[HUAWEI-GigabitEthernet1/0/1] port link-type access
[HUAWEI-GigabitEthernet1/0/1] port default vlan 10   //Add the interface to the VLAN to which the user belongs.
[HUAWEI-GigabitEthernet1/0/1] mac-authen  //Enable MAC address authentication on the interface.
[HUAWEI-GigabitEthernet1/0/1] quit
For switches running V200R009C00, the configuration model of NAC unified mode changes. Query the appropriate product manual based on the switch model and version. Take the configuration on a switch running V200R009 as an example. For details, see "NAC Configuration (Unified Mode) - Example for Configuring MAC Address Authentication (AAA Local Authentication Is Used)" in S1720&S2700&S5700&S6720 V200R009C00 Configuration Guide - User Access and Authentication.

What should I do if I do not know the PPP authentication mode of the PPPoE server when the device functions as a PPPoE client
PPPoE authentication will fail if inconsistent PPP authentication modes are used on the PPPoE server and client. If you do not know the PPPoE authentication mode provided by the carrier, you are advised to configure both CHAP and PAP authentication modes on the device. The device will dynamically determine the authentication mode based on packets exchanged with the PPPoE server. Run the ppp chap user username command in the dialer interface view to configure a user name for CHAP authentication. Run the ppp chap password cipher password command in the dialer interface view to configure a password for CHAP authentication. Run the ppp pap local-user username password cipher password command in the dialer interface view to configure a user name and a password for PAP authentication.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top