上海贝尔股份有限公司设备操作手册
Totals for pool 541 17% 2516 0 0 0
-------------------------------------------------------------------------------
Totals for server 6237 67% 2958 0 0 0
------------------------------------------------------------------------------- Interface associations
Interface Admin
-------------------------------------------------------------------------------
------------------------------------------------------------------------------- Local Address Assignment associations Group interface Admin
------------------------------------------------------------------------------- hsi-lag-1 Up pre-vod-lag-1 Up vod-lag-1 Up hsi-lag-2 Up pre-vod-lag-2 Up vod-lag-2 Up hsi-1/1/2 Up pre-vod-1/1/2 Up vod-1/1/2 Up hsi-3/1/2 Up pre-vod-3/1/2 Up vod-3/1/2 Up
===============================================================================
5.1.13. 查询PPPoE用户信令转发情况
A:AC7750# show service id 3000 ppp session user-name \
=============================================================================== PPP sessions for service 3000
===============================================================================
User-Name : 13338121110
Description : svc:3000 sap:[1/1/2:451.2458] mac:ec:88:8f:38:a3:d9 sid:1
Up Time : 0d 09:14:05 Type : oE Termination : local
IP/L2TP-Id/If-Id : 49.86.41.5 MC-Standby : No
上海贝尔股份有限公司设备操作手册
Session Time Left : 1d 14:42:56
Packet Type Received Transmitted
------------------------------------------------------------------------------- LCP Configure-Request 1 1 LCP Configure-Ack 1 1 LCP Configure-Nak 0 0 LCP Configure-Reject 0 0 LCP Terminate-Request 0 0 LCP Terminate-Ack 0 0 LCP Code-Reject 0 0 LCP Echo-Request 0 1006 LCP Echo-Reply 1006 0 LCP Protocol-Reject 0 0 LCP Discard-Request 0 0
------------------------------------------------------------------------------- PAP Authenticate-Request 1 - PAP Authenticate-Ack - 1 PAP Authenticate-Nak - 0
------------------------------------------------------------------------------- CHAP Challenge - 0 CHAP Response 0 - CHAP Success - 0 CHAP Failure - 0
------------------------------------------------------------------------------- IPCP Configure-Request 2 1 IPCP Configure-Ack 1 1 IPCP Configure-Nak 0 1 IPCP Configure-Reject 0 0 IPCP Terminate-Request 0 0 IPCP Terminate-Ack 0 0 IPCP Code-Reject 0 0
------------------------------------------------------------------------------- IPV6CP Configure-Request 0 0 IPV6CP Configure-Ack 0 0 IPV6CP Configure-Nak 0 0 IPV6CP Configure-Reject 0 0 IPV6CP Terminate-Request 0 0 IPV6CP Terminate-Ack 0 0 IPV6CP Code-Reject 0 0
------------------------------------------------------------------------------- Unknown Protocol 0 -
------------------------------------------------------------------------------- No. of sessions: 1
===============================================================================
- 42 -
上海贝尔股份有限公司设备操作手册
5.1.14. 检查log
A:AC7750# show log log-id 99
=============================================================================== Event Log 99
=============================================================================== Description : Default System Log
Memory Log contents [size=500 next event=6313809 (wrapped)]
6313808 2014/09/22 16:20:47.18 GMT8 MINOR: SVCMGR #2214 Base Managed SAP creation failure
\system could not create Managed SAP:1/1/2:162.2110, MAC:f0:eb:d0:80:aa:ae, Capturing SAP:1/1/2:*.*, Service:30001102. Description: Blocked by host lockout\
6313807 2014/09/22 16:20:46.87 GMT8 MINOR: SVCMGR #2214 Base Managed SAP creation failure
\system could not create Managed SAP:1/1/2:150.2119, MAC:14:75:90:80:f4:55, Capturing SAP:1/1/2:*.*, Service:30001102. Description: Blocked by host lockout\
6313806 2014/09/22 16:20:46.33 GMT8 MINOR: SVCMGR #2214 Base Managed SAP creation failure
\system could not create Managed SAP:1/1/2:103.2102, MAC:cc:34:29:70:df:85, Capturing SAP:1/1/2:*.*, Service:30001102. Description: Blocked by host lockout\
6313805 2014/09/22 16:20:44.90 GMT8 WARNING: SVCMGR #2501 Base Subscriber deleted \
…………
5.1.15. 通过管道符匹配IP、MAC和用户名查询log
A:AC7750# show log log-id 99 | match 49.86.40.132pre-lines 2
…………
A:AC7750# show log log-id 99 | match 051483453528pre-lines 2
…………
A:AC7750# show log log-id 99 | match f0:eb:d0:80:aa:ae pre-lines 2
6314008 2014/09/22 16:22:21.86 GMT8 MINOR: SVCMGR #2214 Base Managed SAP creation failure
\system could not create Managed SAP:1/1/2:162.2110, MAC:f0:eb:d0:80:aa:ae, Capturing SAP:1/1/2:*.*, Service:30001102. Description: Blocked by host lockout\
6313992 2014/09/22 16:22:13.86 GMT8 MINOR: SVCMGR #2214 Base Managed SAP creation
上海贝尔股份有限公司设备操作手册
failure
\system could not create Managed SAP:1/1/2:162.2110, MAC:f0:eb:d0:80:aa:ae, Capturing SAP:1/1/2:*.*, Service:30001102. Description: Blocked by host lockout\
…………
5.1.16. 查看资源占用情况
*A:AC7750# tools dump system-resources
Resource Manager info at 055 d 09/22/14 08:25:02.022:
Hardware Resource Usage for Slot #1, CardType iom3-xp, Cmplx #0:
| Total | Allocated | Free -------------------------------+-----------+-----------+------------ SAP Ingress QoS Policies | 1791| 3| 1788 Dynamic Egress Classification | 2047| 3| 2044 SAP Egress QoS Policies | | 3| Network Egress Classification | | 0|
Dynamic Queues | 65536| 5912| 59624 Queues in use by ingress | | 3262| Queues in use by egress | | 2650|
Ingress Policers | 262143| 2753| 259390 Egress Policers | 262143| 2753| 259390 Ingress Policer Stats | 262111| 2752| 259359 Egress Policer Stats | 262111| 2752| 259359 Qos Ingress Root Arbiters | 65535| 1| 65534 Qos Egress Root Arbiters | 65535| 1| 65534 Qos Intermediate Arbiters | 262143| 0| 262143
Ingress ACL/QoS Entries | 65536| 2| 65534 Ingress IPv6 ACL Entries | 28672| 2| 28670 Ingress IPv6 QoS Entries | 4096| 2| 4094 Egress ACL/QoS Entries | 32768| 2| 32766 Egress AA Entries | | 0|
Egress IPv6 ACL Entries | 16384| 2| 16382 Egress IPv6 AA Entries | | 0|
Egress IPv6 QoS Entries | 2048| 2| 2046 Egress IPv6 remote AA Entries | | 0|
Ingress ACL Filters | 2047| 0| 2047 Egress ACL Filters | 2047| 0| 2047 QoS User Schedulers | 49151| 0| 49151 QoS Internal Schedulers | 65551| 16| 65535
Dynamic Service Entries | 65535| 2782| 62753 Subscriber Hosts | | 2782| Encap Group Members | | 0|
Egr Network Queue Group Mappings | | 0|
- 44 -
上海贝尔股份有限公司设备操作手册
Subscriber SPI QoS Overrides | 80000| 5490| 74510 Dynamic Q2 Named Pools | 245| 0| 245 Pools in use by ingress | | 0| Pools in use by egress | | 0|
Dynamic Q2 Wred Pools | 7500| 0| 7500
…………
5.2. debug相关命令
? debug log的输出7750默认没有配置,需要新建单独log-id用于log输出,现场统一
配置log-id 33为debug输出,如下:
A:AC7750# configure log A:AC7750>config>log# info
---------------------------------------------- log-id 33
from debug-trace to memory 1000 exit
----------------------------------------------
? 配置完成后通过show命令查看log
A:AC7750# show log log-id 33
? debug完成后需要关闭debug,命令如下
A:AC7750#no debug
5.2.1. debug 7750和radius互通消息
A:AC7750# debug router \A:AC7750# show debug debug
router \ radius
packet-type authentication accounting coa detail-level medium exit exit exit
5.2.2. debug 7750BRAS和终端之间交互的PPP报文
A:AC7750# debug service id 30001102 ppp packet mode egr-ingr-and-dropped
上海贝尔股份有限公司设备操作手册
A:AC7750# debug service id 30001102 ppp packet discovery padipadopadr pads padt A:AC7750# debug service id 30001102 ppp packet ppplcp pap ipcp
5.2.3. debug DHCP报文
后续补充
5.3. clear 命令
注意,清除命令风险比较高,需要反复确认后执行。 ? 清除所有PPPoE用户下线
A:AC7750# clear service id 3000 ppp session all
? 基于vlan清除PPPoE用户下线
A:AC7750# clear service id 3000 ppp session sap-id 1/1/2:451.2458
? 基于IP清除PPPoE用户下线
A:AC7750# clear service id 3000 ppp session ip-address 49.86.41.5
? 基于MAC清除PPPoE用户下线
A:AC7750# clear service id 3000 ppp session mac ec:88:8f:38:a3:d9
? 基于username清除PPPoE用户下线
A:AC7750# clear service id 3000 ppp session user-name 13365139158
? 基于端口清除PPPoE用户下线
A:AC7750# clear service id 3000 ppp session port 1/1/2
- 46 -
江苏移动7750BRAS操作维护手册
作者姓名:张海亮
部门、职位: 江苏分公司、技术经理 产品:IP 7750 完成日期: 2014年10月
创新沟通方式,缔造多彩生活
上海贝尔股份有限公司设备操作手册
更新记录
日期 修订版本 描述 2014-10-20 V1.0 涉及PPPoE业务内容业务开通 作者 张海亮 - 2 -
上海贝尔股份有限公司设备操作手册
目录
1. 2. 3. 3.1. 3.2. 3.2.1. 3.2.2. 4. 4.1. 4.1.1. 4.1.2. 4.2. 4.3. 4.4. 4.5. 4.6. 4.7. 4.7.1. 4.7.2. 4.8. 4.8.1. 4.8.2. 4.8.3. 4.9. 4.9.1. 4.9.2. 4.10. 4.10.1.4.10.2.4.10.3.总体概述 ................................................................................................. 5 7750上BRAS功能实现 ....................................................................... 6 7750BRAS和radius配合的相关属性 .................................................. 8 常用属性和说明 ..................................................................................... 8 常用私有属性 ......................................................................................... 9
私有属性说明 .................................................................................. 9 Radius根据不同业务类型的PPPoE用户下发组合 ................... 10 BRAS各个功能模块配置和规范 ....................................................... 11 RADIUS server和认证计费策略定义 ................................................ 11
定义认证和计费策略 .................................... 错误!未定义书签。 检查认证策略情况 ........................................ 错误!未定义书签。 Sub-profile和PPPoE用户的组播策略 ............................................... 12 sla-profile和QoS、ip-filter、category-map策略 .............................. 13 PPPoE用户拨号接入策略 ................................................................... 20 PPPoE用户恶意拨号锁定功能策略 ................... 错误!未定义书签。 RADIUS属性映射策略、MSAP和LUDB策略 .............................. 21 PPPoE地址池和地址段增减 ............................................................... 23
地址段添加 .................................................................................... 23 地址段删除 .................................................................................... 24 PPPoE普通业务开通 ........................................................................... 25
端口开通 ........................................................................................ 25 VPLS业务接入PPPoE动态创建vlan ........................................ 27 IES业务接入PPPoE的3层接入业务 ........................................ 28 PPPoE接入L2TP用户业务开通 ........................ 错误!未定义书签。
配置静态隧道 ................................................ 错误!未定义书签。 根据域名关联预配置的静态隧道 ................ 错误!未定义书签。 PPPoE业务itv业务开通..................................... 错误!未定义书签。
端口开通 ........................................................ 错误!未定义书签。 VPLS业务接入PPPoE动态创建vlan ........ 错误!未定义书签。 IES业务接入拨号的ITV业务 .................... 错误!未定义书签。
上海贝尔股份有限公司设备操作手册
4.10.4. 5. 5.1. 5.1.1. 5.1.2. 5.1.3. 5.1.4. 5.1.5. 5.1.6. 5.1.7. 5.1.8. 5.1.9. 5.1.10. 5.1.11. 5.1.12. 5.1.13. 5.1.14. 5.1.15. 5.1.16. 5.1.17. 5.2. 5.2.1. 5.2.2. 5.2.3. 5.3.
将组播接口加入IGMP协议 ........................ 错误!未定义书签。 BRAS常用查询show和debug命令使用 ......................................... 31 常用的show命令 ................................................................................ 31
查看端口状态和封装 .................................................................... 31 查看PPPoE业务L3接口状态 .................................................... 31 查看当前PPPoE在线用户数 ....................................................... 32 查看当前PPPoE用户在线情况 ................................................... 32 基于username查询在线状态 ....................................................... 32 基于用户IP地址查询 .................................................................. 34 基于MAC地址查询 ..................................................................... 35 基于端口查询在线数 .................................................................... 35 基于用户vlan查询 ....................................................................... 36 基于subscriber(username)查询 ............................................... 36 基于用户类型查询 ........................................................................ 39 查看PPPoE业务地址池使用情况 ............................................... 39 查询PPPoE组播情况 ................................... 错误!未定义书签。 查询PPPoE用户信令转发情况 ................................................... 41 检查log .......................................................................................... 43 通过管道符匹配IP、MAC和用户名查询log ........................... 43 查看资源占用情况 ........................................................................ 44 debug相关命令 .................................................................................... 45
debug 7750和radius互通消息 .................................................... 45 debug 7750BRAS和终端之间交互的PPP报文 ......................... 45 debug DHCP报文 ......................................................................... 46 clear 命令 ............................................................................................. 46
- 4 -
上海贝尔股份有限公司设备操作手册
1. 总体概述
本文档主要介绍阿尔卡特朗讯7750SR路由器实现的BRAS功能,主要包括: ? 7750BRAS的功能实现;
? 与radius互通相关属性和私有属性; ? BRAS各个功能模块配置和规范; ? 查询命令的使用; ? Debug工具的使用。
7750BRAS是BNG设备,能够同时实现SR业务,由于SR业务在移动较为简单,所以本文不涉及SR部分的介绍。本文也会规范BRAS功能的配置,和SR部分相同的采用省公司SR的配置规范。
本文档为阿尔卡特朗讯公司7750 BRAS日常维护操作手册,只针对日常工作中常见的维护工作进行编写,若获取更多信息,请参阅以下文档:
7750SR Installation Guide
7750SR OS System Management Guide 7750SR OS System Basic Config Guide 7750SROSInterfaceGuide 7750SROSRouterConfigGuide 7750SR OS Routing Protocol Guide 7750SR OS MPLS Guide 7750SR OS Service Guide 7750SR OS QoS Config Guide 7750 SR OS Triple Play Guide
上述文档以7750SR路由器装箱光盘方式提供。
上海贝尔股份有限公司设备操作手册
13365139158
svc:3000 sap:[1/1/2:615.2108] mac:e4:d3:32:85:24:39 sid:1
1d 01:30:30 oE local 117.60.109.146 …………
5.1.9. 基于用户vlan查询
A:AC7750# show service id 3000 ppp session sap 1/1/2:608.2130
=============================================================================== PPP sessions for service 3000
=============================================================================== User-Name Descr.
Up Time Type Termination IP/L2TP-Id/Interface-Id MC-Stdby ------------------------------------------------------------------------------- 13365136293
svc:3000 sap:[1/1/2:608.2130] mac:d0:c7:c0:80:34:95 sid:1
0d 02:13:24 oE local 117.60.103.34
------------------------------------------------------------------------------- No. of PPP sessions: 1
===============================================================================
5.1.10. 基于subscriber(username)查询
该命令主要查询使用用户调用的ESM属性,比如sla-profile或sub-profile,命令输出为本地配置的模板名称,并可查询用户使用的流量情况。
A:AC7750# show service active-subscribers subscriber \
=============================================================================== Active Subscribers
=============================================================================== ------------------------------------------------------------------------------- Subscriber 13365136293 (sub-pppoe)
------------------------------------------------------------------------------- I. Sched. Policy : N/A
E. Sched. Policy : N/A E. Agg Rate Limit: Max I. Policer Ctrl. : N/A E. Policer Ctrl. : N/A Q Frame-Based Ac*: Disabled
Acct. Policy : N/A Collect Stats : Disabled Rad. Acct. Pol. : js.163.radius Dupl. Acct. Pol. : N/A
- 36 -
上海贝尔股份有限公司设备操作手册
ANCP Pol. : N/A HostTrk Pol. : N/A IGMP Policy : N/A Sub. MCAC Policy : N/A NAT Policy : N/A
Def. Encap Offset: none Encap Offset Mode: none Avg Frame Size : N/A Preference : 5 Sub. ANCP-String : \Sub. IntDest Id : \
Igmp Rate Adj : N/A RADIUS Rate-Limit: N/A Oper-Rate-Limit : Maximum
* indicates that the corresponding row element may have been truncated.
------------------------------------------------------------------------------- (1) SLA Profile Instance
- sap:[1/1/2:608.2130] (IES 3000 - hsi-1/1/2) - sla:sla-pppoe
------------------------------------------------------------------------------- Description : (Not Specified)
Host Limit : No Limit
Ingress Qos-Policy : 3000 Egress Qos-Policy : 3000 Ingress Queuing Type : Shared-queuing (Not Applicable to Policer) Ingr IP Fltr-Id : N/A Egr IP Fltr-Id : N/A Ingr IPv6 Fltr-Id : N/A Egr IPv6 Fltr-Id : N/A Ingress Report-Rate : Maximum Egress Report-Rate : Maximum Egress Remarking : from Sap Qos Credit Control Pol. : N/A
Category Map : (Not Specified) Use ing L2TP DSCP : false
------------------------------------------------------------------------------- ------------------------------------------------------------------------------- IP Address
MAC Address PPPoE-SID Origin
-------------------------------------------------------- 117.60.103.34
d0:c7:c0:80:34:95 1 IPCP
------------------------------------------------------------------------------- SLA Profile Instance Overrides
------------------------------------------------------------------------------- Dir Type Id PIR CIR CBS MBS WRR ------------------------------------------------------------------------------- Ing Policer 1 4096 4096 N/A N/AN/A
上海贝尔股份有限公司设备操作手册
Egr Policer 1 102400 102400 N/A N/AN/A
------------------------------------------------------------------------------- No. of Overrides: 2
------------------------------------------------------------------------------- ------------------------------------------------------------------------ SLA Profile Instance statistics
------------------------------------------------------------------------ Packets Octets
Off. HiPrio : 0 0 Off. LowPrio : 768072 79163547 Off. Uncolor : 0 0 Off. Managed : 0 0
Queueing Stats (Ingress QoS Policy 3000)
Dro. HiPrio : 0 0 Dro. LowPrio : 0 0 For. InProf : 0 0 For. OutProf : 768072 79163547
Queueing Stats (Egress QoS Policy 3000)
Dro. InProf : 0 0 Dro. OutProf : 0 0 For. InProf : 0 0 For. OutProf : 1450653 2130803651
------------------------------------------------------------------------ SLA Profile Instance per Queue statistics
------------------------------------------------------------------------
------------------------------------------------------------------------ SLA Profile Instance per Policer statistics
------------------------------------------------------------------------ Packets Octets
Ingress Policer 1 (Stats mode: minimal)
Off. All : 768072 79163547 Dro. All : 0 0 For. All : 768072 79163547
Egress Policer 1 (Stats mode: minimal)
Off. All : 1450653 2130803651 Dro. All : 0 0 For. All : 1450653 2130803651
-------------------------------------------------------------------------------
- 38 -
上海贝尔股份有限公司设备操作手册
5.1.11. 基于用户类型查询
基于用户类型查询用户数量,可以通过不同用户类型调用不同的sla-profile实现分类查找
A:AC7750# show service id 3000 subscriber-hosts sub-profile \
============================================================= Subscriber Host table
============================================================= Sap Subscriber IP Address
MAC Address PPPoE-SID Origin Fwding State ------------------------------------------------------------- [1/1/2:102.2101] 051489386678 49.86.41.25
d0:c7:c0:67:8d:d3 1 IPCP Fwding [1/1/2:103.2101] 051489394972 49.86.97.97
a8:57:4e:83:a5:6b 1 IPCP Fwding [1/1/2:105.2101] 051483631595 49.86.41.32
c8:3a:35:0d:8b:68 2 IPCP Fwding …………
5.1.12. 查看PPPoE业务地址池使用情况
*A:AC7750# show router dhcp local-dhcp-server \
=============================================================================== DHCP server dhcp-s1 router Base
=============================================================================== Admin State : inService Operational State : inService Persistency State : shutdown User Data Base : N/A
Use gateway IP address : enabled (scope pool) Use pool from client : enabled Send force-renewals : enabled Creation Origin : manual
Failover Admin State : outOfService Failover Oper State : shutdown Failover Persist Key : N/A
上海贝尔股份有限公司设备操作手册
Administrative MCLT : 0h10m0s Operational MCLT : 0h10m0s Startup wait time : 0h2m0s Partner down delay : 23h59m59s Ignore MCLT : disabled
------------------------------------------------------------------------------- Pool name : vod-01
------------------------------------------------------------------------------- Failover Admin State : outOfService Failover Oper State : shutdown Failover Persist Key : N/A Administrative MCLT : 0h10m0s Operational MCLT : 0h10m0s Startup wait time : 0h2m0s Partner down delay : 23h59m59s Ignore MCLT : disabled
------------------------------------------------------------------------------- Subnet Free % Stable Declined Offered Rem-pend Drain ------------------------------------------------------------------------------- 10.197.104.0/21 1603 78% 442 0 0 0 N 10.228.176.0/20 4093 100% 0 0 0 0 N
Totals for pool 5696 92% 442 0 0 0
-------------------------------------------------------------------------------
------------------------------------------------------------------------------- Pool name : adsl-01
------------------------------------------------------------------------------- Failover Admin State : outOfService Failover Oper State : shutdown Failover Persist Key : N/A
Administrative MCLT : 0h10m0s Operational MCLT : 0h10m0s Startup wait time : 0h2m0s Partner down delay : 23h59m59s Ignore MCLT : disabled
------------------------------------------------------------------------------- Subnet Free % Stable Declined Offered Rem-pend Drain ------------------------------------------------------------------------------- 49.86.40.0/22 0 0% 1021 0 0 0 N 49.86.96.0/22 23 2% 998 0 0 0 N 117.60.103.0/24 25 9% 228 0 0 0 N 117.60.108.0/23 251 49% 258 0 0 0 N 221.229.19.0/24 242 95% 11 0 0 0 N
- 40 -
上海贝尔股份有限公司设备操作手册
host-match dest \ exit
exit exit
no autonegotiate exit
no shutdown
exit
---------------------------------------------- A:AC7750# configure port 3/1/3 A:AC7750>config>port# info
---------------------------------------------- port 3/1/3
description \ethernet
mode access encap-type qinq
egress-scheduler-policy \ access egress
queue-group \ host-match dest \ exit exit exit
no autonegotiate exit
no shutdown exit
---------------------------------------------- A:AC7750# configure lag 43 A:AC7750>config>lag# info
---------------------------------------------- description \ mode access encap-type qinq access
adapt-qos link exit
port 1/1/9 port 3/1/3
lacp active administrative-key 32770 no shutdown
exit
----------------------------------------------
- 26 -
上海贝尔股份有限公司设备操作手册
4.7.2. VPLS业务接入PPPoE动态创建vlan
为了简化拨号接入vlan的配置,通过vpls业务的默认vlan(*)匹配拨号接入的vlan通过msap策略赋予动态vlan的ESM属性,如果出现OLT双挂BRAS的情况,可同通过配置pppoe-policy设置相应延时来实现冷备份。以下两个节点通过外层的奇偶vlan实现业务冷备份。节点1的lag 43对应节点2的lag 23互为冷备。
节点1:
A:AC7750-1# configure service A:AC7750-1>config>service# info
---------------------------------------------- vpls 2043 customer 20 create stp
shutdown exit
sap lag-43:31.* capture-sap create trigger-packet pppoe pppoe-policy \msap-defaults
group-interface \ policy \ service 3000 exit
authentication-policy \ exit
sap lag-43:32.* capture-sap create trigger-packet pppoe pppoe-policy \msap-defaults
group-interface \ policy \ service 3000 exit
authentication-policy \ exit
……
----------------------------------------------
节点2
A:AC7750-1# configure service A:AC7750-1>config>service# info
---------------------------------------------- vpls 2023 customer 20 create stp
上海贝尔股份有限公司设备操作手册
shutdown exit
sap lag-23:31.* capture-sap create trigger-packet pppoe pppoe-policy \msap-defaults
group-interface \ policy \ service 3000 exit
authentication-policy \ exit
sap lag-23:32.* capture-sap create trigger-packet pppoe pppoe-policy \msap-defaults
group-interface \ policy \ service 3000 exit
authentication-policy \ exit
……
----------------------------------------------
4.7.3. IES业务接入PPPoE的3层接入业务
所有PPPoE拨号业务都终结在ID为3000的IES业务中
A:AC7750# configure service A:AC7750>config>service# info
---------------------------------------------- ies 3000 customer 10 create
subscriber-interface \
……
address 49.86.40.1/22 ipv6
default-dns 2409:8085:E0::5 subscriber-prefixes
prefix 2409:88B5:895:8000::/49 pd wan-host exit exit
……
group-interface \ ipv6
- 28 -
上海贝尔股份有限公司设备操作手册
router-advertisements dns-options
include-dns exit
other-stateful-configuration prefix-options autonomous exit
no shutdown exit dhcp6
proxy-server
client-applications ppp no shutdown exit exit exit
local-address-assignment ipv6
server \
client-application ppp-slaac exit
no shutdown exit arp-populate dhcp
server 221.178.235.21 trusted
client-applications ppp gi-address 10.43.110.1
no shutdown exit
authentication-policy \pppoe
policy \ session-limit 32767 sap-session-limit 32767 no shutdown exit exit
group-interface \ ipv6
router-advertisements dns-options
include-dns exit
上海贝尔股份有限公司设备操作手册
other-stateful-configuration prefix-options autonomous exit
no shutdown exit dhcp6
proxy-server
client-applications ppp no shutdown exit exit exit
local-address-assignment ipv6
server \
client-application ppp-slaac exit
no shutdown exit arp-populate dhcp
server 221.178.235.21 trusted
client-applications ppp gi-address 10.43.110.1
no shutdown exit
authentication-policy \pppoe
policy \ session-limit 32767 sap-session-limit 32767 no shutdown exit exit
……
----------------------------------------------
- 30 -
上海贝尔股份有限公司设备操作手册
5. BRAS常用查询show和debug命令使用
5.1. 常用的show命令
SHOW命令主要检查业务在线状态,默认是简化输出,部分命令可通过detail参数增加输出内容,使用过程中根据情况灵活使用
5.1.1. 查看端口状态和封装
A:AC7750# show port
=============================================================================== Ports on Slot 1
=============================================================================== Port Admin Link Port CfgOper LAG/ Port PortPort C/QS/S/XFP/ Id State State MTU MTUBndl Mode Encp Type MDIMDX
------------------------------------------------------------------------------- 1/1/1 Up Yes Up 1614 1614 - netw null xgige 10GBASE-LR 10* 1/1/2 Up Yes Up 1522 1522 - accsqinqxgige 10GBASE-LR 10* ……
===============================================================================
5.1.2. 查看PPPoE业务L3接口状态
A:AC7750# show service id 3000 interface
=============================================================================== Interface Table
=============================================================================== Interface-Name AdmOpr(v4/v6) Type Port/SapId
IP-Address PfxState
------------------------------------------------------------------------------- pppoe Up Up/Down IES Sub subscriber 221.229.19.1/24 n/a ……
49.86.40.1/22 n/a hsi-1/1/2 Up Up/Down IES Grp 1/1/2 pre-vod-1/1/2 Up Down/Down IES Grp n/a vod-1/1/2 Up Up/Down IES Grp 1/1/2 hsi-3/1/2 Up Up/Down IES Grp 3/1/2 pre-vod-3/1/2 Up Down/Down IES Grp n/a
上海贝尔股份有限公司设备操作手册
vod-3/1/2 Up Down/Down IES Grp n/a
------------------------------------------------------------------------------- Interfaces : 13
===============================================================================
5.1.3. 查看当前PPPoE在线用户数
A:AC7750# show service id 3000 ppp summary
=============================================================================== PPP sessions summary for service 3000
=============================================================================== PPPoE sessions : 3020 service sessions : 3020
===============================================================================
5.1.4. 查看当前PPPoE用户在线情况
A:AC7750# show service id 3000 ppp session
=============================================================================== PPP sessions for service 3000
=============================================================================== User-Name Descr.
Up Time Type Termination IP/L2TP-Id/Interface-Id MC-Stdby ------------------------------------------------------------------------------- 13338121110
svc:3000 sap:[1/1/2:451.2458] mac:ec:88:8f:38:a3:d9 sid:1
0d 08:49:30 oE local 49.86.41.5 13338855132
svc:3000 sap:[1/1/2:446.2135] mac:94:de:80:d3:34:c6 sid:2
1d 20:19:44 oE local 49.86.41.26 13358144682
svc:3000 sap:[1/1/2:162.2104] mac:d8:15:0d:87:c7:eb sid:1
0d 01:40:58 oE local 49.86.40.40 13358148620
svc:3000 sap:[1/1/2:576.2101] mac:00:24:8c:5d:f7:a1 sid:1
0d 04:35:07 oE local 49.86.97.61 13365136293
svc:3000 sap:[1/1/2:608.2130] mac:d0:c7:c0:80:34:95 sid:1
0d 02:05:12 oE local 117.60.103.34 …………
5.1.5. 基于username查询在线状态
A:AC7750# show service id 3000 ppp session user-name \
- 32 -
上海贝尔股份有限公司设备操作手册
=============================================================================== PPP sessions for service 3000
=============================================================================== User-Name : 13365136293
Description : svc:3000 sap:[1/1/2:608.2130] mac:d0:c7:c0:80:34:95 sid:1
Up Time : 0d 02:07:31 Type : oE Termination : local
IP/L2TP-Id/If-Id : 117.60.103.34 MC-Standby : No
Session Time Left : 1d 21:49:31
LCP State : Opened IPCP State : Opened IPv6CP State : Initial PPP MTU : 1480 PPP Auth-Protocol : PAP
PPP User-Name : 13365136293
Subscriber-interface : pppoe Group-interface : hsi-1/1/2
IP Origin : local-pool DNS Origin : local-pool NBNS Origin : none
Subscriber : \Sub-Profile-String : \SLA-Profile-String : \ANCP-String : \Int-Dest-Id : \App-Profile-String : \Category-Map-Name : \
Acct-Session-Id : \
IP Address : 117.60.103.34/32 Primary DNS : 61.147.37.1 Secondary DNS : 61.177.7.1 Primary NBNS : N/A Secondary NBNS : N/A Address-Pool : N/A
IPv6 Prefix : N/A
IPv6 Prefix Origin : none
上海贝尔股份有限公司设备操作手册
IPv6 Prefix Pool : \IPv6 Del.Pfx. : N/A IPv6 Del.Pfx. Origin : none IPv6 Del.Pfx. Pool : \IPv6 Address : N/A IPv6 Address Origin : none IPv6 Address Pool : \Primary IPv6 DNS : N/A Secondary IPv6 DNS : N/A
Circuit-Id : Remote-Id :
Radius Session-TO : 1d 23:57:00 Radius Class :
Radius User-Name : 13365136293 Logical-Line-Id :
------------------------------------------------------------------------------- Overrides
------------------------------------------------------------------------------- Dir Type Key PIR CIR CBS MBS WRR ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- No. of Overrides: 2
------------------------------------------------------------------------------- ------------------------------------------------------------------------------- No. of sessions: 1
===============================================================================
5.1.6. 基于用户IP地址查询
A:AC7750# show service id 3000 ppp session ip-address 49.86.42.233
=============================================================================== PPP sessions for service 3000
=============================================================================== User-Name Descr.
Up Time Type Termination IP/L2TP-Id/Interface-Id MC-Stdby ------------------------------------------------------------------------------- 13365139218
svc:3000 sap:[1/1/2:274.2127] mac:e4:d3:32:6d:ad:53 sid:1
1d 04:04:47 oE local 49.86.42.233
- 34 -
上海贝尔股份有限公司设备操作手册
------------------------------------------------------------------------------- No. of PPP sessions: 1
===============================================================================
5.1.7. 基于MAC地址查询
A:AC7750# show service id 3000 subscriber-hosts mac 00:5a:39:0e:0b:b3
============================================================= Subscriber Host table
============================================================= Sap Subscriber IP Address
MAC Address PPPoE-SID Origin Fwding State ------------------------------------------------------------- [1/1/2:284.2142] 13365139300 117.60.103.101
00:5a:39:0e:0b:b3 1 IPCP Fwding
------------------------------------------------------------- Number of subscriber hosts : 1
=============================================================
5.1.8. 基于端口查询在线数
*A:AC7750# show service id 3000 ppp session port 1/1/2
=============================================================================== PPP sessions for service 3000
=============================================================================== User-Name Descr.
Up Time Type Termination IP/L2TP-Id/Interface-Id MC-Stdby ------------------------------------------------------------------------------- 13338121110
svc:3000 sap:[1/1/2:451.2458] mac:ec:88:8f:38:a3:d9 sid:1
0d 08:55:30 oE local 49.86.41.5 13338855132
svc:3000 sap:[1/1/2:446.2135] mac:94:de:80:d3:34:c6 sid:2
1d 20:25:44 oE local 49.86.41.26 13358148620
svc:3000 sap:[1/1/2:576.2101] mac:00:24:8c:5d:f7:a1 sid:1
0d 04:41:07 oE local 49.86.97.61 13365136293
svc:3000 sap:[1/1/2:608.2130] mac:d0:c7:c0:80:34:95 sid:1
0d 02:11:11 oE local 117.60.103.34
上海贝尔股份有限公司设备操作手册
A:AC7750# debug service id 30001102 ppp packet discovery padipadopadr pads padt A:AC7750# debug service id 30001102 ppp packet ppplcp pap ipcp
5.2.3. debug DHCP报文
后续补充
5.3. clear 命令
注意,清除命令风险比较高,需要反复确认后执行。 ? 清除所有PPPoE用户下线
A:AC7750# clear service id 3000 ppp session all
? 基于vlan清除PPPoE用户下线
A:AC7750# clear service id 3000 ppp session sap-id 1/1/2:451.2458
? 基于IP清除PPPoE用户下线
A:AC7750# clear service id 3000 ppp session ip-address 49.86.41.5
? 基于MAC清除PPPoE用户下线
A:AC7750# clear service id 3000 ppp session mac ec:88:8f:38:a3:d9
? 基于username清除PPPoE用户下线
A:AC7750# clear service id 3000 ppp session user-name 13365139158
? 基于端口清除PPPoE用户下线
A:AC7750# clear service id 3000 ppp session port 1/1/2
- 46 -
百度搜索“70edu”或“70教育网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,70教育网,提供经典综合文库7750BRAS操作维护手册在线全文阅读。
相关推荐: