H3C SR8800-F Configuration Manual page 302

Comware 7 user access
Hide thumbs Also See for SR8800-F:
Table of Contents

Advertisement

Figure 90 Network diagram
Procedure
1.
Configure Router A as the PPPoE server:
# Configure Virtual-Template 10 to use PAP for authentication and use a DHCP address pool to
allocate IP addresses and DNS server IP addresses for users.
<RouterA> system-view
[RouterA] interface virtual-template 10
[RouterA-Virtual-Template10] ppp authentication-mode pap
[RouterA-Virtual-Template10] remote address pool pool1
[RouterA-Virtual-Template10] quit
# Enable the PPPoE server on GigabitEthernet 3/1/1, and bind the interface to Virtual-Template
10.
[RouterA] interface gigabitethernet 3/1/1
[RouterA-GigabitEthernet3/1/1] pppoe-server bind virtual-template 10
[RouterA-GigabitEthernet3/1/1] quit
# Enable DHCP.
[RouterA] dhcp enable
# Enable recording of relay entries on the relay agent.
[RouterA] dhcp relay client-information record
# Create DHCP relay address pool pool1.
[RouterA] dhcp server ip-pool pool1
# Specify a gateway address for the clients in pool1.
[RouterA-dhcp-pool-pool1] gateway-list 2.2.2.1 export-route
# Specify a DHCP server for pool1.
[RouterA-dhcp-pool-pool1] remote-server 10.1.1.1
[RouterA-dhcp-pool-pool1] quit
# Specify an IP address for GigabitEthernet 3/1/2.
[RouterA] interface gigabitethernet 3/1/2
[RouterA-GigabitEthernet3/1/2] ip address 10.1.1.2 24
[RouterA-GigabitEthernet3/1/2] quit
# Create a PPPoE user.
[RouterA] local-user user1 class network
[RouterA-luser-network-user1] password simple pass1
[RouterA-luser-network-user1] service-type ppp
[RouterA-luser-network-user1] quit
2.
Configure Router B as a DHCP server.
# Enable DHCP.
<RouterB> system-view
[RouterB] dhcp enable
# Create DHCP address pool pool1, and specify a primary subnet and a gateway address for
DHCP clients.
[RouterB] dhcp server ip-pool pool1
286

Advertisement

Table of Contents
loading

Table of Contents