418
[Device–GigabitEthernet3/1/2] ip subscriber initiator unclassified-ip enable
# Specify
dm1
as the ISP domain.
[Device–GigabitEthernet3/1/2] ip subscriber unclassified-ip domain dm1
# Configure plaintext password
radius
for authentication.
[Device–GigabitEthernet3/1/2] ip subscriber password plaintext radius
[Device–GigabitEthernet3/1/2] quit
Verifying the configuration
# Display IPoE session information to verify that the host has come online.
[Device] display ip subscriber session
Type: D-DHCP S-Static U-Unclassified-IP
Interface IP address MAC address Type State
--------------------------------------------------------------------------------
GE3/1/2 2.2.2.2 000c-29a6-b656 U Online
Example: Configuring a DHCP user
Network configuration
As shown in
, the host accesses the BRAS as a DHCP user. It obtains configuration
information from the DHCP server. The BRAS performs AAA for the host through the RADIUS
server.
Figure 146 Network diagram
Procedure
1.
Configure the RADIUS server: (This section uses the Linux Free RADIUS server as an
example.)
# Add BRAS IP address
4.4.4.2
and secret
radius
to the
clients.conf
file.
client 4.4.4.2/32 {
ipaddr = 4.4.4.2
netmask=32
secret=radius
}
# Add the username and password to the
users
user information file. The username is the host
MAC address and the password is
radius
.
000c29a6b656 Cleartext-Password :="radius"
2.
Configure the DHCP server:
# Enable DHCP.
<DHCP-server> system-view
[DHCP-server] dhcp enable