
434
Framed-Pool := " pool1"
2.
Configure the DHCP server:
# Enable DHCP.
<DHCP-server> system-view
[DHCP-server] dhcp enable
# Create an IP address pool named
pool1
and enter its view.
[DHCP-server] dhcp server ip-pool pool1
# Configure network segment
3.3.3.0/24
to the pool.
[DHCP-server-pool-pool1] network 3.3.3.0 24
# Configure IP address
3.3.3.1
as unavailable.
[DHCP-server-pool-pool1] forbidden-ip 3.3.3.1
[DHCP-server-pool-pool1] quit
# Configure a static IP address to specify the next hop for destination IP address
3.3.3.0
.
[DHCP-server] ip route-static 3.3.3.0 24 4.4.4.2
3.
Configure the BRAS:
a.
Configure IP addresses for interfaces. (Details not shown.)
b.
Configure a RADIUS scheme:
# Create a RADIUS scheme named
rs1
and enter its view.
<Device> system-view
[Device] radius scheme rs1
# Configure primary servers and keys for authentication and accounting.
[Device-radius-rs1] primary authentication 4.4.4.1
[Device-radius-rs1] primary accounting 4.4.4.1
[Device-radius-rs1] key authentication simple radius
[Device-radius-rs1] key accounting simple radius
# Exclude the ISP name from the username sent to the RADIUS server.
[Device-radius-rs1] user-name-format without-domain
[Device-radius-rs1] quit
c.
Configure the ISP domain:
# Create an ISP domain named
dm1
and enter its view.
[Device] domain dm1
# Configure
dm1
to use RADIUS scheme
rs1.
[Device-isp-dm1] authentication ipoe radius-scheme rs1
[Device-isp-dm1] authorization ipoe radius-scheme rs1
[Device-isp-dm1] accounting ipoe radius-scheme rs1
[Device-isp-dm1] quit
d.
Configure the DHCP relay:
# Enable DHCP.
[Device] dhcp enable
[Device] interface gigabitethernet 3/1/2
# Enable the DHCP relay on GigabitEthernet 3/1/2.
[Device–GigabitEthernet3/1/2] dhcp select relay
[Device–GigabitEthernet3/1/2] quit
# Create an address pool named
pool1
and assign
pool1
to
vpn1
.
[Device] dhcp server ip-pool pool1
[Device-dhcp-pool-pool1] vpn-instance vpn1