IPoE Configuration
此内容尚不支持你的语言。
IPoE Configuration
Section titled “IPoE Configuration”show ipoe session
Section titled “show ipoe session”[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:03show ipoe status
Section titled “show ipoe status”[Command]
show ipoe status
[Purpose]
View the current status of IPoE
[View]
System view
[Use Cases]
sonic# show ipoe statusuptime: 0.02:50:13cpu: 0%mem(rss/virt): 10240/192960 kBcore: 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: 0sessions: starting: 0 active: 1 finishing: 0radius(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 msipoe: starting: 0 active: 1 delayed: 0ipoe enable
Section titled “ipoe enable”[Command]
ipoe enable
no ipoe enable
[Purpose]
Enable the IPoE service
[View]
System configuration view
[Use Cases]
sonic(config)# ipoe enableipoe accounting enable
Section titled “ipoe accounting 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 enableipoe domain name
Section titled “ipoe domain name”[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 testaccess-interface
Section titled “access-interface”[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 testsonic(config-ipoe-domain-test)# access-interface l2 ethernet 13dhcp-pool name
Section titled “dhcp-pool name”[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 testdhcp-pool name
Section titled “dhcp-pool name”[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 testaccounting delay-start value
Section titled “accounting delay-start value”[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 testsonic(config-ipoe-domain-test)# accounting delay-start 120accounting interim-interval value
Section titled “accounting interim-interval value”[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 testsonic(config-ipoe-domain-test)# accounting interim-interval 120accounting interim-jitter value
Section titled “accounting interim-jitter value”[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 testsonic(config-ipoe-domain-test)# accounting interim-jitter 120authentication method radius
Section titled “authentication method radius”[Command]
authentication method radius
[Purpose]
Configure authentication Mmethods
[View]
IPoE domain configuration view
[Use Cases]
sonic(config)# ipoe domain testsonic(config-ipoe-domain-test)# authentication method radiusauthentication 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 testsonic(config-ipoe-domain-test)# authentication password usernameauthentication 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 testsonic(config-ipoe-domain-test)# authentication nas-identifer testauthentication 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 testsonic(config-ipoe-domain-test)# authentication radius-server 1.1.1.1authentication 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 testsonic(config-ipoe-domain-test)# authentication username components ifname,source-macsonic(config-ipoe-domain-test)# authentication username separator @max-sessions value
Section titled “max-sessions value”[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 testsonic(config-ipoe-domain-test)# max-sessions 50000max-starting value
Section titled “max-starting value”[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 testsonic(config-ipoe-domain-test)# max-sessions 50000dhcp-relay value v4 ipoe
Section titled “dhcp-relay value v4 ipoe”[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 ipoegiaddr A.B.C.D
Section titled “giaddr A.B.C.D”[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 ipoesonic(config-dhcp-relay-ipoe-test1)# giaddr 1.1.1.1server_ip A.B.C.D
Section titled “server_ip A.B.C.D”[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 ipoesonic(config-dhcp-relay-ipoe-test1)# server_ip 1.1.1.1option82
Section titled “option82”[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 ipoesonic(config-dhcp-relay-ipoe-test1)# option82 circuit-id interfacesonic(config-dhcp-relay-ipoe-test1)# option82 link-selection 1.1.1.1sonic(config-dhcp-relay-ipoe-test1)# option82 remote-id system-macsonic(config-dhcp-relay-ipoe-test1)# option82 policy add