双堆栈订阅者监控和管理
监控活动订阅者会话
目的
查看活动订阅者会话的摘要。
行动
在操作模式下,输入 show subscribers summary
命令。
user@host>show subscribers summary Subscribers by State Active: 2 Total: 2 Subscribers by Client Type DHCP: 1 PPPoE: 1 Total: 2
意义
下的 Subscribers by State
输出显示活动订阅者会话数。
下的 Subscribers by Client Type
输出按类型显示活动会话数。上述两个订阅者会话表示 PPPoE 接入网络上的一个 DHCPv6 订阅者。当 DHCPv6 在 PPPoE 上分层时,将为订阅者创建两个单独的订阅者会话。
监控正确路由实例中的 IPv4 和 IPv6 地址
目的
验证订阅者是否同时具有 IPv4 和 IPv6 地址,以及是否位于正确的路由实例中。
行动
在操作模式下,输入 show subscribers
命令。
user@host>show subscribers Interface IP Address/VLAN ID User Name LS:RI pp0.1073741825 203.0.113.162 ipv4-v6-subscriber default:default pp0.1073741825 2001:DB8::1 default:default
意义
该 Interface
字段显示同一接口上正在运行两个订阅者会话。字段 IP Address
显示一个会话分配了 IPv4 地址,一个会话分配了 IPv6 地址。
字段 LS:RI
显示用户已放置在正确的路由实例中,并且可以发送和接收流量。
监控动态订阅者会话
目的
显示动态 PPPoE 和 DHCPv6 订阅者会话。
行动
在操作模式下,输入 show subscribers detail
命令。
user@host>show subscribers detail Type: PPPoE User Name: SBRSTATICUSER IP Address: 203.0.113.162 IP Netmask: 255.0.0.0 Logical System: default Routing Instance: default Interface: pp0.1073741825 Interface type: Dynamic Dynamic Profile Name: pppoe-subscriber-profile MAC Address: 00:00:5E:00:53:01 State: Active Radius Accounting ID: 2 Session ID: 2 Login Time: 2011-12-08 09:11:41 PST Type: DHCP IPv6 Address: 2001:DB8::1 Logical System: default Routing Instance: default Interface: pp0.1073741825 Interface type: Static MAC Address: 00:00:5E:00:53:01 State: Active Radius Accounting ID: 3 Session ID: 3 Underlying Session ID: 2 Login Time: 2011-12-08 09:12:11 PST DHCP Options: len 42 00 08 00 02 0b b8 00 01 00 0a 00 03 00 01 00 01 02 00 00 01 00 06 00 02 00 03 00 03 00 0c 00 00 00 00 00 00 00 00 00 00 00 00
意义
如果通过 PPPoE 接入网络使用 DHCPv6,则输出会显示 DHCPv6 订阅者会话与其底层 PPPoE 订阅者会话的关系。在 PPPoE 会话的输出中,为 Session ID
2。DHCP 会话的输出显示为 Underlying Session ID
2。
监控用于订阅者的地址池
目的
验证用于 NDRA 的池、用于 DHCPv6 前缀委派的委托地址池以及委托给 CPE 的 IPv6 前缀的长度。
行动
在操作模式下,输入 show subscribers extensive
命令。
user@host>show subscribers extensive Type: PPPoE User Name: dual-stack-v4v6-pd IP Address: 203.0.113.5 IP Netmask: 255.255.0.0 IPv6 User Prefix: 2001:db8:2010:0:0:8::/64 Logical System: default Routing Instance: default Interface: pp0.1073741864 Interface type: Dynamic Dynamic Profile Name: DS-dyn-ipv4v6-ra MAC Address: 00:00:5E:00:53:02 State: Active Radius Accounting ID: 87 Session ID: 87 Login Time: 2012-01-17 14:45:30 PST IPv6 Delegated Address Pool: dhcpv6-pd-pool IPv6 Delegated Address Pool: ndra-2010 IPv6 Delegated Network Prefix Length: 48 IPv6 Interface Address: 2001:db8:2010:0:0:8::1/64 Type: DHCP IPv6 Prefix: 2001:db8:2040:2000:2000:5::/64 Logical System: default Routing Instance: default Interface: pp0.1073741864 Interface type: Static MAC Address: 00:00:5E:00:53:02 State: Active Radius Accounting ID: 88 Session ID: 88 Underlying Session ID: 87 Login Time: 2012-01-17 14:46:00 PST DHCP Options: len 42 00 08 00 02 0b b8 00 01 00 0a 00 03 00 01 00 07 64 11 07 02 00 06 00 02 00 19 00 19 00 0c 00 00 00 00 00 00 00 00 00 00 00 00 IPv6 Delegated Address Pool: dhcpv6-pd-pool IPv6 Delegated Network Prefix Length: 64 IPv6 Delegated Network Prefix Length: 48
意义
在 PPPoE 会话下, IPv6 Delegated Address Pool
字段显示用于 DHCPv6 前缀委派和 NDRA 前缀的池的名称。该 IPv6 Delegated Network Prefix Length
字段显示用于为此订阅者会话分配 IPv6 地址的前缀长度。该 IPv6 Interface Address
字段显示从 NDRA 池分配给 CPE 接口的 IPv6 地址。
在 DHCP 会话下, IPv6 Delegated Address Pool
字段显示用于 DHCPv6 前缀委派的池的名称。这些 IPv6 Delegated Network Prefix Length
字段显示 DHCPv6 前缀委派中使用的前缀长度。
监控特定订阅者会话
目的
显示有关特定订阅者会话的信息。如果正在运行多个订阅者会话,则可以使用此命令显示特定会话。
行动
在操作模式下,输入 show subscribers extensive id
命令。
user@host>show subscribers extensive id 2 Type: PPPoE User Name: SBRSTATICUSER IP Address: 203.0.113.162 IP Netmask: 255.0.0.0 Logical System: default Routing Instance: default Interface: pp0.1073741825 Interface type: Dynamic Dynamic Profile Name: pppoe-subscriber-profile MAC Address: 00:00:5E:00:53:01 State: Active Radius Accounting ID: 2 Session ID: 2 Login Time: 2011-12-08 09:11:41 PST user@host> show subscribers extensive id 3 Type: DHCP IPv6 Address: 2001:DB8::1 Logical System: default Routing Instance: default Interface: pp0.1073741825 Interface type: Static MAC Address: 00:00:5E:00:53:01 State: Active Radius Accounting ID: 3 Session ID: 3 Underlying Session ID: 2 Login Time: 2011-12-08 09:12:11 PST DHCP Options: len 42 00 08 00 02 0b b8 00 01 00 0a 00 03 00 01 00 01 02 00 00 01 00 06 00 02 00 03 00 03 00 0c 00 00 00 00 00 00 00 00 00 00 00 00
意义
输出显示有关特定订阅者会话的详细信息。
监控 PPPoE 逻辑接口的状态
目的
显示有关 PPPoE 逻辑接口的状态信息。
行动
user@host> show interfaces pp0.1073741888 Logical interface pp0.1073741888 (Index 123) (SNMP ifIndex 707) Flags: Point-To-Point SNMP-Traps 0x4000 Encapsulation: PPPoE PPPoE: State: SessionUp, Session ID: 16, Session AC name: centaurus, Remote MAC address: 00:00:5E:00:53:02, Underlying interface: ge-1/0/0.1104 (Index 95) Input packets : 8 Output packets: 51816 LCP state: Opened NCP state: inet: Opened, inet6: Opened, iso: Not-configured, mpls: Not-configured CHAP state: Closed PAP state: Success Protocol inet, MTU: 1500 Flags: Sendbcast-pkt-to-re Addresses, Flags: Is-Primary Local: 192.0.2.77 Protocol inet6, MTU: 1500 Addresses, Flags: Is-Preferred Is-Primary Destination: 2001:DB8:0:21::/64, Local: 2001:DB8:0:21::1 Addresses, Flags: Is-Preferred Destination: fe80::/64, Local: fe80::2a0:a50f:fc61:6d0
意义
显示有关 ppp0 接口的会话信息。
监控订阅者的服务会话
目的
显示有关双堆栈订阅者会话的详细信息。
行动
user@host> show subscribers interface pp0.1073741888 extensive Type: PPPoE User Name: dual-stack-v4v6-2svc-good IP Address: 203.0.113.140 Logical System: default Routing Instance: default Interface: pp0.1073741888 Interface type: Dynamic Dynamic Profile Name: DS-dyn-ipv4v6-ra MAC Address: 00:00:5E:00:53:02 State: Active Radius Accounting ID: 155 Session ID: 155 Login Time: 2011-01-30 20:36:53 PST Service Sessions: 2 Service Session ID: 174 Service Session Name: l3-v4-service State: Active IPv4 Input Filter Name: upstrm-filter-ge-1/0/0.1104-in IPv4 Output Filter Name: dwnstrm-filter-ge-1/0/0.1104-out Service Session ID: 175 Service Session Name: l3-v6-service State: Active IPv6 Input Filter Name: v6-up-filter-ge-1/0/0.1104-in IPv6 Output Filter Name: v6-dn-filter-ge-1/0/0.1104-out
意义
突出显示的输出包含有关订阅者服务会话的详细信息。
监控与远程对等方协商的 PPP 选项
目的
显示与 CPE 协商的 PPP 选项。您还可以查看与远程对等方协商的 IPv4 地址。此地址与从 AAA 返回的地址匹配。您还可以使用 show subscribers
命令查看此地址。
请注意,这是提供协商接口 ID 相关详细信息的唯一命令。
行动
user@host> show ppp interface pp0.1073741888 extensive Session pp0.1073741888, Type: PPP, Phase: Network LCP State: Opened Last started: 2011-01-30 20:36:53 PST Last completed: 2011-01-30 20:36:53 PST Negotiated options: Authentication protocol: pap, Magic number: 1174596353, MRU: 1492 Authentication: PAP State: Grant Last started: 2011-01-30 20:36:53 PST Last completed: 2011-01-30 20:36:53 PST IPCP State: Opened Last started: 2011-01-30 20:36:54 PST Last completed: 2011-01-30 20:36:54 PST Negotiated options: Local address: 192.0.2.77, Remote address: 192.0.2.140 IPV6CP State: Opened Last started: 2011-01-30 20:36:54 PST Last completed: 2011-01-30 20:36:54 PST Negotiated options: Local interface identifier: 2a0:a50f:fc61:6d0, Remote interface identifier: 200:64ff:fe01:602