IPoE Configuration Guide
此内容尚不支持你的语言。
Introduction
Section titled “Introduction”IPoE (IP over Ethernet) refers to a broadband access method in which a user’s host connects via Ethernet, directly obtains an IP address through DHCP (or ARP/IP packets), and establishes an access session. Compared to PPPoE, IPoE does not establish a point-to-point encapsulation tunnel; datagrams are forwarded using pure IP. The access device (BNG/access control device) performs user identification, authentication, authorization, and billing based on access location information (interface, VLAN, Option 82) and MAC addresses.
Explanation of Principles
Section titled “Explanation of Principles”IPoE Access Mode
Section titled “IPoE Access Mode”IPoE access modes are divided into Layer 2 and Layer 3 modes, with users connecting via Layer 2 or Layer 3 networks, respectively.
Layer 2 access: Users connect directly to the access device or connect to it via a Layer 2 network device. The access device must identify the user’s MAC address.
Layer 3 access: User traffic is routed to the access device via a Layer 3 network; users can connect directly to the access device or connect to it via a Layer 3 forwarding device. The access device does not need to be aware of the user’s MAC address.
IPv4 DHCP User Access Process
Section titled “IPv4 DHCP User Access Process”When a user dynamically obtains an IP address via DHCP, IPoE intercepts the user’s DHCP packets and first authenticates the user. If authentication is successful, the user is allowed to continue requesting a dynamic IP address; otherwise, the IPoE access process is terminated. This section uses the IPoE access of an IPv4 DHCP user in a DHCP relay network environment as an example; the specific process is shown in the figure below.

The IPoE access process triggered by an IPv4 DHCP message is as follows:
- The DHCP client sends a DHCP-DISCOVER message;
- The access device inserts Option 82 into the DHCP-DISCOVER message and then forwards the message to the DHCP relay device for processing;
- The DHCP relay device creates an IPoE session based on the DHCP-DISCOVER message and sends an authentication request to the AAA server. The username in the authentication request message includes user information, such as the Client ID option from the DHCP message and the source MAC address of the user’s message;
- The AAA server returns the authentication result. If the user is authenticated, it sends an authentication acceptance message carrying authorization information; otherwise, it sends an authentication rejection message;
- The DHCP relay retrieves the user’s authentication and authorization results and updates the authentication status of the IPoE session to “passed” or “failed”;
- If the user is authenticated, the DHCP relay forwards the DHCP-DISCOVER message to the DHCP server. If authentication fails, the DHCP relay discards the DHCP-DISCOVER message;
- The DHCP server responds with a DHCP-OFFER message. The DHCP relay then forwards the DHCP-OFFER message to the DHCP client;
- The DHCP client selects a DHCP server based on the DHCP-OFFER message and sends a DHCP-REQUEST message. The DHCP relay then forwards the DHCP-REQUEST message to the DHCP server;
- The DHCP server responds with a DHCP-ACK message;
- The DHCP relay parses the user’s IP address and other address parameters from the DHCP-ACK message, updates the IPoE session, distributes the User Profile policy, and then sets the IPoE session status to online;
- The DHCP relay forwards the DHCP-ACK message to the DHCP client. The DHCP client obtains the IP address and related address parameters based on the received DHCP-ACK message;
- The access device sends a billing start message to the AAA server, initiating billing for the user.
IPoE Configuration
Section titled “IPoE Configuration”Create ipoe dhcp relay
Section titled “Create ipoe dhcp relay”| Operation | Command | Description |
|---|---|---|
| Create dhcp-replay | dhcp-relay <name> v4 ipoe | |
| Configure server ip | server_ip <A.B.C.D> | |
| Configure gatway ip | gateway_ip <A.B.C.D> | |
| Configure giaddr | giaddr <A.B.C.D/M> |
Create radius server
Section titled “Create radius server”| Operation | Command | Description |
|---|---|---|
| Create radius server | radius server <A.B.C.D> passkey <key> | |
| Configure radius source interface | radius server <A.B.C.D> src-intf {ethernet <id>|vlan <id>|link-aggregation |<id>} | |
| Configure radius nas ip | radius server <A.B.C.D> nas-ip <A.B.C.D> |
Configure IPoE domain
Section titled “Configure IPoE domain”| Operation | Command | Description |
|---|---|---|
| Create IPoE domain | ipoe domain <name> | |
| Configure authentication method | authentication method radius | |
| Configure authentication password | authentication password {none|plaintext <value>|username} | |
| Configure radius server ip | authentication radius-server <A.B.C.D> | |
| Configure authentication username | authentication username {components <value>|separator <value>|suffix <value>} | |
| Configure access-interface | access-interface {l2|l3} {ethernet <interface_name>|link-aggregation-group <id>} [tagged <vlan_id>|untagged <vlan_id>] | |
| Configure dhcp-relay | dhcp-relay <name> |
Enable ipoe and accounting
Section titled “Enable ipoe and accounting”| Operation | Command | Description |
|---|---|---|
| enable ipoe | ipoe enable | |
| enable accounting | ipoe accounting enable |
Display and Maintenance
Section titled “Display and Maintenance”| Operation | Command |
|---|---|
| Display ipoe status | show ipoe status |
| Display ipoe session | show ipoe session |
Example of L2 Access Configuration
Section titled “Example of L2 Access Configuration”Network Requirements
-
The DHCP client connects to the BRAS access device via a Layer 2 network using the IPoE method.
-
An IPv4 address is assigned by a DHCP server.
-
RADIUS is used as the authentication, authorization, and billing server.

Procedure
# BRAS Device
1. configure ipoe interfacesonic(config)# interface ethernet 1sonic(config-if-1)# ip address 10.100.0.1/162. configure dhcp replysonic(config)# dhcp-relay test1 v4 ipoesonic(config-dhcp-relay-ipoe-test1)# gateway-ip 10.100.0.1/16sonic(config-dhcp-relay-ipoe-test1)# giaddr 10.100.0.1sonic(config-dhcp-relay-ipoe-test1)# server_ip 9.9.9.103. configure radius serversonic(config)# interface ethernet 2sonic(config-if-2)# ip address 9.9.9.1/24sonic(config)# radius server 9.9.9.9 nas-ip 9.9.9.1sonic(config)# radius server 9.9.9.9 passkey radiuskeysonic(config)# radius server 9.9.9.9 src-intf ethernet 24. configure ipoe domainsonic(config)# ipoe domain testsonic(config-ipoe-domain-test)# access-interface l2 ethernet 1sonic(config-ipoe-domain-test-l2-ethernet-1)# dhcp-relay test1sonic(config-ipoe-domain-test)# authentication method radiussonic(config-ipoe-domain-test)# authentication password usernamesonic(config-ipoe-domain-test)# authentication radius-server 9.9.9.9sonic(config-ipoe-domain-test)# authentication username components ifname,source-macsonic(config-ipoe-domain-test)# authentication username separator @5. enable ipoe and accountingsonic(config)# ipoe enablesonic(config)# ipoe accounting enableExample of L3 Access Configuration
Section titled “Example of L3 Access Configuration”Network Requirements
-
The DHCP client connects to the BRAS access device via a dhcp relay device using the IPoE method.
-
BRAS Device is used as a DHCP Server.
-
RADIUS is used as the authentication, authorization, and billing server.

Procedure
# BRAS Device
1. configure ipoe interfacesonic(config)# interface ethernet 1sonic(config-if-1)# ip address 19.19.19.1/24sonic(config)# ip route 10.100.0.0/24 19.19.19.192. configure dhcp poolsonic(config)# dhcp pool test1 ipoesonic(config-dhcp-pool-test1)# network 10.100.0.1 255.255.255.0sonic(config-dhcp-pool-test1)# address-pool 10.100.0.2 10.100.0.254sonic(config-dhcp-pool-test1)# routers 10.100.0.1sonic(config-dhcp-pool-test1)# dns 114.114.114.114sonic(config-dhcp-pool-test1)# lease-time 7200 144003. configure radius serversonic(config)# interface ethernet 2sonic(config-if-2)# ip address 9.9.9.1/24sonic(config)# radius server 9.9.9.9 nas-ip 9.9.9.1sonic(config)# radius server 9.9.9.9 passkey radiuskeysonic(config)# radius server 9.9.9.9 src-intf ethernet 24. configure ipoe domainsonic(config)# ipoe domain testsonic(config-ipoe-domain-test)# access-interface l3 ethernet 1sonic(config-ipoe-domain-test-l2-ethernet-1)# dhcp-pool test1sonic(config-ipoe-domain-test)# authentication method radiussonic(config-ipoe-domain-test)# authentication password usernamesonic(config-ipoe-domain-test)# authentication radius-server 9.9.9.9sonic(config-ipoe-domain-test)# authentication username components ifname,source-macsonic(config-ipoe-domain-test)# authentication username separator @5. enable ipoe and accountingsonic(config)# ipoe enablesonic(config)# ipoe accounting enable
DHCP Relay Devicesonic(config)# interface ethernet 1sonic(config-if-1)# ip address 19.19.19.19/24sonic(config)# ip route 12.12.12.0/24 19.19.19.1 //Used for user traffic forwardingsonic(config)# interface Vlan 100sonic(config-if-Vlan10)# ip address 10.100.0.1/24sonic(config)# interface ethernet 2sonic(config-if-2)# switch access vlan 100sonic(config)# dhcp-relay test1 v4sonic(config-dhcp-relay-test1)# down_link interface vlan 100sonic(config-dhcp-relay-test1)# server_ip 19.19.19.1sonic(config-dhcp-relay-test1)# up_link interface ethernet 1