Skip to content
Ask AI

IPoE Configuration

[Command]

show ipoe session

[Purpose]

View ipoe’s active users

[View]

System view

[Use Cases]

sonic# show ipoe session
ifname | username | calling-sid | ip | type | comp | state | uptime
------------+------------------------------+-------------------+--------------+------+------+--------+----------
Ethernet13 | Ethernet13@02:00:00:00:00:01 | 02:00:00:00:00:01 | 10.100.39.28 | ipoe | | active | 00:00:03

[Command]

show ipoe status

[Purpose]

View the current status of IPoE

[View]

System view

[Use Cases]

sonic# show ipoe status
uptime: 0.02:50:13
cpu: 0%
mem(rss/virt): 10240/192960 kB
core:
mempool_allocated: 2142920
mempool_available: 2129896
thread_count: 1
thread_active: 1
context_count: 10
context_sleeping: 0
context_pending: 0
md_handler_count: 6
md_handler_pending: 0
timer_count: 2
timer_pending: 0
sessions:
starting: 0
active: 1
finishing: 0
radius(1, 9.9.9.9):
state: active
fail count: 0
request count: 0
queue length: 0
auth sent: 2
auth lost(total/5m/1m): 0/0/0
auth avg query time(5m/1m): 3/0 ms
acct sent: 3
acct lost(total/5m/1m): 0/0/0
acct avg query time(5m/1m): 1/0 ms
interim sent: 84
interim lost(total/5m/1m): 0/0/0
interim avg query time(5m/1m): 2/2 ms
ipoe:
starting: 0
active: 1
delayed: 0

[Command]

ipoe enable

no ipoe enable

[Purpose]

Enable the IPoE service

[View]

System configuration view

[Use Cases]

sonic(config)# ipoe enable

[Command]

ipoe accounting enable

no ipoe accounting enable

[Purpose]

Enable the IPoE billing functionality

[View]

System configuration view

[Use Cases]

sonic(config)# ipoe accounting enable

[Command]

ipoe domain name

no ipoe domain name

[Purpose]

Access the iPOE domain configuration view

[View]

System configuration view

[Use Cases]

sonic(config)# ipoe domain test

[Command]

access-interface {l2|l3} {ethernet interface_name|link-aggregation-group id} [tagged vlan_id|untagged vlan_id]

access-interface {l2|l3} sub-ethernet interface_name

[Purpose]

Configure the interface to allow IPoE traffic

[View]

IPoE domain configuration view

[Parameter]

l2|l3 access Type

ethernet/link-aggregation-group/sub-ethernet interface type

tagged allow traffic with the specified VLAN or without VLAN to enter

untagged allow traffic with the specified VLAN to enter

[Use Cases]

sonic(config)# ipoe domain test
sonic(config-ipoe-domain-test)# access-interface l2 ethernet 13

[Command]

dhcp-pool name

[Purpose]

Configure dhcp settings and server

[View]

IPoE domain access-interface configuration view

[Use Cases]

sonic(config-ipoe-domain-test-l2-ethernet-13)# dhcp-pool test

[Command]

dhcp-relay name

[Purpose]

Configure dhcp relay settings and server

[View]

IPoE domain access-interface configuration view

[Use Cases]

sonic(config-ipoe-domain-test-l2-ethernet-13)# dhcp-relay test

[Command]

accounting delay-start value

[Purpose]

Set accounting-start delay

[View]

IPoE domain configuration view

[Parameter]

delay-start Delay the transmission of billing messages for a specified period of time, range 0-3600 seconds

[Use Cases]

sonic(config)# ipoe domain test
sonic(config-ipoe-domain-test)# accounting delay-start 120

[Command]

accounting interim-interval value

[Purpose]

Set accounting interim interval

[View]

IPoE domain configuration view

[Parameter]

interim-interval Set the interval between sending billing messages, range 0-86400 seconds

[Use Cases]

sonic(config)# ipoe domain test
sonic(config-ipoe-domain-test)# accounting interim-interval 120

[Command]

accounting interim-jitter value

[Purpose]

Set accounting interim jitter

[View]

IPoE domain configuration view

[Parameter]

interim-jitter Set the jitter time, range 0-86400 seconds

[Use Cases]

sonic(config)# ipoe domain test
sonic(config-ipoe-domain-test)# accounting interim-jitter 120

[Command]

authentication method radius

[Purpose]

Configure authentication Mmethods

[View]

IPoE domain configuration view

[Use Cases]

sonic(config)# ipoe domain test
sonic(config-ipoe-domain-test)# authentication method radius

authentication password {none|plaintext value|username}

Section titled “authentication password {none|plaintext value|username}”

[Command]

authentication password {none|plaintext value|username}

[Purpose]

Configure authentication Mmethods

[View]

IPoE domain configuration view

[Parameter]

none The configuration password is empty

plaintext configure a Fixed Plaintext Password

username use the username as password

[Use Cases]

sonic(config)# ipoe domain test
sonic(config-ipoe-domain-test)# authentication password username

authentication radius {nas-identifier value|req-limit value|timeout value}

Section titled “authentication radius {nas-identifier value|req-limit value|timeout value}”

[Command]

authentication radius {nas-identifier value|req-limit value|timeout value}

[Purpose]

Configure authentication radius

[View]

IPoE domain configuration view

[Parameter]

nas-identifier Write to Access-Request and use it for CoA/DM matching

req-limit Concurrent request limit, range 0-65535 requests

timeout Fault detection time, range 0-60 seconds

[Use Cases]

sonic(config)# ipoe domain test
sonic(config-ipoe-domain-test)# authentication nas-identifer test

authentication radius-server A.B.C.D [weight value] [backup]

Section titled “authentication radius-server A.B.C.D [weight value] [backup]”

[Command]

authentication radius-server A.B.C.D [weight value] [backup]

[Purpose]

Configure authentication radius server

[View]

IPoE domain configuration view

[Parameter]

A.B.C.D radius server ip address

weight set server selection weight, range 0-100

backup use as a backup server

[Use Cases]

sonic(config)# ipoe domain test
sonic(config-ipoe-domain-test)# authentication radius-server 1.1.1.1

authentication username {components value|separator value|suffix value}

Section titled “authentication username {components value|separator value|suffix value}”

[Command]

authentication username {components value|separator value|suffix value}

[Purpose]

Configure authentication username

[View]

IPoE domain configuration view

[Parameter]

components Set username components, optional parameters are ifname, circuit-id, remote-id, and source-mac, separated by commas.

separator Set username separator

suffix Set username suffix

[Use Cases]

sonic(config)# ipoe domain test
sonic(config-ipoe-domain-test)# authentication username components ifname,source-mac
sonic(config-ipoe-domain-test)# authentication username separator @

[Command]

max-sessions value

[Purpose]

Configure the maximum number of users, range 1-50000

[View]

IPoE domain configuration view

[Use Cases]

sonic(config)# ipoe domain test
sonic(config-ipoe-domain-test)# max-sessions 50000

[Command]

max-starting value

[Purpose]

Configure the maximum number of concurrent online users, range 1-4096

[View]

IPoE domain configuration view

[Use Cases]

sonic(config)# ipoe domain test
sonic(config-ipoe-domain-test)# max-sessions 50000

[Command]

dhcp-relay value v4 ipoe

[Purpose]

Configure the dhcp relay for IPoE

[View]

System configuration view

[Use Cases]

sonic(config)# dhcp-relay test1 v4 ipoe

[Command]

giaddr A.B.C.D

[Purpose]

Configure the giaddr for the DHCP relay

[View]

DHCP relay configuration view

[Use Cases]

sonic(config)# dhcp-relay test1 v4 ipoe
sonic(config-dhcp-relay-ipoe-test1)# giaddr 1.1.1.1

[Command]

server_ip A.B.C.D

[Purpose]

Configure the server ip for the DHCP relay

[View]

DHCP relay configuration view

[Use Cases]

sonic(config)# dhcp-relay test1 v4 ipoe
sonic(config-dhcp-relay-ipoe-test1)# server_ip 1.1.1.1

[Command]

option82 circuit-id {interface|string value}

option82 link-selection A.B.C.D

option82 remote-id {system-mac|string value}

option82 policy {keep|add|replace}

[Purpose]

Configure option82

[View]

DHCP relay configuration view

[Parameter]

circuit-id configure the circuit-id field in DHCP messages, use the IPoE port name for the “interface” and a custom string for the “string”

link-selection configure the link-selection field in DHCP messages

remote-id configure the remote-id field in DHCP messages, use the system mac for the “system-mac” and a custom string for the “string”

policy “keep” means no changes are made; “add” adds the “option82” field based on the three configurations above; ‘replace’ replaces the existing “option82” field based on the three configurations above, default is keep

[Use Cases]

sonic(config)# dhcp-relay test1 v4 ipoe
sonic(config-dhcp-relay-ipoe-test1)# option82 circuit-id interface
sonic(config-dhcp-relay-ipoe-test1)# option82 link-selection 1.1.1.1
sonic(config-dhcp-relay-ipoe-test1)# option82 remote-id system-mac
sonic(config-dhcp-relay-ipoe-test1)# option82 policy add