• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 关于我们

H3C P3600系列GPON OLT交换机 命令参考-E1005-5W102

01-正文

本章节下载 01-正文  (2.09 MB)

01-正文

目录

1 CLI简介

1.1 登录

1.1.1 Console访问

1.1.2 Telnet访问

1.2 注销

1.2.1 正常退出

1.2.2 异常退出

1.3 操作级别

1.3.2 Privileged级别

1.3.3 Administrator级别

1.4 配置模式

1.5 CLI语法规范

1.6 错误处理

1.7 用户输入

1.8 在线帮助

1.9 用户管理和安全

1.9.1 账户管理

1.9.2 认证数据保护

1.10 命令历史

2 配置模式命令

2.1 access

2.2 alarm

2.3 configure

2.4 ip

2.5 slot

2.6 snmp

2.7 snmpv3

2.8 syslog

3 全局配置模式命令

3.1 brief-show

3.1.1 brief-show alarm

3.1.2 brief-show all pon-port

3.1.3 brief-show configuration running

3.1.4 brief-showmac-address

3.1.5 brief-show management-port

3.1.6 brief-show port

3.1.7 brief-show ont

3.1.8 brief-show slot

3.1.9 brief-show temperature

3.1.10 brief-show vlan

3.1.11 brief-show vlan-translate

3.2 exit

3.3 help

3.4 home

3.5 kill

3.6 quit

3.7 who

4 系统命令

4.1 升级命令

4.1.1 download

4.1.2 upload

4.1.3 commit-image

4.1.4 show image-commit-status

4.1.5 upgrade-lc

4.2 复位命令

4.2.1 reset all

4.2.2 reset slot

4.2.3 resetnode

4.3 主备相关命令

4.3.1 sync-option

4.3.2 manual-sync

4.3.3 show sync

4.3.4 switchover CSM

4.3.5 switchover-conter-reset

4.3.6 no switchover-record

4.3.7 show switchover

4.4 ip命令

4.4.1 management

4.4.2 show ip

4.5 SNMP配置

4.5.1 选择SNMP的版本

4.5.2 SNMPv2配置

4.5.3 SNMPv3配置

4.6 时间设置

4.6.1 dst option

4.6.2 dst date

4.6.3 time

4.6.4 timezone

4.6.5 no timezone

4.6.6 show time

4.7 SNTP配置

4.7.1 sntp ntpPoll

4.7.2 sntp option

4.7.3 sntp poll-interval

4.7.4 sntp ptype

4.7.5 sntp server

4.7.6 no sntp server

4.7.7 sntp sync

4.7.8 show sntp

4.8 syslog命令

4.8.1 syslog-server

4.8.2 no syslog-server

4.8.3 show server

4.8.4 logging

4.8.5 no logging

4.8.6 show log

4.8.7 proxy

4.8.8 show proxy

4.9 system

4.10 show system

4.11 auto-correction

4.12 show auto-correction

4.13 banner

4.14 show banner

4.15 counter-csm

4.16 counter-lc

4.17 erase config

4.18 save config

4.19 history-size

4.20 show history

4.21 pause

4.22 no pause

4.23 ping

4.24 show board

4.25 show cli-log

4.26 show cpu-memory

4.27 show device manuinfo

4.28 show diagnostic-information-to-file

4.29 show file

4.30 no file

4.31 show running-version-check

4.32 show slot

4.33 show version

4.34 telnet

4.35 virtual

4.36 no virtual

5 access命令

5.1 enable-password

5.2 idle-timeout

5.3 no idle-timeout

5.4 inband-mgmt-host

5.4.1 inband-mgmt-host

5.4.2 no inband-mgmt-host

5.4.3 inband-mgmt-host-list

5.4.4 show inband-mgmt-host

5.5 password

5.6 show telnet

5.7 snmp-host

5.7.1 snmp-host

5.7.2 no snmp-host

5.7.3 snmp-host-list

5.7.4 show snmp-host

5.8 telnet-host

5.8.1 telnet-host

5.8.2 telnet-hostv6

5.8.3 no telnet-host

5.8.4 show telnet

5.8.5 telnet-host-list

5.9 tftp-host

5.9.1 tftp-host

5.9.2 no tftp-host

5.9.3 show tftp-host

5.9.4 tftp-host-list

5.10 user-account

5.10.1 user-account

5.10.2 no user-account

5.10.3 show user

6 alarm 命令

6.1 alarm-led-control

6.2 show alarm

6.3 show alarm-history

6.4 show alarm-indication-conf

7 slot命令

7.1 Slot下的配置模式命令

7.1.1 Interface

7.1.2 olt-opm

7.1.3 ont-upgrade

7.2 系统级命令

7.2.1 anti-rogueont

7.2.2 gpon profile

7.2.3 gpon ont-authentication

7.2.4 pm

7.2.5 no pm

7.3 Interface gpon-olt配置

7.3.1 interface gpon-olt

7.3.2 all-ont

7.3.3 extended-omci

7.3.4 fec-tx

7.3.5 no fec-tx

7.3.6 key-exchange-control

7.3.7 key-exchange-interval

7.3.8 ont-discovery-interval

7.3.9 ont-discovery-mode

7.3.10 pon-max-distance

7.3.11 shutdown

7.3.12 no shutdown

7.4 Interface gpon-olt ont 配置

7.4.1 ont

7.4.2 no ont

7.4.3 active

7.4.4 deactive

7.4.5 description

7.4.6 disable

7.4.7 enable

7.4.8 eth-uni

7.4.9 no eth-uni

7.4.10 fec-tx

7.4.11 no fec-tx

7.4.12 ip-host

7.4.13 no ip-host

7.4.14 loid-auth

7.4.15 loop-detect

7.4.16 mac-filter

7.4.17 no mac-filter

7.4.18 mac-limit

7.4.19 multicast

7.4.20 no multicast

7.4.21 ont-pots-uni

7.4.22 no ont-pots-uni

7.4.23 ont-vlan

7.4.24 no ont-vlan

7.4.25 optical-power-threshold

7.4.26 password

7.4.27 port-vlan

7.4.28 no port-vlan

7.4.29 rate-limit

7.4.30 no rate-limit

7.4.31 regid

7.4.32 reset

7.4.33 rogue-ont

7.4.34 service

7.4.35 no service

7.4.36 sn

7.4.37 virtual-port

7.4.38 no virtual-port

7.4.39 voip-service

7.4.40 no voip-service

7.5 olt-opm

7.5.1 alarm-threshold

7.5.2 alarm-threshold-xgpon

7.5.3 show alarm-threshold

7.5.4 control

7.5.5 show control

7.5.6 no port-list

7.6 ont-upgrade

7.6.1 auto-upgrade

7.6.2 manual-upgrade

8 configure命令

8.1 configure下的配置模式命令

8.1.1 L2

8.1.2 multicast

8.1.3 qos

8.1.4 security

8.1.5 pon-protection-group

8.2 系统级命令

8.2.1 mask

8.2.2 no mask

8.2.3 show mask

8.2.4 rule

8.2.5 no rule

8.2.6 show rule

8.2.7 mirror

8.2.8 gpon-profile ont-template

8.2.9 gpon-profile ont-template <x> user-service

8.2.10 no gpon-profile ont-template

8.3 二层桥接命令

8.3.1 agingtimer

8.3.2 fdb

8.3.3 no fdb

8.3.4 flush fdb

8.3.5 show fdb

8.3.6 interface-pm

8.3.7 show interface-pm-15min

8.3.8 show interface-pm-24hour

8.3.9 show statistics

8.4 二层以太网环路检测命令

8.4.1 direction

8.4.2 disable

8.4.3 enable

8.4.4 ether-type

8.4.5 interval

8.4.6 recover-time

8.4.7 show

8.5 二层端口级命令

8.5.1 disable

8.5.2 enable

8.5.3 show port

8.5.4 show transceiver

8.5.5 speed

8.5.6 fec

8.5.7 disable

8.5.8 enable

8.6 二层VLAN命令

8.6.1 interface

8.6.2 no interface

8.6.3 translate

8.6.4 no translate

8.6.5 usr-isolation

8.6.6 vid

8.6.7 no vid

8.6.8 show

8.7 二层RSTP命令

8.7.1 disable

8.7.2 enable

8.7.3 fwdelay

8.7.4 hellotime

8.7.5 maxage

8.7.6 priority

8.7.7 show port

8.7.8 show rstp

8.8 二层MSTP命令

8.8.1 configuration instance

8.8.2 configuration no instance

8.8.3 configuration name

8.8.4 configuration no name

8.8.5 configuration revision

8.8.6 configuration no revision

8.8.7 show configuration

8.8.8 disable

8.8.9 enable

8.8.10 forward-time

8.8.11 hello-time

8.8.12 instance

8.8.13 instance port-pathcost

8.8.14 instance port-priority

8.8.15 instance priority

8.8.16 show

8.8.17 show instance

8.8.18 show instance detail

8.8.19 show instance port

8.8.20 max-age

8.8.21 max-hops

8.9 安全命令

8.9.1 action

8.9.2 no action

8.9.3 show action

8.9.4 assign-action

8.9.5 deassign-action

8.9.6 show action-assign

8.9.7 storm-control

8.9.8 show storm-control

8.9.9 vlan

8.9.10 show vlan

8.9.11 no vlan

8.10 QoS命令

8.10.1 action

8.10.2 no action

8.10.3 show action

8.10.4 assign-action

8.10.5 deassign-action

8.10.6 show action-assign

8.10.7 dot1p-mapping

8.10.8 show dot1p-mapping

8.10.9 dscp

8.10.10 no dscp

8.10.11 dscp-mapping

8.10.12 show dscp-mapping

8.10.13 egress-queue-metering

8.10.14 show egress-queueu-metering

8.10.15 egress-queue-weight

8.10.16 gem-rate-limit

8.10.17 show gem-rate-limit

8.10.18 meter

8.10.19 no meter

8.10.20 show meter

8.10.21 rate-limit

8.10.22 show rate-limit

8.10.23 reset

8.10.24 scheduling

8.10.25 show scheduling

8.10.26 show metering-statistics

8.11 组播系统级命令

8.11.1 group-to-vlan

8.11.2 no group-to-vlan

8.11.3 show group-to-vlan

8.11.4 multicast-handling

8.11.5 show multicast-handling

8.11.6 parameter

8.11.7 snooping

8.11.8 vlan-to-gem

8.11.9 no vlan-to-gem

8.11.10 show vlan-to-gem

8.11.11 vlan-to-new-vlan

8.11.12 no vlan-to-new-vlan

8.11.13 show vlan-to-new-vlan


1 CLI简介

本章简要介绍P3600系列交换机的CLI(command line interface,命令行接口)。通过CLI命令行接口可配置和监控设备。

1.1  登录

有两种方式访问 CLI:

·     Console访问

·     Telnet访问

1.1.1  Console访问

在管理终端上运行终端仿真程序。

设置COM会话参数如下:

·     波特率(Bits per sencond):115200

·     数据位(Data bits):8

·     停止位(Stop bits):1

·     奇偶校验(Parity check):无

·     流量控制(Flow control):无

HyperTerminal COM port selection

 

DEBUG Port Communication Parameters

 

·     按 ENTER 键并配置节点。

1.1.2  Telnet访问

用以太网线连接 PCU1S板卡 的 ETH 口和上行交换机。

测试Ping 主控卡 的 IP 地址,确认链接已经建立。

输入 telnet x.x.x.x,其中 x.x.x.x 为 主控卡 的 IP 地址。打开 Telnet 访问窗口。

输入用户名和密码,登录到系统。

说明

CSM的缺省 IP 地址为 10.20.30.1。

 

系统同时支持最多 9 个终端通过CLI与设备会话。

当用户数量已达到最大值时,再尝试登录时会显示告警信息,发起的CLI会话失败。告警消息为“CLIuser has reached maximum limit. Please try later”(CLI用户数已达到最大值,请稍候再试)。

1.2  注销

有两种注销CLI的方式(正常退出与异常退出)。

1.2.1  正常退出

任何命令模式都可以采用quit命令终止当前的CLI连接。

1.2.2  异常退出

异常退出包括任何连接的断开,包括在配置时段内用户没有任何操作,发生超时中断。

1.3  操作级别

为防止用户对系统进行未授权的更改,CLI定义了多种操作级别,各操作级别的用户具有不同的权限。操作级别适用于用户和命令。运行命令时,用户的操作级别必须大于或等于命令操作级别。操作级别有三级,从低到高依次为:

(1)     Normal级别

(2)     Privileged级别

(3)     Administrator级别

(4)     Normal级别

Normal级别的命令用于日常系统的监控。Normal级别用户可进行日常的系统监控。普通用户登录到CLI后,就进入Normal操作级别。普通用户指不使用 admin作为登录名的任何用户。在这个级别,CLI在系统名称后面的提示符为“>”。

1.3.2  Privileged级别

Privileged 级别命令用于系统配置。运行 enable 命令并输入正确的“enable 密码”进入到 Privileged 操作级别。“enable 密码”是所有普通用户使用的一个公用密码。缺省的“enable 密码”为 admin。在这个级别,CLI在系统名称后面的提示符是“#”。

1.3.3  Administrator级别

Administrator级别命令用来管理账号。用户在CLI中使用 admin 作为登录名并输入正确的“admin 密码”可进入到Administrator级别。在这个级别,CLI在系统名称后面的提示符是“#”。

1.4  配置模式

配置模式是提供相应功能的命令的集合。每个命令与一个或多个配置模式相关。命令仅在相关配置模式下可用。

P3600系统的CLI配置模式有:全局配置模式和特定配置模式两种。

(1)     全局配置模式

(2)     特定配置模式

用户登录CLI后进入全局配置模式。用户登录后可以在不同配置模式之间进行切换。

1.5  CLI语法规范

CLI命令包括命令本身以及必需的和/或可选的参数。为了精确地表示完整的CLI命令,采用以下规范:

·     例1:

语法:snmp-server community <text-string> {ro|rw} enable|disable

·     例2:

语法:static-mac-address <MAC-addr> {vlan <VLAN-ID>} {port <port-num>} [cos <value>]

说明:

·     黑体字符表示命令本身或命令关键字

·     “<>”中的文本为必选参数

·     “{}”中的文本为带关键字的必选参数

·     “[]”中的文本为可选参数

·     “<>”或 “[]”之外的文本为命令关键字或命令本身

·     “|”分隔的多个可选项为多选的必选参数,表示必须选择其中一项。

根据以上定义的规范,命令statis-mac-address<MAC-addr>为必选参数,{vlan <VLAN-ID>}为带关键字的必选参数,[cos <value>]为可选参数(cos为关键字)。第一个命令中的enable|disable为多选的必选参数。

1.6  错误处理

当用户输入命令并按 RETURN 或 ENTER 键,但若其参数不正确或命令本身需要参数而没有输入参数时,错误消息会显示语法和参数范围。常见的错误信息有:

表1 表1-1 错误处理

用户输入的问题

错误消息

如何获得帮助

用户输入的问题

用户输入的关键词不完 整,缩略词可能与多个关键词匹配

例如:假设show time和show terminal都是有效的命令,如果用户只输入show t,CLI不能正确识别输入。

% Ambiguous Command

(模糊命令)

用户需要重新输入命令并加上一个问号

(?),这样所有可以输入的关键词都会显示出来。

用户输入的关键词不完 整,缩略词可能与多个关键词匹配

例如:假设show time和show terminal都是有效的命令,如果用户只输入show t,CLI不能正确识别输入。

用户没有输入命令必需的所有关键词或值

% Incomplete Command(命令不完整)

用户需要重新输入命令,并输入一个空格和问号(?),这样所有可以输入的关键词都会显示出来。

用户没有输入命令必需的所有关键词或值

用户输入的第一个关键词不是一个有效的关键词

% Unrecognized Command

(命令不能识别)

用户需要输入一个问号(?),显示该命令模式下所有可用的命令。用户可输入的所有关键词都会显示。

用户输入的第一个关键词不是一个有效的关键词

 

1.7  用户输入

在用户输入“最少的唯一字符串”后,CLI能够识别命令中的关键词。例如:用户只需要输入sh time,CLI就能识别该命令为show time,因为sh 对应的唯一关键词为show。

如果已输入的字符对应唯一一个关键词,CLI允许用户使用 TAB 键自动完成输入关键字。但如果已输入字符不能被识别成唯一一个关键词,按 TAB 键后没有反应。

注意

CLI输入大小写敏感。所有命令行的关键字和参数使用小写字母。

 

支持的控制字符包括:

<ctrl-p>:显示先前输入的命令。

<ctrl-n>:显示历史缓存中的下一个命令。

<ctrl-j>:发送一个回车符(可选项)

<ctrl-m>:发送一个回车符

<ctrl-h>:一个后退字符

<ctrl-i>:跟使用 TAB 键一样完成命令输入

1.8  在线帮助

用户可以使用“?”获得在线帮助。

如果在提示符后直接输入问号(“?”),CLI将显示当前命令模式下的所有第一个关键字。

如果在输入关键字的一部分后输入问号(“?”)(输入字符串和问号之间没有空格),

CLI将显示以当前输入字符起始的所有关键字,并重新显示用户的输入。如果所输入的字符不能匹配任何关键字,CLI仅重新显示用户输入。例如:

P3600#show s?

slot                snmp-agent          sntp                switchover          sync                system              show

如果在一个关键字后输入问号(“?”)(输入字符和问号之间有空格),CLI显示当前命令模式下以所输入字符串起始的所有命令的下一个字段。例如:

P3600#system

 contact                   - System contact

 location                  - System location

 name                      - System name, system name is displayed in prompt

 net-access-permit         - set net access permit time

如果一个命令包含多个可选字段,CLI列出每个可选字段的第一个关键字。如果已经输入了一个或多个可选字段,这些可选字段将不算在内。例如:一个 ping 命令的语法如下:

ping <ip-address>[size <1..60000>] [timeout <1..3600>] [number <0..65535>]

CLI显示:

P3600#ping 172.16.4.157 ?

<cr>

size                 - Send packet size

timeout              - Wait number of seconds for the first

                       response, default is 10s

number               - Stop after sending the number of packets, if value                       set to 0, ICMP echo request will be sent until stopped                            by user. To stop press ctrl-c.

 

P3600#ping 172.16.4.157 timeout ?

<1..3600>                                 - The number of seconds

 

P3600#ping 172.16.4.157 timeout 3 ?

<cr>

number         - Stop after sending the number of packets, if value set to 0,                    ICMP echo request will be sent until stopped by user. To stop                    press ctrl-c.

注意

如果一个命令的字符串包含空格,应使用引号(””)中把整个字符串包括在内, 否则系统不能识别。

 

例如:

P3600#system name node 1

% Unrecognized command

P3600#system name “node 1”

1.9  用户管理和安全

1.9.1  账户管理

CLI缺省创建了管理员账号,登录/密码:admin/ admin。在首次登录后,管理员可用 password 命令修改其管理员账号登录密码。

管理员可以使用 user-account 命令为普通用户创建用户账号(登录名和密码)。管理员还可以用上述命令为已有普通用户重置或修改登录密码。用户账号创建后,用户可以登录到 CLI,并使用 password 命令修改自己的登录密码。

管理员还可以使用 enable-password 命令修改“enable 密码”。“enable 密码”是所有普通用户可以使用的一个密码,用该密码可以登录到 privileged 操作级别。“enable 密码”缺省设置为 Abc123。

1.9.2  认证数据保护

保存在系统的认证数据(密码)是加密的。

1.10  命令历史

CLI记录用户输入的命令。CLI允许用户配置网元历史缓存中可以保存的命令行个数。用户可以配置历史缓存大小,其取值范围为 0-256,缺省值为 20。

例如:

P3600#show history

History buffer is configured to show up to 20 commands

 

P3600#history-size

 <0..256>                                  - Size 0 to 256

 


2 配置模式命令

本章介绍全局配置模式下的命令。

2.1  access

操作级别

Normal

配置模式

全局配置模式

语法

access

说明

该命令用于进入access配置模式。进入该模式后,提示符变成:

System_name(ACCESS)#

 

例如:

P3600(ACCESS)#help

enable-password             - Change enable password

idle-timeout                - Set session idle timeout

inband-mgmt-host            - Add inband management accesshost

inband-mgmt-host-list       - Inband management host access list

no                          - Delete an object

password                    - Change user password

show                        - Display information

snmp-host                   - Add SNMP access host

snmp-host-list              - SNMP host access list

telnet-host                 - Add telnet access list entry

telnet-host-list            - Telnet host access list

tftp-host                   - Configure tftp access list

tftp-host-list              - TFTP host access list

user-account                - Add/change user account

brief-show                  - show brief information

exit                        - Move up one level in configuration mode

help                        - Provide help information

home                        - Return to global configuration mode

kill                        - Terminate other telnet sessions

quit                        - Quit current session

tree                        - Show command tree

who                         - Display login user information

 

2.2  alarm

操作级别

Normal

配置模式

全局配置模式

语法

alarm

说明

该命令用于进入alarm配置模式。进入该模式后,提示符变成:

system_name(ALARM)#

 

例如:

P3600#alarm

P3600(ALARM)#help

alarm-led-control           - Alarm LED control

show                         - Display information

brief-show                  - show brief information

exit                        - Move up one level in configuration mode

help                        - Provide help information

home                        - Return to global configuration mode

kill                        - Terminate other telnet sessions

quit                        - Quit current session

tree                        - Show command tree

who                         - Display login user information

P3600(ALARM)#

 

2.3  configure

操作级别

Normal

配置模式

全局配置模式

语法

configure

说明

该命令用于进入configure配置模式。进入该模式后,提示符变成:

system_name(CONFIG)#

 

例如:

P3600#configure

P3600(CONFIG)#help

 l2                          - Enter L2 configuration mode

 l3                          - Enter L3 configuration mode

 mask                        - Create packet classification mask

 mirror                      - Configure mirror

 multicast                   - Enter DSLAM-MCAST configuration mode

 network-clock               - network-clock

 no                          - Delete an object.

 pon-protection-group        - pon protection group

 ptp                         - Set ptp config

 qos                         - qos

 rule                        - Create a packet classification rule

 security                    - Set MAC limit per bridge port

 Show                        - Display information

 brief-show                  - show brief information

 exit                        - Move up one level in configuration mode

 help                        - Provide help information

 home                        - Return to global configuration mode

 kill                        - Terminate other telnet sessions

 quit                        - Quit current session

 tree                        - Show command tree

 who                         - Display login user information

 

2.4  ip

操作级别

Normal

配置模式

全局配置模式

语法

ip

说明

该命令用于进入IP配置模式。在该模式下,用户配置管理访问的参数。进入该模式后,提示符变成:system_name(IP)#

 

例如:

P3600#ip

P3600(IP)#help

management                  - Set management ip address

no                          - Delete an object

route                       - Add IP route

Show                        - Display information

brief-show                  - show brief information

exit                        - Move up one level in configuration mode

help                        - Provide help information

home                        - Return to global configuration mode

kill                        - Terminate other telnet sessions

quit                        - Quit current session

tree                        - Show command tree

who                         - Display login user information

P3600(IP)#

 

2.5  slot

操作级别

Normal

配置模式

全局配置模式

语法

slot <P3617: 1-17; P3608: 1-8; P3602: 1-2>

说明

本命令用于进入基于板卡-插槽的配置模式

如果指定了slot S1,且在指定的插槽存在PON物理插板,CLI进入指定的板卡配置模式,提示符变成与板卡类型相对应的大写提示符。

System_name(Slot-S1)

其中S1117/1~8/1~2

如果指定了slot S1-S2,但指定插槽不存在PON物理或虚拟插板,CLI将返回如下显示:

“Command only valid for PON slot.

Command only valid for PON slot.

 

% Unrecognized parameter”

(命令仅对PON槽位有效,无法识别的参数)

 

例如:

P3600#slot 1

 

2.6  snmp

操作级别

Normal

配置模式

全局配置模式

语法

snmp

说明

该命令用于进入SNMP配置模式。进入该模式后,提示符变成:

system_name(SNMP)#

 

例如:

P3600(SNMP)#help

community                   - Add/modify configuredCommunity string

no                          - Delete an object

show                        - Display information

trap-destination            - Add SNMP trap destination

 

brief-show                  - show brief information

exit                        - Move up one level in configuration mode

help                        - Provide help information

home                        - Return to global configuration mode

kill                        - Terminate other telnet sessions

quit                        - Quit current session

tree                        - Show command tree

who                         - Display login user information

P3600(SNMP)#

 

2.7  snmpv3

操作级别

Normal

配置模式

全局配置模式

语法

snmpv3

说明

该命令用于进入snmpv3配置模式。进入该模式后,提示符变成:

system_name(SNMPv3)#

 

例如:

P3600#snmpv3

P3600(SNMPv3)#help

 group                                    - Configure the VACM group

 local-engineid                           - Configure SNMPv3 local engine id

 mib-view                                 - Configure the MIB view

 no                                       - Delete an object.

 show                                     - Display SNMPv3 configuration

 target-addr                              - Configure the target address information

 target-mode                              - Configure SNMPv3 alarm send mode

 target-params                            - Configure the target parameters

 usm-user                                 - Configure SNMPv3 user

 

brief-show                     - show brief information

exit                           - Move up one level in configuration mode

help                           - Provide help information

home                           - Return to global configuration mode

kill                           - Terminate other telnet sessions

quit                           - Quit current session

tree                           - Show command tree

who                            - Display login user information

 

2.8  syslog

操作级别

Normal

配置模式

全局配置模式

语法

syslog

说明

该命令用于进入syslog配置模式。进入该模式后,提示符变成:

system_name(syslog)#

 

例如:

P3600#syslog

P3600(syslog)#help

logging                        - adds the syslog message category

no                             - Delete an object

proxy                          - Config the syslog proxy, transfer the

                                 syslog from LC to the real server.

show                           - Display syslog configuration

syslog-server                  - Configure syslog server

 

brief-show                     - show brief information

exit                           - Move up one level in configuration mode

help                           - Provide help information

home                           - Return to global configuration mode

kill                           - Terminate other telnet sessions

quit                           - Quit current session

tree                           - Show command tree

who                            - Display login user information

 


3 全局配置模式命令

本节列出了一般命令。通用命令用于进入/离开 Privileged 模式、设置/显示标题行和系统联系人,显示命令历史等。

3.1  brief-show

操作级别

Normal

配置模式

全局配置模式

语法

brief-show

说明

该命令用于简要显示告警,端口,MAC地址,温度,VLAN等相关信息。

 

例如:

P3600#brief-show

 alarm                                     - Display alarm summary

 all                                       - Show the optical status of the current OLT

 configuration                             - Current operating configuration

 interface                                 - Show L3 interface configuration

 mac-address                               - Display MAC address

 management-port                           - management-port

 ont                                       - Show the status and online information for all ONTs

 port                                      - Display port related information

 slice                                     - Show slice configuration

 slot                                      - show slot-based Configure

 sni-port                                  - sni-port

 temperature                               - Display CSM temperature information

 trunk                                     - Display trunk group configuration.

 vlan                                      - Display the VLAN summary

 vlan-translate                            - Vlan translate information

3.1.1  brief-show alarm

操作级别

Normal

配置模式

全局配置模式

语法

brief-show alarm

说明

该命令用于简要显示当前告警信息

 

例如:

P3600#brief-show alarm

Num Seq   Alarm Name            Severity Ocurred     Time    Entity Type     Entity Ins

---+--------+--------------------------+--------+--------------------+------------+----------

1   2   CSM Uplink Port Down       Major    2022/11/10, 20:46:39 CSM Port     1-A-XGE 2

2   5   CSM Uplink Port Down       Major    2022/11/10, 20:46:40 CSM Port     1-B-XGE 5

3   6   CSM Uplink Port Down       Major    2022/11/10, 20:46:40 CSM Port     1-B-XGE 6

4   7   CSM Uplink Port Down       Major    2022/11/10, 20:46:40 CSM Port     1-B-XGE 7

5   8   CSM Uplink Port Down       Major    2022/11/10, 20:46:41 CSM Port     1-B-XGE 8

6   9   Standby CSM Remove         Major    2022/11/10, 20:47:06 Shelf        1

7   10  Module Remove              Major    2022/11/10, 20:47:54 Module       1-P2

8   11  Uplink Port Down           Major    2022/11/10, 20:48:19 Uplink Port  1-3-1

9   12  Uplink Port Down           Major    2022/11/10, 20:48:19 Uplink Port  1-3-2

10  41  CSM Uplink Port Down       Major    2022/11/12, 09:52:05 CSM Port     1-A-XGE 3

11  67  Trunk Down                 Major    2022/11/12, 10:31:18 CSM Port     1-A-Trunk 1

12  78  Module Remove              Major    2022/11/12, 11:49:31 Module       1-6

3.1.2  brief-show all pon-port

操作级别

Normal

配置模式

全局配置模式

语法

brief-show all pon-port

说明

该命令用于显示当前OLT的光学状态

 

例如:

P3600#brief-show all pon-port

Slot/Port                     : 5/1

Port state                    : Online

 

Slot/Port                     : 5/2

Port state                    : Online

 

Slot/Port                     : 5/3

Port state                    : Online

 

Slot/Port                     : 5/4

Port state                    : Online

 

Slot/Port                     : 5/5

Port state                    : Online

 

Slot/Port                     : 5/6

Port state                    : Online

 

Slot/Port                     : 5/7

Port state                    : Online

 

Slot/Port                     : 5/8

Port state                    : Online

 

Slot/Port                     : 5/9

Port state                    : Online

 

Slot/Port                     : 5/10

Port state                    : Online

 

Slot/Port                     : 5/11

Port state                    : Online

 

Slot/Port                     : 5/12

Port state                    : Online

 

Slot/Port                     : 5/13

Port state                    : Online

 

Slot/Port                     : 5/14

Port state                    : Online

 

Slot/Port                     : 5/15

Port state                    : Online

 

Slot/Port                     : 5/16

Port state                    : Online

3.1.3  brief-show configuration running

操作级别

Normal

配置模式

全局配置模式

语法

brief-show configuration running

说明

该命令用于简要显示主控卡配置。

 

例如:

P3600#brief-show configuration running

#MYCA software release version: E1002

#slot   MYCA

enable

system name P3600

system contact Tel: +86 400 810 0504

system location No.466 Changhe Road, Binjiang District, Hangzhou, Zhejiang, 310052 P. R. China

 

ztd disable

dot1p mgmt disable 5

sync-option enable

sntp option disable

sntp ptype ntp

sntp ntpPoll 1200 1200

 

access

 

 inband-mgmt-host-list disable

 snmp-host-list disable

 telnet-host-list disable

 tftp-host-list disable

 

exit

3.1.4  brief-showmac-address

操作级别

Normal

配置模式

全局配置模式

语法

brief-show mac-address [type <type>] [vid <type>] [mac <type>] [interface<xge|is|trunk> <ethernet-index>]

参数

type: 类型, dynamic或者static

vid: VLAN id1..4095

<xge|is|trunk>:端口类型。

说明

该命令用于显示MAC地址信息。

 

例如:

P3600#brief-show mac-address

Agingtimer                    :300

Total MAC Count               :6

S-VID     MAC Address         Forward Port   Type           Virtual Port   Gem Port

---------------------------------------------------------------------------------------

1         00:e0:fc:00:00:12   XGE 2          Dynamic

1         6c:4b:90:99:fc:9f   XGE 2          Dynamic

4094      a0:c0:a8:d2:fe:06   Slot 5         Management

1         00:1c:82:0a:b0:d2   Local          Management

111       00:1c:82:0a:b0:d2   Local          Management

4094      00:1c:82:0a:b0:d2   Local          Management

TOTAL Count: 6

3.1.5  brief-show management-port

操作级别

Normal

配置模式

全局配置模式

语法

brief-show management-port <slot>

参数

Slot:槽位号,P3617: 1-17; P3608: 1-8;  P3602: 1-2A, B

说明

该命令用于显示 management-port相关信息。

 

例如:

P3600(CONFIG/L3)#brief-show management-port slot A

System management manner                :  inband

Management Port                         :800

Management Port                         :XGE 1,XGE 4

Management IP address                   :10.0.0.1

Management IP netmask                   :255.255.255.0

3.1.6  brief-show port

 

操作级别

Normal

配置模式

全局配置模式

语法

brief-show port

说明

该命令用于显示port相关信息。

 

例如:

P3600#brief-show port

Port                Admin  Oper CfgSpeed CfgDup CfgFlow ActSpeed ActDup  ActFlow Orient     Fec

IS 1/1              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 1/2              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 1/3              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 1/4              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 2/1              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 2/2              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 2/3              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 2/4              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 3/1              Unlock Down 100000M  Full   Auto    100000M  Full    On      Network    Disable

IS 3/2              Unlock Down 100000M  Full   Auto    100000M  Full    On      Network    Disable

IS 4/1              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 4/2              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 4/3              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 4/4              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 4/5              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 4/6              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 4/7              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 4/8              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 5/1              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 5/2              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 5/3              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 5/4              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 5/5              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 5/6              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 5/7              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 5/8              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 6/1              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 6/2              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 6/3              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 6/4              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 6/5              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 6/6              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 6/7              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 6/8              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 7/1              Unlock Up   25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 7/2              Unlock Up   25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 7/3              Unlock Up   25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 7/4              Unlock Up   25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 7/5              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 7/6              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 7/7              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 7/8              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 8/1              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 8/2              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 8/3              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 8/4              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 8/5              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 8/6              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 8/7              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 8/8              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 9/1              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 9/2              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 9/3              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 9/4              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 9/5              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 9/6              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 9/7              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 9/8              Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 10/1             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 10/2             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 10/3             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 10/4             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 10/5             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 10/6             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 10/7             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 10/8             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 11/1             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 11/2             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 11/3             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 11/4             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 11/5             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 11/6             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 11/7             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 11/8             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 12/1             Unlock Up   25000M   Full   On      25000M   Full    On      Subscriber Disable

IS 12/2             Unlock Up   25000M   Full   On      25000M   Full    On      Subscriber Disable

IS 12/3             Unlock Up   25000M   Full   On      25000M   Full    On      Subscriber Disable

IS 12/4             Unlock Up   25000M   Full   On      25000M   Full    On      Subscriber Disable

IS 12/5             Unlock Up   25000M   Full   On      25000M   Full    On      Subscriber Disable

IS 12/6             Unlock Up   25000M   Full   On      25000M   Full    On      Subscriber Disable

IS 12/7             Unlock Up   25000M   Full   On      25000M   Full    On      Subscriber Disable

IS 12/8             Unlock Up   25000M   Full   On      25000M   Full    On      Subscriber Disable

IS 13/1             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 13/2             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 13/3             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 13/4             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 13/5             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 13/6             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 13/7             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 13/8             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 14/1             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 14/2             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 14/3             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 14/4             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 14/5             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 14/6             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 14/7             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 14/8             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 15/1             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 15/2             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 15/3             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 15/4             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 15/5             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 15/6             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 15/7             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 15/8             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 16/1             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 16/2             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 16/3             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 16/4             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 17/1             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 17/2             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 17/3             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

IS 17/4             Unlock Down 25000M   Full   On      10000M   Full    On      Subscriber Disable

XGE 1               Unlock Up   Auto     Auto   On      10000M   Full    On      Network    Disable

XGE 2               Unlock Up   Auto     Auto   On      10000M   Full    On      Network    Disable

XGE 3               Unlock Down Auto     Auto   On      10000M   Full    On      Network    Disable

XGE 4               Unlock Down Auto     Auto   On      10000M   Full    On      Network    Disable

XGE 5               Lock   Down Auto     Auto   Auto    Unknown  Full    Off     Network    Disable

XGE 6               Lock   Down Auto     Auto   Auto    Unknown  Full    Off     Network    Disable

XGE 7               Lock   Down Auto     Auto   Auto    Unknown  Full    Off     Network    Disable

XGE 8               Lock   Down Auto     Auto   Auto    Unknown  Full    Off     Network    Disable

3.1.7  brief-show ont

操作级别

Normal

配置模式

全局配置模式

语法

brief-show ont

说明

该命令用于显示所有ONT的状态和在线信息。

 

例如:

P3600#brief-show ont

Authenticated

---------------------

ONT      TYPE   SN              Status   Find     Auth            Reason

1/1/1   gpon   GPON000D56FA    ready    auto     snonly          none

 

Total Ont Number    :1

Active Ont Number   :1

 

Unauthenticated

---------------------

ONT      TYPE   SN              Status   Find     Auth            Reason

1/2/-  GPON   GPON005F2B21    online   auto     -               un-auth

1/3/-  GPON   GPON000ADBB5    online   auto     -               un-auth

 

Total Ont Number    :2

3.1.8  brief-show slot

操作级别

Normal

配置模式

全局配置模式

语法

brief -show slot  <slot id>

参数定义

slot显示现有系统中的所有插板的信息。

<slot id>:槽位号,P3617: 1-17;  P3608: 1-8;  P3602: 1-2

说明

该命令用于显示基于槽的配置。

 

例如:

P3600#brief-show slot 1

#slot 1 XGFCA

slot 1

 

 gpon profile dba id 1 name newprof_dba_1 type4 max 1024000

 gpon profile flow id 1 1 name newprof_flow_1 uni-type veip uni-bitmap 0xff upmap-type vlanId 101 101 pri-bitmap 0xff vport 1

  gpon profile rate-ctrl id 1 name newprof_rate_1 sir 102400 pir 102400

 gpon profile tcont-svc id 1 name newprof_tcontsvc_1 dba-id 1

 gpon profile vportsvc id 1 name newprof_vportsvc_1 us-pri 0 usratectrl-id 0 dsratectrl-id 0

 gpon profile tcont-bind id 1 v-port 1 name newprof_tcontbind_1 vportsvc-id 1 tcont-id 1 tcontsvc-id 1

 gpon profile voip-svc id 1 name new_voipsvc_1

 gpon ont-authentication snonly

interface gpon-olt 1/1

 

 key-exchange-interval 10000

 ont-discovery-interval 30

 fec-tx

Exit

...

interface gpon-olt 1/16

 

 key-exchange-interval 10000

 ont-discovery-interval 30

 fec-tx

exit

 

exit

 

#slot 1 XGFCA end

1. brief -show slot x all pon-port

操作级别

Normal

配置模式

全局配置模式

语法

brief -show slot  <slot id> all pon-port 

说明

该命令用于显示当前OLT设备PON端口的光模块信息。

 

例如:

P3600(Slot-2)#brief-show slot 2 all pon-port

 

Slot/Port                     : 2/1

Port state                    : Online

 

 

Slot/Port                     : 2/2

Port state                    : Online

 

 

Slot/Port                     : 2/3

Port state                    : Online

 

 

Slot/Port                     : 2/4

Port state                    : Online

 

 

Slot/Port                     : 2/5

Port state                    : Online

Transceiver Type              : SFP

Connector Type                : SC

Vendor Name                   : H3C

Vendor Part Number            : LTF5308B-BCB-H3C

Vendor Serial Number          : G10231AKBN31000D

Manufacturing Date            : 230128

GPON(TX/RX) Wave Length(nm)   : 1490/1310

XG(S)PON(TX/RX) Wave Length(nm): 1577/1270

Digital Diagnostic Monitor    : YES

Power Feed Voltage(V)         : 3.22

Temperature(Centigrade)       : 37.00

2.5G Optical Launch Power(dBm): 3.8881

10G  Optical Launch Power(dBm): 3.2670

2.5G Laser Bias Current(mA)   : 4.452

10G  Laser Bias Current(mA)   : 38.556

 

Slot/Port                     : 2/6

Port state                    : Online

 

 

Slot/Port                     : 2/7

Port state                    : Online

 

 

Slot/Port                     : 2/8

Port state                    : Online

 

 

Slot/Port                     : 2/9

Port state                    : Online

 

 

Slot/Port                     : 2/10

Port state                    : Online

 

 

Slot/Port                     : 2/11

Port state                    : Online

 

 

Slot/Port                     : 2/12

Port state                    : Online

 

 

Slot/Port                     : 2/13

Port state                    : Online

 

 

Slot/Port                     : 2/14

Port state                    : Online

 

 

Slot/Port                     : 2/15

Port state                    : Online

 

 

Slot/Port                     : 2/16

Port state                    : Online

 

 

Total Ont Number    :1

 

2. brief-show slot x anti-rogueont

操作级别

Normal

配置模式

全局配置模式

语法

brief -show slot  <slot id> anti-rogueont

说明

该命令用于显示槽位上的所有流氓ONT检测的配置。

 

例如:

P3600#brief-show slot 1 anti-rogueont

interface status    mode

1/1       disable   manual

1/2       disable   manual

1/3       disable   manual

1/4       disable   manual

1/5       disable   manual

1/6       disable   manual

1/7       disable   manual

1/8       disable   manual

1/9       disable   manual

1/10      disable   manual

1/11      disable   manual

1/12      disable   manual

1/13      disable   manual

1/14      disable   manual

1/15      disable   manual

1/16      disable   manual

 

3. brief-show slot x gpon profile

操作级别

Normal

配置模式

全局配置模式

语法

brief-show slot  <slot id> gpon profile [dba<WORD>][flow<WORD> ][multicast-dynamic<WORD>][multicast-oper<WORD>][ont-uni-cfg<WORD>][rate-ctrl<WORD>][tcont-bind<WORD>][tcont-svc<WORD>][tr069-server<WORD>][vportsvc<WORD>]

参数定义

 <slot id>:槽位号,P3617: 1-17; P3608: 1-8; P3602: 1-2

说明

该命令用于显示PON配置文件。

 

例如:

P3600#brief-show slot 1 gpon profile

 dba                                       - Show the traffic type and the fixed, assured and maximum bandwidth assigned for that traffic type

 flow                                      - Show the characteristics of an ONU traffic flow

 multicast-dynamic                         - Show the template for the specified ONT dynamic multicast

 multicast-oper                            - Show a multicast operations profile to be supported by an ONU

 ont-uni-cfg                               - Show Eth Uni Configure

 rate-ctrl                                 - Show an ONU profile with the specified rate control (PIR,CIR values) and scheduling policy (SP, WRR, etc.).

 tcont-bind                                - Show a binding between a TCONT and a virtual port (i.e. GEM port)

 tcont-svc                                 - Show ONU T-CONT service profiles

 tr069-server                              - show tr069 server profile

 vportsvc                                  - Show the characteristics of a virtual port

 

brief-show slot x gpon profile dba

P3600#brief-show slot 1 gpon profile dba 1

id  profile name     type  fix bandwidth  assure bandwidth  max bandwidth

                               Kbps           Kbps             Kbps

--------------------------------------------------------------

1   newprof_dba_1    type4 \              \                 1024000

 

brief-show slot x gpon profile flow

P3600#brief-show slot 1 gpon profile flow

profile id1           :1

profile id2           :1

profile name          :newprof_flow_1

uni type              :veip

uni port bitmap       :0xff

upmap type            :vlanId

vlan start            :101

vlan stop             :101

pri bitmap            :0xff

vport num             :1

vlan filter range     :

-------------------------------------------------------------------------

 

brief-show slot x gpon profile multicast-dynamic

P3600#brief-show slot 1 gpon profile multicast-dynamic 1/1

profile id1           :1

profile id2           :1

profile name          :1

gemport               :3800

vlanid                :4000

srcip                 :0.0.0.0

grpaddr start         :225.0.0.1

grpaddr stop          :225.0.0.10

grpbw                 :0

grpipv6addr start     :::

grpipv6addr stop      :::100:0:0:0

-------------------------------------------------------------------------

 

brief-show slot x gpon profile multicast-oper

P3600#brief-show slot 1 gpon profile multicast-oper 1

id                     :1

profile name           :1

igmp ver               :v2

ctrl mode              :snooping-only

fastleave              :enabled

upstream TCI           :0

upstream TCI ctol      :pass

downstream TCI         :0

downstream TCI ctol    :pass

max simultaneous group :0

max bandwidth          :0

---------------------------------------------------------------------------

 

brief-show slot x gpon profile ont-uni-cfg

P3600#brief-show slot 1 gpon profile ont-uni-cfg

------------------------------------------------------------------------

id                    :1

profile name          :newprof_EthUnicfg_1

Auto Negotiation      :enabled

Speed                 :mbps100

Duplex                :full

Expected Type         :0

Max Frame Size        :1522

IndDTEDCE             :DCE

------------------------------------------------------------------------

 

brief-show slot x gpon profile rate-ctrl

P3600#brief-show slot 1 gpon profile rate-ctrl 1

1  newprof_rate_1  102400  102400  0      0      colour-blind   no-marking

 

brief-show slot x gpon profile tcont-bind

P3600#brief-show slot 1 gpon profile tcont-bind all

id  vport  profile name   vportsvc index    tont index value tcontsvc index

----------------------------------------------------------------------------

1   1      newprof_tcontbind_1 1    1            1

 

brief-show slot 12 gpon profile tcont-svc

P3600#brief-show slot 12 gpon profile tcont-svc 1

1   newprof_tcontsvc_1            1

 

brief-show slot x gpon profile tr069-server

P3600#brief-show slot 1 gpon profile tr069-server 1

id                    :1

profile name          :1

url                   :1

username              :1

password              :1

realm                 :

------------------------------------------------------------------------

 

brief-show slot x gpon profile vportsvc

P3600#brief-show slot 1 gpon profile vportsvc 1

id                    :1

profile name          :newprof_vportsvc_1

encry mode            :disable

upflowpri             :0

upratectrl index      :0

down ratectrl index   :0

------------------------------------------------------------------------

 

4. brief-show slot x interface gpon-olt

操作级别

Normal

配置模式

全局配置模式

语法

brief -show slot  <slot id> interface gpon-olt  <port>

参数定义

 <slot id>:槽位号,P3617: 1-17; P3608: 1-8; P3602: 1-2

<port>:单一接口<1/port> (port{1..16})

说明

该命令用于显示与PON接口相关的所有信息。

 

例如:

P3600#brief-show slot 1 interface gpon-olt 1/1

 broadcast                                 - show broadcast information

 counters                                  - Show counters

 gpon-link                                 - Show Gpon Link

 key-exchange-control                      - Show Enable/Disable a periodic process of key exchange for active ONUs

 key-exchange-interval                     - Key exchange process interval in milliseconds.

 mac-address-table                         - Show the mac address table information

 ont                                       - Show the ONT information

 ont-range                                 - Show ONTs information

 ont-registered                            - Show all registered ONU

 ont-unbound                               - Show unbundled ONU on a port

 ont-upgrade-config                        - show ont upgrade config

 ont-upgrade-status                        - show onu upgrade status

 optical-info                              - Show the optical status of the current OLT

 pon-max-distance                          - show pon max distance

 transceiver                               - Show Transceiver Type

 

brief-show slot x interface gpon-olt 1/y counters

P3600#brief-show slot 1 interface gpon-olt 1/1 counters

GPON :

 

Port NO               : 1

rxGem                 : 769204          txGem                     : 11392

rxPackets             : 4571877         txPackets                 : 11187

rxGemDropped          : 0

rxGemIdle             : 5177265

rxGemCorrected            : 0

rxGemIllegal              : 0

rxAllocationsValid        : 5177266

rxAllocationsInvalid      : 0

rxAllocationsDisabled     : 0

rxPloams                  : 4677165             txPloams                  : 633

rxPloamsNonIdle           : 1006

rxPloamsError             : 0

rxPloamsDropped           : 0

rxOmci                    : 1800                txOmci                    : 1544

rxDroppedTooShort         : 0

rxDroppedTooLong          : 0

rxCrcErrors               : 0

rxKeyErrors               : 0

rxFragmentsErrors         : 0

rxPacketsDropped          : 0

                                            txCpuOmciPacketsDropped   : 0

                                            txGemFragments            : 0

                                            txDroppedIllegalLength    : 0

                                            txDroppedTpidMiss         : 0

                                            txDroppedVidMiss          : 0

 

XG/XGS PON :

Port NO                   : 1

rxGem                     : 3360         txGem                     : 0

rxPackets                 : 1680         txPackets                 : 1690

rxGemDropped              : 0

rxGemIdle                 : 37414136397

rxGemCorrected            : 0

rxGemIllegal              : 0

rxAllocationsValid        : 16364496

rxAllocationsInvalid      : 0

rxAllocationsDisabled     : 0

rxPloams                  : 4685747       txPloams                  : 676

rxPloamsNonIdle           : 13

rxPloamsError             : 0

rxPloamsDropped           : 0

rxOmci                    : 1680          txOmci                    : 1671

rxDroppedTooShort         : 0

rxDroppedTooLong          : 0

rxCrcErrors               : 0

rxKeyErrors               : 0

rxFragmentsErrors         : 0

rxPacketsDropped          : 0

                                           txCpuOmciPacketsDropped   : 0

                                           txGemFragments            : 0

                                           txDroppedIllegalLength    : 0

                                           txDroppedTpidMiss         : 0

                                           txDroppedVidMiss          : 0

 

brief-show slot x interface gpon-olt 1/y broadcast

P3600#brief-show slot 1 interface gpon-olt 1/1 broadcast gem-port

portid gem-portid

-------------------------------------------------------------------------

5      4095

 

brief-show slot x interface gpon-olt 1/y gpon-link

P3600#brief-show slot 1 interface gpon-olt 1/1 gpon-link

port                      :1

profile-id                :5

gem-portid                :4095

admin state               :unlock

ont discovery mode        :auto

ont discovery interval    :30

fec-tx state              :true

 

 

brief-show slot x interface gpon-olt 1/y key-exchange-control

P3600#brief-show slot 1 interface gpon-olt 1/1 key-exchange-control

port   :1

key-exchange-control: disable

 

brief-show slot x interface gpon-olt 1/y key-exchange-interval

P3600#brief-show slot 1 interface gpon-olt 1/1 key-exchange-interval

port   :1

gpon key-exchange-interval: 10000

 

brief-show mac-address

P3600#brief-show mac-address

Agingtimer                    :300

Total MAC Count               :4

S-VID     MAC Address         Forward Port   Type           Virtual Port   Gem Port

---------------------------------------------------------------------------------------

5         00:00:00:00:12:12   IS 2/3         Dynamic        2/5/2/1        1036

6         00:1c:82:06:29:5d   IS 2/3         Dynamic        2/5/2/1        1036

5         00:00:00:00:23:23   XGE 1          Dynamic

4000      00:00:00:00:23:23   XGE 1          Dynamic

TOTAL Count: 4

 

brief-show slot x interface gpon-olt 1/y ont-registered

P3600#brief-show slot 1 interface gpon-olt 1/1 ont-registered

Index: 1.

        ONUID: (1:1:1:1).

        SN: GPON000D56CE

        PassWord: [00 00 00 00 00 00 00 00 00 00].

        Equipment ID: SF2040.

        autoLearning: Enable.

        staticB: FALSE.

        onuStatus: ACTIVE.

        onuManagerStatus: UP/READY/READY

        onuLinkStatus: OPERATION(O5).

        onuOmciStatus: PROVISIONED.

        berInterval: 30000.

        OMCI Rx: 544, Tx: 475.

        DeactivationReason: NONE.

        SwdlState: NONE.

 

brief-show slot x interface gpon-olt 1/y ont-upgrade-config

P3600#brief-show slot 1 interface gpon-olt 1/1 ont-upgrade-config

auto-upgrade 1/1/1 filename SFU.w start-time  19 equip-id 1111

 

brief-show slot x interface gpon-olt 1/y ont-upgrade-status

P3600#brief-show slot 1 interface gpon-olt 1/1 ont-upgrade-status

ONT       Status

Ont1      SUCCESS

 

brief-show slot x interface gpon-olt 1/y optical-info

P3600#brief-show slot 1 interface gpon-olt 1/1 optical-info

Transceiver Type              : SFP

Connector Type                : SC

Vendor Name                   : H3C

Vendor Part Number            : GNSP4352S5C-B

Vendor Serial Number          : 034FXEMBM6000185

Manufacturing Date            : 20210621

GPON(TX/RX) Wave Length(nm)   : 1490/1310

XG(S)PON(TX/RX) Wave Length(nm): 1577/1270

Digital Diagnostic Monitor    : YES

Power Feed Voltage(V)         : 3.11

Temperature(Centigrade)       : 36.29

2.5G Optical Launch Power(dBm): 6.9917

10G  Optical Launch Power(dBm): 7.1949

2.5G Laser Bias Current(mA)   : 36.344

10G  Laser Bias Current(mA)   : 50.784

 

brief-show slot x interface gpon-olt 1/y pon-max-distance

P3600#brief-show slot 1 interface gpon-olt 1/1 pon-max-distance

pon(1) max distance : 20(km)

 

5. brief-show slot x interface gpon-olt 1/y ont

操作级别

Normal

配置模式

全局配置模式

语法

brief -show slot  <slot id> interface gpon-olt  <port>ont <1..128> [brief] [eth-uni][ip-host][loop-detect][mac-address][mac-bridge][mac-filter][optical-info][optical-power-threshold ][port-vlan][profile][splitting-path][summary][uni-status][virtual-port][voip-service]

参数定义

 <slot id>:槽位号,P3617: 1-17;  P3608: 1-8;  P3602: 1-2

<port>:单一接口<1/port> (port{1..16})

说明

该命令用于查看与ONT相关的所有信息。

 

例如:

P3600#brief-show slot 1 interface gpon-olt 1/1 ont 1

 brief                                     - Show the main information of the ONU

 eth-uni                                   - Show the status of the ethernet UNI of the ONT

 ip-host                                   - port-list

 loop-detect                               - Show the configuration of loop detection

 mac-address                               - show ont bridge port mac adress

 mac-bridge                                - mac bridge

 mac-filter                                - show ont eth uni macfilterpre

 optical-info                              - Show the optical status of the current ONT

 optical-power-threshold                   - Display the ont optical and power threshold

 port-vlan                                 - Show the configuration parameters of the ONT VLAN conversion table

 profile                                   - Show ONT applied profile information

 splitting-path                            - Show  the splitting path of the ONT.

 summary                                   - Show ONU summary

 uni-status                                - Show the ONT UNI port status

 virtual-port                              - Show ONT virtual port

 voip-service                              - Show ont voip config

 

brief-show slot x interface gpon-olt 1/y ont x brief

P3600#brief-show slot 1 interface gpon-olt 1/1 ont 1 brief

ONT brief:

Port ID                     :1

Ont ID                      :1

Primary state               :active

Admin state                 :unlock

optical state               :enable

Operational state           :enable

Vendor ID                   :GPON

Equipment ID                :SF2040

Vendor Product Code         :19

Main Software Version       :V1.0.10

Secondary Software Version  :V1.0.10

Sys Up Time                 :3 days 2h:53m:59s

 

Serial Number               :GPON000D56CE

Mac Limit                   :0

Connectivity Capability     :0x7f

flow profile                :5

t-cont bind profile         :5

service type                :1_mp

t-cont vport bind type      :profile-based

Distance(m)                 :5

 

brief-show slot x interface gpon-olt 1/y ont z eth-uni

P3600#brief-show slot 1 interface gpon-olt 1/1 ont 1 eth-uni 1

ETH_UNI ID                  :1/1/1/1

Operation State             :disable

Admin State                 :unlock

Multicast Oper Profile      :0

Multicast Static Profile    :0

Multicast Dynamic Profile   :0

Power Control               :disable

PoE Mode                    :signal

PoE Priority                :critical

PoE Max-power-class         :default

PoE Max-power               :0

PoE Force-power             :disable

PoE Capability              :0

PoE operation State         :0

Power Detect Status         :0

Power Classification Status :0

Invalid Signature Counter   :0

Power Denied Counter        :0

Overload Counter            :0

Short Counter               :0

MPS Absent Counter          :0

PSE Class Control           :1

Current Power Consumption   :0

Configured Speed            :auto

Configured Duplex           :auto

Speed                       :unknow

Duplex                      :unknow

Expected Type               :47

Max Frame Size              :1518

DTE or DCE Ind              :DCE

Pause Time                  :0

Bridge or IP Ind            :either

LOOP                        :no-loop

ARC                         :disable

ARC-interval                :0

PPPoE Filter                :disable

US Ratelimit CIR            :0(kbps)

US Ratelimit PIR            :0(kbps)

DS Ratelimit CIR            :0(kbps)

DS Ratelimit PIR            :0(kbps)

Vlan Filter Start Vlan      :0

Vlan Filter End Vlan        :0

Vlan Filter Pbit            :0

Vlan Filter Tagged mode     :vlan-filter

Vlan Filter UnTagged mode   :transparent

 

brief-show slot x interface gpon-olt 1/y ont z ip-host

P3600#brief-show slot 1 interface gpon-olt 1/1 ont 1 ip-host 1

IP_HOST ID                  :1/1/1/1

ipOpt:0x0

macAddr:00:00:00:00:00:00

ipAddr:0.0.0.0

ontId:

mask:0.0.0.0

gateway:0.0.0.0

priDns:0.0.0.0

secDns:0.0.0.0

curAddr:0.0.0.0

curMask:0.0.0.0

curGateway:0.0.0.0

curPriDns:0.0.0.0

curSecDns:0.0.0.0

domainName:

hostName:

 

brief-show slot x interface gpon-olt 1/y ont z loop-detect

P3600#brief-show slot 1 interface gpon-olt 1/1 ont 1 loop-detect

--------------------------------------------------------------

ONU Key: 1/1/1/1

 

brief-show slot x interface gpon-olt 1/y ont z mac-address

P3600#brief-show slot 1 interface gpon-olt 1/1 ont 1 mac-address

ONT/Port   Filter/Forward  Dynamic/Static  Age Time(s)   MAC Address

 

-------------------------------------------------------------------------

1/1      Forward         Dynamic         294           00:00:00:00:11:11

 

brief-show slot x interface gpon-olt 1/y ont z mac-filter

P3600#brief-show slot 1 interface gpon-olt 1/1 ont 1 mac-filter pre-assign 1

AppleTalk                           : Forward

ARP                                 : Forward

bridgeManagemenInformation          : Forward

IPv4Broadcast                       : Forward

IPv4Multicast                       : Forward

IPv6Multicast                       : Forward

IPX                                 : Forward

NetBEUI                             : Forward

PPPoEBroadcast                      : Forward

RARP                                : Forward

 

brief-show slot x interface gpon-olt 1/y ont z optical-info

P3600#brief-show slot x interface gpon-olt 1/y ont z optical-info

Power Feed Voltage(V)         :3.30

Received Optical Power(dBm)   :-22.5980

Optical Launch Power(dBm)     :2.1880

Laser Bias Current(mA)        :10.650

Temperature(Centigrade)       :20.33

 

brief-show slot x interface gpon-olt 1/y ont z optical-power-threshold

P3600#brief-show slot 1 interface gpon-olt 1/1 ont 1 optical-power-threshold

Lower optical threshold         :-127.0 dBm

Upper optical threshold         :-10.0 dBm

Lower transmit power threshold  :-63.5 dBm

Upper transmit power threshold  :-63.5 dBm

Yellow Power feed voltage       :50.00 V

Red Power feed voltage          :70.00 V

Low Laser bias current          :10.00 mA

High Laser bias current         :70.00 mA

Yellow Temperature              :30.00 C

Red Temperature                 :80.00 C

 

brief-show slot x interface gpon-olt 1/y ont z profile

P3600#brief-show slot 1 interface gpon-olt 1/1 ont 1 profile

                                                               RateCtrl Up               RateCtrl Down

                                                               -------------------------- ----------------------

TCONT T-SVC DBA Type  Fix   Assure MAX    Vport V-SVC  Up Flow  Profile   CIR    PIR     Profile   CIR     PIR

 id    id   id       (Kbps) (Kbps) (Kbps)       id     Priority Id        (Kbps) (Kbps)  Id        (Kbps)  (Kbps)

----------------------------------------------------------------------------------------------------------------

 1     1     1  type4 \     \     1024000  1     1      0        0                       0

Vport Flow Profile: 11

Vport  Flow    UNI Type     UNI Port    Up Map Type             Start   End     Priority

        id2                 Bitmap                                              Bitmap

------------------------------------------------------------------------------------------

 1     1      ethernet-uni 0x1        vlanId                   111     111     0xff

 

brief-show slot x interface gpon-olt 1/y ont z splitting-path

P3600#brief-show slot 1 interface gpon-olt 1/1 ont 1 splitting-path

ONT Splittint Path:

portid                      :1

onuid                       :1

splitting path              :

 

brief-show slot x interface gpon-olt 1/y ont z summary

P3600#brief-show slot 1 interface gpon-olt 1/1 ont 1 summary

ONT Summary:

Port ID                     :1

Ont ID                      :1

Hardware Version            :R1.0

Hardware Revision           :0

Traffic Mgmt Option         :pri and rate controlled

Battery Backup              :unknow

Omcc Version                :g-984-4

PM state                    :unknow

DHCP Mode                   :disable

Security Capability         :AES-128

Security Mode               :AES-128

Total GEM Port Num          :127

Total TCONT Num             :8

Total Eth UNI Num           :4

Image #0 Version            :V1.0.10

Image #0 Status             :valid:true /activate:unknow /commit:unknow

Image #1 Version            :V1.0.10

Image #1 Status             :valid:true /activate:true /commit:true

Piggyback Dba Rep           :0

Whole Ont Dba Rep           :0

 

brief-show slot x interface gpon-olt 1/y ont z uni-status

P3600#brief-show slot 1 interface gpon-olt 1/1 ont 1 uni-status

portid     ontid      phy-portid uni-state

-----------------------------------------------------------------------

12         1          1          unlock

12         1          2          unlock

12         1          3          unlock

12         1          4          unlock

12         1          128        unlock

12         1          129        unlock

12         1          130        unlock

 

brief-show slot x interface gpon-olt 1/y ont z virtual-port

P3600#brief-show slot 1 interface gpon-olt 1/1 ont 1 virtual-port 1

PON Port ID                      :1

ONT ID                           :1

Vport ID                         :1

TCONT ID                         :1

GEM Port ID                      :1024

Alloc ID                         :256

Admin State                      :unlock

Encryption Mode                  :disable

 

brief-show slot x interface gpon-olt 1/y ont z voip-service

P3600#brief-show slot 1 interface gpon-olt 1/1 ont 1 voip-service

--------------------------------------------------------------

ONU Key: 1/1/1/1

Voip Svc Profile Index: 0

 

6. brief-show slot x ont-info

操作级别

Normal

配置模式

全局配置模式

语法

brief-show slot  <slot id> ont-info

说明

该命令用于显示所有ONT的在线状态

 

例如:

P3600#brief-show slot 1 ont-info

 

ONT      SN              Status   Find     Auth            Reason

1/1/1    BZAPF1B005E2    ready    auto     snonly          none

 

Total Ont Number    :1

Active Ont Number   :1

 

7. brief-show slot x ont-unbound

操作级别

Normal

配置模式

全局配置模式

语法

brief-show slot  <slot id> ont-unbound

说明

该命令用于显示所有未绑定的ONT信息

 

例如:

P3600#brief-show slot 1 ont-unbound

--------------------------------------------------------------

Index: 1.

        Onu Type: XGPON.

        OnuId: slot-[1] device-[1] link-[1] onu-[0].

        Serail Number: GNPN820C1BAD  Vendor-Id[47 4E 50 4E] Specific[82 0C 1B AD].

        RegistrationId: 000000000000000000000000000000000000000000000000000000000000000000000000

        Reson: SERIAL_NUM_NOT_KNOWN

--------------------------------------------------------------

 

8. brief-show slot x pm interface gpon-olt 1/y

操作级别

Normal

配置模式

全局配置模式

语法

brief-show slot  <slot id> pm interface gpon-olt <port>[history][ont]

说明

该命令用于显示性能监控信息。查询性能监控数据前,需要先开启端口的性能监控

 

例如:

P3600#brief-show slot 1 pm interface gpon-olt 1/1

 history                                   - PM GPON OLT History

 ont                                       - logical portid

 

P3600#brief-show slot 1 pm interface gpon-olt 1/1 history

-------------------------------------------------------------------------

PORTID                    : 1

IntervalId                : 1

rxGem                     : 09110203

rxGemDropped              : 00

rxGemIdle                 : 010682205

rxGemCorrected            : 00

rxGemIllegal              : 00

rxAllocationsValid        : 010674045

rxAllocationsInvalid      : 00

rxAllocationsDisabled     : 00

rxPloams                  : 04851230

rxPloamsNonIdle           : 01147

rxPloamsError             : 00

rxPloamsDropped           : 00

rxCpu                     : 00

rxOmci                    : 0528

rxDroppedTooShort         : 00

rxDroppedTooLong          : 00

rxCrcErrors               : 00

rxKeyErrors               : 00

rxFragmentsErrors         : 00

rxPacketsDropped          : 00

rxBandWidthUtilization    : 00

rxBandWidthRate           : 00

txGem                     : 0250927617

txPloams                  : 01023

txGemFragments            : 00

txCpu                     : 00

txOmci                    : 0462

txCpuOmciPacketsDropped   : 00

txDroppedIllegalLength    : 00

txDroppedTpidMiss         : 00

txDroppedVidMiss          : 00

txBandWidthUtilization    : 00

txBandWidthRate           : 00

 

9. brief-show slot x pon-port y ont

操作级别

Normal

配置模式

全局配置模式

语法

brief-show slot  <slot id> pon-port  <1-16> ont

参数定义

 <slot id>:槽位号,P3617: 1-17;  P3608: 1-8;  P3602: 1-2

pon-portPON端口范围1-16

说明

该命令用于显示指定PON端口下ont的状态和在线信息

 

例如:

P3600#brief-show slot 1 pon-port 1 ont

Authenticated

---------------------

ONT      TYPE   SN              Status   Find     Auth            Reason

1/1/1   gpon   GPON000D56FA    ready    auto     snonly          none

 

Total Ont Number    :1

Active Ont Number   :1

 

Unauthenticated

---------------------

ONT      TYPE   SN              Status   Find     Auth            Reason

 

Total Ont Number    :0

 

3.1.9  brief-show temperature

操作级别

Normal

配置模式

全局配置模式

语法

brief-show temperature

说明

该命令用于显示温度和风扇转速信息

 

例如:

P3600#brief-show temperature

CSM Temperature       : 54 Celsius

Peer CSM Temperature  : 56 Celsius

Slot[ 1] Temperature  : 31 Celsius

Slot[ 2] Temperature  : 0 Celsius

Slot[ 3] Temperature  : 0 Celsius

Slot[ 4] Temperature  : 0 Celsius

Slot[ 5] Temperature  : 0 Celsius

Slot[ 6] Temperature  : 0 Celsius

Slot[ 7] Temperature  : 29 Celsius

Slot[ 8] Temperature  : 0 Celsius

Slot[ 9] Temperature  : 0 Celsius

Slot[10] Temperature  : 0 Celsius

Slot[11] Temperature  : 31 Celsius

Slot[12] Temperature  : 0 Celsius

Slot[13] Temperature  : 0 Celsius

Slot[14] Temperature  : 0 Celsius

Slot[15] Temperature  : 0 Celsius

Slot[16] Temperature  : 0 Celsius

Slot[17] Temperature  : 0 Celsius

 

Fan1 Speed            : 1740 RPM

Fan2 Speed            : 1740 RPM

Fan3 Speed            : 3810 RPM

Fan4 Speed            : 3840 RPM

Fan5 Speed            : 3810 RPM

Fan6 Speed            : 3810 RPM

Fan7 Speed            : 1710 RPM

Fan8 Speed            : 1710 RPM

 

3.1.10  brief-show vlan

操作级别

Normal

配置模式

全局配置模式

语法

brief-show vlan [interface][xge <interface-list>]

说明

该命令用于简要显示VLAN相关信息

 

例如:

P3600#brief-show vlan

vlan ingress check  : Enable

S-Vlan TPID         : 0x8100

C-Vlan TPID         : 0x8100

 

 

VID  Name           Ports                        Untag ports       Mode     user-isolation

----+-------------------+----------------------------------+------------------------+---------+-----------------

1    DEFAULT_VLAN   IS 1/1-17/4,XGE 1-5,XGE 7-8  XGE 1-5,XGE 7-8  Bridge    Disable

300  v300           XGE 6                        XGE 6            Routed    Disable

 

3.1.11  brief-show vlan-translate

操作级别

Normal

配置模式

全局配置模式

语法

brief-show vlan-translate

说明

该命令用于简要显示VLAN转换相关信息

 

例如:

P3600#brief-show vlan-translate

VLAN Translation Entry

slot  port  ont   vport svid cvid new-svid  new-cvid  cos new-cos ether-type

--------------------------------------------------------------------------

1     1     1     1     100    4095   100       4095      copy  8

1     1     2     1     100    4095   100       4095      copy  8

 

3.2  exit

操作级别

Normal

配置模式

全局配置模式

语法

exit

参数定义

exit:配置模式上升一个级别。

说明

该命令用于将配置模式升高一个级别。在全局配置模式下输入exit,结束当前CLI会话

 

例如:

P3600#configure

P3600(CONFIG)#exit

P3600#

 

3.3  help

操作级别

Normal

配置模式

全局配置模式

语法

help

参数定义

help:提供帮助信息。

说明

该命令用于为用户提供帮助信息,相当于在提示符后直接输入“?”

 

例如:

P3600#help

 access                                    - Enter access configuration mode

 alarm                                     - Enter Alarm configuration mode

 auto-correction                           - EnableCLIauto correction mode

 banner                                    - Configure login banner

 clear                                     - Clear counters.

 commit-image                              - Commit CSM image

 configure                                 - Enter switch configuration mode

 debug                                     - Enter debug level

 disable                                   - Enter normal level

 dot1p                                     - Set 802.1p priority tag

 download                                  - Download a file

 dscp                                      - Set DSCP configuration

 dst                                       - Daylight saving time

 dual-homing                               - Configure dual homing for PON type B protection

 enable                                    - Enter privileged level

 erase                                     - Erase configuration data from flash memory

 history-size                              - Set history buffer size

 ip                                        - Enter IP configuration mode

 ipv6                                      - Enter IPv6 configuration mode

 manual-sync                               - Synchronize manually

 no                                        - Delete an object

 pause                                     - Enable pause mode for output line

 ping                                      - Send ICMP echo request

 reset                                     - Reset one or more modules

 resetnode                                 - Reset the entire node

 save                                      - Save configuration

 show                                      - Display information

 slice                                     - Configure NE slice slice-id-based

 slot                                      - Configure PON card slot-based

 snmp                                      - Enter SNMPv2 configuration mode

 snmp-agent                                - Configure SNMP version supported

 snmpv3                                    - Enter SNMPv3 configuration mode

 sntp                                      - Simple Network Time Protocol

 switchover                                - Switchover operation

 switchover-counter-reset                  - Reset the Switchover counter.

 sync-option                               - CSM Synchronization Option

 syslog                                    - Enter syslog configuration mode

 system                                    - Configure system name/contact/location

 telnet                                    - Telnet to a remote host

 time                                      - Local Time

 timezone                                  - Time zone

 tos                                       - Set TOS configuration

 traceroute                                - Perform traceroute

 upgrade-lc                                - Upgrade Line Card Image

 upload                                    - Upload a file

 virtual                                   - Assign virtual module

 ztd                                       - configuration for auto configuration on startup

 

3.4  home

操作级别

Normal

配置模式

全局配置模式

语法

home

参数定义

home:返回到全局配置模式

说明

该命令将CLI返回到全局配置模式

 

例如:

P3600#configure l2

P3600(L2)#

P3600(L2)#home

P3600#

 

3.5  kill

操作级别

Privileged

配置模式

全局配置模式

语法

kill

说明

该命令结束除当前CLI会话以外的会话

 

例如:

P3600#kill

 

3.6  quit

操作级别

Normal

配置模式

全局配置模式

语法

quit

说明

该命令结束当前CLI会话

 

例如:

P3600#quit

 

3.7  who

操作级别

Normal

配置模式

全局配置模式

语法

who

说明

该命令用于显示当前所有CLI会话

 

例如:

P3600#who

 User         IP Address                       Login Time

-------------+--------------------------------+--------------------------

 admin        [::ffff:192.168.3.229]:62300     2000/01/06, 17:43:57

 admin        [::ffff:192.168.5.134]:57575     2000/01/06, 20:33:45

 


4 系统命令

本节列出了系统命令。系统命令主要有重启、上载、下载和保存等。

4.1  升级命令

4.1.1  download

操作级别

Privileged

配置模式

全局配置模式

语法

download ip <A.B.C.D> src <file-name> [dst <file-name>]

参数定义

download:下载文件。

ip:远程主机的IP地址。

<A.B.C.D>:合法IP地址。src:源文件名。

<file-name>:全路径文件名称,最长为64字节。

dst:目标文件名称。

<file-name>:全路径文件名称,最长为64字节。

说明

该命令用于从远程tftp服务器下载文件到节点。

文件名称应包括全路径。假设主控板上的目标目录为DIRDIRtftpboot的子目录,文件名称为FILENAME,那么全路径应为:

/tftpboot/DIR/FILENAME

 

例如:

P3600#download ip 10.230.9.1 src P3600A-E1002.ipe dst /tftpboot/ipe/P3600A-E1002.ipe

begin download file from tftp server,please wait...

 

download       10%    ......

download       20%    ......

download       30%    ......

download       40%    ......

download       50%    ......

download       60%    ......

download       70%    ......

download       80%    ......

download       90%    ......

download P3600A-E1002.ipe success .

P3600#

 

4.1.2  upload

操作级别

Privileged

配置模式

全局配置模式

语法

upload ip <A.B.C.D> src <file-name> [dst <file-name>]

参数定义

<file-name>:全路径文件名,最长为64字节。

说明

该命令用于将文件上载到远程主机。

文件名应包括全路径。假设主控板上的源目录是DIRDIRtftpboot的子目录,文件名为FILENAME,全路径为:

/tftpboot/DIR/FILENAME

 

例如:

P3600#upload ip 10.230.1.17 src /tftpboot/ipe/P3600A-E1002.ipe dst 1111.ipe

begin upload file to tftp server,please wait...

upload 1111.ipe success .

P3600#

 

4.1.3  commit-image

操作级别

Privileged

配置模式

全局配置模式

语法

commit-image <active|standby|both> [version <version number>]

参数定义

commit-image:执行主控image文件

<active|standby|both> 主用主控板、备用主控板、主用和备用主控板。

version: 需要指定升级的版本。

<version number>: 升级的版本号。

说明

该命令用于分别升级主用或备用主控板的image文件或同时升级两块主控板的image文件。请注意版本文件需要提前上传到/tftpboot/ipe目录下。

 

例如:

P3600#commit-image both version E1002

Commit Active Operation done. Commit Standby Operation done.

Please use command "show image-commit-status" to check commit status!

 

4.1.4  show image-commit-status

操作级别

Normal

配置模式

全局配置模式

语法

show image-commit-status

说明

该命令用于显示主控映像文件升级状态。

 

例如:

 

P3600#show image-commit-status

Location       Module Status        Commit Status

Slot A         Active               Inprogress

Slot B         Standby              Inprogress

 

P3600#show image-commit-status

Location       Module Status        Commit Status

Slot A         Active               Successful

Slot B         Standby              Successful

 

4.1.5  upgrade-lc

操作级别

Privileged

配置模式

全局配置模式

语法

upgrade-lc slot  <Slot Id>  [version <version number>] [mode <normal|in-service>]

参数定义

 <Slot Id>:线卡序号。

version: 需要指定升级的版本。

<version number>: 升级的版本号。

mode: 指定升级模式,normal为正常版本升级,需要重启生效,in-service是带业务升级,直接生效。

说明

该命令用于升级板卡版本文件。

 

例如:

P3600#upgrade-lc slot 3 version E1002

begin upload image to line card,please wait...

upload 10% ......

upload 20% ......

upload 30% ......

upload 40% ......

upload 50% ......

upload 60% ......

upload 70% ......

upload 80% ......

upload 90% ......

upload line card image success.

write to flash, please wait...

write flash 10% ......

write flash 20% ......

write flash 30% ......

write flash 40% ......

write flash 50% ......

write flash 60% ......

write flash 70% ......

write flash 80% ......

write flash 90% ......

write flash 100% ......

write flash success.

 

P3600#

 

4.2  复位命令

4.2.1   reset all

操作级别

Privileged

配置模式

全局配置模式

语法

reset all [soft|hard]

参数定义

reset:重启一块或多块插板。

all:除CSM以外的所有插板。

soft:通过通信消息软重启插板。

hard:通过物理重启信号重启插板。

说明

重启系统中除主控板外的所有插板。缺省为软重启。

 

例如:

P3600#reset all hard

P3600#

 

4.2.2  reset slot

操作级别

Privileged

配置模式

全局配置模式

语法

reset slot <slot ID> [soft|hard]

参数定义

slot ID:线卡序号。

soft:通过通信消息软重启插板。

hard:通过物理重启信号重启插板。

说明

重启指定机框和插槽上的插板。

重启主用主控板会引起主控板切换。缺省为软重启。

若两块主控板正在同步,不允许主控板重启,并显示如下错误信息:

“The reset may cause node file or database lost or inconsistent, since node is synchronizing files and database b/w active and standby CSM. Please do reset when the synchronization status is not “in synchronizing””.   重启可能导致节点文件或数据库丢失或不一致,因为节点正在主用主控板和备用主控板之间同步文件和数据库。请在同步状态不为“in synchronizing”(同步中)时重启插板。)

若当前映象文件或file system执行状态为“in progresss”(进行中),禁止主控板重启,并显示如下错误信息:

“The reset may cause inconsistency version of CSM image or node file system image, since the CSM module is committing CSM image or node file system image. Please do reset when the commit result is not “in progress””.(重启可能导致CSM映象文件或节点file system映象之间版本不一致,因为主控板正在执行CSM映象文件或节点file system映象文件。请在执行状态不为“in progress”(进行中)时重启插板。)

 

例如:

P3600#reset slot 1 soft

P3600#

 

4.2.3  resetnode

操作级别

Privileged

配置模式

全局配置模式

语法

resetnode

参数定义

resetnode:重启整个节点

说明

该命令重启节点

若两块主控板之间正在进行同步,不允许重启节点,并显示如下错误信息:

“The reset may cause node file or database lost or inconsistent, since node is synchronizing files and database b/w active and standby CSM. Please do reset when the synchronization status is not “in synchronizing””. (重启可能导致节点文件或数据库丢失或不一致,因为节点正在主用主控板和备用主控板之间同步文件和数据库。请在同步状态不为“in synchronizing”(同步中)时重启节点。)

若当前映象文件或file system执行状态为“in progresss”(进行中),禁止重启节点,并显示如下错误信息:

“The reset may cause inconsistency version of CSM image or node file system image, since the CSM module is committing CSM image or node file system image. Please do reset when the commit result is not “in progress””.(重启可能导致CSM映象文件或节点file system映象之间版本不一致,因为主控板正在执行CSM映象文件或节点file system映象文件。请在执行状态不为“in progress”(进行中)时重启节点。)

 

例如:

P3600#resetnode

Warning:Reset node will make the node disconnet and call will interrupt.

Are you sure you want to reset the node (y/n)?

y

P3600#

 

4.3  主备相关命令

4.3.1  sync-option

操作级别

Privileged

配置模式

全局配置模式

语法

sync-option <enabled|disabled>

参数定义

<enable|disable>:启动或禁止。缺省值:enable

说明

该命令设置CSM插板同步选项。

 

例如:

P3600#show sync

CSM Sync Configuration      :    Enable

CSM Sync Status             :    Synchronized

CSM Manual Sync Status      :     Synchronized

 

P3600#sync-option disable

P3600#show sync

CSM Sync Configuration      :     Disable

CSM Sync Status             :     Not Synchronized

CSM Manual Sync Status      :     Not Synchronized

 

P3600#sync-option enable

P3600#show sync

CSM Sync Configuration      :     Enable

CSM Sync Status             :     In Synchronizing

CSM Manual Sync Status      :     In Synchronizing

 

P3600#

 

4.3.2  manual-sync

操作级别

Privileged

配置模式

全局配置模式

语法

manual-sync CSM

参数定义

manual-sync:手工同步。

说明

当同步状态为“in synchronizing”(同步中,不允许手工同步, 并给出相应错误提示:

“The switchover may cause node file or database lost or inconsistent, since node is synchronizing files and database b/w active and standby CSM. Please do the manual switchover when the synchronization status is not “in synchronizing”.   切换可能导致节点文件或数据库丢失或不一致,因为节点正在主用主控板和备份CSM之间同步文件和数据。请在同步状态不在“in synchronizing”(同步中)时做手工切换。)

 

例如:

P3600#manual-sync CSM

P3600#show sync

CSM Sync Configuration      :     Enable

CSM Sync Status             :     In Synchronizing

CSM Manual Sync Status      :     In Synchronizing

 

4.3.3  show sync

操作级别

Normal

配置模式

全局配置模式

语法

show sync

说明

显示当前同步设置和状态,包括: 同步选项

同步状态:Not applicable不适用In synchronizing同步中Synchronized(已同步)、Not synchronized(未同步)。

 

例如:

P3600#show sync

CSM Sync Configuration        :   Enable

CSM Sync Status               :   Synchronized

CSM Manual Sync Status        :   Synchronized

 

P3600#

 

4.3.4  switchover CSM

操作级别

Privileged

配置模式

全局配置模式

语法

switchover CSM

说明

该命令切换CSM主备板。

 

例如:

P3600#switchover CSM

Are you sure you want to switchover CSM module ? (yes or no)

y

Switchover CSM module Success !

P3600#

 

注意:当下发该命令行后,当前cli会话会中断,需要重新打开会话

4.3.5  switchover-conter-reset

操作级别

Privileged

配置模式

全局配置模式

语法

switchover-counter-reset

说明

重置切换计数器。

 

例如:

P3600#switchover-counter-reset

P3600#show switchover

Success Switchover Counter : 0

Failed Switchover Counter : 0

 

P3600#

 

4.3.6  no switchover-record

操作级别

Normal

配置模式

全局配置模式

语法

no switchover-record <yyyy/mm/dd/HH/MM/SS>

说明

该命令删除一个切换记录。

 

例如:

P3600#show switchover

Success Switchover Counter    :   1

Failed Switchover Counter     :   0

 

Switchover Record Time        :   2010/01/18, 14:10:42

Switchover Reason             :   Manual from CLI

Switchover Reason Shelf       :   1

Switchover Reason Slot        :   CSM B

Switchover Result             :   Success

Switchover Failed Reason      :   Unknown

 

P3600#no switchover-record 2010/01/18/14/10/42

P3600#show switchover

Success Switchover Counter  :     1

Failed Switchover Counter   :     0

 

4.3.7  show switchover

操作级别

Normal

配置模式

全局配置模式

语法

show switchover

说明

显示切换统计和记录,包括:

Sucessuful Switchover Counter(切换成功计数器) Failed switchover counter(切换失败计数器) Switchover time (切换时间,YYYY/MM/DD/hh/mm/ss) Switchover Reason, includes切换原因,包括:

CLI-command switchoverCLI命令切换) NMS-command switchoverNMS命令切换)

Button switchover from active CSM(来自主用主控板的按钮切换) Active CSM reset instructed byCLIcommand or NMS command

CLI命令或NMS命令指示的主用主控板重启)

Heartbeat failure in active CSM(主用主控板心跳失败) Removal of active CSM(主用主控板拆除)

Protection uplink is down in active CSM but is up in standby CSM

(保护上行链路在主用主控板为down,但在备用主控板为up Switchover results (切换结果:Success(成功)、Failure(失败)) Switchover failure reason, includes Synchronization disabled(同步禁用)

Standby CSM is in STB_Init state(备用主控板状态为STB_Init Standby CSM is in STB_Oos state(备用主控板状态为STB_OosStandby CSM is in Power_on state. (备用主控板状态为Power_on

Standby CSM is in Pre_Init state. (备用主控板状态为Pre_Init

File is synchronizing b/w active and standby主用和备用主控板之间的文件在同步。

 

例如:

P3600#show switchover

Success Switchover Counter    :   0

Failed Switchover Counter          :   1

 

Switchover Record Time             :   2020/11/19, 02:41:15

Switchover Reason                  :   Manual from CLI

Switchover Reason Shelf            :   1

Switchover Reason Slot             :   NONE

Switchover Result                  :   Fail

Switchover Failed Reason           :   Standby in STB power on or not present

 

P3600#

 

4.4  ip命令

该命令列出了管理 IP 命令。IP 命令用来创建/删除 IP 地址。

4.4.1  management

操作级别

Privileged

配置模式

IP

语法

management ip <A.B.C.D> netmask <A.B.C.D>

参数定义

management设置管理IP地址。

ip 配置管理IP地址。

<A.B.C.D> 管理IP地址,缺省为10.20.30.1

Netmask 配置子网掩码。

<A.B.C.D> 管理掩码,缺省为255.255.255.0

说明

该命令设置管理IP地址。

 

例如:

P3600#ip

P3600(IP)#show ip

System management manner    : outband

 

Management IP address       : 10.4.42.166

Management IP netmask       : 255.255.255.0

Management hardware address : 00:e0:8e:00:02:25

 

P3600(IP)#management ip 10.10.10.1 netmask 255.255.0.0

This command will change the IP address to 10.10.10.1. Execute anyway? (yes or no)

yes

 

P3600(IP)#show ip

System management manner    : outband

 

Management IP address       : 10.10.10.1

Management IP netmask       : 255.255.0.0

Management hardware address : 00:e0:8e:00:02:25

 

4.4.2  show ip

操作级别

Normal

配置模式

IP

语法

show ip

说明

该命令显示IP地址、客户端地址和DNS服务器地址。对于客户端地址,显示客户端地址分配信息(哪个地址分配到了哪个插槽)。

 

例如:

P3600#ip

P3600(IP)#show ip

System management manner                  :  outband

 

Management IP address                     :  192.168.0.23

Management IP netmask                     :  255.255.255.0

Management hardware address               :  00:1c:82:07:a4:39

 

4.5  SNMP配置

4.5.1  选择SNMP的版本

1. snmp-agent version

操作级别

Privileged

配置模式

全局配置模式

语法

snmp-agent version <v1|v2c|v3|all>

参数定义

v1: 设置系统启用SNMP v1版本。

v2c: 设置系统启用SNMP v2c版本

v3: 设置系统启用SNMP v3版本。

all: 设置系统同时启用SNMP v1SNMP v2cSNMP v3版本。

缺省值为all

说明

该命令命令配置系统SNMP版本号,从而实现不同版本相应特性功能。

 

P3600#snmp-agent version all

 

2. show snmp-agent

操作级别

Normal

配置模式

全局配置模式

语法

show snmp-agent

说明

该命令用于显示当前系统中运行的SNMP版本号信息

 

P3600#show snmp-agent

SNMP version running in the system: SNMPv1/SNMPv2c/SNMPv3

 

4.5.2  SNMPv2配置

1. community

操作级别

Privileged

配置模式

SNMP

语法

community <string><read-only|read-write>

参数定义

community 添加/修改配置的Community字符串

<string> 配置的community字符串,最多16个字母数字字符

<read-only|read-write> 访问权限,只读或读写

说明

该命令添加/修改配置的Community字符串

 

2. no community

操作级别

Privileged

配置模式

SNMP

语法

no community < string>

参数定义

no community 删除配置的Community字符串

<string> 配置的Community字符串,最长16个字母数字字符

说明

该命令删除配置的Community字符串。

 

3. show community

操作级别

Normal

配置模式

SNMP

语法

show community

参数定义

show显示信息

Community 配置的community字符串

说明

该命令显示配置的community字符串。

 

例如:

P3600#snmp

P3600(SNMP)#community private read-write

P3600(SNMP)#show community

CommunityString Property(RO/RW)

private RW

public  RO

xpress  RW

P3600(SNMP)#no community private

P3600(SNMP)#show community

CommunityString Property(RO/RW)

public  RO

xpress  RW

P3600(SNMP)

 

4. trap-destination

操作级别

Privileged

配置模式

SNMP

语法

trap-destination <A.B.C.D> community <string> [desc <desc>]

参数定义

trap-destination配置trap目标地址。

<A.B.C.D> Trap目标IP地址。

Community trap使用的Community字符串。

<string> Community字符串。

desctrap描述。

<desc>trap描述。

说明

该命令添加发送trap到指定目的地时要使用的trap目标地址和

community字符串。

 

5. no trap-destination

操作级别

Privileged

配置模式

SNMP

语法

no trap-destination [<A.B.C.D>]

参数定义

no trap-destination 删除一个或多个trap目标地址

<A.B.C.D> Trap目标IP地址

说明

该命令删除一个或所有配置的trap目标。若未指定IP地址,所有trap目标都被删除。

 

6. show trap-destination

操作级别

Normal

配置模式

SNMP

语法

show  trap-destination

参数定义

show显示信息

 trap-destination 配置的trap目标。

说明

该命令显示配置的trap目标。

 

例如:

P3600#snmp

P3600(SNMP)#trap-destination 1.1.1.1 community private

P3600(SNMP)#show trap-destination

DestAddress CommunityString Description

1.1.1.1     private

P3600(SNMP)#no trap-destination 1.1.1.1

P3600(SNMP)#show trap-destination

DestAddress CommunityString Description

P3600(SNMP)#

 

4.5.3  SNMPv3配置

1. local-engineid

操作级别

Privileged

配置模式

snmpv3模式

语法

local-engineid [default | id <engineid>]

参数定义

default: 用于恢复系统默认的引擎ID。系统采用内部算法自动生成一个设备引擎ID,包含公司的“企业号+3+设备信息”。其中,使用主控板的带外MAC地址作为引擎ID的“设备信息”。

id  设置引擎ID

engineid: 字符串类型,为一串十六进制数字的字符。可输入的字符串长度为10-64个字符。字符的个数必须为偶数。两个字符对应一个十六进制字节。

标准建议值:

如果一个引擎ID的第一比特位为0,则表明该值是由供应商提供的,12字节长度,并具有如下格式:

前四个字节被设置成设备的SNMP管理私有企业号,由Internet分配号码权威机构分配。

接下来的8个字节按一种企业特定方法分配。例如,使用实体的IP地址+填充4个任意字节。

如果一个引擎ID的第一比特位为1,则该值具有如下格式:

前四个字节(除第一比特位)被设置成设备的SNMP管理私有企业号,由Internet分配号码权威机构分配。

第五个字节用于标识如何使用其它的字节,它的值为:

0:保留。

1:后面的4个字节是一个IPv4地址。使用的IP地址是分配给该设备的带外管理地址。

3:后面的6个字节是一个MAC地址。使用的MAC地址是分配给该设备的带外MAC地址,它按字典次序表示。

4:其余字节是管理性分配的文本。文本的长度是企业特定的,最多可到27个字节。

5:其余字节是管理性分配的十六进制值。该字节字符串的长度是企业特定的,最多可到27个字节。

6-127:保留。

128-255:这些值的意义是企业特定的。引擎ID其余部分的最大长度可以达到27个字符。

说明

该命令用于配置本地SNMP实体引擎ID。每个SNMP实体包含一个SNMP引擎。当成功配置了SNMP实体的引擎ID后,在一个管理域中,该引擎ID唯一标识一个SNMP实体。

 

P3600(SNMPv3)#local-engineid id test123

Warning: Modify the local-engineid will delete all the configured SNMPv3 users, all users must be reconfigured.

Are you sure you want to proceed? (y/n):y

 

2. show local-engineid

操作级别

Normal

配置模式

snmpv3模式

语法

show local-engineid

说明

该命令用于显示本地SNMP实体引擎ID

 

P3600(SNMPv3)#show local-engineid

SNMP local EngineID: 80009FA403001C820AC1B8

 

4.6  时间设置

4.6.1  dst option

操作级别

Privileged

配置模式

全局配置模式

语法

dst option <enable|disable>

参数定义

dst:夏令时。

option:夏令时选项。

<enable|disable>:启用或关闭夏令时。缺省值:disable.

说明

该命令用于设置夏令时选项(启用或关闭)。

 

例如:

P3600#show time

Local time          :   2020/11/18, 10:31:01

Time Zone           :   gmt+00:00

DST Configuration   :   Disable

DST Start Time      :   2009/12/21, 10:10:10

DST End Time        :   2009/12/22, 10:10:10

Current DST Status  :   False

 

P3600#dst option enable

P3600#show time

Local time          :   2020/11/18, 10:31:26

Time Zone           :   gmt+00:00

DST Configuration   :   Enable

DST Start Time      :   2009/12/21, 10:10:10

DST End Time        :   2009/12/22, 10:10:10

Current DST Status  :   False

 

4.6.2  dst date

操作级别

Privileged

配置模式

全局配置模式

语法

dst date [start <YYYY/MM/DD/hh/mm/ss>] [end

<YYYY/MM/DD/hh/mm/ss>]

参数定义

dst夏令时(Daylight saving time)。

date:夏令时的开始日期和结束日期。

start:夏令时开始日期和时间。

<YYYY/MM/DD/hh/mm/ss>YYYY:年, MM:月份, DD 日期,hh:小时(24小时制),mm:分钟,ss:秒。

end:夏令时结束日期和时间。

<YYYY/MM/DD/hh/mm/ss>YYYY:年, MM:月份,DD 日期,hh:小时(24小时制),mm:分钟,ss:秒。

说明

该命令用于设置夏令时开始时间和结束时间。

 

例如:

P3600#show time

Local time          :   2020/11/18, 10:28:38

Time Zone           :   gmt+00:00

DST Configuration   :   Disable

DST Start Time      :   2000/01/01, 00:00:00

DST End Time        :   2000/01/01, 01:00:00

Current DST Status  :   False

P3600#dst date start 2009/12/21/10/10/10 end 2009/12/22/10/10/10

P3600#show time

Local time          :   2020/11/18, 10:30:01

Time Zone           :   gmt+00:00

DST Configuration   :   Disable

DST Start Time      :   2009/12/21, 10:10:10

DST End Time        :   2009/12/22, 10:10:10

Current DST Status  :   False

 

4.6.3  time

操作级别

Privileged

配置模式

全局配置模式

语法

time <YYYY/MM/DD/hh/mm/ss>

参数定义

<YYYY/MM/DD/hh/mm/ss> YYYY:年, MM:月份, DD 日期,hh:小时(24小时制),mm:分钟,ss:秒。

说明

该命令设置节点上的本地时间。

 

例如:

P3600#time 2009/12/23/17/13/50

P3600#show time

Local time           : 2009/12/23, 17:13:53

Time Zone            : gmt+00:00

DST Configuration    : Disable

DST Start Time       : 2000/01/01, 00:00:00

DST End Time         : 2000/01/01, 01:00:00

Current DST Status   : False

P3600#

 

4.6.4  timezone

操作级别

Privileged

配置模式

全局配置模式

语法

timezone <gmt-1200, gmt-1100, gmt-1000, gmt-0900, gmt-0800, gmt-0700, gmt-0600, gmt-0500, gmt-0400, gmt-0330, gmt-0300, gmt-0200, gmt-0100, gmt+0000, gmt+0100, gmt+0200, gmt+0300, gmt+0330, gmt+0400, gmt+0430, gmt+0500, gmt+0530, gmt+0545, gmt+0600, gmt+0630, gmt+0700, gmt+0800, gmt+0900, gmt+0930, gmt+1000, gmt+1100, gmt+1200, gmt+1300>

参数定义

<gmt-1200, gmt-1100, gmt-1000, gmt-0900, gmt-0800,gmt-0700, gmt-0600, gmt-0500, gmt-0400, gmt-0330, gmt-0300,gmt-0200, gmt-0100, gmt+0000, gmt+0100, gmt+0200,gmt+0300, gmt+0330, gmt+0400, gmt+0430, gmt+0500,gmt+0530, gmt+0545, gmt+0600, gmt+0630, gmt+0700,gmt+0800, gmt+0900, gmt+0930, gmt+1000, gmt+1100,gmt+1200, gmt+1300>Gmt-1200, GMT时间早12小时…, Gmt-0330, GMT时间早3.5小时…, Gmt+0545, GMT时间迟5小时45分钟…, Gmt+1200, GMT时间迟12小时。

说明

该命令设置时区。

 

4.6.5  no timezone

操作级别

Privileged

配置模式

全局配置模式

语法

no timezone

参数定义

no:删除系统时区配置。

timezone:删除系统时区配置。

说明

该命令删除系统时区配置。

 

例如:

P3600#timezone gmt-12:00

 

P3600#show time

Local time          :   2020/11/18, 16:04:01

Time Zone           :   gmt-12:00

DST Configuration   :   Enable

DST Start Time      :   2009/12/21, 10:10:10

DST End Time        :   2009/12/22, 10:10:10

Current DST Status  :   False

 

P3600#no timezone

 

4.6.6  show time

操作级别

Normal

配置模式

全局配置模式

语法

show time

说明

显示时间,包括:

当前本地时间: YYYY/MM/DD/hh/mm/ss

时区:当前夏令时(daylight saving time,DST)选项以及夏令时开始和结束日期。

 

例如:

P3600#show time

Local time          :   2020/11/23, 10:22:52

Time Zone           :   gmt+00:00

DST Configuration   :   Disable

DST Start Time      :   2000/01/01, 00:00:00

DST End Time        :   2000/01/01, 01:00:00

Current DST Status  :   False

 

P3600#

 

4.7  SNTP配置

4.7.1  sntp ntpPoll

操作级别

Privileged

配置模式

全局配置模式

语法

sntp ntpPoll <min> <max>

参数定义

<minpoll>: NTP最小时间,参数范围4-17,为2的次幂秒,缺省为6(64s)

<maxpoll>: NTP最大时间,参数范围4-17,为2的次幂秒,缺省为10(1024s)

说明

设置NTP最大最小轮询时间。

 

例如:

P3600#sntp ntpPoll 4 5

P3600#show sntp

SNTP status                 : Enable

client type                 : NTP

NTP minpoll                 : 2^6 (seconds)

NTP maxpoll                 : 2^10 (seconds)

 

SNTP server         LastSync       LastReceive

10.230.9.1          Not Sync       0-00:00:00

 

4.7.2  sntp option

操作级别

Privileged

配置模式

全局配置模式

语法

sntp option <enable|disable>

参数定义

<enable|disable>:启用或禁用SNTP客户端。缺省值:disable

说明

设置SNTP选项。

 

例如:

P3600#show sntp

SNTP status                 : Disable

client type                 : NTP

NTP minpoll                 : 2^6 (sec)

NTP maxpoll                 : 2^10 (sec)

 

SNTP server         LastSync       LastReceive

 

P3600#sntp option enable

P3600#show sntp

SNTP status                 : Enable

client type                 : NTP

NTP minpoll                 : 2^6 (sec)

NTP maxpoll                 : 2^10 (sec)

 

SNTP server         LastSync       LastReceive

 

P3600#

 

4.7.3  sntp poll-interval

操作级别

Privileged

配置模式

全局配置模式

语法

sntp poll-interval <4..17 >

参数定义

 <4..17 >:单位为2的次幂秒,缺省值为6(64s)

说明

该命令配置SNTP轮询间隔。

 

例如:

P3600#sntp poll-interval 5

P3600#show sntp

SNTP status              : Disable

client type              : SNTP

SNTP poll interval       : 2^5 (seconds)

SNTP server         LastSync       LastReceive

 

4.7.4  sntp ptype

操作级别

Privileged

配置模式

全局配置模式.

语法

sntp ptype <ntp|sntp>

参数定义

<ntp|sntp>:类型为ntp/sntp。缺省值:ntp

说明

该命令配置SNTP客户端类型。

 

例如:

P3600#sntp ptype ntp

P3600#show sntp

SNTP status                 : Enable

client type                 : NTP

NTP minpoll                 : 2^6 (sec)

NTP maxpoll                 : 2^10 (sec)

 

SNTP server         LastSync       LastReceive

10.230.9.1          Not Sync       0-00:00:00

 

P3600#

 

4.7.5  sntp server

操作级别

Privileged

配置模式

全局配置模式.

语法

sntp server <A.B.C.D>

说明

增加SNTP服务器

 

例如:

P3600#sntp server 10.230.9.1

P3600#show sntp

SNTP status                 : Enable

client type                 : 2^6 (sec)

NTP maxpoll                 : 2^10 (sec)

 

SNTP server         LastSync       LastReceive

10.230.9.1          Not Sync       0-00:00:00

 

P3600#

 

4.7.6  no sntp server

操作级别

Privileged

配置模式

全局配置模式

语法

no sntp server <A.B.C.D>

参数定义

<A.B.C.D> SNTP 服务器IP地址。

说明

该命令删除SNTP服务器。

 

例如:

P3600#sntp server 1.1.1.1

P3600#show sntp

SNTP status                 : Disable

client type                 : NTP

NTP minpoll                 : 2^6 (sec)

NTP maxpoll                 : 2^10 (sec)

 

SNTP server         LastSync       LastReceive

1.1.1.1             Not Sync       0-00:00:00

 

P3600#no sntp server 1.1.1.1

P3600#show sntp

SNTP status                 : Disable

client type                 : NTP

NTP minpoll                 : 2^6 (sec)

NTP maxpoll                 : 2^10 (sec)

 

SNTP server         LastSync       LastReceive

 

P3600#

 

4.7.7  sntp sync

操作级别

Privileged

配置模式

全局配置模式

语法

sntp sync

说明

该命令用于与NTP/SNTP服务器手工同步。

 

例如:

P3600#show sntp

SNTP status                 : Enable

client type                 : NTP

NTP minpoll                 : 2^6 (sec)

NTP maxpoll                 : 2^10 (sec)

 

SNTP server         LastSync       LastReceive

10.230.9.1          Not Sync       0-00:00:00

 

P3600#sntp sync

P3600#show sntp

SNTP status                   : Enable

client type                 : NTP

NTP minpoll                 : 2^6 (sec)

NTP maxpoll                 : 2^10 (sec)

 

SNTP server    LastSync      LastReceive

10.230.9.1     Sync          0-00:00:06

 

P3600#

 

4.7.8  show sntp

操作级别

Normal

配置模式

全局配置模式

语法

show sntp

说明

该命令显示当前SNTP配置。

 

例如:

P3600#show sntp

SNTP status    : Enable

SNTP poll interval   : 2^10 (seconds)

 

SNTP server    LastSync      LastReceive

10.230.9.1     Sync          0-00:18:50

 

P3600#

 

4.8  syslog命令

本节列出了syslog命令。该命令用来增减系统日志消息类别及配置系统日志代理等。

4.8.1  syslog-server

操作级别

Privileged

配置模式

syslog

语法

syslog-server <A.B.C.D> facility <0..7> description <description-text> [udp <1..65535>] [localtime]

参数定义

syslog-server:配置系统日志服务器。

<A.B.C.D>:系统日志服务器地址。

facility:配置用于系统日志服务器上的设备。

<0..7>:设备个数。范围为0-7

description:对远程系统日志服务器的描述。

<description-text>:描述文本长度为1-64个字符。

udpudp端口。

<1..65535>:端口范围为1-65535。缺省值为514

localtime:在时间戳中使用本地时间。

说明

该命令配置系统日志服务器。

 

例如:

P3600#syslog

P3600(syslog)#syslog-server 2.3.4.5 facility 2 description test udp 1234 localtime

 

4.8.2  no syslog-server

操作级别

Privileged

配置模式

syslog

语法

no syslog-server

参数定义

no:删除系统日志服务器。

syslog-server:删除系统日志服务器。

说明

该命令删除系统日志服务器。

 

例如:

P3600(syslog)#no syslog-server 2.3.4.5

 

4.8.3  show server

操作级别

Normal

配置模式

syslog

语法

show server

参数定义

show:显示系统日志配置。

server:显示系统日志服务器配置。

说明

该命令显示系统日志服务器配置。

 

例如:

P3600(syslog)#show server

Server Address           Facility       Types of Logging

2.3.4.5                  SYSLOG LOCAL2  login dhcp dsl-link

                                        dsl-error ether-link config-change

                                        lc-status sys-alarm multicast

 

Description:   test

udp port:      1234

localtime:     enable

 

P3600(syslog)#no syslog-server 2.3.4.5

P3600(syslog)#show server

Server Address           Facility       Types of Logging

 

P3600(syslog)#

 

4.8.4  logging

操作级别

Privileged

配置模式

syslog

语法

logging <A.B.C.D> [<login/dhcp/dsl-link/dsl-error/ether-link/conf-change/lc-status/sys-alarm/multicast/all>]

参数定义

logging:增加系统日志消息类别。

<A.B.C.D>:配置服务器系统日志地址。

login:记录登录相关信息。

dhcp:记录dhcp相关。

dsl-link:记录dsl上行连接/下行连接。

dsl-error:记录dsl连接异常。

ether-link:记录以太网上行连接/下行连接。

conf-change:记录配置变动。

lc-status:记录线卡状态变动。

sys-alarm:记录系统警告。

multicast:记录组播CDR和登录/注销记录事件。

all:记录所有信息。

说明

该命令增加系统日志消息类别。

 

4.8.5  no logging

操作级别

Privileged

配置模式

syslog

语法

no logging <A.B.C.D> [<login/dhcp/dsl-link/dsl-error/ether-link/conf-change/lc-status/sys-alarm/multicast>]

参数定义

no:删除系统日志消息类别。

logging:删除系统日志消息类别。

<A.B.C.D>:系统日志服务器IP地址。

login:删除登录相关信息。

dhcp:删除dhcp相关。

dsl-link:删除dsl上行连接/下行连接。

dsl-error:删除dsl连接异常。

ether-link:删除以太网上行连接/下行连接。

conf-change:删除配置变动。

lc-status:删除线卡状态变动。

sys-alarm:删除系统警告。

multicast:删除组播CDR和登录/注销记录事件。

若缺省则删除所有该服务器的系统日志消息。

说明

该命令删除系统日志消息类别。

 

例如:

P3600#syslog

P3600(syslog)#syslog-server 1.2.3.4 facility 1 description test udp 5678 localtime

P3600(syslog)#logging 1.2.3.4 login dhcp dsl-link ether-link conf-change

P3600(syslog)#show server

Server Address           Facility         Types of Logging

1.2.3.4                  SYSLOG LOCAL1    login dhcp dsl-link

                                          dsl-error ether-link config-change

                                          lc-status sys-alarm multicast

 

Description:   test

udp port:      5678

localtime:     enable

 

P3600(syslog)#no logging 1.2.3.4 login dhcp dsl-link

P3600(syslog)#show server

Server Address           Facility       Types of Logging

1.2.3.4                  SYSLOG LOCAL1  dsl-error ether-link config-change

                                        lc-status sys-alarm multicast

 

Description:   test

udp port:      5678

localtime:     enable

 

P3600(syslog)#

 

4.8.6  show log

操作级别

Normal

配置模式

syslog

语法

show log

参数定义

show:显示系统日志记录。

log:显示系统日志记录。

说明

该命令显示系统日志记录。

 

例如:

P3600#syslog show log

 

****** Active CSM log ******

 

<134>Thu Feb  9 02:23:52 2023 192.168.7.70 Status-info-external-Ethernet-link: External Ethernet link XGE2 down

 

<134>Thu Feb  9 03:00:07 2023 192.168.7.70 login: (login) USER admin login from [::ffff:192.168.0.137]:50847

 

<134>Thu Feb  9 03:00:54 2023 192.168.7.70 config:CLIConfiguration change made cli_id=9043 from ::ffff:192.168.0.137 by USER admin

 

4.8.7  proxy

操作级别

Privileged

配置模式

syslog

语法

proxy <option>

参数定义

proxy:配置系统日志代理。

<option>:配置代理选项,允许/禁止系统日志代理。缺省值:disable

说明

该命令配置系统日志代理,将系统日志从本地用户转移到实际服务器。

 

4.8.8  show proxy

操作级别

Normal

配置模式

syslog

语法

show proxy

参数定义

show:显示系统日志配置。

proxy:显示代理配置。

说明

该命令显示代理配置。

 

例如:

P3600#syslog

P3600(syslog)#proxy enable

P3600(syslog)#show proxy

The Syslog Proxy is:     Enable

P3600(syslog)#

 

4.9  system

操作级别

Privileged

配置模式

全局配置模式

语法

system [contact <string>] [location <string>] [name <string>]

参数定义

contact <string>:系统联系人。最多128个字符,允许空格。

location <string>:系统地理位置。最多128个字符,允许空格。

name <string>:提示符中的系统名称。最多64个字符, 允许空格。

说明

该命令设置系统联系人、地址位置和/或名称信息。

 

4.10  show system

操作级别

Normal

配置模式

全局配置模式

语法

show system

参数定义

show:显示信息。

system 显示系统名称、联系人、地理位置和系统启动时间。

说明

显示如下系统信息:

·     系统名称 系统联系人

·     系统地理位置

·     系统启动时间

 

例如:

P3600#system contact H3C location HangzhouBinjiang name P3600

P3600#show system

System Information

System Description  :  P3600

System Name         :  P3600

System Contact      :  H3C

System Location     :  HangzhouBinjiang

System UP Time      :  0 days 01:26:37

ZTD Function        :  Disable

P3600#

 

4.11  auto-correction

操作级别

Privileged

配置模式

全局配置模式

语法

auto-correction <enable|disable>

参数定义

auto-correction:自动校准开关;

<enable|disable> 使能或失能开关。缺省值:enable

说明

该命令用于启用CLI自动校正模式。

 

4.12  show auto-correction

操作级别

Normal

配置模式

全局配置模式

语法

show auto-correction

参数定义

show:显示CLI自动校正模式状态;

auto-correction:显示CLI自动校正模式状态。

说明

该命令用于显示CLI自动校正模式状态。

 

例如:

P3600#auto-correction enable

P3600#show auto-correction

Auto-correction feature enabled

P3600#

 

4.13  banner

操作级别

Privileged

配置模式

全局配置模式

语法

banner [<delineator>]

参数定义

banner:设置登录横幅;

<delineator>:结束字符。

说明

该命令用于配置登录横幅。

 

4.14  show banner

操作级别

Normal

配置模式

全局配置模式

语法

show banner

说明

该命令用于显示系统banner

 

例如:

P3600#banner q

Enter TEXT message.  End with the character q

hello q

P3600#show banner

hello

P3600#

 

4.15  counter-csm

操作级别

Normal

配置模式

全局配置模式

语法

clear  counter-csm [counter][vlan-counter]

参数定义

counter:基于端口清空报文统计;

vlan-counter:基于VLAN清空报文统计信息。

说明

该命令用于清空主控的计数。

 

例如:

P3600#clear counter-csm

 counter                                   - Packet statistics of uplink interfaces.

 vlan-counter                              - Packet statistics of one or all VLANs.

 

4.16  counter-lc

操作级别

Normal

配置模式

全局配置模式

语法

clear  counter-lc  <<Slot Id>>[gpon-olt <port> [nni] [ont-gem <ontid>][ont-counts <ontid>]]

参数定义

nni:重置nni计数;

ont-counts:重置ONT计数;

ont-gem:重置所有的gemport计数。

说明

该命令用于清空指定PON板卡或指定PON端口的nniont-countsont-gem的计数。

 

例如:

P3600#clear counter-lc 1 gpon-olt 1/1

 nni                                       - reset nni counters

 ont-counts                                - reset onu counters

 ont-gem                                   - reset all gemports counters

 

4.17  erase config

操作级别

Privileged

配置模式

全局配置模式

语法

erase config

参数定义

说明

该命令用于从闪存删除配置数据(保留IP地址和缺省网关)。

 

例如:

P3600#erase config

Are you sure you want to erase the configuration (y/n)?

y

Configuration erased.

 

4.18  save config

操作级别

Privileged

配置模式

全局配置模式

语法

save config

说明

该命令保存当前全局、CSM以及其它所有插板的配置到配置文件。

 

例如:

P3600#save config

Are you sure you want to save the configuration (y/n)?

y

P3600#

 

4.19  history-size

操作级别

Normal

配置模式

全局配置模式

语法

history-size <0..256>

参数定义

<0..256>:保存在历史中的命令最多个数。缺省值:20

说明

该命令设置历史缓存大小。

 

例如:

P3600#history-size 50

 

4.20  show history

操作级别

Normal

配置模式

全局配置模式

语法

show history

参数定义

history:命令历史。

说明

该命令显示配置的历史缓存大小(通过命令history-size设置以及最大缓存允许范围内最近输入的命令。

 

例如:

P3600#history-size 30

P3600#show history

History buffer is configured to show up to 30 commands.

   1 no pause

   2 disable

   3 enable

   4 history-size 30

   5 show history

 

4.21  pause

操作级别

Normal

配置模式

全局配置模式

语法

pause

说明

当输出超过一页显示不下时,该命令激活后续CLI命令输出的暂停功能。用户可以按任何键(或当前命令指定的按键)显示下一页内容。

 

例如:

P3600#pause

P3600#help

 access                                    - Enter access configuration mode

 alarm                                     - Enter Alarm configuration mode

 auto-correction                           - EnableCLIauto correction mode

 banner                                    - Configure login banner

 commit-image                              - Commit CSM image

 configure                                 - Enter switch configuration mode

 debug                                     - Debug function

 disable                                   - Enter normal level

 dot1p                                     - Set 802.1p priority tag

 download                                  - Download a file

 dscp                                      - Set DSCP configuration

 dst                                       - Daylight saving time

 enable                                    - Enter privileged level

 equiptest                                 - Equip test function

 erase                                     - Erase configuration data from                                          flash memory

 history-size                              - Set history buffer size

 ip                                        - Enter IP configuration mode

 ipv6                                      - Enter IPv6 configuration mode

 manual-sync                               - Synchronize manually

 monitor-disable                           - monitor-disable

 monitor-enable                            - monitor-enable ip                                                            xxx.xxx.xxx.xxx port x-x

 monitor-show                              - monitor-show

 no                                        - Delete an object

Press any key to continue (Q to quit)

 

4.22  no pause

操作级别

Normal

配置模式

全局配置模式

语法

no pause

说明

当输出超过一页显示不下时,该命令关闭后续CLI命令输出的暂停功能。输出将没有暂停全部显示完毕。

 

例如:

P3600#no pause

P3600#help

access                                    - Enter access configuration mode

 alarm                                     - Enter Alarm configuration mode

 auto-correction                           - EnableCLIauto correction mode

 banner                                    - Configure login banner

 commit-image                              - Commit CSM image

 configure                                 - Enter switch configuration mode

 debug                                     - Debug function

 disable                                   - Enter normal level

 dot1p                                     - Set 802.1p priority tag

 download                                  - Download a file

 dscp                                      - Set DSCP configuration

 dst                                       - Daylight saving time

 enable                                    - Enter privileged level

 erase                                     - Erase configuration data from                                          flash memory

 history-size                              - Set history buffer size

 ip                                        - Enter IP configuration mode

 ipv6                                      - Enter IPv6 configuration mode

 manual-sync                               - Synchronize manually

 monitor-disable                           - monitor-disable

 monitor-enable                            - monitor-enable ip                                                            xxx.xxx.xxx.xxx port x-x

 monitor-show                              - monitor-show

 no                                        - Delete an object

 pause                                     - Enable pause mode for output                                                 line

 ping                                      - Send ICMP echo request

 protection-link                           - Add Ethernet port(s) to the

protection link

 reset                                     - Reset one or more modules

 resetnode                                 - Reset the entire node

 save                                      - Save configuration

 show                                      - Display information

 slot                                      - Enter slot-based configuration                                         mode

 snmp                                      - Enter SNMP configuration mode

 sntp                                      - Simple Network Time Protocol

 switchover                                - Switchover operation

 switchover-counter-reset                  - Reset the Switchover counter.

 sync-option                               - CSM Synchronization Option

 syslog                                    - Enter syslog configuration mode

 system                                    - Configure system                                                       name/contact/location

 telnet                                    - Telnet to a remote host

 time                                      - Local Time

 timezone                                  - Time zone

 tos                                       - Set TOS configuration

 traceroute                                - Perform traceroute

 upgrade-lc                                - Upgrade Line Card Image

 upload                                    - Upload a file

 virtual                                   - Assign virtual module

 write                                     - Write a file

 

4.23  ping

操作级别

Normal

配置模式

全局配置模式

语法

ping <A.B.C.D> [size <1..60000>] [timeout <1..3600>] [number<0..65535>]

参数定义

<A.B.C.D>:目标IP地址;

size:发送包的大小;

timeout:等待第一次响应的秒数,缺省值为10秒;

number:在发送指定的包个数后停止发送。如果数值设为0,将一直发送ICMP回应请求包,直到用户手工停止(CTRL-C)

说明

该命令发送ping数据包到目的IP地址。

 

例如:

P3600#ping 192.168.0.209 size 30 timeout 5 number 2048

Use <CtrlC> to stop the ping:

 

prv_handlers_common /bin/ping -c2048 -W5 -s30 192.168.0.209

PING 192.168.0.209 (192.168.0.209): 30 data bytes

 

--- 192.168.0.209 ping statistics ---

37 packets transmitted, 37 packets received, 0% packet loss

round-trip min/avg/max = 0.334/0.447/1.063 ms

P3600#

 

4.24  show board

操作级别

Normal

配置模式

全局配置模式

语法

show board

说明

该命令显示当前系统中所有模块信息。

 

例如:

P3600#show board

Sh-S Module     Ava O Hardware Ver      SW Ver      Serial Number        UP Time

1-1  GPFB       MAT U 9801A48M:A0       E1002       219801A48M522AF00001 6 days 20:06:34

1-3  CEBA       MAT U 9801A48P:A0       E1002       219801A48P522AF00002 6 days 20:06:34

1-6  YEDA       MAT U 9801A48U:A0       E1002       219801A48U522BF00002 6 days 20:06:27

1-10 XGFSA      MAT U 9801A48T:A0       E1002       219801A48T522BF00002 6 days 20:06:27

1-14 XGFCA      MAT U 9801A48Q:A0       E1002       219801A48Q522BF00001 6 days 20:06:27

1-A  MYCA(A)    MAT U 9801A48L:A0       E1002       219801A48L522AF00001 6 days 20:13:50

1-B  MYCA(A)    MAT U 9801A48L:A0       E1002       219801A48L522AF00002 6 days 20:13:50

1-P1 PDC1A      MAT U 9802A02N:A0       N/A         219802A02N522BF00005 N/A

1-P2 PDC1A      MAT U 9802A02N:A0       N/A         219802A02N522BF00006 N/A

1-IO PCU1S      MAT U 9801A48J:A0       A1          219801A48J522AF00003 N/A

1    FAN1A      MAT U 9832A008:A0       N/A         219832A008522BF00003 N/A

1    OPA-P3600  MAT U 9801A48K:A0       N/A         219801A48K522BF00004 N/A

 

P3600#

 

4.25  show cli-log

操作级别

Privileged

配置模式

全局配置模式

语法

show cli-log

说明

该命令显示CLI操作记录,重启不会丢失。

 

例如:

P3600#show cli-log

 

****** Active CSM log ******

 

Thu Nov 24 10:17:05 2022 admin[::ffff:192.168.3.198]:62375: brief-show slot 2 interface gpon-olt 1/1 counters nni

Thu Nov 24 10:21:25 2022 admin: show cli-log

Thu Nov 24 10:21:52 2022 admin: syslog show log

Thu Nov 24 10:22:32 2022 admin: show time

Thu Nov 24 10:22:41 2022 admin: exit

Thu Nov 24 10:23:47 2022 admin[::ffff:192.168.3.190]:49553: show slot

 

P3600#

 

4.26  show cpu-memory

操作级别

Normal

配置模式

全局配置模式

语法

show cpu-memory

说明

该命令显示主用和备用主控板的CPU和内存使用情况,包括:主用主控板CPU使用率、主用主控板内存使用率、备用主控板CPU使用率、备用主控板内存使用率。

 

例如:

P3600#show cpu-memory

Active CSM CPU usage : 26%

Active CSM Memory usage : 57%

 

Standby CSM CPU usage : 30%

Standby CSM Memory usage : 58%

 

P3600#

 

4.27  show device manuinfo

操作级别

Normal

配置模式

全局配置模式

语法

show device manuinfo

说明

该命令显示当前系统中所有模块的制造信息。

 

例如:

P3600#show device manuinfo

Chassis self:

 DEVICE_NAME          : P3600

 DEVICE_SERIAL_NUMBER : 219801A48K522BF00004

 MAC_ADDRESS          : None

 MANUFACTURING_DATE   : 2022-03-14

 VENDOR_NAME          : H3C

 PRODUCT ID           : OPA-P3600

 

Slot 1-B:

 DEVICE_NAME          : MYCA

 DEVICE_SERIAL_NUMBER : 219801A48L522AF00001

 MAC_ADDRESS          : 00E6-09CC-0014

 MANUFACTURING_DATE   : 2022-03-14

 VENDOR_NAME          : H3C

 PRODUCT ID           : MYCA

 

Slot 1-4:

 DEVICE_NAME          : XGFCA

 DEVICE_SERIAL_NUMBER : 219801A48Q522BF00001

 MAC_ADDRESS          : None

 MANUFACTURING_DATE   : 2022-01-10

 VENDOR_NAME          : H3C

 PRODUCT ID           : XGFCA

 

Power 1-P1:

 DEVICE_NAME          : PDC1A

 DEVICE_SERIAL_NUMBER : 219802A02N522BF00005

 MAC_ADDRESS          : None

 MANUFACTURING_DATE   : 2022-01-10

 VENDOR_NAME          : H3C

 PRODUCT ID           : PDC1A

 

Fan:

 DEVICE_NAME          : FAN1A

 DEVICE_SERIAL_NUMBER : 219832A008522BF00003

 MAC_ADDRESS          : None

 MANUFACTURING_DATE   : 2022-01-10

 VENDOR_NAME          : H3C

 PRODUCT ID           : FAN1A

IO:

 DEVICE_NAME          : PCU1S

 DEVICE_SERIAL_NUMBER : 219801A48J522AF00003

 MAC_ADDRESS          : None

 MANUFACTURING_DATE   : 2022-01-10

 VENDOR_NAME          : H3C

 PRODUCT ID           : PCU1S

P3600#

 

4.28  show diagnostic-information-to-file

操作级别

Privileged

配置模式

全局配置模式

语法

show diagnostic-information-to-file

说明

该命令将收集系统诊断信息,在tftpboot目录下生成文件P3600-diag.tar.gz

 

例如:

P3600#show diagnostic-information-to-file

 Active CSM Dump .. Successful

 

P3600-diag.tar.gz has been generated!

P3600#show file

/active/tftpboot:

......

2023-01-09 07:35:24           714727  /tftpboot/P3600-diag.tar.gz

......

P3600#

 

4.29  show file

操作级别

Normal

配置模式

全局配置模式

语法

show file [active|standby]

参数定义

[active|standby]:主用主控板或备用主控板,缺省为主用

主控板。

说明

该命令显示闪存( “tftpboot”)上的文件和文件夹大小、最近更新时间以及总的闪存大小(使用/未使用)。

显示的文件包括:当前目录下的所有文件,包括映象文件和配置文件。

 

例如:

P3600#show file active

/active/tftpboot:

2021-01-26 06:37:34            13556  /tftpboot/.namemap.dat

2021-10-12 08:11:07            37209  /tftpboot/CPT_Tones.dat

2021-01-05 05:57:21            18569  /tftpboot/CSM1G-logic.bit

2021-01-01 00:00:57  <DIR>         0  /tftpboot/DATA

2021-01-01 00:00:57  <DIR>         0  /tftpboot/HTML

2021-01-01 00:00:57  <DIR>         0  /tftpboot/PRIVATE

2021-01-01 00:00:57  <DIR>         0  /tftpboot/PROGRAM

2021-01-01 00:00:57  <DIR>         0  /tftpboot/SYSTEM

2021-01-26 06:37:31                2  /tftpboot/ZTD.done

2021-01-01 21:52:15               40  /tftpboot/env.dat

2021-01-01 00:00:11  <DIR>        40  /tftpboot/getbulk

2021-01-23 03:19:12              597  /tftpboot/list_file

2021-01-26 11:01:03  <DIR>        80  /tftpboot/pm

2021-01-26 06:34:45             9491  /tftpboot/reset_log

2021-11-04 10:08:06              737  /tftpboot/sys_version_file

2021-01-01 21:52:15                4  /tftpboot/system.info

2021-10-12 08:11:07              396  /tftpboot/system.key

Total Flash Size   :  56098816 bytes

Flash Used Size    :  31330304 bytes

Flash Unused Size  :  24768512 bytes

 

P3600#

 

4.30  no file

操作级别

Privileged

配置模式

全局配置模式

语法

no file <file-name>

参数定义

<file-name>:文件名称,最长64字节。

说明

该命令用于删除文件。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

 

例如:

P3600#no file namemap.dat

Are you sure you want to delete this file (y/n)?

y

P3600#

 

4.31  show running-version-check

操作级别

Normal

配置模式

全局配置模式

语法

show running-version-check

说明

该命令显示节点运行版本检查。

 

例如:

P3600#show running-version-check

Shelf-Slot  Module Name Required Version    Running Version     Result

1-3         GPFB        E1002            E1002            Pass

1-B         MYCA        E1002            E1002            Pass

 

P3600#

 

4.32  show slot

操作级别

Normal

配置模式

全局配置模式

语法

show slot [detail]

参数定义

detail显示更多的详细信息。

说明

Module_name,插板名称(对于CSM,显示为插板名称(A/S/L(standalone)),若插槽不是虚拟分配且其available state

(可用状态)是UNR,插板名称显示为UNR。(9个字节)

Available state (可用状态:VIR(虚拟), MIS(不匹配), MAT(匹配)UNR(不识别)) (4个字节)

Operational Status (运行状态:UpDown) (5 个字节)

Hardware version (硬件版本,包括部件号:硬件版本) (14 个字节)

Software/firmware revision (软件/固件版本,11个字节)

Serial Number (序列号,20个字节)

Boot-loader Version (Boot-loader 版本,当命令包含detail参数时显示)

Uptime (运行时间,ddddhhmmss) (13个字节)

File System version (file system版本,当命令包含detail参数时显示,只适用于CSM1x插板)

Module disabled cause (插板禁用原因,当命令包含detail参数时显示)

注意:对于POW1APCU、风扇盘和背板,shelf-slot一栏将显示如下:

PDC1A “shelf-P1/P2”shelf12PCU1S“shelf-U1” shelf12

背板:“shelf”  shelf12。风扇盘:“shelf” shelf12

当插板available stateVIRMISUNR时,所有的版本和运行时间信息都显示为NA

 

例如:

P3600#show slot detail

Shelf-Slot                    :  1-1

Module                        :  GPFB

Available                     :  MAT

Opstate                       :  Up

Hardware                      :  9801A48M:A0

Software                      :  E1002

Serial Number                 :  219801A48M522AF00001

Boot loader                   :  N/A

UP Time                       :  6 days 20:24:03

Disable Reason                :  Unknown

 

Shelf-Slot                    :  1-3

Module                        :  CEBA

Available                     :  MAT

Opstate                       :  Up

Hardware                      :  9801A48P:A0

Software                      :  E1002

Serial Number                 :  219801A48P522AF00002

Boot loader                   :  N/A

UP Time                       :  6 days 20:24:03

Disable Reason                :  Unknown

 

Shelf-Slot                    :  1-6

Module                        :  YEDA

Available                     :  MAT

Opstate                       :  Up

Hardware                      :  9801A48U:A0

Software                      :  E1002

Serial Number                 :  219801A48U522BF00002

Boot loader                   :  N/A

UP Time                       :  6 days 20:24:03

Disable Reason                :  Unknown

 

Shelf-Slot                    :  1-10

Module                        :  XGFSA

Available                     :  MAT

Opstate                       :  Up

Hardware                      :  9801A48T:A0

Software                      :  E1002

Serial Number                 :  219801A48T522BF00002

Boot loader                   :  N/A

UP Time                       :  6 days 20:24:07

Disable Reason                :  Unknown

     

Shelf-Slot                    :  1-14

Module                        :  XGFCA

Available                     :  MAT

Opstate                       :  Up

Hardware                      :  9801A48Q:A0

Software                      :  E1002

Serial Number                 :  219801A48Q522BF00001

Boot loader                   :  N/A

UP Time                       :  6 days 00:31:02

Disable Reason                :  Unknown

 

Shelf-Slot                    :  1-A

Module                        :  MYCA(A)

Available                     :  MAT

Opstate                       :  Up

Hardware                      :  9801A48L:A0

Software                      :  E1002

Serial Number                 :  219801A48L522AF00001

Boot loader                   :  U-Boot 2022.08.16

File system version           :  1.1.1.31

Kernel Version                :  Linux version 4.19.68

UP Time                       :  6 days 20:31:19

Disable Reason                :  Unknown

 

Shelf-Slot                    :  1-B

Module                        :  MYCA(A)

Available                     :  MAT

Opstate                       :  Up

Hardware                      :  9801A48L:A0

Software                      :  E1002

Serial Number                 :  219801A48L522AF00002

Boot loader                   :  U-Boot 2022.08.16

File system version           :  1.1.1.31

Kernel Version                :  Linux version 4.19.68

UP Time                       :  6 days 20:31:19

Disable Reason                :  Unknown

 

Shelf-Slot                    :  1-P1

Module                        :  PDC1A

Available                     :  MAT

Opstate                       :  Up

Hardware                      :  9802A02N:A0

Software                      :  N/A

Serial Number                 :  219802A02N522BF00005

Boot loader                   :  N/A

UP Time                       :  N/A

Disable Reason                :  Unknown

Shelf-Slot                    :  1-P2

Module                        :  PDC1A

Available                     :  MAT

Opstate                       :  Up

Hardware                      :  9802A02N:A0

Software                      :  N/A

Serial Number                 :  219802A02N522BF00006

Boot loader                   :  N/A

UP Time                       :  N/A

Disable Reason                :  Unknown

 

Shelf-Slot                    :  1-IO

Module                        :  PCU1S

Available                     :  MAT

Opstate                       :  Up

Hardware                      :  9801A48J:A0

Software                      :  A1

Serial Number                 :  219801A48J522AF00003

Boot loader                   :  N/A

UP Time                       :  N/A

Disable Reason                :  Unknown

 

Shelf-Slot                    :  1

Module                        :  FAN1A

Available                     :  MAT

Opstate                       :  Up

Hardware                      :  9832A008:A0

Software                      :  A1

Serial Number                 :  219832A008522BF00003

Boot loader                   :  N/A

UP Time                       :  N/A

Disable Reason                :  Unknown

 

Shelf-Slot                    :  1

Module                        :  OPA-P3600

Available                     :  MAT

Opstate                       :  Up

Hardware                      :  9801A48K:A0

Software                      :  N/A

Serial Number                 :  219801A48K522BF00004

Boot loader                   :  N/A

UP Time                       :  N/A

Disable Reason                :  Unknown

 

 

P3600#

 

4.33  show version

操作级别

Normal

配置模式

全局配置模式

语法

show version

说明

该命令显示ipe包版本。

 

例如:

P3600#show version

H3C P3600 Software, Version E1002, Build on Feb  9 2023 16:18:35

Copyright (c) 2004-2023 New H3C Technologies Co., Ltd. All rights reserved.

H3C P3600 uptime is 0 days 01:57:21

 

MYCA(A) 1-B:

Uptime is 0 days 01:57:21

BOARD TYPE:         MYCA

DRAM:               4G bytes

FLASH:              8G bytes

PCB 1 Version:      VER.A0

Bootrom Version:    U-Boot 2022.06.14

CPLD Version:       0.0

FPGA Version:       0.0.0.5

Kernel Version:     Linux version 4.19.68

Release Version:    H3C MYCA-E1002

Patch Version:      None

 

XGFCA 1-4:

Uptime is 0 days 01:53:04

BOARD TYPE:         XGFCA

DRAM:               4G bytes

FLASH:              64M bytes

PCB 1 Version:      VER.A0

Bootrom Version:    N/A

CPLD Version:       N/A

Release Version:    H3C XGFCA-E1002

Patch Version:      None

 

4.34  telnet

操作级别

Normal

配置模式

全局配置模式

语法

telnet <A.B.C.D> [<port-number>]

参数定义

telnettelnet到一个远程主机;

<A.B.C.D>:目标IP地址;

<port-number>:端口号。

说明

该命令建立起到目标IP地址的telnet会话。

 

例如:

P3600#telnet 192.168.0.36

Entering character mode

Escape character is '^]'.

 

4.35  virtual

操作级别

Privileged

配置模式

全局配置模式

语法

virtual [Shelf-Slot] [<module-type> ]

参数定义

Shelf-SlotShelf固定为1Slot表示第几槽位;

module-type:板卡类型。

说明

该命令用于创建一个虚板卡。

 

例如:

P3600#virtual 1-1 XGFCA

 

4.36  no virtual

操作级别

Privileged

配置模式

全局配置模式

语法

no virtual [Shelf-Slot] [<module-type> ]

参数定义

Shelf-SlotShelf固定为1Slot表示第几槽位;

module-type:板卡类型。

说明

该命令用于删除一个虚板卡。

 

例如:

P3600#no virtual 1-1 XGFCA

 


5 access命令

本章列出了Access命令。Access命令用于创建/删除用户账号和密码、设置/删除登录限制等。

5.1  enable-password

操作级别

Administrator

配置模式

Access

语法

enable-password

说明

该命令更改进入privileged级别的密码。要求用户输入旧密码、新密码并再输一次新密码确认。

 

例如:

P3600#access

P3600(ACCESS)#enable-password

Old password:

 

5.2  idle-timeout

操作级别

Privileged

配置模式

Access

语法

idle-timeout <60…100000>

参数定义

<60..100000> 空闲时间,单位为秒。缺省值:300

说明

该命令设置空闲超时时间,单位为秒。该命令设置在用户退出系统前会话空闲的最长时间。空闲超时时间通常是为了安全原因而设。若会话无人看管,系统会注销该用户以防止未授权访问。该命令仅对设置的会话有效。

 

5.3  no idle-timeout

操作级别

Privileged

配置模式

Access

语法

no idle-timeout

说明

该命令禁用会话空闲超时。不关闭会话ID

 

例如:

P3600#access

P3600(Access)#idle-timeout 600

Exec timeout set to 600 sec

P3600(Access)#no idle-timeout

P3600(Access)#

 

5.4  inband-mgmt-host

5.4.1  inband-mgmt-host

操作级别

Privileged

配置模式

Access

语法

inband-mgmt-host <A.B.C.D> [netmask <A.B.C.D>]

说明

该命令为系统添加带内管理访问列表。若存在一个或多个远程用户配置,只允许来自指定IP地址/IP网络的带内管理消息。若未提供掩码,IP地址解释为一个主机地址。

 

5.4.2  no inband-mgmt-host

操作级别

Privileged

配置模式

Access

语法

no inband-mgmt-host <A.B.C.D>

说明

该命令删除一个带内管理访问系统的主机。

 

5.4.3  inband-mgmt-host-list

操作级别

Privileged

配置模式

Access

语法

inband-mgmt-host-list <enable|disable>

操作级别

Privileged

参数定义

enable 启用带内管理主机访问列表。

disable 禁用带内管理主机访问列表。缺省值:disable

说明

该命令启用/禁用带内管理主机访问列表。

 

5.4.4  show inband-mgmt-host

操作级别

Normal

配置模式

Access

语法

show inband-mgmt-host

说明

该命令显示带内管理访问列表。

 

例如:

P3600(ACCESS)#show  inband-mgmt-host

Inband Mgmt Host Lists :    Disable

Access Address        Netmask

P3600(ACCESS)#inband-mgmt-host-list enable

P3600(ACCESS)#inband-mgmt-host 10.230.1.1 netmask 255.255.255.0

P3600(ACCESS)#show inband-mgmt-host

Inband Mgmt Host Lists :    Enable

Access Address Netmask

10.230.1.1     255.255.255.0

P3600(ACCESS)#no inband-mgmt-host 10.230.1.1

P3600(ACCESS)#show inband-mgmt-host

Inband Mgmt Host Lists :    Enable

Access Address Netmask

P3600(ACCESS)#

 

5.5  password

操作级别

Normal

配置模式

Access

语法

password

说明

该命令更改用户自己的密码。要求用户输入旧密码、新密码、再输入一次新密码确认。

 

例如:

P3600#access

P3600(Access)#password

Enter admin's old password:

Enter new password:

Re-type new password:

Password changed.

P3600(Access)#

 

5.6  show telnet

操作级别

Normal

配置模式

Access

语法

show telnet

说明

该命令显示用于telnet访问的访问列表和telnet端口。

 

例如:

P3600(ACCESS)#show telnet

Telnet Host Lists :       Disable

 

Access Address           Netmask

P3600(ACCESS)#

 

5.7  snmp-host

5.7.1  snmp-host

操作级别

Privileged

配置模式

Access

语法

snmp-host <A.B.C.D> [netmask <A.B.C.D>] [priviledge

<RO|RW>]

参数定义

<RO|RW> Read-only(只读)或Read-write(读写)。

说明

该命令添加SNMP访问系统的访问列表。若没有指定远程用户,无论请求源来自哪里都允许SNMP访问。若存在一个或多个远程用户配置,只允许来自指定IP地址/IP网络的SNMP消息。若未提供掩码,IP地址解释为主机地址。

 

5.7.2  no snmp-host

操作级别

Privileged

配置模式

Access

语法

no snmp-host <A.B.C.D>

说明

该命令删除一台用于SNMP访问系统的SNMP主机。

 

5.7.3  snmp-host-list

操作级别

Privileged

配置模式

Access

语法

snmp-host-list <enable|disable>

参数定义

<enable> 使用SNMP主机访问列表。

<disable> 禁用SNMP主机访问列表。缺省值:disable

说明

该命令启用/禁用SNMP主机访问列表。

 

5.7.4  show snmp-host

操作级别

Normal

配置模式

Access

语法

show snmp-host

参数定义

snmp-host 显示SNMP访问列表。

说明

该命令显示用于SNMP访问的访问列表。

 

例如:

P3600(ACCESS)#snmp-host 1.1.1.1 netmask 255.255.255.255 priviledge RW

P3600(ACCESS)#show snmp-host

Snmp Host Lists :       Disable

 

 

Remote IP Address        Netmask                  Priviledge

1.1.1.1                  255.255.255.255          Read-write P3600(ACCESS)#no snmp-host 1.1.1.1

P3600(ACCESS)#show snmp-host

Snmp Host Lists :       Disable

 

 

Remote IP Address        Netmask                  Priviledge

 

P3600(ACCESS)#snmp-host-list enable

P3600(ACCESS)#show snmp-host

Snmp Host Lists :       Enable

 

 

Remote IP Address        Netmask                  Priviledge

P3600(ACCESS)#

 

5.8  telnet-host

5.8.1  telnet-host

操作级别

Privileged

配置模式

Access

语法

telnet-host <A.B.C.D> [netmask <A.B.C.D>]

说明

该命令添加telnet访问系统的访问列表。若没有指定远程用户, 无论请求源来自哪里都允许telnet访问。若存在一个或多个远程用户配置,只允许来自指定IP地址/IP网络的telnet会话。若未提供掩码,IP地址解释为主机地址。

 

5.8.2  telnet-hostv6

操作级别

Privileged

配置模式

Access

语法

telnet-hostv6  <A:B::C:D> [prefix <0..128>]

说明

该命令添加telnet访问系统的IPv6访问列表。若没有指定远程用户, 无论请求源来自哪里都允许telnet访问。若存在一个或多个远程用户配置,只允许来自指定IPv6地址/IPv6网络的telnet会话。若未提供掩码,IPv6地址解释为主机地址。

 

5.8.3  no telnet-host

操作级别

Privileged

配置模式

Access

语法

no telnet-host <A.B.C.D>

说明

该命令从telnet访问列表删除一个已有记录。

 

5.8.4  show telnet

操作级别

Normal

配置模式

Access

语法

show telnet

说明

该命令显示用于telnet端口及telnet访问的访问列表。

 

例如:

P3600#access

P3600(ACCESS)#telnet-host 10.1.1.10 netmask 255.0.0.0

P3600(ACCESS)#show telnet

Telnet Host Lists :       Disable

 

Access Address           Netmask

10.1.1.10                255.0.0.0

P3600(ACCESS)#no telnet-host 10.1.1.10

P3600(ACCESS)#show telnet

Telnet Host Lists    :     Disable

 

Access Address               Netmask

P3600(ACCESS)#

 

5.8.5  telnet-host-list

操作级别

Privileged

配置模式

Access

语法

telnet-host-list <enable|disable>

参数定义

<enable> 使用Telnet主机访问列表

<disable> 禁用Telnet主机访问列表。缺省值:disable

说明

该命令启用/禁用Telnet主机访问列表。

 

例如:

P3600#access

P3600(ACCESS)#show telnet

 

Telnet Host Lists    :     Disable

Access Address              Netmask

P3600(ACCESS)#telnet-host-list enable

P3600(ACCESS)#show telnet

 

Telnet Host Lists    :     Enable

Access Address               Netmask

P3600(ACCESS)#

 

5.9  tftp-host

5.9.1  tftp-host

操作级别

Privileged

配置模式

Access

语法

tftp-host <A.B.C.D> [netmask <A.B.C.D>]

说明

该命令添加FTFP访问系统的列表。若没有指定远程用户,无论请求源来自哪里都允许TFTP访问。若存在一个或多个远程用户配置,只允许来自指定IP地址/IP网络的TFTP消息。若未提供掩码,IP地址解释为主机地址。

 

5.9.2  no tftp-host

操作级别

Privileged

配置模式

Access

语法

no tftp-host <A.B.C.D>

说明

该命令删除一台用于TFTP访问系统的TFTP主机。

 

5.9.3  show tftp-host

操作级别

Normal

配置模式

Access

语法

show tftp-host

说明

该命令显示TFTP访问列表。

 

例如:

P3600#access

P3600(ACCESS)#tftp-host 1.1.1.1 netmask 255.255.255.0

P3600(ACCESS)#show tftp-host

Tftp Host Lists :       Disable

 

Access Address           Netmask

1.1.1.1                  255.255.255.0

P3600(ACCESS)#no tftp-host 1.1.1.1

P3600(ACCESS)#show tftp-host

Tftp Host Lists      :     Disable

 

Access Address              Netmask

P3600(ACCESS)#

 

5.9.4  tftp-host-list

操作级别

Privileged

配置模式

Access

语法

tftp-host-list <enable|disable>

参数定义

<enable|disable> 启用/禁用TFTP主机访问列表。缺省值:dieable

说明

该命令启用/禁用TFTP主机访问列表。

 

例如:

P3600(ACCESS)#show tftp-host

Tftp Host Lists      :     Disable

 

Access Address              Netmask

P3600(ACCESS)#tftp-host-list enable

P3600(ACCESS)#show tftp-host

Tftp Host Lists      :     Enable

 

Access Address              Netmask

P3600(ACCESS)#

 

5.10  user-account

5.10.1  user-account

操作级别

Administrator

配置模式

Access

语法

user-account <user-name> password <password> login-location

<TELNET|CONSOLE|BOTH>

参数定义

<user-name> 用户名、字符串(数字和字母,最大长度25)。

<password> 用户密码,字符串。

<TELNET|CONSOLE|BOTH> Telnet、仅Consoletelnetconsole

说明

该命令添加用户账号到系统,或修改已有用户账号的密码。

 

5.10.2  no user-account

操作级别

Administrator

配置模式

Access

语法

no user-account <user-name>

说明

该命令从系统删除一个用户账号。

 

5.10.3  show user

操作级别

Administrator

配置模式

Access

语法

show user [username]

说明

该命令显示一个或所有用户账号信息。对于每个账号,显示如下信息.

 

例如:

P3600#access

P3600(ACCESS)#show user

 

Login Statistics

 User         IP address     Type     Last login         Login Counter    Valid Login Location

 admin        [::ffff192.168.0.144]58383 active   Nov 9  0032,2020     33               Both

P3600(ACCESS)#user-account utstarcom password 123456 login-location telnet

P3600(ACCESS)#show user

 

Login Statistics

 User         IP address     Type     Last login         Login Counter    Valid Login Location

 admin        [::ffff192.168.0.144]58383 active   Nov 9  0032,2020     33               Both

 utstarcom    N/A            N/A      N/A                    0               Telnet

P3600(ACCESS)#no user-account utstarcom

P3600(ACCESS)#show user

 

Login Statistics

 User         IP address     Type     Last login         Login Counter    Valid Login Location

 admin        [::ffff192.168.0.144]58383 active   Nov 9  0032,2020     33               Both

 


6 alarm 命令

本节列出了告警命令。告警命令用于显示告警和告警过滤器,创建/删除告警过滤器。

6.1  alarm-led-control

操作级别

Privileged

配置模式

Alarm

语法

alarm-led-control [critical <on|off>][major <on|off>][minor <on|off>]

参数定义

critical严重告警LED

<on|off>当系统中存在严重告警时,LED是亮还是灭。

major主要告警LED

<on|off>当系统中存在主要告警时,LED是亮还是灭。

minor次要告警LED

<on|off>当系统中存在次要告警时,LED是亮还是灭。

说明

该命令设置告警LED控制开关。

 

例如:

P3600#alarm

P3600(ALARM)#show alarm-indication-conf

Alarm indication configuration in CSM     :

Critical Alarm LED         : off

Major Alarm LED             : off

Minor Alarm LED             : off

P3600(ALARM)#alarm-led-control critical on major on minor on

P3600(ALARM)#show alarm-indication-conf

Alarm indication configuration in CSM     :

Critical Alarm LED          : on

Major Alarm LED             : on

Minor Alarm LED             : on

P3600(ALARM)#

 

6.2  show alarm

操作级别

Normal

配置模式

Alarm

语法

show alarm [severity <critical|major|minor|warning>]

参数定义

<critical|major|minor|warning>严重、主要、次要告警或警告。

说明

该命令显示系统中活动的未解决告警。若指定了可选字段,仅显示相关告警级别的告警。

 

例如:

P3600#alarm

P3600(ALARM)#show alarm

 

  Alarm Sequence Number       :  1

  Alarm class                      :  Communication

  Entity type                      :  CSM Port

  Entity instance                  :  1-B-XGE 1

  Severity                         :  Critical

  Probable cause                   :  Link Down

  Specific cause                   :  CSM Uplink Down

  Occur time                       :  0000/00/00, 00:00:00

  Alarm state                      :  Not Acknowledged

  Additional Info                  :

 

  Alarm Sequence Number       :  2

  Alarm class                      :  Communication

  Entity type                      :  CSM Port

  Entity instance                  :  1-B-XGE 2

  Severity                         :  Critical

  Probable cause                   :  Link Down

  Specific cause                   :  CSM Uplink Down

  Occur time                       :  0000/00/00, 00:00:00

  Alarm state                      :  Not Acknowledged

  Additional Info                  :

P3600(ALARM)#

 

6.3  show alarm-history

操作级别

Normal

配置模式

Alarm

语法

show alarm-history

说明

该命令显示所有发生的告警。

 

例如:

P3600#alarm

P3600(ALARM)#show alarm-history

 

  Alarm Sequence Number       :  1

  Alarm class                      :  Communication

  Entity type                      :  CSM Port

  Entity instance                  :  1-B-XGE 1

  Severity                         :  Critical

  Probable cause                   :  Link Down

  Specific cause                   :  CSM Uplink Down

  Occur time                       :  0000/00/00, 00:00:00

  Additional Info                  :

 

  Alarm Sequence Number       :  2

  Alarm class                      :  Communication

  Entity type                      :  CSM Port

  Entity instance                  :  1-B-XGE 2

  Severity                         :  Critical

  Probable cause                   :  Link Down

  Specific cause                   :  CSM Uplink Down

  Occur time                       :  0000/00/00, 00:00:00

  Additional Info                  :

P3600(ALARM)#

 

6.4  show alarm-indication-conf

操作级别

Normal

配置模式

Alarm

语法

show alarm-indication-conf

说明

该命令显示告警指示配置。

 

例如:

P3600#alarm

P3600(ALARM)#show alarm-indication-conf

Alarm indication configuration in CSM     :

Critical Alarm LED          : on

Major Alarm LED             : on

Minor Alarm LED             : on

P3600(ALARM)#


7 slot命令

本章列出了slot命令。slot部分命令用于管理PON口以及ONT,对ONT进行基本管理配置。

7.1  Slot下的配置模式命令

配置模式是指一些功能相关的命令集合。每个命令都与一个或多个配置模式相关。只有在相关的配置模式下才能访问指定的命令。

7.1.1  Interface

操作级别

normal

配置模式

slot

语法

interface

参数定义

Interface:进入接口配置模式

说明

该命令用于进入线卡接口配置模式。 进入该模式后,提示符变成:

P3600(Slot-1/if-gpon-olt-1/1)#

 

例如:

P3600#slot 1

P3600(Slot-1)#interface gpon-olt 1/1

P3600(Slot-1/if-gpon-olt-1/1)#help

 all-ont                                   - config all ont

 extended-omci                             - Enable/Disable the pon extended omci

 fec-tx                                    - Enable the downstream FEC function

 key-exchange-control                      - Enable/Disable a periodic process of key exchange for active ONUs

 key-exchange-interval                     - Key exchange process interval.1000-36000

 no                                        - Negate a command or set its defaults

 ont                                       - Optical Network Terminal

 ont-discovery-interval                    - ONT discovery interval, i.e.,                         serial Number acquisition interval in seconds.

 ont-discovery-mode                        - ONT discovery mode

 pon-max-distance                          - set pon max distance

 shutdown                                  - Pon link

 

7.1.2  olt-opm

操作级别

normal

配置模式

slot

语法

olt-opm

参数定义

olt-opm:进入光功率监控模式

说明

该命令用于进入光功率监控模式。进入该模式后,提示符变成:

P3600(Slot-1/config-t-olt-opm)#

 

例如:

P3600(Slot-1)#olt-opm

P3600(Slot-1/config-t-olt-opm)#

 alarm-threshold                           - Configure the GPON opm alarm threshold

 alarm-threshold-xgpon                     - Configure the XG(S)PON opm alarm threshold

 control                                   - Configure the opm control parameters

 no                                        - remove opm configuration

 show                                      - display the opm control configuration

 

7.1.3  ont-upgrade

操作级别

normal

配置模式

slot

语法

ont-upgrade

参数定义

ont-upgrade 进入ONT升级配置

说明

该命令用于进入ONT升级配置模式。进入该模式后,提示符变成:

P3600(Slot-1/config-t-olt-opm)#

 

例如:

P3600(Slot-1)#ont-upgrade

P3600(Slot-1/ont-upgrade)#help

 auto-upgrade                              - ONU firware auto upgrade start

 manual-upgrade                            - ONU firware manual upgrade start

 

7.2  系统级命令

7.2.1  anti-rogueont

操作级别

Privileged

配置模式

Slot

语法

anti-rogueont <port>  <enable/disable>  <manual|auto>

参数定义

<port>PON口,范围1-161-8

<enable/disable> :流氓ONT检测开启状态

<manual|auto>:流氓ONT检测模式,自动或手动

说明

该命令用于配置PON口流氓ONT开启关闭以及检测模式

 

例如:

P3600(Slot-1)#anti-rogueont 1 enable manual

 

7.2.2  gpon profile

1. dba

操作级别

Privileged

配置模式

Slot -gpon profile

语法

gpon profile dba id <profile-id>  [name <profile-name>]

[ type1 fix <fix-bandwidth> ] [type2 assure <assure-bandwidth>]

       [ type3 assure <assure-bandwidth> max <max-bandwidth> ]

       [ type4 max <max-bandwidth> ] [type5 fix <fix-bandwidth> assure <assure-bandwidth>  max <max-bandwidth>]

参数定义

profile-id <profile-id>          DBA模板编号。    数值类型,取值范围:1-128

profile-name DBA模板名称,字符串类型

type1      配置类型为固定带宽的DBA模板。   

type2      配置类型为保证带宽的DBA模板。   

type3      配置类型为保证带宽+最大带宽的DBA模板。

type4      配置类型为最大带宽的DBA模板。   

type5      配置类型为固定带宽+保证带宽+最大带宽的DBA模板。              

Fixfix-bandwidth:固定带宽。此部分带宽固定分配给用户,即使该用户不使用,其他用户也不可以占用。数值类型,取值范围:256..9591168(单位:Kbit/s)。

assure assure-bandwidth;保证带宽。此部分带宽分配给用户,如果用户没有使用,其他用户可以占用此部分带宽。                数值类型,取值范围:256..9591168(单位:Kbit/s)。

max max-bandwidth:最大带宽。此带宽指某用户可以使用的最大的带宽值。在type3类型的DBA模板中,最大带宽必须大于或等于保证带宽。在type5类型的DBA模板中,最大带宽必须大于或等于固定带宽与保证带宽之和。取值范围:256..9953280(单位:Kbit/s)。

说明

此命令用于增加所有板卡的DBADynamic Bandwidth Assignment)模板。具体配置限制见下表。

 

 

2. no gpon profile dba

操作级别

Privileged

配置模式

Slot -gpon profile

语法

no gpon profile bda <profile-id>

说明

该命令用于删除所有板卡的DBA模板。

 

例如:

P3600(Slot-1)#gpon profile dba id 2 name dba_2 type4 max 102400

P3600(Slot-1)#no gpon profile dba 2

 

3. flow

操作级别

Privileged

配置模式

Slot -gpon profile

语法

gpon profile flow <profile-id1> <profile-id2>

[ name <profile-name> ]

[uni-type <uni-type-value>]

[uni-bitmap <uni-port-bitmap-vlaue>]

[upmap-type <upmap-type-value>]

[<vlan-start-value> <vlan-stop-value>]

[pri-bitmap <pri-bitmap-vlaue>]

[vport <vport-num-vlaue>]

[vlan-filter-range <filter-range>]

参数定义

 <profile-id1>                        1..128

模板主索引,当多个虚端口需要绑定到同一个TCONT时,选择主索引,则表示具有相同主索引的一系列虚端口被选中。

<profile-id2>                         1..12                  模板子索引

<profile-name>                    FLOW模板名称,字符串类型

<uni-type-value>                 <ethernet-uni|ip-host|veip>

用户端口模式, ONT工作决定,根据不同类型ONT选择合适的类型。HGU选择veip SFU选择ethernet-UNIip-host可以配置ONU上的3层接口。

<uni-port-bitmap-vlaue>    缺省值:0xff

指定ONT工作端口

<vlan-start-value>               1..4095 缺省 101

 指定允许通过VLAN范围的起始VLAN

<vlan-stop-value>                               1..4095 缺省 101

指定允许通过VLAN范围的结束

VLAN

<pri-bitmap-vlaue>             缺省 0xff

指定ONT允许通过的报文优先级

<vport-num-vlaue>             1..12/1..16缺省 1

 指定所定义的虚端口ID1..12对应XGFCA, XGFSA1..16对应GPFB

 <filter-range>                    1..4095

指定过滤的VLAN 可以用’/’间隔,例如vlan-filter-range 20/30/40

说明

此命令用于建立所有板卡的ONT业务流的模板。

 

4. no gpon profile flow

操作级别

Privileged

配置模式

Slot -gpon profile

语法

no gpon-profile flow <profile-id>

说明

该命令用于删除所有板卡的flow模板。

 

例如:

P3600(Slot-1)#gpon profile flow id 2 1 uni-type veip uni-bitmap 0xf upmap-type vlanId 101 101 pri-bitmap 0xff vport 1

P3600(Slot-1)#no gpon profile flow 2 1

 

5. mac-filter

操作级别

Privileged

配置模式

Slot -gpon profile

语法

gpon profile mac-filter id <id1> <id2> name <name> <direction><mac><mode>

参数定义

 <id1>                              <1..16>  主索引

<id2>                               <1..16>  子索引

<name>                           string

 <direction>                    <source|destination>

指定过滤源MAC或目的MAC

<mac>                             <xx:xx:xx:xx:xx:xx>

<mode>                            <forward|filter>  允许转发还是过滤

说明

此命令用于建立板卡的ONT MAC过滤的模板。

 

6. no mac-filter

操作级别

Privileged

配置模式

Slot -gpon profile

语法

no gpon-profile mac-filter id <id> entry-id <id>

说明

该命令用于删除板卡的ONT MAC过滤的模板。

 

例如:

P3600(Slot-1)#gpon profile mac-filter id 1 1 name 1 source 00:00:00:00:00:11 forward

P3600(Slot-1)#no gpon profile mac-filter id 1 entry-id 1

 

7. multicast-dynamic

操作级别

Privileged

配置模式

Slot -gpon profile

语法

gpon profile multicast-dynamic<profile-id1><profile-id2>  [name <profile-name>][gemport<gemport-value> ] [vlanid<vlanid-vlaue>] [ srcip<srcip-value>]   [ grpaddr-start <start-address> ] [ grpaddr-stop<stop-address> ]  [ grpbw<bandwidth> ]  [ srcipv6 <srcipv6-value>] [ grpipv6addr-start <grpipv6addr-start-value> ]  [ grpipv6addr-stop<grpipv6addr-stop-value> ]

   

参数定义

<profile-id1>                         1..256  主索引

<profile-id2>                         1..31  子索引

<profile-name>                    multicast-dynamic模板名称,字符串类型

<gemport-value>                 3800 - 3999 (GPON), 4568 - 4767(XG(S)PON)            指定ONT的组播GEM Port

<vlanid-vlaue>                     1..4094

指定ONT允许转发的组播VLAN

<srcip-value> IPaddress

组播源IP地址

<grpaddr-start-value>         IPaddress

组播的起始IP地址

<grpaddr-stop-value>         IPaddress

组播的结束IP地址

<grpbw-vlaue>                     bytes per second,0 specifies no limit

指定组播的最大带宽

<srcipv6-value> IPv6address

组播源IPv6地址

<grpipv6addr-start-value>   IPv6address

组播的起始IPV6地址

<grpipv6addr-stop-value>   IPv6address

组播的起始IPV6地址

说明

此命令用于建立板卡的ONT动态组播模板。

 

8. no gpon profile multicast-dynamic

操作级别

Privileged

配置模式

Slot -gpon profile

语法

no gpon profile multicast-dynamic<profile-id1> <profile-id2>

说明

该命令用于删除板卡的ONT动态组播模板。

 

例如:

P3600(Slot-1)#gpon profile multicast-dynamic id 2 1 name 2 gemport 3800 vlanid 4000 srcip 10.20.12.3 grpaddr-start 225.0.0.1 grpaddr-stop 225.0.0.10

P3600(Slot-1)#no gpon profile multicast-dynamic 2 1

 

9. multicast-oper

操作级别

Privileged

配置模式

Slot -gpon profile

语法

gpon profile multicast-oper id <ID> name <profile name> igmp-ver <v1|v2|v3|MLDv1|MLDv2> ctrl-mode <snooping-only|snooping-with-proxy|proxy-reporting> fastleave <enable|disable> [us-tag-ctrl <pass|add|replace|rep-vid-only>] [us-tci-pbits <0~7>] [us-tci-vlanid <0~4094>] [ds-tag-ctrl <pass|add|replace|rep-vid-only>] [ds-tci-pbits <0~7>] [ds-tci-vlanid <0~4094>] [max-simultaneous-groups <max-group>] [max-bandwidth <bandwidth>]

参数定义

id             1-256,模板索引

name     长度48字节,自定义profile名称

Igmp-ver                v1v2v3MLDv1MLDv2IGMP协议版本

ctrl-mode               snooping-onlysnooping-with-proxyproxy-reporting,组播协议类型

fast-leave              enable disable,是否使能快速离开

us-tag-ctrl              passaddreplacerep-vid-only,上行IGMP协议报文VLAN tag操作

us-tci-pbits            0~7,上行IGMP协议报文Prioriy值,仅”us-tag-ctrl add/replace时生效

us-tci-vlanId          0~4094,上行IGMP协议报文VLAN ID值,仅”us-tag-ctrl add/replace/rep-vid-only时生效

ds-tag-ctrl              passstripaddreplacerep-vid-only,下行组播报文VLAN tag操作

ds-tci-pbits            0~7,下行组播报文Prioriy值,仅”ds-tag-ctrl add/replace时生效

ds-tci-vlanId          0~4094,下行组播报文VLAN ID值,仅”ds-tag-ctrl add/replace/rep-vid-only时生效

max-simultaneous-groups                0-8192,最大组播组数量,0表示不限制

max-bandwidth    0-4,294,967,295,最大组带宽, 单位bps,0表示不限制

说明

此命令用于建立板卡的ONT组播业务操作的模板。

 

10. no gpon profile multicast-oper

操作级别

Privileged

配置模式

Slot -gpon profile

语法

no gpon-profile multicast-oper<profile-id>

说明

该命令用于删除板卡的ONT组播业务操作的模板。

 

例如:

P3600(Slot-1)#gpon profile multicast-oper id 2 name 2 igmp-ver v2 ctrl-mode snooping-only fastleave enabled

P3600(Slot-1)#no gpon profile multicast-oper 2

11. rate-ctrl

操作级别

Privileged

配置模式

Slot -gpon profile

语法

gpon profile rate-ctrl id <profile-id>  [name <profile-name>] [sir <sir-vlaue> ] [ pir <pir-value> ]  [ cbs <cbs-value> ] [ pbs  <pbs-value> ] [clr-mode <clr-blind|clr-aware>] [ing-clr-mark <no-marking|dei|pcp-8p0d|pcp-7p1d|pcp-6p2d|pcp-5p3d|dscp-af-class>] [egr-clr-mark <no-marking|intl-mark-only|dei|pcp-8p0d|pcp-7p1d|pcp-6p2d|pcp-5p3d|dscp-af-class>] [meter-type  <not-specified|mtrtcm|trtcm>]

参数定义

<profile-id>                           1..128                    

<profile-name>                    长度48字节,自定义profile名称

<sir-vlaue>            128..9953280Kbps,保证速率,单位Kbps,配置粒度64Kbps 缺省值128
GPON最大值:1244160
XGPON最大值:2488320
XGSPON最大值:9953280

<pir-value>           128..9953280Kbps,峰值速率,单位Kbps,配置粒度64Kbps,缺省值1024
GPON最大值:1244160
XGPON最大值:2488320
XGSPON最大值:9953280

<cbs-value>          指定承诺的突发尺寸(以字节为单位)

<pbs-value>         指定峰值的突发尺寸(以字节为单位)

clr-mode                <clr-blind|clr-aware>指定颜色标记算法是考虑入口数据包上预先存在的标记(颜色感知)还是忽略它(色盲)。缺省忽略。

ing-clr-mark          <no-marking| dei| pcp-8p0d| pcp-7p1d| pcp-6p2d| pcp-5p3d| dscp-af-class>此属性在颜色感知模式下,确定如何在入口数据包上标记预先存在的丢弃优先级。对于DEIPCP标记,符合合格的指示灯等于黄色;否则,颜色为绿色。对于DSCP AF标记,最低下降优先级相当于绿色;否则,颜色为黄色。默认值为no-marking
Dei:drop eligible indicator
pcp-8p0d,pcp-7p1d,pcp-6p2d,pcb-5p3d: PCPPriority Code Point,其中的“p”是指服务等级(Service Class),“d”是指丢弃优先级,5p3d含义是支持5种服务等级(Service Class)和3种丢弃优先级。
Dscp-af-class:DSCP AF

egr-clr-mark          <no-marking| intl-mark-only| dei| pcp-8p0d| pcp-7p1d| pcp-6p2d| pcp-5p3d| dscp-af-class>此属性指定出口的数据包上标记预先存在的优先级方式。
Intl-mark-only: 内部标记
dei:drop eligible indicator
pcb-5p3d PCPPriority Code Point,其中的“p”是指服务等级(Service Class),“d”是指丢弃优先级,5p3d含义是支持5种服务等级(Service Class)和3种丢弃优先级。
Dscp-af-class:DSCP AF

meter-type            <not-specified| mtrtcm| trtcm> 指定用于确定数据包颜色的算法,缺省not-specified

说明

此命令用于建立板卡的ONT流量控制的模板。

 

12. no gpon profile rate-ctrl

操作级别

Privileged

配置模式

Slot -gpon profile

语法

no gpon profile rate-ctrl  <profile-id>

说明

该命令用于删除板卡的ONT流量控制的模板。

 

例如:

P3600(Slot-1)#gpon profile rate-ctrl id 2 name 1 sir 102400 pir 102400

P3600(Slot-1)#no gpon profile rate-ctrl 2

13. tcont-bind

操作级别

Privileged

配置模式

Slot -gpon profile

语法

gpon profile tcont-bind<profile-id> { v-port <vport-vlaue> }

[ profile-name <profile-name> ]

[vportsvc-index <vportsvc-index-value>]

[tcon-index <tcont-index-vlaue>]

[tcontsvc-index <tcontsvc-index-value>]

 

参数定义

<profile-id>                           1..128         模板主索引

<vport-vlaue>                       1..16            指定虚端口ID

<profile-name>                    模板名称,字符串类型

<vportsvc-index-value>      1..128

所引用的virtual-port service模板的ID

<tcont-index-vlaue>              1..8

TCONT ID

<tcontsvc-index-value>       1..256

所引用tcont-service模板的ID

说明

此命令用于建立所有板卡的T-CONT绑定模板(vportsvc-profile,tcont-svc-profile)T-CONTONT上的物理资源,只有绑定了模板后,才能够用于承载业务。绑定成功后,T-CONT可以依据绑定模板中的不同配置,提供灵活的动态带宽分配方案。

 

14. no gpon profile tcont-bind

操作级别

Privileged

配置模式

Slot -gpon profile

语法

no gpon profile tcont-bind <profile-id>

说明

该命令用于删除所有板卡的ONT流量控制的模板。

 

例如:

P3600(Slot-1)#gpon profile tcont-bind id 2 v-port 1 vportsvc-id 1 tcont-id 1 tcontsvc-id 1

P3600(Slot-1)#no gpon profile tcont-bind 2 1

 

15. tcont-svc

操作级别

Privileged

配置模式

Slot -gpon profile

语法

gpon profile tcont-svc<profile-id>  [ profile-name <profile-name> ]  [ dba-profile <dba-profile-id> ]

参数定义

<profile-id>                           1..256                    

<profile-name>                    自定义profile名称,长度48字节

<dba-profile-id>                   1..256

所引用的DBA模板ID

说明

此命令用于创建一条tcont svc模板到所有板卡,关联dba-profile

 

16. no gpon profile tcont-svc

操作级别

Privileged

配置模式

Slot -gpon profile

语法

no gpon profile tcont-svc<profile-id>

说明

该命令用于删除所有板卡的ONT流量控制的模板。

 

例如:

P3600(Slot-1)#gpon profile tcont-svc id 2 name 2 dba-id 1

P3600(Slot-1)#no gpon profile tcont-svc 2

 

17. voip-media

操作级别

Privileged

配置模式

Slot -gpon profile

语法

gpon profile voip-media <profile id>

参数定义

<profile-id>                           - 1..128

可选参数

name                                      - 自定义profile名称,长度48字节

 faxmode                                - 传真模式

 codec1                                   - 解码模块类型1

 packet-period1                      - 组包间隔1

 silence1                                 - 静音抑制设置 1

 codec2                                   - 解码模块类型2

 packet-period2                      - 组包间隔2

 silence2                                 - 静音抑制设置 2

 codec3                                   - 解码模块类型3

 packet-period3                      - 组包间隔3

 silence3                                 - 静音抑制设置 3

 codec4                                   - 解码模块类型4

 packet-period4                      - 组包间隔4

 silence4                                 - 静音抑制设置 4

 oob-dtmf                               - 带外传真机DTMF设置

 announcement-type              - 信号音类型

 jitter-buff                              - 抖动缓冲

 max-buff                               -最大抖动缓冲

 echo-cancel                           - 回声消除配置

 pstn-protocol-variant            - PSTN设置

 piggyback-event                   - RTP piggyback事件控制

 tone-event                             - TONE事件控制

 dtmf-event                            - DTMF事件控制

 cas-event                              - CAS事件控制

 local-port-min                      - 最小端口号

 local-port-max                     - 最大端口号

 dscp-mark                            - 语音报文DSCP设置

说明

此命令用于创建一条voip-media 模板到板卡。

 

18. no gpon profile voip-media

操作级别

Privileged

配置模式

Slot -gpon profile

语法

no gpon-profile voip-media <profile id>

说明

该命令用于删除板卡的 模板。

 

例如:

P3600(Slot-1)#gpon profile voip-media id 1

P3600(Slot-1)#no gpon profile voip-media 1

 

19. voip-mgc

操作级别

Privileged

配置模式

Slot -gpon profile

语法

gpon profile voip-mgc id <profile id> name <profile name> primary-mgc <primary-mgc > [secondary-mgc <secondary-mgc>]

参数定义

<profile-id>                         1..128                      

<profile name>                    自定义profile名称,长度48字节

<primary-mgc >                   主用MGC服务器地址.

<secondary-mgc>                备用MGC服务器地址.

说明

此命令用于创建一条voip-mgc模板到板卡。

 

20. no gpon profile voip-mgc

操作级别

Privileged

配置模式

Slot -gpon profile

语法

no gpon-profile voip-mgc <profile id>

说明

该命令用于删除板卡的voip-mgc模板。

 

例如:

P3600(Slot-1)#gpon profile voip-mgc id 1 name 1 primary-mgc 192.168.12.22

P3600(Slot-1)#no gpon profile voip-mgc 1

 

21. voip-sip-agent

操作级别

Privileged

配置模式

Slot -gpon profile

语法

gpon profile voip-sip-agent id <ID> [name <name>] proxy-server <ip-addr> registrar-server <ip-addr> [outbound-server <ip-addr>] [tcp-port <port-id>] [primary-sip-dns <ip-addr>] [secondary-sip-dns <ip-addr>] [host-uri <sip-addr>] [softswitch <sip-gateway>]

参数定义

<ID>: 1-128,模板索引

name: 长度48字节,缺省为new_sipagent_<ID>。自定义profile名称

proxy-server: SIP代理服务器IP地址

registering-addrSIP注册服务器IP地址

outbound-server:呼出代理服务器IP地址

tcp-port0~65535,缺省值5060SIP协议端口号

primary-sip-dns:主SIP DNS IP地址

secondary-sip-dns:次级SIP DNS IP地址

host-uriSIP地址的主机或域部分

SoftswitchSIP网管软交换机供应商

说明

此命令用于创建一条voip-sip-agent模板到板卡。

 

22. no gpon profile voip-sip-agent

操作级别

Privileged

配置模式

Slot -gpon profile

语法

no gpon-profile voip-sip-agent<profile id>

说明

该命令用于删除板卡的voip-sip-agent模板。

 

例如:

P3600(Slot-1)#gpon profile voip-sip-agent id 1 name 1 proxy-server 192.168.2.97 registrar-server 192.168.2.97 outbound-server 192.168.2.97 tcp-port 5060

P3600(Slot-1)#no gpon profile voip-sip-agent 1

 

23. voip-sip-user

操作级别

Privileged

配置模式

Slot -gpon profile

语法

gpon profile voip-sip-user id <profile id> name <profile name> voicemail-server <ip or url>

参数定义

<profile-id>                         1..128                      

<profile name>                    自定义profile名称,长度48字节

 <ip or url>                           SIP语音邮件服务器地址

说明

此命令用于创建一条voip-sip-user模板到板卡。

 

24. no gpon profile voip-sip-user

操作级别

Privileged

配置模式

Slot -gpon profile

语法

no gpon profile voip-sip-user <profile id>

说明

该命令用于删除板卡的voip-sip-user 模板。

 

例如:

P3600(Slot-1)#gpon profile voip-sip-user id 1 name 1 voicemail-server 0.0.0.0

P3600(Slot-1)#no gpon profile voip-sip-user 1

 

25. voip-svc

操作级别

Privileged

配置模式

Slot -gpon profile

语法

gpon profile voip-svc id <profile id> name <profile name> method <method>

参数定义

<profile-id>                         1..128

<profile name>                    自定义profile名称,长度48字节<method>                             <mgc|sip> 

说明

此命令用于创建一条voip-svc模板到板卡。

 

26. no gpon profile voip-svc

操作级别

Privileged

配置模式

Slot -gpon profile

语法

no gpon-profile voip-svc <profile id>

说明

该命令用于删除板卡的 模板。

 

例如:

P3600(Slot-1)#gpon profile voip-svc id 1 name 1 method sip

P3600(Slot-1)#no gpon-profile voip-svc  1

 

27. vportsvc

操作级别

Privileged

配置模式

Slot -gpon profile

语法

gpon profile vportsvc id <profile id> name <profile name> us-pri <pri> usratectrl-id <usratectrl-id> dsratectrl-id <dsratectrl-id>

参数定义

<profile-id>                           1..128                    

<profile name>                     string

<pri>                                      0-7

<usratectrl-id>                      上行限速模板,0-128

<dsratectrl-id>                      下行限速模板,0-128

说明

此命令用于创建一条vportsvc模板到板卡。

 

28. no gpon profile vportsvc

操作级别

Privileged

配置模式

Slot -gpon profile

语法

no gpon-profile  vportsvc <profile id>

说明

该命令用于删除板卡的 vportsvc模板。

 

例如:

P3600(Slot-1)#gpon profile vportsvc id 1 name 1 us-pri 0 usratectrl-id 1 dsratectrl-id 1

P3600(Slot-1)#no gpon profile vportsvc 1

 

7.2.3  gpon ont-authentication

操作级别

Privileged

配置模式

Slot

语法

gpon ont-authentication <authentication_mode>

参数定义

<authentication_mode>

snonly                      - 单独序列号认证.

 snandpassword        -序列号加密码认证

 passwordonly          -单独密码认证

 loidonly                   -单独LOID认证.

 loidandcheckcode    -LOIDCheckcode认证

说明

该命令用于配置ONT认证模式。

 

例如:

P3600(Slot-1)#gpon ont-authentication snonly

 

7.2.4  pm

操作级别

Privileged

配置模式

Slot

语法

pm interface gpon-olt <port> [ont <ont id> ]

参数定义

<port>:PON端口,<1/port> (port{1..16})

<ont id>:可选参数,当开启PONpm时无需带该参数;1-256

说明

该命令用于配置PON口以及ONT的性能监控

 

7.2.5  no pm

操作级别

Privileged

配置模式

Slot

语法

no pm interface gpon-olt <port> [ont <ont id> ]

参数定义

<port>:PON端口,<1/port> (port{1..16})

<ont id>:可选参数,当开启PONpm时无需带该参数;1-256

说明

该命令用于删除PON口以及ONT的性能监控

 

例如:

P3600(Slot-1)#pm interface gpon-olt 1/1

P3600(Slot-1)#pm interface gpon-olt 1/1 ont  1

P3600(Slot-1)#no pm interface gpon-olt 1/1

P3600(Slot-1)#no pm interface gpon-olt 1/1 ont  1

 

7.3  Interface gpon-olt配置

7.3.1  interface gpon-olt

操作级别

Normal

配置模式

Slot 1

语法

interface gpon-olt 1/1

参数定义

1/X:代表该槽位X口。

说明

该命令1表示本线卡,X表示进入该线卡第几个PON口进行配置。

 

例如:

P3600(Slot-1)#interface gpon-olt

 <port>                                    -  single interface,<1/port> (port{1..16}).

P3600(Slot-1)#interface gpon-olt 1/1

P3600(Slot-1/if-gpon-olt-1/1)#

 

7.3.2  all-ont

操作级别

Normal

配置模式

Slot-1/if-gpon-olt-1/1

语法

all-ont enable

参数定义

 all-ont enable :表示该PON口下对所有ONT进行enable操作。

说明

该命令表示OLT给该PON口下所有ONT发送enable消息

 

例如:

P3600(Slot-1/if-gpon-olt-1/1)#all-ont enable

P3600(Slot-1/if-gpon-olt-1/1)#

 

7.3.3  extended-omci

操作级别

Normal

配置模式

Slot-1/if-gpon-olt-1/1

语法

extended-omci enable/disable

参数定义

enable|disable:表示该PON口下开启或关闭扩展OMCI消息。

说明

该命令表示该PON口下开启或关闭扩展OMCI消息。

 

例如:

P3600(Slot-1/if-gpon-olt-1/1)#extended-omci enable

P3600(Slot-1/if-gpon-olt-1/1)#extended-omci disable

 

7.3.4  fec-tx

操作级别

Normal

配置模式

Slot-1/if-gpon-olt-1/1

语法

fec-tx

参数定义

 fec-tx  :开启FEC

说明

该命令表示开启该PON口下行FEC,改变OLT口的FEC状态,ONT会下线,重新上线

 

例如:

P3600(Slot-1/if-gpon-olt-1/1)#fec-tx

P3600(Slot-1/if-gpon-olt-1/1)#

 

7.3.5  no fec-tx

操作级别

Normal

配置模式

Slot-1/if-gpon-olt-1/1

语法

no fec-tx

参数定义

no fec-tx  :关闭FEC

说明

该命令表示关闭该PON口下行FEC

 

例如:

P3600(Slot-1/if-gpon-olt-1/1)#no fec-tx

P3600(Slot-1/if-gpon-olt-1/1)#

 

7.3.6  key-exchange-control

操作级别

Normal

配置模式

Slot-1/if-gpon-olt-1/1

语法

key-exchange-control enable/disable

参数定义

enable|disable :开启或关闭加密。

说明

该命令表示该PON口下开启或关闭加密。

 

例如:

P3600(Slot-1/if-gpon-olt-1/1)#key-exchange-control enable

P3600(Slot-1/if-gpon-olt-1/1)#key-exchange-control disable

P3600(Slot-1/if-gpon-olt-1/1)#

 

7.3.7  key-exchange-interval

操作级别

Normal

配置模式

Slot-1/if-gpon-olt-1/1

语法

key-exchange-interval 10000

参数定义

加密间隔取值范围为10000..3600000

说明

该命令配置PON口下加密时间间隔。

 

例如:

P3600(Slot-1/if-gpon-olt-1/1)#key-exchange-interval 10000

P3600(Slot-1/if-gpon-olt-1/1)#

 

7.3.8  ont-discovery-interval

操作级别

Normal

配置模式

Slot-1/if-gpon-olt-1/1

语法

ont-discovery-interval

参数定义

<2..600> :ONT 发现的间隔取值范围。

说明

该命令设置ONT发现的间隔。

 

例如:

P3600(Slot-1/if-gpon-olt-1/1)#ont-discovery-interval 123

P3600(Slot-1/if-gpon-olt-1/1)#

 

7.3.9  ont-discovery-mode

操作级别

Normal

配置模式

Slot-1/if-gpon-olt-1/1

语法

ont-discovery-mode

参数定义

<auto|disabled>:ONT 发现的模式。

说明

该命令表示ONT发现为自动模式还是关闭。

 

例如:

P3600(Slot-1/if-gpon-olt-1/1)#ont-discovery-mode auto

P3600(Slot-1/if-gpon-olt-1/1)#ont-discovery-mode disabled

 

7.3.10  pon-max-distance

操作级别

Normal

配置模式

Slot-1/if-gpon-olt-1/1

语法

pon-max-distance

参数定义

<1..60>  :千米。

说明

该命令表示PON口可支持的ONT注册的最远距离。

 

例如:

P3600(Slot-1/if-gpon-olt-1/1)#pon-max-distance 60

P3600(Slot-1/if-gpon-olt-1/1)#

 

7.3.11  shutdown

操作级别

Normal

配置模式

Slot-1/if-gpon-olt-1/1

语法

shutdown

参数定义

shutdown:关闭PON口激光器。

说明

该命令表示关闭PON口激光器。

 

例如:

P3600(Slot-1/if-gpon-olt-1/1)#shutdown

P3600(Slot-1/if-gpon-olt-1/1)#

 

7.3.12  no shutdown

操作级别

Normal

配置模式

Slot-1/if-gpon-olt-1/1

语法

no shutdown

参数定义

no shutdown :打开PON口激光器。

说明

该命令表示打开PON口激光器

 

例如:

P3600(Slot-1/if-gpon-olt-1/1)#no shutdown

P3600(Slot-1/if-gpon-olt-1/1)#

7.4  Interface gpon-olt ont 配置

7.4.1  ont

操作级别

Normal

配置模式

Slot-1/if-gpon-olt-1/1

语法

ont 1

参数定义

ont X :X范围为1-256XG/XGSPON1-128GPON)。

说明

该命令表示对ONT X进行注册、配置等操作。

 

例如:

P3600(Slot-1/if-gpon-olt-1/1)#ont 1

 

P3600(Slot-1/if-gpon-olt-1/1/1)#

 

7.4.2  no ont

操作级别

Normal

配置模式

Slot-1/if-gpon-olt-1/1

语法

no ont 1

参数定义

no ont X :X范围为1-256XG/XGSPON1-128GPON)。

说明

该命令表示删除ONT X

 

例如:

P3600(Slot-1/if-gpon-olt-1/1)#no ont 1

P3600(Slot-1/if-gpon-olt-1/1)#

 

7.4.3  active

操作级别

Privileged

配置模式

Slot-interface-ont

语法

active

参数定义

说明

该命令用于unlock ONT

 

例如:

P3600#slot 1

P3600(Slot-1)#interface gpon-olt 1/1

P3600(Slot-1/if-gpon-olt-1/1)#ont 1

P3600(Slot-1/if-gpon-olt-1/1/1)#active

 

7.4.4  deactive

操作级别

Privileged

配置模式

Slot-interface-ont

语法

deactive

参数定义

说明

该命令用于lock ONT

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#deactive

 

7.4.5  description

操作级别

Privileged

配置模式

Slot-interface-ont

语法

description <onu_description>

参数定义

<onu_description>        string

说明

该命令用于添加ONT描述

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#description “ont1/1/1”

 

7.4.6  disable

操作级别

Privileged

配置模式

Slot-interface-ont

语法

disable

参数定义

说明

该命令用于disable ONT,使其处于O7状态,ONU处于停止激活状态。

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#disable

 

7.4.7  enable

操作级别

Privileged

配置模式

Slot-interface-ont

语法

enable

参数定义

说明

该命令用于enable ONT,重新进入注册流程。

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#enable

 

7.4.8  eth-uni

操作级别

Privileged

配置模式

Slot-interface-ont

语法

eth-uni <uni id>  activate|deactivate|config  [mtu] <maxframe siza> [pause-time] <pause time> [pppoefilter] <filter mode> [speed] <speed> [duplex] <mode> | poe[option][mode]<mode> [priority] <priority> [max-power-class] <class value>

参数定义

<uni id>                            <1-24,127,128>

[mtu]                                <64..8192>

 [pause-time]                     <0..65535>

 

[pppoe-filter]                     <enable|disable>

 [speed]                     <10m|100m|1000m|10g|2.5g|5g|25g|40g|auto>

[duplex]                    <full|half|auto>

[option]                     <enable|disable>

[mode]                      <signal|spare>

[priority]                   <critical|high|low>

[max-power-class]    <default|class0|class1|class2|class3|class4>

说明

该命令用于进行ONT lan口的相关管理配置

 

7.4.9  no eth-uni

操作级别

Privileged

配置模式

Slot-interface-ont

语法

no eth-uni <eth id>

参数定义

<uni id>                            <1-24,127,128>

说明

该命令用于删除ONT ETH口配置

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#eth-uni 1 activate

P3600(Slot-1/if-gpon-olt-1/1/1)#eth-uni 1 config speed 10m duplex half

P3600(Slot-1/if-gpon-olt-1/1/1)#eth-uni 1 poe enable mode signal

P3600(Slot-1/if-gpon-olt-1/1/1)#no eth-uni 1

 

7.4.10  fec-tx

操作级别

Privileged

配置模式

Slot-interface-ont

语法

fec-tx

参数定义

说明

该命令用于开启上行FEC

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#fec-tx

 

7.4.11  no fec-tx

操作级别

Privileged

配置模式

Slot-interface-ont

语法

no fec-tx

参数定义

说明

该命令用于关闭上行FEC

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#no fec-tx

 

7.4.12  ip-host

操作级别

Privileged

配置模式

Slot-interface-ont

语法

ip-host <ip> <mask ><gateway> <mode> <id>

参数定义

<ip>                       ip address

<mask>                  ip mask

<gateway>             gateway

<mode>                  <dynamic|static>

<id>                        ip-host id

 说明

该命令用于配置ONT iphost地址等信息

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#ip-host 192.168.7.44 255.255.255.0 192.168.7.1 static 1

 

7.4.13  no ip-host

操作级别

Privileged

配置模式

Slot-interface-ont

语法

no ip-host  <id>

参数定义

<id>                        ip-host id

 说明

该命令用于删除 ONT iphost地址等配置信息

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#no ip-host 1

注:ONU在线时,需要使用下面命令通过恢复ip-host为缺省值,删除ip-host配置

P3600(Slot-1/if-gpon-olt-1/1/1)#ip-host 0.0.0.0.0  0.0.0.0  0.0.0.0 static 1

 

7.4.14  loid-auth

操作级别

Privileged

配置模式

Slot-interface-ont

语法

loid-auth <loid-value> type <ont type> [checkcode-auth <checkcode value>]

参数定义

<loid-value>              string

<ont type>                 gpon/xgpon/xgspon/auto

checkcode-auth       checkcode配置

<checkcode value>  check code的值

说明

该命令用于注册ONT loid

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#loid-auth LOID111 type gpon

 

7.4.15  loop-detect

操作级别

Privileged

配置模式

Slot-interface-ont

语法

loop-detect state <loop-state> auto-shutdown <autoshutdown_mode> msg-freq <msg-freq> revert-time <revert-time> msg index <id> eth-uni <eth-uni id>  svlan <svlan> cvlan <cvlan>

参数定义

<loop-state>                         <enable|disable>

<autoshutdown_mode>        <enable|disable>

<msg-freq>                             <1...65535>

<revert-time>                          <1...65535>

<id>                                         <1...32>

<eth-uni id>                             <1...24>

<svlan>                                   <0.....4095>

<cvlan>                                   <0.....4095>

说明

该命令用于配置ONT环路检测

 

例如:

开启环路检测且动作是shutdown

P3600(Slot-1/if-gpon-olt-1/1/1)#loop-detect state enable auto-shutdown enable msg-freq  10 revert-time 1 msg index 1 eth-uni 1 svlan 101 cvlan 101

关闭环路检测功能

P3600(Slot-1/if-gpon-olt-1/1/1)#loop-detect state disable

 

7.4.16  mac-filter

操作级别

Privileged

配置模式

Slot-interface-ont

语法

mac-filter eth-uni <eth-uni id> <pre-assign[appletalk][arp][bridge-management-info][ipv4-broadcast][ipv4-multicast][ipv6-multicast][ipx][netbeui][pppoe-broadcast][rarp]|profile [profile id]>

参数定义

<eth-uni id>                          <1..24,127,128>

[appletalk]                             <forward|filter>

[arp]                                        <forward|filter>

[bridge-management-info]     <forward|filter>

[ipv4-broadcast]                     <forward|filter>

[ipv4-multicast]                      <forward|filter>

[ipv6-multicast]                  <forward|filter>

[ipx]                                    <forward|filter>

[netbeui]                             <forward|filter>

[pppoe-broadcast]              <forward|filter>

[rarp]                                  <forward|filter>

 [profile id]                          <1..16>

说明

该命令用于配置ONT MAC地址过滤

 

7.4.17  no mac-filter

操作级别

Privileged

配置模式

Slot-interface-ont

语法

no mac-filter <eth-uni id> profile

参数定义

<eth-uni id>                           <1..24,127,128>

说明

该命令用于删除ONT MAC地址过滤模板应用

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#mac-filter eth-uni 1 pre-assign appletalk forward arp filter

P3600(Slot-1/if-gpon-olt-1/1/1)#mac-filter eth-uni 1 profile 1

P3600(Slot-1/if-gpon-olt-1/1/1)#no mac-filter 1 profile

 

7.4.18  mac-limit

操作级别

Privileged

配置模式

Slot-interface-ont

语法

mac-limit  [eth-uni <eth-uni id><num> |onu <num>]

参数定义

<eth-uni id>                       <1-24,127,128>

<num>                               0-192,注意:设为“0”表示不做限制

说明

该命令用于配置ONTETHMAC地址学习数量

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#mac-limit eth-uni 1 5

P3600(Slot-1/if-gpon-olt-1/1/1)#mac-limit ont 10

P3600(Slot-1/if-gpon-olt-1/1/1)#mac-limit ont 0

 

7.4.19  multicast

操作级别

Privileged

配置模式

Slot-interface-ont

语法

multicast  [eth-uni <eth-uni id> |veip 127|ip-host 128]   oper-profile < oper-profile id> dynamic-profile <dynamic-profile id>

参数定义

<eth-uni id>                       <1-24>

< oper-profile id>               <1..256>

<dynamic-profile id>           <1..256>

说明

该命令用于绑定ONT组播模板

 

7.4.20  no multicast

操作级别

Privileged

配置模式

Slot-interface-ont

语法

no multicast [eth-uni <eth-uni id> |veip 127|ip-host 128]

说明

该命令用于删除组播模板应用

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#multicast eth-uni 1 oper-profile 1 dynamic-profile 1

P3600(Slot-1/if-gpon-olt-1/1/1)#no multicast eth-uni 1

 

7.4.21  ont-pots-uni

操作级别

Privileged

配置模式

Slot-interface-ont

语法

ont-pots-uni <pots-uni id> [state] [sendgain] [recvgain] [impedance] [signaling]

参数定义

<pots-uni id>                       <1-24>

[state]                                  <unlock|lock|shutdown>

[sendgain]                           <-120..60>

[recvgain]                            <-120..60>

[impedance]                         <0..255>

[signaling]              <loopstart|groundstart|loopreversebattery>

说明

该命令用于管理ONT POTS UNI接口

 

7.4.22  no ont-pots-uni

操作级别

Privileged

配置模式

Slot-interface-ont

语法

no ont-pots-uni <pots-uni id>

说明

该命令用于删除ONT POTS UNI

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#ont-pots-uni 1 state unlock sendgain 30 recvgain 10 impedance 4 signaling loopstart

P3600(Slot-1/if-gpon-olt-1/1/1)#no ont-pots-uni 1

 

7.4.23  ont-vlan

操作级别

Privileged

配置模式

Slot-interface-ont

语法

ont-vlan [eth-uni <eth-uni id> |veip |ip-host ]  up-mode <up-mode> down-mode <down-mode> up-pri <0..7> up-vid <1..4094>

参数定义

<eth-uni id>                     <1..24>

<up-mode>                      <transparent|overwrite|add-vid>

 <down-mode>                <transparent|delete-vid>

说明

该命令用于配置ONTVLAN增删等配置

 

7.4.24  no ont-vlan

操作级别

Privileged

配置模式

Slot-interface-ont

语法

no ont-vlan [eth-uni <eth-uni id> |veip |ip-host|all]

说明

该命令用于删除ont-vlan配置

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#ont-vlan eth-uni 1 up-mode add-vid down-mode delete-vid up-pri 3 up-vid 101

P3600(Slot-1/if-gpon-olt-1/1/1)#no ont-vlan eth-uni 1

 

7.4.25  optical-power-threshold

操作级别

Privileged

配置模式

Slot-interface-ont

语法

optical-power-threshold [lowerOpticalThr <lowerOpticalThr>][upperOpticalThr <upperOpticalThr>] [lowerTxPowerThr<lowerTxPowerThr>][upperTxPowerThr<upperTxPowerThr>]

参数定义

<lowerOpticalThr>                         <-127..0>

<upperOpticalThr>                         <-127..0>

<lowerTxPowerThr>                      <-63.5..0>

<upperTxPowerThr>                      <-63.5..0>

说明

该命令用于配置ONT光功率阈值

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#optical-power-threshold lowerOpticalThr -50.5 lowerTxPowerThr -55

 

7.4.26  password

操作级别

Privileged

配置模式

Slot-interface-ont

语法

password <password>

参数定义

<password>                  string

说明

该命令用于password认证

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#password 0123456789

 

7.4.27  port-vlan

1. port-vlan downstram

操作级别

Privileged

配置模式

Slot-interface-ont

语法

port-vlan <ID> downstream <inverse-upstream | forward | filter-vid-pbit-forward |  filter-vid-only-forward | filter-pbit-only-forward | filter-vid-pbit-discard | filter-vid-only-discard | filter-pbit-only-discard | discard >  intpid <intpid value>  outtpid <outtpid value>

参数定义

<ID>: 1-24,127,128UNI端口号

downstream:下行方向操作规则

inverse-upstream(0) 下行方向根据上行方向规则转换

forward(1)不管上行规则如何,所有下行帧都被未经修改地转发

filter-vid-pbit-forward(2)如果根据VLAN和优先级能匹配上行rule,下行方向根据上行方向规则转换,否则未经修改转发。

filter-vid-only-forward(3) 如果根据VLAN能匹配上行rule,下行方向根据上行方向规则转换,否则未经修改转发。

filter-pbit-only-forward(4) 如果根据优先级能匹配上行rule,下行方向根据上行方向规则转换,否则未经修改转发。

filter-vid-pbit-discard(5) 如果根据VLAN和优先级能匹配上行rule,下行方向根据上行方向规则转换,否则丢弃。

filter-vid-only-discard(6) 如果根据VLAN能匹配上行rule,下行方向根据上行方向规则转换,否则丢弃。

filter-pbit-only-discard(7) 如果根据优先级能匹配上行rule,下行方向根据上行方向规则转换,否则丢弃。

discard(8) 不管上行规则如何,丢弃所有下行流量。

intpid:输入TPID,前缀0x。按照0xyyyy的格式, 典型的值是0x88A80x9100。报文操作规则中选择TPID操作时有效。

outtpid:输出TPID值,前缀0x。按照0xyyyy的格式, 典型的值是0x88A80x9100。报文操作规则中选择TPID操作时有效。

说明

该命令用于配置ONT port-vlan全局操作规则。

 

2. port-vlan untag

操作级别

Privileged

配置模式

Slot-interface-ont

语法

port-vlan <ID> rule <index> untag {add-vid [inner-pri <pri-val>] [inner-vid <vid-val>] [inner-tpid <tpid-val>]} [ether-type <type-val>]

port-vlan <ID> rule <index> untag {q-in-q [inner-pri <pri-val>] [inner-vid <vid-val>] [inner-tpid <tpid-val>] [outer-pri <pri-val>] [outer-vid <vid-val>] [outer-tpid <tpid-val>]} [ether-type <type-val>]

port-vlan <ID> rule <index> untag transparent [ether-type <type-val>]

port-vlan <ID> rule <index> untag discard [ether-type <type-val>]

参数定义

<ID>1-24,127,128UNI端口号

rule1-100,规则ID

Treatment操作:

add-vid:增加一层VLAN

q-in-q:增加两层VLAN

transparent:透传

discard:丢弃

Treatment操作后参数:

inner-pri0-7,内层优先级

inner-vid0-4094,内层VLAN ID

inner-tpid:内层TPIDDEI设置

mode40x8100

mode6TPID使用outtpid的设置值, DEI设为0

mode7TPID使用outtpid的设置值, DEI设为1

outer-pri0-7,外层优先级

outer-vid0-4094,外层VLAN ID

outer-tpid:外层TPIDDEI设置

mode40x8100

mode6TPID使用outtpid的设置值, DEI设为0

mode7TPID使用outtpid的设置值, DEI设为1

ether-type0-5,过滤报文的以太网类类型。

0:任意报文类型

1:以太网类型为0x0800IP报文

2:以太网类型为0x8863或者0x8864PPPoE报文

3:以太网类型为0x0806ARP报文

4:以太网类型为0x86DDIPv6报文

5:以太网类型为0x888EEAPOL报文

说明

该命令用于配置ONT port-vlan untag报文操作规则。

 

3. port-vlan single-tag

操作级别

Privileged

配置模式

Slot-interface-ont

语法

port-vlan <ID> rule <index> {single-tag inner-pri <pri-val> inner-vid <vid-val> inner-tpid <tpid-val>} {translate [inner-pri <pri-val>] [inner-vid <vid-val>] [inner-tpid <tpid-val>]} [ether-type <type-val>]

port-vlan <ID> rule <index> {single-tag inner-pri <pri-val> inner-vid <vid-val> inner-tpid <tpid-val>} {q-in-q [inner-pri <pri-val>] [inner-vid <vid-val>] [inner-tpid <tpid-val>] [outer-pri <pri-val>] [outer-vid <vid-val>] [outer-tpid <tpid-val>]} [ether-type <type-val>]

port-vlan <ID> rule <index> {single-tag inner-pri <pri-val> inner-vid <vid-val> inner-tpid <tpid-val>} remove-tag [ether-type <type-val>]

port-vlan <ID> rule <index> {single-tag inner-pri <pri-val> inner-vid <vid-val> inner-tpid <tpid-val>} transparent [ether-type <type-val>]

port-vlan <ID> rule <index> {single-tag inner-pri <pri-val> inner-vid <vid-val> inner-tpid <tpid-val>} discard [ether-type <type-val>]

参数定义

<ID>1-24,127,128UNI端口号

rule1-100,规则ID

inner-pri0-8,过滤内层优先级,0-7:优先级值,8:不过滤

inner-vid0-40944096,过滤内层VLAN ID4096:不过滤

inner-tpid:过滤内层TPID

mode0:不过滤

mode40x8100

mode5TPID使用intpid的设置值, 不关注DEI的值

mode6TPID使用intpid的设置值, DEI0

mode7TPID使用intpid的设置值, DEI1

Treatment操作:

translateVLAN转换

q-in-q:增加一层VLAN

remove-tag:剥掉一层VLAN

transparent:透传

discard:丢弃

Treatment操作后参数:

 inner-pri0-7copy-inner,内层优先级。0-7:优先级值,copy-inner:拷贝收到报文的优先级

inner-vid0-40944096,内层VLAN ID4096:拷贝收到报文的VLAN

inner-tpid:内层TPIDDEI设置

mode0:拷贝收到报文的TPIDDEI

mode2TPID使用outtpid的设置值, 拷贝收到报文的DEI

mode40x8100

mode6TPID使用outtpid的设置值, DEI设为0

mode7TPID使用outtpid的设置值, DEI设为1

outer-pri0-7copy-inner,外层优先级。0-7:优先级值,copy-inner:拷贝收到报文的优先级

outer-vid0-40944096,外层VLAN ID4096:拷贝收到报文的VLAN

outer-tpid:外层TPIDDEI设置

mode0:拷贝收到报文的TPIDDEI

mode2TPID使用outtpid的设置值, 拷贝收到报文的DEI

mode40x8100

mode6TPID使用outtpid的设置值, DEI设为0

mode7TPID使用outtpid的设置值, DEI设为1

ether-type0-5 过滤报文的以太网类类型。

0:任意报文类型

1:以太网类型为0x0800IP报文

2:以太网类型为0x8863或者0x8864PPPoE报文

3:以太网类型为0x0806ARP报文

4:以太网类型为0x86DDIPv6报文

5:以太网类型为0x888EEAPOL报文

说明

该命令用于配置ONT port-vlan single-tag报文操作规则。

 

4. port-vlan double-tag

操作级别

Privileged

配置模式

Slot-interface-ont

语法

port-vlan <ID> rule <index> {double-tag inner-pri <pri-val> inner-vid <vid-val> inner-tpid <tpid-val> outer-pri <pri-val> outer-vid <vid-val> outer-tpid <tpid-val>]} {translate [inner-pri <pri-val>] [inner-vid <vid-val>] [inner-tpid <tpid-val>] [outer-pri <pri-val>] [outer-vid <vid-val>] [outer-tpid <tpid-val>]} [ether-type <type-val>]

port-vlan <ID> rule <index> {double-tag inner-pri <pri-val> inner-vid <vid-val> inner-tpid <tpid-val> outer-pri <pri-val> outer-vid <vid-val> outer-tpid <tpid-val>]} remove-both [ether-type <type-val>]

port-vlan <ID> rule <index> {double-tag inner-pri <pri-val> inner-vid <vid-val> inner-tpid <tpid-val> outer-pri <pri-val> outer-vid <vid-val> outer-tpid <tpid-val>]} remove-outer [ether-type <type-val>]

port-vlan <ID> rule <index> {double-tag inner-pri <pri-val> inner-vid <vid-val> inner-tpid <tpid-val> outer-pri <pri-val> outer-vid <vid-val> outer-tpid <tpid-val>]} transparent  [ether-type <type-val>]

port-vlan <ID> rule <index> {double-tag inner-pri <pri-val> inner-vid <vid-val> inner-tpid <tpid-val> outer-pri <pri-val> outer-vid <vid-val> outer-tpid <tpid-val>]} discard [ether-type <type-val>]

参数定义

<ID>1-24,127,128UNI端口号

rule1-100,规则ID

inner-pri0-8,过滤内层优先级。0-7:优先级值,8:不过滤

inner-vid0-40944096,过滤内层VLAN ID4096:不过滤

inner-tpid:过滤内层TPID

mode0:不过滤

mode40x8100

mode5TPID使用intpid的设置值, 不关注DEI的值

mode6TPID使用intpid的设置值, DEI0

mode7TPID使用intpid的设置值, DEI1

outer-pri0-8,过滤外层优先级。0-7:优先级值,8:不过滤

outer-vid0-40944096,过滤外层VLAN ID4096:不过滤

outer-tpid:过滤外层TPID

mode0:不过滤

mode40x8100

mode5TPID使用intpid的设置值, 不关注DEI的值

mode6TPID使用intpid的设置值, DEI0

mode7TPID使用intpid的设置值, DEI1

Treatment操作:

translateVLAN转换

remove-both:剥掉内外层VLAN

remove-outer:剥掉外层VLAN

transparent:透传

discard:丢弃

Treatment操作后参数:

inner-pri0-7copy-innercopy-outer,内层优先级。0-7:优先级值,copy-inner:拷贝收到报文的内层优先级,copy-outer:拷贝收到报文的外层优先级。

inner-vid0-409440964097,内层VLAN ID4096:拷贝收到报文的内层VLAN4097:拷贝收到报文的外层VLAN

inner-tpid:内层TPIDDEI设置

mode0:拷贝收到报文的内层TPIDDEI

mode1:拷贝收到报文的外层TPIDDEI

mode2TPID使用outtpid的设置值, 拷贝收到报文的内层DEI

mode3TPID使用outtpid的设置值, 拷贝收到报文的外层DEI

mode40x8100

mode6TPID使用outtpid的设置值, DEI设为0

mode7TPID使用outtpid的设置值, DEI设为1

outer-pri0-7copy-innercopy-outer,外层优先级。0-7:优先级值,copy-inner:拷贝收到报文的内层优先级,copy-outer:拷贝收到报文的外层优先级。

outer-vid0-409440964097,外层VLAN ID4096:拷贝收到报文的内层VLAN4097:拷贝收到报文的外层VLAN

outer-tpid:外层TPIDDEI设置

mode0:拷贝收到报文的内层TPIDDEI

mode1:拷贝收到报文的外层TPIDDEI

mode2TPID使用outtpid的设置值, 拷贝收到报文的内层DEI

mode3TPID使用outtpid的设置值, 拷贝收到报文的外层DEI

mode40x8100

mode6TPID使用outtpid的设置值, DEI设为0

mode7TPID使用outtpid的设置值, DEI设为1

ether-type0-5 过滤报文的以太网类类型。

0:任意报文类型

1:以太网类型为0x0800IP报文

2:以太网类型为0x8863或者0x8864PPPoE报文

3:以太网类型为0x0806ARP报文

4:以太网类型为0x86DDIPv6报文

5:以太网类型为0x888EEAPOL报文

说明

该命令用于配置ONT port-vlan double-tag报文操作规则。

 

7.4.28  no port-vlan

操作级别

Privileged

配置模式

Slot-interface-ont

语法

no port-vlan <eth-uni id> [rule id]

说明

该命令用于删除port-vlan

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#port-vlan 1 downstream inverse-upstream intpid  0x9100 outtpid 0x9100

P3600(Slot-1/if-gpon-olt-1/1/1)#port-vlan 1 rule 1 untag add-vid inner-pri 0 inner-vid 101 inner-tpid mode4 ether-type 1

P3600(Slot-1/if-gpon-olt-1/1/1)#port-vlan 1 rule 2 single-tag discard ether-type 1

P3600(Slot-1/if-gpon-olt-1/1/1)#port-vlan 1 rule 3 double-tag remove-both ether-type 1

P3600(Slot-1/if-gpon-olt-1/1/1)#no port-vlan 1

P3600(Slot-1/if-gpon-olt-1/1/1)#no port-vlan 1 1

P3600(Slot-1/if-gpon-olt-1/1/1)#no port-vlan 1 2

P3600(Slot-1/if-gpon-olt-1/1/1)#no port-vlan 1 3

 

7.4.29  rate-limit

操作级别

Privileged

配置模式

Slot-interface-ont

语法

rate-limit eth-uni <eth-uni id> <direction> <cir><pir>

参数定义

<eth-uni id>                     <1-24,127,128>

<direction>                      <downstream|upstream>

<cir>                                <128..9958230>    保证速率

<pir>                               <128..9958230> pir>=cir      峰值速率

说明

该命令用于配置ETH口限速

 

7.4.30  no rate-limit

操作级别

Privileged

配置模式

Slot-interface-ont

语法

no rate-limit eth-uni <eth-uni id> <direction>

说明

该命令用于删除ETH口限速

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#rate-limit eth-uni 1 downstream  102400 102400

P3600(Slot-1/if-gpon-olt-1/1/1)#no rate-limit eth-uni 1 downstream

 

7.4.31  regid

操作级别

Privileged

配置模式

Slot-interface-ont

语法

regid  <regid> type <gpon/xgpon/xgspon/auto>

参数定义

<regid>                                   XG(S)PON ONT 密码认证

type                                        设置ONT类型

<gpon/xgpon/xgspon/auto>   ONT 类型

说明

该命令用于XG(S)PON ONT 进行密码认证

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#regid 20202020202020202020005F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F type xgspon

 

7.4.32  reset

操作级别

Privileged

配置模式

Slot-interface-ont

语法

reset

参数定义

说明

该命令用于远程重启ONT

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#reset

 

7.4.33  rogue-ont

操作级别

Privileged

配置模式

Slot-interface-ont

语法

rogue-ont <mode>

参数定义

<mode>                                  <enable/disable>

说明

该命令用于手动对流氓ONT进行开启关闭

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#rogue-ont enable

P3600(Slot-5)#brief-show slot 5 ont-info

ONT      TYPE      SN              Status   Find     Auth            Reason            Join

1/1/1    gpon      GPON000625B1    online  auto     snonly           none              manual

1/1/2    gpon      GPON000625B2    offline  auto     snonly          losi              manual

 

P3600(Slot-1/if-gpon-olt-1/1/1)#rogue-ont disable

P3600(Slot-5)#brief-show slot 5 ont-info

ONT      TYPE      SN              Status   Find     Auth            Reason            Join

1/1/1    gpon      GPON000625B1    offline  auto     snonly        rogue onu              manual

1/1/2    gpon      GPON000625B2    online  auto     snonly          none              manual

 

7.4.34  service

操作级别

Privileged

配置模式

Slot-interface-ont

语法

service flow-profile <flow profile index> tcont-bind-profile <tcontbind profile index> svc-type <svc-type >

参数定义

<flow profile index>                <1..128>     flow模板ID

<tcontbind profile index>        <1..128>     tcont-bind模板ID

<svc-type >                              <n_1|1_m|1_p|n_m|1_mp|n_p|n_mp>

说明

该命令用于绑定ONT的业务模板

 

7.4.35  no service

操作级别

Privileged

配置模式

Slot-interface-ont

语法

no service

说明

该命令用于删除ONT的模板应用

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#service flow-profile 1 tcont-bind-profile 1

P3600(Slot-1/if-gpon-olt-1/1/1)#no service

 

7.4.36  sn

操作级别

Privileged

配置模式

Slot-interface-ont

语法

sn <sn> type<gpon/xgpon/xgspon/auto>

参数定义

<sn>                                      string  Fixed  length 12

type                                       配置ONT类型

<gpon/xgpon/xgspon/auto>  ONT 类型

说明

该命令用于ONT进行SN绑定

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#sn GPON012345678

 

7.4.37  virtual-port

操作级别

Privileged

配置模式

Slot-interface-ont

语法

virtual-port <id> [port <state>] [encrypt <encrypt_mode>]

参数定义

<id>                                       <1-12>

<state>                                    <unlock|lock>

<encrypt_mode>        <disable|bidirectional|broadcast|downstream>

说明

该命令用于创建虚拟端口修改状态以及配置加密模式

 

7.4.38  no virtual-port

操作级别

Privileged

配置模式

Slot-interface-ont

语法

no virtual-port <id>

说明

该命令用于删除ONT虚拟端口

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#virtual-port 1 port unlock

P3600(Slot-1/if-gpon-olt-1/1/1)#virtual-port 1 encrypt broadcast

P3600(Slot-1/if-gpon-olt-1/1/1)#no virtual-port 1

 

7.4.39  voip-service

操作级别

Privileged

配置模式

Slot-interface-ont

语法

voip-service mgc <pots-uni id> mgc-id <mgc-id > media-id <media-id> terminal-id <terminal-id>

voip-service sip <pots-uni id> agent-id <agent-id > media-id <media-id> phone-num <phone-num> username <username> password <password> user-id <user-id>

voip-service svc <profile-id>

参数定义

<pots-uni id>                       <1-24>

<mgc-id >                            <1..128>

<media-id>                          <1..128>

<terminal-id>                       终端id

<agent-id >                          <1..128>

<phone-num>                      string

<username>                         string

<password>                         string

<user-id>                            <1..128>

<profile-id>                        <1..128>

说明

该命令用于进行ONT voip相关配置

 

7.4.40  no voip-service

操作级别

Privileged

配置模式

Slot-interface-ont

语法

no voip-service mgc <pots-uni id>

no voip-service sip <pots-uni id>

no voip-service svc

说明

该命令用于删除voip相关配置

 

例如:

P3600(Slot-1/if-gpon-olt-1/1/1)#voip-service mgc 1 mgc-id 1 media-id 1 terminal-id 1

P3600(Slot-1/if-gpon-olt-1/1/1)#voip-service sip 1 agent-id 1 media-id 1 phone-num 01234567 username admin password admin user-id 1

P3600(Slot-1/if-gpon-olt-1/1/1)#no voip-service mgc 1

P3600(Slot-1/if-gpon-olt-1/1/1)#no voip-service sip 1

 

7.5  olt-opm

7.5.1  alarm-threshold

操作级别

Normal

配置模式

Slot -olt-opm

语法

alarm-threshold  <...Alarm|....waring>  threshold raise  <millivolt|centigrade|microampere|dBm> clear <millivolt|centigrade|microampere|dBm>

参数定义

<...alarm|....waring> :选择生成alarm或者waring的类型,支持电压过高或过低,温度过高或过低,发送功率过高或接收功率过低等类型;

 raise <millivolt|centigrade|microampere|dBm> :几类告警产生的门限值;

clear <millivolt|centigrade|microampere|dBm>:几类告警清除的门限值。

说明

该命令用于设置GPON几类性能观测时告警产生和消除的门限值

 

例如:

P3600(Slot-1)#olt-opm alarm-threshold

VccLowAlarm

VccLowWarning

VccHighWarning

VccHighAlarm

TXBiasLowAlarm

TXBiasLowWarning

TXBiasHighWarning

TXBiasHighAlarm

TempLowAlarm

TempLowWarning

TempHighWarning

TempHighAlarm

TXPowerLowAlarm

TXPowerLowWarning

TXPowerHighWarning

TXPowerHighAlarm

RXPowerLowAlarm

RXPowerLowWarning

RXPowerHighWarning

RXPowerHighAlarm

P3600(Slot-1)#olt-opm alarm-threshold TempLowAlarm threshold raise -5 clear 0

P3600(Slot-1)#

 

7.5.2  alarm-threshold-xgpon

操作级别

Normal

配置模式

Slot -olt-opm

语法

alarm-threshold-xgpon  <...Alarm|....waring>  threshold raise  <millivolt|centigrade|microampere|dBm> clear <millivolt|centigrade|microampere|dBm>

参数定义

<...alarm|....waring> :选择生成alarm或者waring的类型,支持电压过高或过低,温度过高或过低,发送功率过高或接收功率过低等类型;

 raise <millivolt|centigrade|microampere|dBm> :几类告警产生的门限值;

clear <millivolt|centigrade|microampere|dBm>:几类告警清除的门限值。

说明

该命令用于设置XG(S)PON几类性能观测时告警产生和消除的门限值

 

例如:

P3600(Slot-1/config-t-olt-opm)#alarm-threshold-xgpon

VccLowAlarm

VccLowWarning

VccHighWarning

VccHighAlarm

TXBiasLowAlarm

TXBiasLowWarning

TXBiasHighWarning

TXBiasHighAlarm

TempLowAlarm

TempLowWarning

TempHighWarning

TempHighAlarm

TXPowerLowAlarm

TXPowerLowWarning

TXPowerHighWarning

TXPowerHighAlarm

RXPowerLowAlarm

RXPowerLowWarning

RXPowerHighWarning

RXPowerHighAlarm

P3600(Slot-1)#olt-opm alarm-threshold-xgpon TempLowAlarm threshold raise -5 clear 0

P3600(Slot-1)#

7.5.3  show alarm-threshold

操作级别

Normal

配置模式

Slot -olt-opm

语法

show alarm-threshold

说明

该命令用于查看PON口光功率阈值

 

例如:

P3600(Slot-1/config-t-olt-opm)#show alarm-threshold

GPON opm alarm threshold:

Opm Voltage  Raise Alarm Low    :950   ,  High:3600

             Clear Alarm Low    :1000  ,  High:3500

             Raise Warning Low  :1000  ,  High:3500

             Clear Warning Low  :1100  ,  High:3400

Opm Bias     Raise Alarm Low    :1000  ,  High:90000

             Clear Alarm Low    :1100  ,  High:89000

             Raise Warning Low  :1900  ,  High:71000

             Clear Warning Low  :2000  ,  High:70000

Opm TEMP     Raise Alarm Low    :-15   ,  High:95

             Clear Alarm Low    :-10   ,  High:90

             Raise Warning Low  :-10   ,  High:90

             Clear Warning Low  :-5    ,  High:85

Opm Tx Power Raise Alarm Low    :200   ,  High:800

             Clear Alarm Low    :250   ,  High:700

             Raise Warning Low  :250   ,  High:700

             Clear Warning Low  :300   ,  High:600

Opm Rx Power Raise Alarm Low    :-3200 ,  High:-1000

             Clear Alarm Low    :-3100 ,  High:-1100

             Raise Warning Low  :-3100 ,  High:-1200

             Clear Warning Low  :-3000 ,  High:-1250

 

XG(S)PON opm alarm threshold:

Opm Voltage  Raise Alarm Low    :950   ,  High:3600

             Clear Alarm Low    :1000  ,  High:3500

             Raise Warning Low  :1000  ,  High:3500

             Clear Warning Low  :1100  ,  High:3400

Opm Bias     Raise Alarm Low    :1000  ,  High:90000

             Clear Alarm Low    :1100  ,  High:89000

             Raise Warning Low  :1900  ,  High:71000

             Clear Warning Low  :2000  ,  High:70000

Opm TEMP     Raise Alarm Low    :-15   ,  High:95

             Clear Alarm Low    :-10   ,  High:90

             Raise Warning Low  :-10   ,  High:90

             Clear Warning Low  :-5    ,  High:85

Opm Tx Power Raise Alarm Low    :200   ,  High:800

             Clear Alarm Low    :250   ,  High:700

             Raise Warning Low  :250   ,  High:700

             Clear Warning Low  :300   ,  High:600

Opm Rx Power Raise Alarm Low    :-3200 ,  High:-1000

             Clear Alarm Low    :-3100 ,  High:-1100

             Raise Warning Low  :-3100 ,  High:-1200

             Clear Warning Low  :-3000 ,  High:-1250

7.5.4  control

操作级别

Normal

配置模式

Slot -olt-opm

语法

control [status <status>][port-list <port-list>] [ont-list<ont-list>][period<period>][start-time<start-time>]

参数定义

<status>                  <enable|disable>

<port-list>              <1..16>      设置需要检测的端口

<ont-list>                <1..256>    设置需要检测的ONT

<period>                 <1..8640>,UNIt is 10s      设置检测间隔

<start-time>            <0..23:0..59>            设置开始时间

说明

该命令用于设置光功率状态、开始时间、间隔、检测端口等

 

例如:

P3600(Slot-1/config-t-olt-opm)#control status enable port-list 1 ont-list 1 period 1 start-time 10:00

 

7.5.5  show control

操作级别

Normal

配置模式

Slot -olt-opm

语法

show control

说明

该命令用于查看PON口光功率配置信息。端口以bitmap显示,从左至右表示端口增加。例如0x8000表示端口1

 

例如:

P3600(Slot-1/config-t-olt-opm)#show control

opm control status              : disable

opm control period              : 30*10s

opm control olt enable list     : 2-4

opm control ont enable list     :

                       pon 1    : 1

                       pon 2    : 1-2

                       pon 3    : 1-2

                                                     

7.5.6  no port-list

操作级别

Normal

配置模式

Slot -olt-opm

语法

no port-list <port-list> [ont-list <ont-list>]

参数定义

<port-list>              <1..16>      关闭不需要的端口的检测

<ont-list>                <1..256>   关闭不需要的ONT的检测

说明

该命令用于关闭PON口以及PON口从某个ONT接收光功率的检测

 

例如:

P3600(Slot-1/config-t-olt-opm)#no port-list 1

P3600(Slot-1/config-t-olt-opm)#no port-list 1 ont-list 1

 

7.6  ont-upgrade

7.6.1  auto-upgrade

操作级别

Normal

配置模式

Slot 1

语法

ont-upgrade auto-upgrade <module{1}/port{1..16}/ont{1..256}> filename <file name String up to 64 chars> start-time <0..23>  equip-id <word>

参数定义

module{1}/port{1..16}/ont{1..256}module 1固定,port 代表第几个PON口,ont指要升级的ONT

filename :升级文件名字;

start-time:整点开始升级;

equip-id:指ONTequip-id

说明

该命令用于指定PON口指定ONT在整点开始升级。

 

例如:

P3600(Slot-1)#ont-upgrade auto-upgrade 1/1/1-8 filename ont_upgrade.app start-time 11 equip-id ONT1

P3600(Slot-1)#

 

7.6.2  manual-upgrade

操作级别

Normal

配置模式

Slot 1

语法

ont-upgrade manual-upgrade <module{1}/port{1..16}/ont{1..256}> filename <file name String up to 64 chars>   equip-id <word>

参数定义

module{1}/port{1..16}/ont{1..256}module 1固定,port 代表第几个PON口,ont指要升级的ONT

filename :升级文件名字;

equip-id:指ONTequip-id

说明

该命令用于指定PON口指定ONT此刻升级。

 

例如:

P3600(Slot-1)#ont-upgrade manual-upgrade 1/1/1-8 filename ont_upgrade.app equip-id ONT1

P3600(Slot-1)#

 


8 configure命令

本章介绍 CSM 插板支持的命令,包括 CSM 系统级命令, CSM 二层命令,CSM三层命令,安全命令,QoS 命令,以及组播命令。

8.1  configure下的配置模式命令

配置模式是指一些功能相关的命令集合。每个命令都与一个或多个配置模式相关。只有在相关的配置模式下才能访问指定的命令。

8.1.1  L2

操作级别

Normal

配置模式

CONFIG

语法

l2

参数定义

l2 进入二层配置模式。

 

说明

该命令用于进入CSM二层配置模式。进入该模式后,提示符变成:

system_name(CONFIG/L2)#

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#help

bridge                                    - Enter module specific bridge

                                            configuration mode

eth-link-oam                              - Enter Ethernet Link OAM

                                             configuration mode

loop-detect                               - config loop detection

mstp                                      - Spanning Tree Subsystem

port                                      - Enter module specific PORT

                                            cofiguration mode

rstp                                      - Enter spanning tree

                                            configuration mode

vlan                                      - Vlan mode

P3600(CONFIG/L2)#

 

1. bridge

操作级别

Normal

配置模式

L2

语法

bridge

参数定义

bridge:进入插板特定的bridge配置模式。

说明

该命令用于进入插板特定的Bridge配置模式。进入该模式之后,提示符变为:

system_name(CONFIG/L2/bridge)#

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#bridge

P3600(CONFIG/L2/BRIDGE)#help

 agingtimer                                - Set agingtimer

 fdb                                       - Add entry in FDB

 flush                                     - Flush dynamic layer 2

                                             forwarding database entries.

 interface-pm                              - Collect performance data

 no                                        - Delete an object

 show                                      - Display information

P3600(CONFIG/L2/BRIDGE)#

 

2. mstp

操作级别

Normal

配置模式

L2

语法

mstp

参数定义

mstp 进入生成树(Spanning Tree Subsystem)配置模式。

说明

该命令用于进入插板特定的生成树配置模式。进入该模式之后,提示符变为:

system_name(CONFIG/L2/MSTP)#

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#mstp

P3600(CONFIG/L2/MSTP)#help

 configuration              - configuration

 disable                    - Disable Spanning tree mstp

 enable                     - Enable Spanning tree mstp

 forward-time               - Set the forward delay for the spanning tree

 hello-time                 - Set the hello interval for the spanning tree

 instance                   - configuration based on MST instance

 max-age                    - Set the max age interval for the spanning tree

 max-hops                   - Set the max hops value for the spanning tree

 show                       - Display information

P3600(CONFIG/L2/MSTP)#

 

3. port

操作级别

Normal

配置模式

L2

语法

port

参数定义

port 进入插板特定的Port配置模式。

说明

该命令用于进入插板特定的Port配置模式。进入该模式之后,提示符变为:

system_name(CONFIG/L2/PORT)#

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#port

P3600(CONFIG/L2/PORT)#help

 disable                                   - Administratively lock one or

                                             more Ethernet port

 enable                                    - Administratively unlock one or

                                             more Ethernet port

 fec                                       - Set port Fec mode

 lacp                                      - lacp xge port_list priority key

 no                                        - Delete an object.

 show                                      - Display information

 speed                                     - Set port data rate

 trunk                                     - Create trunk group.

P3600(CONFIG/L2/PORT)#

 

4. vlan

操作级别

Normal

配置模式

L2

语法

vlan

参数定义

vlan:进入插班特定的VLAN配置模式。

说明

该命令用于进入插板特定的VLAN配置模式。进入该模式之后,提示符变为:

system_name(CONFIG/L2/VLAN)#

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#vlan

P3600(CONFIG/L2/VLAN)#help

 dhcp-option                     - Enable/Disable the DHCP option 82

 flush                           - Flush layer 2 forwarding database entries

 interface                       - Adds Ethernet ports to an existing VLAN

 l2-proxy-arp                    - Configure L2 proxy ARP function

 no                              - Delete an object

 option-device-id                - set the device-id used when insert option

 option-replace-mode             - configure the option replace or drop

 pppoe-option                    - Enable/Disable the PPPoE option

 show                            - Display VLAN information

 translate                       - Create VLAN Translate entry

 usr-isolation                   - Configure user isolation

 vid                             - Creates a new VLAN or modifies the

                                   name of an existing VLAN

P3600(CONFIG/L2/VLAN)#

 

5. rstp

操作级别

Normal

配置模式

L2

语法

rstp

参数定义

rstp 进入生成树(Spanning Tree)配置模式。

说明

该命令用于进入插板特定的生成树配置模式。进入该模式之后,提示符变为:

system_name(CONFIG/L2/RSTP)#

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#rstp

P3600(CONFIG/L2/RSTP)#help

 disable                                   - Disable spanning tree algorithm

 enable                                    - Enable spanning tree algorithm

 fwdelay                                   - Set bridge forward delay

 hellotime                                 - Set hello time

 maxage                                    - Set maximum age

 port-pathcost                             - Set path cost

 port-priority                             - Set port priority

 priority                                  - Set RSTP priority

 show                                      - Display information

P3600(CONFIG/L2/RSTP)#

 

8.1.2  multicast

操作级别

Normal

配置模式

CONFIG

语法

multicast

参数定义

multicast进入CONFIG-MCAST配置模式。

说明

该命令用于进入CSM组播配置模式。进入该模式后,提示符变为:

system_name(CONFIG/MCAST)#

 

例如:

P3600#configure

P3600(CONFIG)#multicast

P3600(CONFIG/MCAST)#help

group-to-vlan                             - Configure group to vlan mapping

multicast-handling                        - Set multicast handling

                                             for the system

 no                                        - Delete an object.

 parameter                                 - Configure multicast parameters

 profile                                   - Multicast profile

 service                                   - service_flow_profile

 show                                      - Display information

 snooping                                  - snooping

 userview                                  - userview max

 vlan-to-gem                               - Configure vlan to gem mapping

P3600(CONFIG/MCAST)#

 

1. parameter

操作级别

Normal

配置模式

CONFIG-MCAST

语法

parameter

参数定义

parameter:进入CONFIG-MCAST-parameter配置模式。

说明

该命令用于进入CSM组播IGMP parameter配置模式。进入该模式后,提示符变为:

system_name(CONFIG/MCAST/PARAM)#

 

例如:

P3600#configure

P3600(CONFIG)#multicast

P3600(CONFIG/MCAST)#parameter

P3600(CONFIG/MCAST/PARAM)#help

 last-member-query-interval                - igmp last member query interval

 query-interval                            - Query interval

 query-response-interval                   - max query response

 robustness                                - robust value

 sender-ip                                 - IGMP packet sender ip

 sender-ipv6                               - IGMPV6 packet sender ip

P3600(CONFIG/MCAST/PARAM)#

 

2. snooping

操作级别

Normal

配置模式

CONFIG-MCAST

语法

snooping

参数定义

snooping:进入CONFIG-MCAST-Snoop配置模式。

说明

该命令用于进入CSM组播IGMP Snooping配置模式。进入该模式后,提示符变为:

system_name(CONFIG/MCAST/SNOOP)#

 

例如:

P3600#configure

P3600(CONFIG)#multicast

P3600(CONFIG/MCAST)#snooping

P3600(CONFIG/MCAST/SNOOP)#help

 clear-counters                            - Clear multicast counters

 fast-leave                                - Fast Leave function

 show                                      - Display information

P3600(CONFIG/MCAST/SNOOP)#

 

8.1.3  qos

操作级别

Normal

配置模式

CONFIG

语法

qos

参数定义

qos 进入QoS配置模式。

说明

该命令用于进入QoS配置模式。进入该模式后,提示符变为:

system_name(CONFIG/QOS)#

 

例如:

P3600#configure

P3600(CONFIG)#qos

P3600(CONFIG/QOS)#help

action                                    - Creates a new action or

                                             modifies one existing

                                             action.

 assign-action                             - Assign one action to one

                                             bridge port.

 deassign-action                           - De-assign a flow-based action

                                             from one bridge port.

 dot1p-mapping                             - Configures 802.1p priority to                                          egress queue mapping.

dscp                                      - Enable DSCP to priority mapping.

 dscp-mapping                              - Configure DSCP mapping.

 

gem-rate-limit                             - configuration of gem rate limit

meter                                     - Create or modify one

                                             existing traffic meter.

 no                                        - Delete an object.

 rate-limit                                - Port rate limiting

 reset                                     - Reset counter

 scheduling                                - Configure scheduling method

 show                                      - Display information.

P3600(CONFIG/QOS)#

 

8.1.4  security

操作级别

Normal

配置模式

CONFIG

语法

security

参数定义

security 进入安全配置模式。

说明

该命令用于进入安全配置模式。进入该模式后,提示符变为:

system_name(CONFIG/security)#

 

例如:

P3600#configure

P3600(CONFIG)#security

P3600(CONFIG/Security)#help

 action                                    - Create or modify flow-based action

assign-action                             - Assign one action

 deassign-action                           - De-assign one action from

                                             one bridge port

no                                        - Delete an object

 show                                      - Display information.

 storm-control                             - Configure storm control limit

                                             for incoming multicast

vlan                                      - vlan

P3600(CONFIG/Security)#

 

8.1.5  pon-protection-group

操作级别

Privileged

配置模式

CONFIG

语法

pon-protection-group  <1..40> [dual-homing< slot/port> <slot/port> <work|standby>][manual-switch][member-ports<slot/port>  <slot/port> <type B>

参数定义

pon-protection-group:创建一个PON保护组

dual-homing:跨框PON保护模式

<WORD 1>:本端槽位端口号

<WORD 2>:对端槽位端口号

<work|standby> 本端端口角色

Manaual-switch:主备端口角色切换

Member-port:板间/板内PON保护模式

<workpon 1>:工作端口

<workpon 2>:备份端口

<typeB>:保护类型

说明

该命令用于创建PON保护组

 

P3600(CONFIG)#pon-protection-group 1

P3600(CONFIG/protect-group-1)#

 dual-homing                               - create dual homing protect group

 manual-switch                             - manual switch protect group

 member-ports                              - port that protect each other

 

8.2  系统级命令

本章介绍 CSM 系统级命令。

8.2.1  mask

操作级别

Privileged

配置模式

configure

语法

mask <mask-name> priority <1-4> [s-vid] [s-pri] [c-vid] [c-pri] [ether-type] [src-mac <mac-wildcard>] [dst-mac <mac-wildcard] [sender-mac <mac-wildcard>] [target-mac <mac-wildcard>] [ip-protocol] [sender-ip <ip-wildcard>] [target-ip <ip-wildcard>] [src-ip <ip-wildcard>] [dst-ip <ip-wildcard>] [dscp] [tos] [src-tcp] [dst-tcp] [src-udp] [dst-udp] [tcp-ack] [tcp-syn] [tcp-fin] [src-ipv6-ip <ipv6-wildcard>] [dst-ipv6-ip <ipv6-wildcard>] [traffic-class] [flow-label] [pon-ont-vp]                             

参数定义

<mask-name>:包分类掩码名。不超过32个字符。

priority :范围为1-4。包分类优先级。

s-vid:服务器供应商VLAN id

s-pri:服务器供应商VLAN优先级值。

c-vid:客户VLAN id

c-pri:客户VLAN优先级值。

ether-type:以太网类型。

src-mac:源MAC地址。

<mac-wildcard>:定义MAC地址过滤位的16进制数。例如000000000000

dst-mac:目的MAC地址。

<mac-wildcard>:定义MAC地址过滤位的16进制数。例如000000000000

sender-macARP数据包发送端MAC地址。

<mac-wildcard>:定义MAC地址过滤位的16进制数。例如000000000000

target-macARP数据包目标端MAC地址。

<mac-wildcard>:定义MAC地址过滤位的16进制数。例如000000000000

ip-protocolIP协议类型。

sender-ipARP数据包发送端IP地址。

<ip-wildcard>:定义地址<A.B.C.D>过滤位的通配符。

target-ipARP数据包目标端IP地址。

<ip-wildcard>:定义地址<A.B.C.D>过滤位的通配符。

src-ip:源IP地址。

<ip-wildcard>:定义地址<A.B.C.D>过滤位的通配符。

dst-ip:目标IP地址。

<ip-wildcard>:定义地址<A.B.C.D>过滤位的通配符。

dscpDSCP位。

tosTOS位。

src-tcp:源TCP端口。

dst-tcp:目标TCP端口。

src-udp:源UDP端口。

dst-udp:目标UDP端口。

tcp-ackTCP ACK码。

tcp-synTCP SYN码。

tcp-finTCP FIN码。

src-ipv6-ip:源IPv6 IP地址。

<ip-wildcard>:定义地址<AB::CD>过滤位的通配符。                            dst-ipv6-ip:目标IPv6 IP地址。

<ip-wildcard>:定义地址<AB::CD>过滤位的通配符。

traffic-classIPv6流量级别。

flow-labelIPv6流标签。

pon-ont-vpPON/ONT/VP信息。

说明

该命令用于创建一条带优先级的包分类掩码。该优先级决定先过滤哪个域。

 

8.2.2  no mask

操作级别

Privileged

配置模式

CONFIG

语法

no mask <mask-name>

说明

该命令用于删除一条ACL掩码。

 

说明

在删除掩码之前必须确保该掩码目前没有应用于任何规则,处于使用中的掩码不能删除。

 

8.2.3  show mask

操作级别

Normal

配置模式

CONFIG

语法

show mask [<mask-name>]

说明

该命令用于显示所有或某个指定的ACL掩码。

 

例如:

P3600#configure

P3600(CONFIG)#mask utmask priority 2

P3600(CONFIG)#show mask

Mask Priority                        :2

Mask Name                             :utmask

Options                               :SVID,

Source or ARP Sender IP Mask    :0.0.0.0

Destination or ARP Target IP Mask     :0.0.0.0

Source MAC Mask                      :00:00:00:00:00:00

Destionation MAC Mask                 :00:00:00:00:00:00

ARP Sender MAC Mask                  :00:00:00:00:00:00

ARP Target MAC Mask                  :00:00:00:00:00:00

Source Ipv6 IP Mask :00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00 Destination Ipv6 IP Mask :00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00

P3600(CONFIG)#no mask utmask

P3600(CONFIG)#show mask

No Mask Entry now.

 

P3600(CONFIG)#

 

8.2.4  rule

操作级别

Privileged

配置模式

configure

语法

rule <rule-name> index <1-1024> mask-priority <1-4> [s-vid <vlan ID>] [s-pri <priority>] [c-vid <vlan-ID>] [c-pri <priority>] [ether-type <type>] [src-mac <MAC addr>] [dst-mac <MAC addr>] [sender-mac <MAC addr>] [target-mac <MAC addr>] [ip-protocol <ip-protocol number>] [sender-ip <IP addr>] [target-ip <IP addr>] [src-ip <IP addr>] [dst-ip <IP addr>] [dscp <dscp value>] [tos-bit <tos value>] [src-tcp <port number>] [dst-tcp <port number>] [src-udp <port number>] [dst-udp <port number>] [src-ipv6-ip <ipv6 addr>] [dst-ipv6-ip <ipv6-addr>] [traffic-class <class value>] [flow-label <ipv6 flow-laber>] [pon-ont-vp <pon/ont/vport>] [tcp-ack] [tcp-syn] [tcp-fin]

参数定义

<rule-name> :包分类规则名称(不超过32个字符)。

index:包分类规则索引。

<1..1024>:索引值,范围为1 1024

mask-priority:包分类优先级。

<1..4> :范围为1 – 4

s-vid:服务供应商VLAN ID

<1..4094> VLAN ID,范围为1 – 4094

s-pid:服务供应商VLAN 802.1p 优先级。

<0..7>:范围为0 – 7

c-vid:客户VLAN ID

<1..4094> VLAN ID,范围为1 ~ 4094

c-pid:客户VLAN 802.1p优先级。

<0..7>:范围为0 – 7

ether-type:十六进制的以太类型。

<type>:十六进制值。

src-mac:源MAC地址。

<mac-address> aabbccddeeff

dst-mac:目的MAC地址。

<mac-address> aabbccddeeff

sender-macARP包的发送端MAC地址。

<mac-address> aabbccddeeff

target-macARP包的目标MAC地址。

<mac-address> aabbccddeeff

ip-protocol IP协议类型。

<1..255> IP协议类型。范围为1-255

sender-ip ARP包的发送端IP地址。

<ip-address> IP地址<A.B.C.D>

target-ipARP包的目的端IP地址。

<ip-address> IP地址 <A.B.C.D>

src-ip:源IP地址。

<ip-address>IP地址<A.B.C.D>

dst-ip:目的IP地址。

<ip-address>IP地址<A.B.C.D>

dscp DSCP 位。

<0..63> DSCP 值。范围为0-63

tos-bits TOS 位。

<0..15> TOS位值。范围为0-15

src-tcp:源TCP端口。

<1..65535>:端口编码范围为1-65535

dst-tcp:目的TCP端口。

<1..65535>:端口编码范围为1-65535

src-udp:源UDP端口。

<1..65535>:端口编码范围为1-65535

dst-udp:目的UDP端口。

<1..65535>:端口编码范围为1-65535

src-ipv6-ip:源IPv6地址。

<ip-addrss>:地址<AB::CD>

dst-ipv6-ip:目标IPv6地址。

<ip-address>:地址<AB::CD>

traffic-classIPv6流量级别。

<8bit(0-255)>:范围为0-2558bit)。

flow-labelIPv6流标签。

<20bit(0-1048576)>:范围为0-104857620bit)。

 pon-ont-vpPON/ONT/VP格式。

说明

该命令创建一条包分类规则。

 

说明

在配置规则之前,需要先配置好掩码。

 

8.2.5  no rule

操作级别

Privileged

配置模式

CONFIG

语法

no rule <rule-name>

说明

该命令用于删除一条ACL规则。

 

说明

删除 ACL 规则之前必须删除输入端口。

 

8.2.6  show rule

操作级别

Normal

配置模式

CONFIG

语法

show rule [<rule-name>]

说明

该命令显示所有或指定的包分类规则。如果显示的是所有分类规则,包分类规则的总数目也会一并显示。

 

例如:

P3600#configure

P3600(CONFIG)#mask mask1 priority 2

P3600(CONFIG)#rule rule1 index 1 mask-priority 2

P3600(CONFIG)#show rule

Rule ID                                 :1

Rule Name                               :rule1

Mask Priority                           :2

S-VID                                   :0

S-PRI                                   :0

C-VID                                   :0

C-PRI                                   :0

EthernetType(Hex)                       :0000

IP Protocol Type                        :0

Source MAC                              :00:00:00:00:00:00

Destination MAC                         :00:00:00:00:00:00

Source or ARP Sender IP                 :0.0.0.0

Destination or ARP Target IP            :0.0.0.0

ToS                                     :0

DSCP                                    :0

Source TCP or UDP Port                  :0

Destination TCP or UDP Port             :0

ARP Sender MAC                          :00:00:00:00:00:00

ARP Target MAC                          :00:00:00:00:00:00

Egress Port                             :NULL

            Source Ipv6 IP           :00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00

Destination Ipv6 IP      :00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00

Traffic-class                           :0

Flow-lable                              :0

Pon-ont-vp                              :Any

P3600(CONFIG)#no rule rule1

P3600(CONFIG)#show rule

No Rule Entry now.

 

8.2.7  mirror

1. mirror-port

操作级别

Privileged

配置模式

MIRROR

语法

mirror-interface <mirror-port-list>

参数定义

mirror-port-list 以下端口之一:

xge x (x1-8)

is x/y (where x = 1-17, y = 1-8)

none。表示删除已配置的镜像端口。

说明

该命令用于将<mirror-port-list>设置为镜像端口。镜像端口用于监控接收端口的接收行为或发送端口的发送行为。

mirror-interface是一个端口索引。只有XGE口和上联IS口可以配置为镜像端口(PON板对应的IS口无法配置镜像端口)。

 

2. receive-interface

操作级别

Privileged

配置模式

MIRROR

语法

receive-interface  <ethernet-index>

参数定义

ethernet-index:以太网口为以下之一:

xge x(x1-8)

is x/y(x1-17y1-8)

trunk x(x1-6)

none。表示删除已配置的镜像端口。

说明

入口流量镜像端口。

 

3. transmit-interface

操作级别

Privileged

配置模式

MIRROR

语法

transmit-interface <ethernet-index>

参数定义

ethernet-index 以太网口为以下之一:

xge x(x1-8)

is x/y(x1-17y1-8)

trunk x(x1-6)

none。表示删除已配置的镜像端口。

说明

出口流量镜像端口。

入口和出口流量镜像端口可以是相同的端口。但是总带宽不可以超过镜像端口,否则镜像端口无法完全抓住被监控端口的数据流。

 

 

4. show mirror

操作级别

Normal

配置模式

CONFIG

语法

show mirror

说明

该命令用于显示是否配置镜像端口,如果配置了该端口是否有监控被镜像的端口。显示信息包括:

镜像端口:被镜像的接收端口被镜像的发送端口

 

例如:

P3600#configure

P3600(CONFIG)#mirror

P3600(CONFIG/MIRROR)#mirror-interface xge 1

P3600(CONFIG/MIRROR)#receive-interface xge 2

P3600(CONFIG/MIRROR)#show

Mirror port Rx Ports Tx Ports Remote Mirror

XGE 1        XGE 2     Null     Disable

P3600(CONFIG/MIRROR)#exit

P3600(CONFIG)#show mirror

Mirror port Rx Ports Tx Ports Remote Mirror

XGE 1        XGE 2     Null     Disable

 

8.2.8  gpon-profile ont-template

操作级别

Privileged

配置模式

CONFIG

语法

gpon-profile ont-template <prof-id>

参数定义

prof-id1-32

说明

该命令用于创建一个 ONT 模板。可以配置的命令请参考ONT配置和user-service命令。

 

8.2.9  gpon-profile ont-template <x> user-service

操作级别

Privileged

配置模式

CONFIG/ont-template-x

语法

user-service virtual-port <1-12> svid <1-4095> cvid <1-4095> new-svid <1-4094> [new-cvid <1-4095>] [cos <copy|replace>] [new-cos <0-7>]

参数定义

virtual-port:虚拟端口。

<1-12>:虚拟端口号为1-12可以范围表示,例如1-24svid:用户外层VLAN id

<1-4095>4095意为任意。

cvid:用户内层VLAN id

<1-4095>4095意为任意。

new-svid:新SVID

<1-4094>:范围为1-4094

new-cvid:新用户VLAN id

<1-4095>4095意为无。

cosCOS

<copy/replace>cos行为,复制/替换。

new-cosnew cos值。

<0-7>:范围为0-7

说明

该命令用于配置 ONT 模板的VLAN转换条目。

 

8.2.10  no gpon-profile ont-template

操作级别

Privileged

配置模式

CONFIG

语法

no gpon-profile ont-template <prof-id>

说明

该命令用于删除一个ONT 模板。

 

8.3  二层桥接命令

8.3.1  agingtimer

操作级别

Privileged

配置模式

L2-bridge

语法

agingtimer <10..600>

参数定义

<10..600>:以秒计的老化时间,范围:10 ~ 600s

说明

该命令设置二层转换老化时间,单位为秒。缺省值为300秒。老化时间就是指收到来自某个MAC地址的数据包后,该MAC地址在转发数据库中保留的时间。转发数据库中的内容会定期超时清理掉,以免它们长期保存在数据库中。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#bridge

P3600(CONFIG/L2/BRIDGE)#agingtimer 600

P3600(CONFIG/L2/BRIDGE)#show fdb

Agingtimer                    :600

Total MAC Count               :1

S-VID     MAC Address        Forward Port   Type    Virtual Port   Gem Port

---------------------------------------------------------------------------------------

1         00:56:59:c0:30:26   XGE 2         Dynamic

TOTAL Count: 1

P3600(CONFIG/L2/BRIDGE)#

 

8.3.2  fdb

操作级别

Privileged

配置模式

L2-bridge

语法

fdb mac <xxxxxxxxxxxx> vid <1-4094> interface <xge|is|trunk> <ethernet-index>

参数定义

macMAC地址。

<xxxxxxxxxxxx>MAC地址。

vidVLAN ID

<1-094>:有效的Valid VLAN ID范围

interface:桥接端口索引号。

<xge|is|trunk>:端口类型。

<ethernet-index>:下列以太端口中的一个:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x围为1-6)

说明

该命令在fdb上增加一个入口。

 

8.3.3  no fdb

操作级别

Privileged

配置模式

L2-bridge

语法

no fdb [mac <xxxxxxxxxxxx>] [vid <1-4094>]

说明

该命令从FDB上删除入口。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#bridge

P3600(CONFIG/L2/BRIDGE)#fdb mac 00:11:00:11:00:11 vid 2001 interface xge 2

P3600(CONFIG/L2/BRIDGE)#show fdb

GX3500-S2(CONFIG/L2/BRIDGE)#show fdb

Agingtimer                    :300

Total MAC Count               :4

S-VID     MAC Address        Forward Port   Type    Virtual Port   Gem Port

---------------------------------------------------------------------------------------

2001      00:11:00:11:00:11   Unknown      Static

800       00:00:00:00:06:01   IS 2/1       Dynamic     2/2/1/1      256

800       00:00:00:00:01:06   XGE 3        Dynamic

1         00:32:45:3d:2a:55   XGE 4        Dynamic

TOTAL Count: 4

 

P3600(CONFIG/L2/BRIDGE)#no fdb mac 00:11:00:11:00:11 vid 2001

Are you sure you want to delete all FDB entries for this MAC and VLAN (y/n)?

y

P3600(CONFIG/L2/BRIDGE)#show fdb

Agingtimer                    :300

Total MAC Count               :3

S-VID     MAC Address        Forward Port   Type     Virtual Port   Gem Port

---------------------------------------------------------------------------------------

800       00:00:00:00:06:01   IS 2/1       Dynamic   2/2/1/1        256

800       00:00:00:00:01:06   XGE 3        Dynamic

1         00:32:45:3d:2a:55   XGE 4        Dynamic

TOTAL Count: 3

 

8.3.4  flush fdb

操作级别

Privileged

配置模式

L2-bridge

 

语法

flush fdb [vid <1-4094>] [interface <xge|is|trunk> <interface-index>]

 

说明

该命令删除所有动态FDB二层输入项。如果没有说明VLAN 参数,则删除所有的项。

 

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#bridge

P3600(CONFIG/L2/BRIDGE)#flush fdb

"Are you sure you want to delete all dynamic forwarding database entries (y/n)?"

y

 

8.3.5  show fdb

操作级别

Normal

配置模式

L2-bridge

语法

show fdb [type <dynamic|static>] [vid <1-4094>] [interface <xge|is|trunk> <ethernet-index>]

说明

该命令显示MAC地址表

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#bridge

P3600(L2/BRIDGE)#show fdb

Agingtimer                    :300

Total MAC Count               :1

S-VID     MAC Address         Forward Port   Type    Virtual Port   Gem Port

---------------------------------------------------------------------------------------

1         00:56:59:c0:30:26   XGE 2         Dynamic

TOTAL Count: 1

 

8.3.6  interface-pm

操作级别

Privileged

配置模式

L2-bridge

语法

interface-pm  interface<xge|is|trunk> <ethernet-index> <enable|disable>

参数定义

<xge|is|trunk>:端口类型。

<ethernet-index>:下列以太端口中的一个:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x围为1-6)

<enable>:开始收集性能数据。

<disable>:停止收集性能数据。

说明

开启/关闭收集网桥接口5分钟,15分钟和24小时性能数据。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#bridge

P3600(CONFIG/L2/BRIDGE)#interface-pm interface  xge 4 enable

P3600(CONFIG/L2/BRIDGE)#

 

8.3.7  show interface-pm-15min

操作级别

Normal

配置模式

L2-bridge

语法

show interface-pm-15min interface [<xge|is|trunk> <ethernet-index>]

参数定义

interface-pm-15min :显示网桥接口15分钟的所有性能数据, 包括:

网桥接口端口号(IS1/1..IS17/8..., GE1..GE8, trunk1..trunk6)

每个性能数据记录的结束时间 End time

已用时间(Elapsed time

接收的总字节(Rx total octets

接收的总帧数(Rx total frames

接收的组播帧(Rx multicast frames

接收的广播帧(Rx broadcast frames

接收丢弃(Rx discards

发送总字节(Tx total  octets

发送总帧数(Tx total frames

发送的组播帧(Tx multicast frames

发送的广播帧(Tx broadcast frames

接收的64字节(Rx 64 octets

接收的65~127字节(Rx 65 to 127 Octets

接收的128~255字节(Rx128 to 255 Octets

接收的256~511字节(Rx 256 to 511 Octets

接收的512~1023字节(Rx 512 to 1023 Octets

接收的1024~1518字节(Rx 1024 to 1518 Octets

接收的Jumbo帧(Rx Jumbo Frames

发送的64字节(Tx 64 octets

发送的65~127字节(Tx 65 to 127 Octets

发送的128~255字节(Tx128 to 255 Octets

发送的256~511字节(Tx 256 to 511 Octets

发送的512~1023字节(Tx 512 to 1023 Octets

发送的1024~1518字节(Tx 1024 to 1518 Octets

 发送的Jumbo帧(Tx Jumbo Frames

<xge|is|trunk>:端口类型。

<ethernet-index>:下列以太端口中的一个:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x围为1-6)

说明

显示收集的桥接端口所有的15分钟性能数据。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(BRIDGE)#show interface-pm-15min interface xge 1

  Current List for           :XGE 1

  Bridge Port Index          :XGE 1

  Elapsed time               :00:00:17

  Rx total octets            :0

  Rx total frames            :0

  Rx multicast frames        :0

  Rx broadcast frames        :0

  Rx discards                :0

  Tx total octets            :0

  Tx total frames            :0

  Tx multicast frames        :0

  Tx broadcast frames        :0

  Rx 64 octets               :0

  Rx 65 to 127 Octets        :0

  Rx128 to 255 Octets        :0

  Rx 256 to 511 Octets       :0

  Rx 512 to 1023 Octets      :0

  Rx 1024 to 1518 Octets     :0

  Rx  Jumbo Frames           :0

  Tx 64 octets               :0

  Tx 65 to 127 Octets        :0

  Tx128 to 255 Octets        :0

  Tx 256 to 511 Octets       :0

  Tx 512 to 1023 Octets      :0

  Tx 1024 to 1518 Octets     :0

  Tx  Jumbo Frames           :0

 

  History List for           :XGE 1

 

  Bridge Port Index          :XGE 1

  End time                   :2022/11/12, 14:30:08

  Rx total octets            :0

  Rx total frames            :0

  Rx multicast frames        :0

  Rx broadcast frames        :0

  Rx discards                :0

  Tx total octets            :512

  Tx total frames            :8

  Tx multicast frames        :0

  Tx broadcast frames        :8

  Rx 64 octets               :0

  Rx 65 to 127 Octets        :0

  Rx128 to 255 Octets        :0

  Rx 256 to 511 Octets       :0

  Rx 512 to 1023 Octets      :0

  Rx 1024 to 1518 Octets     :0

  Rx  Jumbo Frames           :0

  Tx 64 octets               :8

  Tx 65 to 127 Octets        :0

  Tx128 to 255 Octets        :0

  Tx 256 to 511 Octets       :0

  Tx 512 to 1023 Octets      :0

  Tx 1024 to 1518 Octets     :0

  Tx  Jumbo Frames           :0

 

8.3.8  show interface-pm-24hour

操作级别

Normal

配置模式

L2-bridge

语法

show interface-pm-24hour interface [<xge|is|trunk> <ethernet-index>]

参数定义

interface-pm-24hour :显示网桥接口24小时的所有性能数据, 包括:

网桥接口端口号(IS1/1..IS17/8..., GE1..GE8, trunk1..trunk6)

每个性能数据记录的结束时间 End time

已用时间(Elapsed time

接收的总字节(Rx total octets

 接收的总帧数(Rx total frames

接收的组播帧(Rx multicast frames

接收的广播帧(Rx broadcast frames

接收丢弃(Rx discards

发送总字节(Tx total  octets

发送总帧数(Tx total frames

发送的组播帧(Tx multicast frames

发送的广播帧(Tx broadcast frames

 接收的64字节(Rx 64 octets

接收的65~127字节(Rx 65 to 127 Octets

接收的128~255字节(Rx128 to 255Octets

接收的256~511字节(Rx 256 to 511 Octets

接收的512~1023字节(Rx 512 to 1023 Octets

接收的1024~1518字节(Rx 1024 to 1518 Octets

接收的Jumbo帧(Rx Jumbo Frames

发送的64字节(Tx 64 octets

发送的65~127字节(Tx 65 to 127 Octets

发送的128~255字节(Tx128 to 255 Octets

发送的256~511字节(Tx 256 to 511 Octets

发送的512~1023字节(Tx 512 to 1023 Octets

发送的1024~1518字节(Tx 1024 to 1518 Octets

发送的Jumbo帧(Tx Jumbo Frames

<xge|is|trunk>:端口类型。

<ethernet-index>:下列以太端口中的一个:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x范围为1-6)

说明

显示收集的桥接端口所有的24小时性能数据。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#bridge

P3600(CONFIG/L2/BRIDGE)#show interface-pm-24 xge 1

  Current List for           :XGE 1

 

  Bridge Port Index          :XGE 1

  Elapsed time               :03:00:22

  Rx total octets            :0

  Rx total frames            :0

  Rx multicast frames        :0

  Rx broadcast frames        :0

  Rx discards                :0

  Tx total octets            :0

  Tx total frames            :0

  Tx multicast frames        :0

  Tx broadcast frames        :0

  Rx 64 octets               :0

  Rx 65 to 127 Octets        :0

  Rx128 to 255 Octets        :0

  Rx 256 to 511 Octets       :0

  Rx 512 to 1023 Octets      :0

  Rx 1024 to 1518 Octets     :0

  Rx  Jumbo Frames           :0

  Tx 64 octets               :0

  Tx 65 to 127 Octets        :0

  Tx128 to 255 Octets        :0

  Tx 256 to 511 Octets       :0

  Tx 512 to 1023 Octets      :0

  Tx 1024 to 1518 Octets     :0

  Tx  Jumbo Frames           :0

 

  History List for           :XGE 1

 

  Bridge Port Index          :XGE 1

  End time                   :1970/01/01, 00:00:04

  Rx total octets            :700060925

  Rx total frames            :4060894

  Rx multicast frames        :1216

  Rx broadcast frames        :55303

  Rx discards                :0

  Tx total octets            :24224027

  Tx total frames            :91779

  Tx multicast frames        :42334

  Tx broadcast frames        :34481

  Rx 64 octets               :61232

  Rx 65 to 127 Octets        :3880

  Rx128 to 255 Octets        :3994854

  Rx 256 to 511 Octets       :367

  Rx 512 to 1023 Octets      :308

  Rx 1024 to 1518 Octets     :253

  Rx  Jumbo Frames           :0

  Tx 64 octets               :32409

  Tx 65 to 127 Octets        :30150

  Tx128 to 255 Octets        :13311

  Tx 256 to 511 Octets       :3763

  Tx 512 to 1023 Octets      :3344

  Tx 1024 to 1518 Octets     :8802

  Tx  Jumbo Frames           :0                                                 P3600(CONFIG/L2/BRIDGE)#

 

8.3.9  show statistics

操作级别

Normal

配置模式

L2-bridge

语法

show  statistics [<xge|is|trunk> <ethernet-index>]

参数定义

<xge|is|trunk>:端口类型。

<ethernet-index>:下列以太端口中的一个:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x范围为1-6)

说明

该命令显示GE口数据包数据。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#bridge

P3600(CONFIG/L2/BRIDGE)#show statistics xge 1

Port                                    :XGE 1

Rx total octets                         :29952000

Rx total frames                         :234000

Rx multicast frames                     :0

Rx broadcast frames                     :0

Rx discards                             :0

Rx puase frames                         :0

Rx control frames                       :0

Tx total octets                         :593788880

Tx total frames                         :4639075

Tx multicast frames                     :0

Tx broadcast frames                     :226

Tx discards                             :0

Tx puase frames                         :0

Tx control frames                       :0

Rx 64 octets                            :0

Rx 65 to127 octets                      :0

Rx 128 to255 octets                     :234000

Rx 256 to 511 octets                    :0

Rx 512 to 1023 octets                   :0

Rx 1024 to 1518 octets                  :0

Rx Jumbo frames                         :0

Tx 64 octets                            :226

Tx 65 to127 octets                      :0

Tx 128 to255 octets                     :4638847

Tx 256 to 511 octets                    :0

Tx 512 to 1023 octets                   :2

Tx 1024 to 1518 octets                  :0

Tx Jumbo frames                         :0

Rx undersize frames                     :0

Rx Fragments                            :0

Rx FCS Error Frames                     :0

Rx Alignment Error Frames               :0

Rx Oversize Frames                      :0

Rx Jabber Frames                        :0

Rx Code Errors                          :0

Tx Deferrals                            :0

Tx Excessive Deferrals                  :0

Tx Single Collisions                    :0

Tx Multiple Collisions                  :0

Tx Late Collisions                      :0

 

8.4  二层以太网环路检测命令

CSM二层以太网环路检测命令用于配置环路检测功能。

8.4.1  direction

操作级别

Privileged

配置模式

L2-LOOP-DETECT

语法

direction <uplink|downlink>

参数定义

<uplink|downlink>:配置环路检测的方向。

说明

该命令配置环路检测的方向。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#loop-detect

P3600(CONFIG/L2/LOOP-DETECT)# direction downlink

 

8.4.2  disable

操作级别

Privileged

配置模式

L2-LOOP-DETECT

语法

disable

说明

该命令关闭环路检测功能。

 

8.4.3  enable

操作级别

Privileged

配置模式

L2-LOOP-DETECT

语法

enable

说明

该命令打开环路检测功能。

 

8.4.4  ether-type

操作级别

Privileged

配置模式

L2-LOOP-DETECT

语法

ether-type <0x9300-0xffff.>

参数定义

<0x600-0xffff> 环网检测使用的以太网类型类型。缺省0x9900

说明

该命令用于设置环网检测使用的以太网类型。

 

例如:

P3600(CONFIG/L2/LOOP-DETECT)# ether-type 0x9999

 

8.4.5  interval

操作级别

Privileged

配置模式

L2-LOOP-DETECT

语法

interval <10-86400>

参数定义

<10-86400> 环网检测周期,单位秒。缺省60秒。

说明

该命令用于设置环网检测周期。

 

8.4.6  recover-time

操作级别

Privileged

配置模式

L2-LOOP-DETECT

语法

recover-time <0-1440>

参数定义

<0-1440> 检测到有环路的ONT被关闭后,自动恢复的周期,单位分钟。缺省1440分钟。

说明

该命令用于设置环网检测ONT自动恢复的周期。

 

8.4.7  show

操作级别

Normal

配置模式

L2-LOOP-DETECT

语法

show

说明

该命令用于显示环网检测参数及状态。

 

例如:

P3600(CONFIG/L2/LOOP-DETECT)#show

Loop detect switch status       : Enable

Loop detect transmit Interval   : 60 Seconds

Loop detect ether type          : 0x9999

Loop detect direction           : Downlink

Loop detect recover time        : 1440 Minutes

 

Active CSM port status of Loop detect:

Entity Type  Entity Ins    Last Report Time       Status       Times

-------------+-------------+----------------------+------------+----

 

8.5  二层端口级命令

CSM 二层端口级命令用于配置端口信息。

8.5.1  disable

操作级别

Privileged

配置模式

L2-port

语法

disable interface<xge|is|trunk> <ethernet-list>

参数定义

<xge|is|trunk>:端口类型。

<ethernet-list>:显示以太网列表。下列的一个或多个以太网口:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x范围为1-6)

使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。

 

说明

该命令将一个或多个以太口的管理状态设为“锁定”。该命令只能用于设置外部以太口。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#port

P3600(CONFIG/L2/PORT)#disable  interface xge 1

P3600(CONFIG/L2/PORT)#show port interface xge 1

Port                Admin  Oper CfgSpeed CfgDup CfgFlow ActSpeed ActDup  ActFlow Orient     Fec

XGE 1               Lock   Down Auto     Auto   On      10000M   Full    On      Network            Disable

P3600(CONFIG/L2/PORT)#

 

8.5.2  enable

操作级别

Privileged

配置模式

L2-port

语法

enable interface<xge|is|trunk> <ethernet-list>

参数定义

<xge|is|trunk>:端口类型。

<ethernet-list>:显示以太网列表。下列的一个或多个以太网口:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x范围为1-6)

使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。

 

说明

该命令将一个或多个以太口的管理状态设为“解锁”。该命令只能用于设置外部以太口。用户不能对处于“解锁”状态的运行任何管理任务。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#port

P3600(CONFIG/L2/PORT)#enable interface xge 1

P3600(CONFIG/L2/PORT)#show port interface xge 1

Port  Admin  Oper CfgSpeed CfgDup CfgFlow ActSpeed ActDup  ActFlow Orient     Fec

XGE 1 Unlock Up   Auto     Auto   On      10000M   Full    On      Network  Disable

 

P3600(CONFIG/L2/PORT)#

 

8.5.3  show port

操作级别

Normal

配置模式

L2-port

语法

show port interface[<xge|is|trunk> <ethernet-list>]

参数定义

<xge|is|trunk>:端口类型。

<ethernet-list>:显示以太网列表。下列的一个或多个以太网口:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x范围为1-6)

使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。

说明

该命令显示端口信息。如果没有指定端口列表便显示所有端口的信息。对于每个端口,显示的信息有:

端口号

管理状态(锁定/解锁) 操作状态 (up/down) 方向 (网络/用户)

设定的速度/全双工/流控制实际速度/全双工/流控制

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#port

P3600(CONFIG/L2/PORT)#show port interface xge 1

Port  Admin  Oper CfgSpeed CfgDup CfgFlow ActSpeed ActDup  ActFlow Orient     Fec

XGE 1 Unlock Up   Auto     Auto   On      10000M   Full    On      Network    Disable

P3600(CONFIG/L2/PORT)#

 

8.5.4  show transceiver

操作级别

Normal

配置模式

L2-port

语法

show transceiver [interface<xge|trunk> <ethernet-list>]

参数定义

<xge|is|trunk>:端口类型。

<ethernet-list>:显示以太网列表。下列的一个或多个以太网口:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x范围为1-6)

使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。

说明

该命令用于显示光模块信息。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#port

P3600(CONFIG/L2/PORT)#show transceiver interface xge 1

XGE1:

Transceiver Type              : SFP+

Wave Length(nm)               : 850

Vendor Name                   : HG GENUINE

Vendor Part Number            : MTRS-01X11-H3C

Vendor Serial Number          : HA20230801359

Manufacturing Date            : 20200606

Digital Diagnostic Monitor    : YES

Power Feed Voltage(V)         : 3.25

Optical Launch Power(dBm)     : -2.2944

Laser Bias Current(mA)        : 6.494

Temperature(Centigrade)       : 37.68

Optical Received Power(dBm)   : -2.4680

 

P3600(CONFIG/L2/PORT)#

 

8.5.5  speed

操作级别

Privileged

配置模式

L2-port

语法

speed interface <xge|is> <ethernet-list>

<auto|1GEfoff|1GEfon|10GEfoff|10GEfon|25G>

参数定义

<xge|is|trunk>:端口类型。

<ethernet-list>:显示以太网列表。下列的一个或多个以太网口:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-7y范围为1-8)

trunk x (其中x范围为1-6)

使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。

<auto>:自动协商以太口设置1GEfoff 1G半双工无流控制

1GEfon 1G半双工带流控制

10GEfoff 10G全双工无流控制

10GEfon 10 G全双工带流控制

25G 25G半双工无流控制

说明

该命令设置一个或多个以太口的端口速度/双工模式。对于内部端口不能进行设置。

速度的缺省值为“自动”。只能对外部端口进行设置。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#port

P3600(CONFIG/L2/PORT)#speed interface xge 1 10GEfoff

 

8.5.6  fec

操作级别

Privileged

配置模式

L2-port

语法

fec <FEC code> interface<xge|is> <ethernet-list>

参数定义

<FEC code>FEC编码类型。RS-528BASE-R

<xge|is>:端口类型。

<ethernet-list>:显示以太网列表。下列的一个或多个以太网口:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

使用“-”指定连续的索引号(比如:is1/ 2-4)。使用“,”分隔不连续的索引号(比如:is1/ 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。

说明

该命令将一个或多个以太口设置FEC编码格式。

 

例如:

P3600(CONFIG/L2/PORT)#fec RS-528 interface is 3/1

 

8.5.7  disable

操作级别

Privileged

配置模式

L2-port

语法

fec disable interface<xge|is> <ethernet-list>

参数定义

<xge|is>:端口类型。

<ethernet-list>:显示以太网列表。下列的一个或多个以太网口:

is x/y (其中x范围为1-17y范围为1-8)

使用“-”指定连续的索引号(比如:is1/ 2-4)。使用“,”分隔不连续的索引号(比如:is1/ 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。

说明

该命令将一个或多个以太口的FEC设为disable

 

例如:

P3600(CONFIG/L2/PORT)#fec disable interface is 3/1

 

8.5.8  enable

操作级别

Privileged

配置模式

L2-port

语法

fec enable interface<is> <ethernet-list>

参数定义

<is>:端口类型。

<ethernet-list>:显示以太网列表。下列的一个或多个以太网口:

is x/y (其中x范围为1-17y范围为1-8)

使用“-”指定连续的索引号(比如:is1/ 2-4)。使用“,”分隔不连续的索引号(比如:is1/ 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。

说明

该命令将一个或多个以太口的FEC设为enable

 

例如:

P3600(CONFIG/L2/PORT)#fec enable interface is 3/1

 

8.6  二层VLAN命令

CSM 二层 VLAN 命令用于配置 VLAN。

8.6.1  interface

操作级别

Privileged

配置模式

L2-VLAN

语法

interface <xge|is|trunk> <ethernet-list> vid <1..4094> <tag|untag>

参数定义

<xge|is|trunk>:端口类型。

<ethernet-list>:显示以太网列表。下列的一个或多个以太网口:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x范围为1-6)

使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。

<1..4094>VLAN ID

<tag>:端口带标签。

<untag>:端口不带标签。

说明

该命令用于将桥接端口添加到已存在的VLAN里。

在双标签模式下,只有面向网络的接口才可以分配到服务供应商VLAN里,只有面向用户的接口才可以分配到用户VLAN里。但在标签模式下,内部端口不可以无标签添加到VLAN里。

 

8.6.2  no interface

操作级别

Privileged

配置模式

L2-VLAN

语法

no interface <xge|is|trunk> <ethernet-list> vid <1..4094 >

参数定义

<xge|istrunk>:端口类型。

<ethernet-list>:显示以太网列表。下列的一个或多个以太网口:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x范围为1-6)

使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。

<1..4094>VLAN ID

说明

该命令从VLAN里删除以太口。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#vlan

P3600(CONFIG/L2/VLAN)#interface xge 1 vid 100 tag

 

P3600(CONFIG/L2/VLAN)#show 100

 

  vlan ingress check         :enable

  vlan user-isolation        :enable

  S-Vlan TPID                :0x8100

  C-Vlan TPID                :0x8100

 

  vlan id                    :100

  vlan name                  :100

  vlan egress port           :XGE 1

  vlan untag port            :

  vlan mode                  :Full Bridge

 

P3600(CONFIG/L2/VLAN)#show 100

 

  vlan ingress check         :enable

  vlan user-isolation        :enable

  S-Vlan TPID                :0x8100

  C-Vlan TPID                :0x8100

 

  vlan id                    :100

  vlan name                  :100

  vlan egress port           :

  vlan untag port            :

  vlan mode                  :Full Bridge

 

P3600(CONFIG/L2/VLAN)#

 

8.6.3  translate

操作级别

Privileged

配置模式

L2-VLAN

语法

translate slot <1-17> port <1-16> ont <1-256> virtual-port <1-16> svid <1-4095> cvid <1-4095> new-svid <1-4094> [new-cvid <1-4095>] [cos <copy|replace>] [new-cos <0-7>][ether-type <0x0001 - 0xFFFF>

参数定义

slotslot id

<1-17>槽位号范围,P3617: <1-17>;  P3608: <1-8>;  P3602: <1-2>可以范围表示,例如1-24。但是必须是PON卡。

portPON端口id

<1-16>:范围为1-16。可以范围表示,例如1-24

ontONT id

<1-256>:范围为1-256。可以范围表示,例如1-24GPFB最大为128

virtual-port:虚拟端口。

<1-16>:虚拟端口号为1-16可以范围表示,例如1-24svid:用户外层VLAN id

<1-4095>4095意为任意。

cvid:用户内层VLAN id

<1-4095>4095意为任意。

new-svid:新SVID

<1-4094>:范围为1-4094

new-cvid:新用户VLAN id

<1-4095>4095意为无。

cosCOS

<copy/replace>cos行为,复制/替换。

new-cosnew cos值。

<0-7>:范围为0-7

ether-type:匹配的以太网类型<0x0001 - 0xFFFF>

说明

该功能创建VLAN转换条目。

 

8.6.4  no translate

操作级别

Privileged

配置模式

L2-VLAN

语法

no translate slot <1-17> [port <1-16>] [ont <1-256>] [virtual-port <1-16>] [svid <1-4095>] [cvid <1-4095>] [ether-type <0x0001 - 0xFFFF>

说明

该命令删除VLAN转换配置。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#vlan

P3600(CONFIG/L2/VLAN)#translate slot 1 port 1 ont 1 virtual-port 1 svid 1 new-svid 1

P3600(CONFIG/L2/VLAN)#translate slot 1 port 1 ont 2 virtual-port 1 svid 1 new-svid 1

P3600(CONFIG/L2/VLAN)#brief-show vlan-translate

VLAN Translation Entry:

slot  port  ont   vport svid cvid new-svid  new-cvid  cos new-cos ether-type

--------------------------------------------------------------------------

1     1     1     1     1    4095   1         4095      copy  8

1     1     2     1     1    4095   1         4095      copy  8

P3600(CONFIG/L2/VLAN)#no translate slot 1 port 1 ont 2 virtual-port 1 svid 1

 

P3600(CONFIG/L2/VLAN)#brief-show vlan-translate

VLAN Translation Entry:

slot  port  ont   vport svid cvid new-svid  new-cvid  cos new-cos ether-type

--------------------------------------------------------------------------

1     1     1     1     1    4095   1         4095      copy  8

 

P3600(CONFIG/L2/VLAN)#

 

8.6.5  usr-isolation

操作级别

Privileged

配置模式

L2-VLAN

语法

usr-isolation <enable|disable> vlan-id <1..4094>

参数定义

<enable>:允许用户隔离。

<disable>:拒绝用户隔离。

vlan-id: 指定的VLAN id

<1-4094>:范围为1-4094

说明

该命令用户启用或禁止一个用户接口的所有VLAN的用户隔离功能。用户隔离可防止任何用户接口间的切换。当启用用户隔离功能时,用户接口接收到发往其它用户口的数据帧时会将该帧丢弃掉。用户隔离功能缺省为开启。

 

例如:

P3600(CONFIG/L2/VLAN)#show 101

 

  vlan ingress check         :enable

  S-Vlan TPID                :0x8100

  C-Vlan TPID                :0x8100

 

  vlan id                    :101

  vlan name                  :101

  vlan egress port           :XGE 1

  vlan untag port            :

  vlan mode                  :Bridge

  vlan user-isolation        :enable

 

P3600(CONFIG/L2/VLAN)#user-isolation disable vlan-id 101

 

P3600(CONFIG/L2/VLAN)#show 101

 

  vlan ingress check         :enable

  S-Vlan TPID                :0x8100

  C-Vlan TPID                :0x8100

 

  vlan id                    :101

  vlan name                  :101

  vlan egress port           :XGE 1

  vlan untag port            :

  vlan mode                  :Bridge

  vlan user-isolation        :disable

 

8.6.6  vid

操作级别

Privileged

配置模式

L2-VLAN

语法

vid <1..4094> name <vlan-name> [mode <bridge|routed>]

参数定义

<1..4094>VLAN ID

<vlan-name>20个字符以内的VLAN名称。

<bridge>:全网桥模式。缺省模式

<routed>:路由模式。

说明

该命令用于创建一个VLAN或修改已有VLAN的名称。

 

8.6.7  no vid

操作级别

Privileged

配置模式

CSM-VLAN

语法

no vid <1..4094>

参数定义

<1..4094> VLAN ID

 

说明

该命令用于删除一个已创建的VLAN。删除VLAN之前,需要将VLAN里的所有以太口和相关的vlan-translate配置都移除。

 

8.6.8  show

操作级别

Normal

配置模式

L2-VLAN

语法

show [<1..4094>][l2-proxy-arp][stacking ][vlan-option]

说明

该命令显示VLAN相关的信息。如果没有指定VLAN ID号, 将显示所有配置的VLAN信息。

对于全局VLAN设置,显示的信息:

l2-proxy-arp:L2 ARP代理的配置统计

stacking :显示VLAN堆叠配置。

vlan-option:显示DHCPPPPOE选项配置。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#vlan

P3600(CONFIG/L2/VLAN)#vid 200 name VLAN200 mode bridge

P3600(CONFIG/L2/VLAN)#show

 

  vlan ingress check         :enable

  S-Vlan TPID                :0x8100

  C-Vlan TPID                :0x8100

 

  vlan id                    :1

  vlan name                  :DEFAULT_VLAN

  vlan egress port           :IS 1/1,IS 1/2,IS 1/3,IS 1/4,IS 2/1,IS 2/2,IS 2/3,I

                              S 2/4,IS 3/1,IS 3/2,IS 3/3,IS 3/4,IS 3/5,IS 3/6,IS

                               3/7,IS 3/8,IS 4/1,IS 4/2,IS 4/3,IS 4/4,IS 4/5,IS

                              4/6,IS 4/7,IS 4/8,IS 5/1,IS 5/2,IS 5/3,IS 5/4,IS 5

                              /5,IS 5/6,IS 5/7,IS 5/8,IS 6/1,IS 6/2,IS 6/3,IS 6/

                              4,IS 6/5,IS 6/6,IS 6/7,IS 6/8,IS 7/1,IS 7/2,IS 7/3

                              ,IS 7/4,IS 7/5,IS 7/6,IS 7/7,IS 7/8,IS 8/1,IS 8/2,

                              IS 8/3,IS 8/4,IS 8/5,IS 8/6,IS 8/7,IS 8/8,IS 9/1,I

                              S 9/2,IS 9/3,IS 9/4,IS 9/5,IS 9/6,IS 9/7,IS 9/8,IS

                               10/1,IS 10/2,IS 10/3,IS 10/4,IS 10/5,IS 10/6,IS 1

                              0/7,IS 10/8,IS 11/1,IS 11/2,IS 11/3,IS 11/4,IS 11/

                              5,IS 11/6,IS 11/7,IS 11/8,IS 12/1,IS 12/2,IS 12/3,

                              IS 12/4,IS 12/5,IS 12/6,IS 12/7,IS 12/8,IS 13/1,IS

                               13/2,IS 13/3,IS 13/4,IS 13/5,IS 13/6,IS 13/7,IS 1

                              3/8,IS 14/1,IS 14/2,IS 14/3,IS 14/4,IS 14/5,IS 14/

                              6,IS 14/7,IS 14/8,IS 15/1,IS 15/2,IS 15/3,IS 15/4,

                              IS 15/5,IS 15/6,IS 15/7,IS 15/8,IS 16/1,IS 16/2,IS

                               16/3,IS 16/4,IS 17/1,IS 17/2,IS 17/3,IS 17/4,XGE

                              1,XGE 2,XGE 3,XGE 4,XGE 5,XGE 6,XGE 7,XGE 8

  vlan untag port            :XGE 1,XGE 2,XGE 3,XGE 4,XGE 5,XGE 6,XGE 7,XGE 8

  vlan mode                  :Bridge

  vlan user-isolation        :enable

 

  vlan id                    :200

  vlan name                  :VLAN200

  vlan egress port           :

  vlan untag port            :

  vlan mode                  :Bridge

  vlan user-isolation        :enable

 

P3600(CONFIG/L2/VLAN)#no vid 200

P3600(CONFIG/L2/VLAN)#show

 

  vlan ingress check         :enable

  S-Vlan TPID                :0x8100

  C-Vlan TPID                :0x8100

 

  vlan id                    :1

  vlan name                  :DEFAULT_VLAN

  vlan egress port           :IS 1/1,IS 1/2,IS 1/3,IS 1/4,IS 2/1,IS 2/2,IS 2/3,I

                              S 2/4,IS 3/1,IS 3/2,IS 3/3,IS 3/4,IS 3/5,IS 3/6,IS

                               3/7,IS 3/8,IS 4/1,IS 4/2,IS 4/3,IS 4/4,IS 4/5,IS

                              4/6,IS 4/7,IS 4/8,IS 5/1,IS 5/2,IS 5/3,IS 5/4,IS 5

                              /5,IS 5/6,IS 5/7,IS 5/8,IS 6/1,IS 6/2,IS 6/3,IS 6/

                              4,IS 6/5,IS 6/6,IS 6/7,IS 6/8,IS 7/1,IS 7/2,IS 7/3

                              ,IS 7/4,IS 7/5,IS 7/6,IS 7/7,IS 7/8,IS 8/1,IS 8/2,

                              IS 8/3,IS 8/4,IS 8/5,IS 8/6,IS 8/7,IS 8/8,IS 9/1,I

                              S 9/2,IS 9/3,IS 9/4,IS 9/5,IS 9/6,IS 9/7,IS 9/8,IS

                               10/1,IS 10/2,IS 10/3,IS 10/4,IS 10/5,IS 10/6,IS 1

                              0/7,IS 10/8,IS 11/1,IS 11/2,IS 11/3,IS 11/4,IS 11/

                              5,IS 11/6,IS 11/7,IS 11/8,IS 12/1,IS 12/2,IS 12/3,

                              IS 12/4,IS 12/5,IS 12/6,IS 12/7,IS 12/8,IS 13/1,IS

                               13/2,IS 13/3,IS 13/4,IS 13/5,IS 13/6,IS 13/7,IS 1

                              3/8,IS 14/1,IS 14/2,IS 14/3,IS 14/4,IS 14/5,IS 14/

                              6,IS 14/7,IS 14/8,IS 15/1,IS 15/2,IS 15/3,IS 15/4,

                              IS 15/5,IS 15/6,IS 15/7,IS 15/8,IS 16/1,IS 16/2,IS

                               16/3,IS 16/4,IS 17/1,IS 17/2,IS 17/3,IS 17/4,XGE

                              1,XGE 2,XGE 3,XGE 4,XGE 5,XGE 6,XGE 7,XGE 8

  vlan untag port            :XGE 1,XGE 2,XGE 3,XGE 4,XGE 5,XGE 6,XGE 7,XGE 8

  vlan mode                  :Bridge

  vlan user-isolation        :enable

 

8.7  二层RSTP命令

CSM 二层 RSTP(快速生成树协议)用于配置生成树。

8.7.1  disable

操作级别

Privileged

配置模式

L2-RSTP

语法

disable

说明

该命令禁止生成树算法。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#rstp

P3600(CONFIG/L2/RSTP)#disable

P3600(L2/RSTP)#show rstp

RSTP Status         :   Disabled

Switch Priority     :   32768

Switch Mac Address  :   00:56:59:c0:30:26

Desig Root Priority :   0

Desig Root Mac Addr :   00:00:00:00:00:00

Root Port                           :   0

Root Path Cost                      :   0

Max Age                             :   0

Hello Time                          :   0

Forward Delay                       :   0

Configured Max Age                  :   20

Configured Hello Time               :   2

Configured Forward Delay            :   20

Time Since Last Topology Change     :   0 days 00:00:00

Total Number of Topology Changes    :   0

 

P3600(CONFIG/L2/RSTP)#

 

8.7.2  enable

操作级别

Privileged

配置模式

L2-RSTP

语法

enable

说明

该命令启用生成树算法。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#rstp

P3600(CONFIG/L2/RSTP)#enable

P3600(CONFIG/L2/RSTP)#show rstp

RSTP Status         :   Enabled

Switch Priority     :   32768

Switch Mac Address  :   00:56:59:c0:30:26

Desig Root Priority :   32768

Desig Root Mac Addr :   00:56:59:c0:30:26

Root Port                           :   N/A

Root Path Cost                      :   0

Max Age                             :   20

Hello Time                          :   2

Forward Delay                       :   15

Configured Max Age                  :   20

Configured Hello Time               :   2

Configured Forward Delay            :   15

Time Since Last Topology Change     :   0 days 00:00:06

Total Number of Topology Changes    :   0

 

P3600(CONFIG/L2/RSTP)#

 

8.7.3  fwdelay

操作级别

Privileged

配置模式

L2-RSTP

语法

fwdelay <4..30>

参数定义

<4..30>:网桥转发延时,以秒计。

说明

该命令设置转发延时值,以秒计。缺省值为15s

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#rstp

P3600(CONFIG/L2/RSTP)#fwdelay 20

P3600(L2/RSTP)#show rstp

RSTP Status         :   Disabled

Switch Priority     :   32768

Switch Mac Address  :   00:56:59:c0:30:26

Desig Root Priority :   0

Desig Root Mac Addr :   00:00:00:00:00:00

Root Port                           :   0

Root Path Cost                      :   0

Max Age                             :   0

Hello Time                          :   0

Forward Delay                       :   0

Configured Max Age                  :   20

Configured Hello Time               :   2

Configured Forward Delay            :   20

Time Since Last Topology Change     :   0 days 00:00:00

Total Number of Topology Changes    :   0

 P3600(CONFIG/L2/RSTP)#

 

8.7.4  hellotime

操作级别

Privileged

配置模式

L2-RSTP

语法

hellotime <1..10>

参数定义

<1..10> Hello time值,单位秒,范围:1 ~ 10

说明

该命令用于设置hello time,以秒计。缺省值2s

Hello time应该满足:2*(hello+1) <= max_age

Hello time表示交换机每隔多少时间向别的交换机广播它的hello信息。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#rstp

P3600(CONFIG/L2/RSTP)#hellotime 2

P3600(L2/RSTP)#show rstp

RSTP Status         :   Disabled

Switch Priority     :   32768

Switch Mac Address  :   00:56:59:c0:30:26

Desig Root Priority :   0

Desig Root Mac Addr :   00:00:00:00:00:00

Root Port                           :   0

Root Path Cost                      :   0

Max Age                             :   0

Hello Time                          :   0

Forward Delay                       :   0

Configured Max Age                  :   20

Configured Hello Time               :   2

Configured Forward Delay            :   20

Time Since Last Topology Change     :   0 days 00:00:00

Total Number of Topology Changes    :   0              P3600(CONFIG/L2/RSTP)#

 

8.7.5  maxage

操作级别

Privileged

配置模式

L2-RSTP

语法

maxage <6..40>

参数定义

<6..40>:以秒计的最大老化时间。范围:6 ~ 40

说明

该命令用于设置以秒计的最大老化时间,缺省值为20s

该参数用于测量端口保留的接收到的协议信息的时间,当保留的时间超过交换机记录的最大老化时间时,丢弃该信息。switches.

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#rstp

P3600(CONFIG/L2/RSTP)#maxage 50

P3600(L2/RSTP)#show rstp

RSTP Status         :   Disabled

Switch Priority     :   32768

Switch Mac Address  :   00:56:59:c0:30:26

Desig Root Priority :   0

Desig Root Mac Addr :   00:00:00:00:00:00

Root Port                           :   0

Root Path Cost                      :   0

Max Age                             :   0

Hello Time                          :   0

Forward Delay                       :   0

Configured Max Age                  :   50

Configured Hello Time               :   2

Configured Forward Delay            :   20

Time Since Last Topology Change     :   0 days 00:00:00

Total Number of Topology Changes    :   0

P3600(CONFIG/L2/RSTP)#

 

 

 

8.7.6  priority

操作级别

Privileged

配置模式

L2-RSTP

语法

priority <0..61440>

参数定义

<0..61440>:生成树优先级值,步长4096

说明

该命令用于修改交换机的生成树优先级。缺省值为32768

如果所有的交换机都按缺省设置运行,网络中MAC地址最低的交换机就成根交换机。然而,由于流量类型,转发端口数, 或者线路类型等因素,带有最低MAC地址的交换机并不一定的最理想的根交换机。通过增加理想的交换机的优先级(降低数字优先级数值),使其成为根交换机。用户可使用生成树协议重新计算,来形成一个新的、稳定的拓扑结构。而且, 建立在缺省参数基础上的拓扑结构,其在交换机网络中建立的源与目标元素之间的路径并不一定是最理想的。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#rstp

P3600(CONFIG/L2/RSTP)#priority 40960

P3600(L2/RSTP)#show rstp

RSTP Status         :   Disabled

Switch Priority     :   40960

Switch Mac Address  :   00:56:59:c0:30:26

Desig Root Priority :   0

Desig Root Mac Addr :   00:00:00:00:00:00

Root Port                           :   0

Root Path Cost                      :   0

Max Age                             :   0

Hello Time                          :   0

Forward Delay                       :   0

Configured Max Age                  :   20

Configured Hello Time               :   2

Configured Forward Delay            :   20

Time Since Last Topology Change     :   0 days 00:00:00

Total Number of Topology Changes    :   0

P3600(CONFIG/L2/RSTP)#

 

8.7.7  show port

操作级别

Normal

配置模式

L2-RSTP

语法

show port interface [<xge|is|trunk> <ethernet-list>]

参数定义

<xge|is|trunk>:端口类型。

<ethernet-list>:显示以太网列表。下列的一个或多个以太网口:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x范围为1-6)

使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。

说明

该命令显示以太口上生成树算法的配置信息,包括:端口号

RSTP管理状态RSTP操作状态端口优先级路径消耗

指定的根优先级指定的跟MAC

指定的端口桥接MAC 指定的端口号

指定的消耗。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#rstp

P3600(L2/RSTP)#show port interface xge 1

Bridge Port                     :   121

Port Index                      :   XGE1

RSTP Administrative State       :   Enabled

RSTP Operational State          :   Forwarding

Port Priority                   :   128

Path Cost                       :   20000

Desig Root Priority             :   0

Desig Root Mac                  :   00:00:00:00:00:00

Desig Bridge Priority           :   0

Desig Bridge Mac                :   00:00:00:00:00:00

Desig Port Priority             :   0

Desig Port Index                :   0

Desig Cost                      :   0

 

P3600(CONFIG/L2/RSTP)#

 

8.7.8  show rstp

操作级别

Normal

配置模式

L2-RSTP

语法

show rstp

说明

该命令用于显示插板级别的生成树算法参数配置信息,包括:

RSTP插板状态 (启用/禁止)

网桥标识优先级

网桥转发延时网桥最大时间hello时间

最后一次拓扑修改以来的时间拓扑修改次数

指定的根根 转发延时最大时间

Hello时间。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#rstp

P3600(L2/RSTP)#show rstp

RSTP Status         :   Disabled

Switch Priority     :   32768

Switch Mac Address  :   00:56:59:c0:30:26

Desig Root Priority :   0

Desig Root Mac Addr :   00:00:00:00:00:00

Root Port                           :   0

Root Path Cost                      :   0

Max Age                             :   0

Hello Time                          :   0

Forward Delay                       :   0

Configured Max Age                  :   20

Configured Hello Time               :   2

Configured Forward Delay            :   20

Time Since Last Topology Change     :   0 days 00:00:00

Total Number of Topology Changes    :   0

 

P3600(CONFIG/L2/RSTP)#

 

8.8  二层MSTP命令

8.8.1  configuration instance

操作级别

Privileged

配置模式

L2-MSTP

语法

configuration instance <MST instance id> vlan <vlan range ex>

参数定义

<MST instance id>MST实例id,缺值范围1-15

vlan:加到实例映射上的VLAN范围。

<vlan range ex>VLAN范围。例如:1-6572300,最多64个字符。

说明

该命令基于MST实例进行配置。

 

8.8.2  configuration no instance

操作级别

Privileged

配置模式

L2-MSTP

语法

configuration no instance <MST instance id> vlan <vlan range ex>

参数定义

<MST instance id>MST实例id

vlan:加到实例映射上的VLAN范围。

<vlan range ex>VLAN范围。例如:1-6572300,最多64个字符。

说明

该命令删除一个基于MST实例进行的配置。

 

8.8.3  configuration name

操作级别

Privileged

配置模式

L2-MSTP

语法

configuration name  <configuration name>

参数定义

<configuration name>:最多32个字符。

说明

该命令设置配置名。

 

8.8.4  configuration no name

操作级别

Privileged

配置模式

L2-MSTP

语法

configuration no name

参数定义

name:配置名。

说明

该命令删除MST配置名。

 

8.8.5  configuration revision

操作级别

Privileged

配置模式

L2-MSTP

语法

configuration revision <configuration revision number>

参数定义

<configuration revision number>:修订级别,范围为0-65535

说明

该命令配置MST修订级别。

 

8.8.6  configuration no revision

操作级别

Privileged

配置模式

L2-MSTP

语法

configuration no revision

说明

该命令删除MST修订级别配置。

 

8.8.7  show configuration

操作级别

Normal

配置模式

L2-MSTP

语法

show configuration

说明

显示配置信息。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#vlan

P3600(CONFIG/L2/VLAN)#vid 1234 name test mode routed

P3600(CONFIG/L2/VLAN)#exit

P3600(CONFIG/L2)#mstp

P3600(CONFIG/L2/MSTP)#configuration instance 3 vlan 1234

P3600(CONFIG/L2/MSTP)#configuration name test

P3600(CONFIG/L2/MSTP)#configuration revision 12345

P3600(CONFIG/L2/MSTP)#show configuration

Name            [test]

Revision        12345

Instance        Vlans mapped

--------        ------------------------------------------------------------0                 1-1233,1235-4094

3                 1234

----------------------------------------------------------------------------

P3600(CONFIG/L2/MSTP)#configuration no name

P3600(CONFIG/L2/MSTP)#show configuration

Name            []

Revision        12345

Instance        Vlans mapped

--------        ------------------------------------------------------------0                 1-1233,1235-4094

3                 1234

----------------------------------------------------------------------------

P3600(CONFIG/L2/MSTP)#

 

8.8.8  disable

操作级别

Privileged

配置模式

L2-MSTP

语法

disable

说明

该命令禁用MSTP多生成树。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#mstp

P3600(CONFIG/L2/MSTP)#disable

P3600(CONFIG/L2/MSTP)#

 

8.8.9  enable

操作级别

Privileged

配置模式

L2-MSTP

语法

enable

说明

该命令启用MSTP多生成树。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#mstp

P3600(CONFIG/L2/MSTP)#enable

P3600(CONFIG/L2/MSTP)#

 

8.8.10  forward-time

操作级别

Privileged

配置模式

L2-MSTP

语法

forward-time <number of seconds for the forward delay>

参数定义

<number of seconds for the forward delay>:延迟为4-30,单位为秒。

说明

该命令设置生成树转发延迟。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#mstp

P3600(CONFIG/L2/MSTP)#forward-time 27

 

8.8.11  hello-time

操作级别

Privileged

配置模式

L2-MSTP

语法

hello-time <number of seconds >

参数定义

<number of seconds >:间隔为1-10,单位为秒。

说明

该命令设置生成树hello间隔。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#mstp

P3600(CONFIG/L2/MSTP)#hello-time 9

 

8.8.12  instance

8.8.13  instance port-pathcost

操作级别

Privileged

配置模式

L2-MSTP

语法

instance  <MST instance id> port-pathcost interface xge <ethernet-index> <1..200000000>

参数定义

<MST instance id>:实例id,范围为0-15

<ethernet-index><ethernet-index>:下列以太端口中的一个:

xge x (其中x范围为1-8)

is x/y(其中x的范围是1-17y的范围是1-8

<1..200000000>:端口代价值范围为1-200000000

说明

该命令配置路径代价。

 

8.8.14  instance port-priority

操作级别

Privileged

配置模式

L2-MSTP

语法

instance  <MST instance id> port-priority interface xge <ethernet-index> <0..240>

参数定义

<MST instance id>:实例id,范围为0-15

<ethernet-index><ethernet-index>:下列以太端口中的一个:

xge x (其中x范围为1-8)

is x/y(其中x的范围是1-17y的范围是1-4

<0..240>:端口优先级值范围为0-240,步长为16

说明

该命令配置端口优先级。

 

8.8.15  instance priority

操作级别

Privileged

配置模式

L2-MSTP

语法

instance  <MST instance id> priority <priority>

参数定义

<MST instance id>:实例id,范围为0-15

<priority>:桥优先级为4096的倍数。

说明

该命令配置生成树的桥优先级。

 

8.8.16  show

8.8.17  show instance

操作级别

Normal

配置模式

L2-MSTP

语法

show instance  <MST instance id>

参数定义

 <MST instance id>:实例id,范围为0-15

说明

该命令显示组播生成树实例。

 

8.8.18  show instance detail

操作级别

Normal

配置模式

L2-MSTP

语法

show instance detail

说明

该命令配显示组播生成树实例详细信息。

 

8.8.19  show instance port

操作级别

Normal

配置模式

L2-MSTP

语法

show instance port interface xge <ethernet-index>

说明

该命令显示xge口组播生成树实例。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#mstp

P3600(CONFIG/L2/MSTP)#configuration instance 12 vlan 1

P3600(CONFIG/L2/MSTP)#instance 12 port-pathcost interface xge 1 2000

P3600(CONFIG/L2/MSTP)#instance 12 port-priority interface xge 1 128

P3600(CONFIG/L2/MSTP)#instance 12 priority 32768

P3600(L2/MSTP)#show instance

 

######MST00    vlans mapped:  2-4094

Bridge        address 0056.59c0.3026  priority      32768    (32768 sysid 0)

Root          address 0056.59c0.3026  priority      32768    (32768 sysid 0)

Regional Root address 0056.59c0.3026  priority      32768

Operational  hello time 2, forward delay 15, max age 20, hops 20

Configured   hello time 2, forward delay 15, max age 20, max hops 20

 

Interface Role        Status      Cost      Prio.Nbr    Type             PortFast

--------- ----------- ----------- --------- ----------- ---------------- ---------

XGE1      Designated  Forwarding  2000      128.121     P2p Bound(None)    FALSE

XGE2      Designated  Forwarding  2000      128.122     P2p Bound(None)    FALSE

 

 

######MST12    vlans mapped:    1

Bridge        address 0056.59c0.3026  priority      32780    (32768 sysid 12)

Root          address 0056.59c0.3026  priority      32780    (32768 sysid 12)

 

Interface Role        Status      Cost      Prio.Nbr    Type             PortFast

--------- ----------- ----------- --------- ----------- ---------------- --------

XGE1      Designated  Learning    2000      128.121     P2p               FALSE

P3600(CONFIG/L2/MSTP)#

 

8.8.20  max-age

操作级别

Privileged

配置模式

L2-MSTP

语法

max-age <maximum number of seconds the information>

参数定义

<maximum number of seconds the information>:最大等待时间范围为6-40,单位为秒。

说明

该命令设置生成树最大等待时间。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#mstp

P3600(CONFIG/L2/MSTP)#max-age 39

 

8.8.21  max-hops

操作级别

Privileged

配置模式

L2-MSTP

语法

max-hops <maximum number of hops a BPDU is valid>

参数定义

<maximum number of hops a BPDU is valid>:使一个BPDU有效的生成树最大跳数。范围1-40.

说明

该命令配置生成树最大跳数。

 

例如:

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#mstp

P3600(CONFIG/L2/MSTP)#max-hops 28

 

8.9  安全命令

CSM 安全命令用于配置安全代理信息。

8.9.1  action

操作级别

Privileged

配置模式

Security

语法

action <action-name> [vid <1..4094>] [dst-mac <mac-address>] [acl <permit|deny>] [mirror][stacking-vid <1..4094>] [interface <xge|is|trunk> <ethernet-index>]

参数定义

<action-name>:操作名称,最多32个字符。

vid:新的VLAN ID,对于每个安全操作,“change VLAN ID“change destination MAC”是互斥的。也就是说,如果选择了“change VLAN ID”,就不能选择“change destination MAC”。反之亦然。

<1..4094>14094

dst-mac:新的MAC地址,对于每个安全操作, “change destination

MAC” “change VLAN ID” 是互斥的。也就是说,如果选择了“change destination MAC”,就不能选择“change VLAN ID”。反之亦然。

<mac-address>aabbccddeeff acl:访问控制(Access control)。

<permit|deny>:允许或拒绝。

mirror:镜像到端口。和mirror配置相关。

stacking-vidstackingVLAN ID

<1..4094>14094

<xge|is|trunk>:重定向端口类型。

<ethernet-index>:下列以太端口中的一个:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17P3617),1-8P3608),1-2P3602),y范围为1-8)

trunk x (其中x范围为1-6)

none

说明

该命令创建一个基于流的操作的安全操作或修改一个已存在的基于流的安全操作。

 

8.9.2  no action

操作级别

Privileged

配置模式

Security

语法

no action <action-name>

说明

该命令删除一个基于流的安全操作。

 

8.9.3  show action

操作级别

Normal

配置模式

Security

语法

show action [<action-name>]

说明

该命令显示所有或指定基于流的安全操作。

 

例如:

P3600#configure

P3600(CONFIG)#security

P3600(CONFIG/Security)#action act1 vid 100 interface xge 3

P3600(CONFIG/Security)#show action

--------------------------------------------------------

Action Name           :   act1

--------------------------------------------------------

    Port Index        :   xge 3

    Vlan ID:          :   100

    Stacking Vlan:    :

    Dest MAC          :

    ACL Action        :

    Mirror  Option    :

P3600(CONFIG/Security)#no action act1

P3600(CONFIG/Security)#show action act1

P3600(CONFIG/Security)#

 

8.9.4  assign-action

操作级别

Privileged

配置模式

Security

语法

assign-action interface <xge|is|trunk> <ethernet-index> rule-index <1..65535> action <action-name>

参数定义

assign-action:分配一个操作。

interface:端口类型。

<xge|is|trunk>:端口类型。

<ethernet-index>:下列以太端口中的一个:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17P3617),1-8P3608),1-2P3602),y范围为1-8)

trunk x (其中x范围为1-6)

none

rule-index:包分类规则索引号。

<1..65535>165535

action:基于流的安全操作。

<action-name>:操作名称,最多32个字符。

说明

该命令分配一个基于流的安全操作到一个桥接端口。

 

8.9.5  deassign-action

操作级别

Privileged

配置模式

Security

语法

deassign-action interface <xge|is|trunk> <ethernet-index> rule-index <1..65535>

参数定义

deassign-action:从桥接端口取消操作分配。

interface:端口类型。

<xge|is|trunk>:端口类型。

<ethernet-index>:下列以太端口中的一个:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x范围为1-6)

none

rule-index:包分类规则索引号。

<1..65535>165535

说明

该命令从一个桥接端口取消基于流的安全操作的分配。

 

8.9.6  show action-assign

操作级别

Normal

配置模式

Security

语法

show action-assign [interface <xge|is|trunk> <ethernet-index>] [rule-index <1..65535>]

参数定义

action-assign:基于流的操作分配。

interfaceCSM桥接端口索引号。

<xge|is|trunk>:端口类型。

<ethernet-index>:下列以太端口中的一个:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x范围为1-6)

none

rule-index:包分类规则索引号。

<1..65535>165535

说明

该命令显示所有或指定的部分基于流的安全操作的分配。

 

例如:

P3600#configure

P3600(CONFIG)#security

P3600(CONFIG/Security)#assign-action interface xge 3 rule-index 1 action act1

P3600(CONFIG/Security)#show action-assign

Port Index     : xge 3

RuleIndex:    : 1

Action Name    : act1

P3600(CONFIG/Security)#deassign-action interface xge 3 rule-index 1

P3600(CONFIG/Security)#show action-assign

P3600(CONFIG/Security)#

 

8.9.7  storm-control

 

操作级别

Privileged

配置模式

Security

语法

storm-control <bclimit|mclimit|dlf-limit> interface [<xge|is|trunk> <ethernet-list>] <bandwidth>

参数定义

storm-control:风暴配置

<bclimit|mclimit|dlf-limit>: 广播/组播/单播。

Interface: 配置到所有端口还是指定端口。

<xge|is|trunk>:端口类型。

<ethernet-list>:显示以太网列表。下列的一个或多个以太网口:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x范围为1-6)

使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。

 <bandwidth>: 速率.

速率单位:pps。取值范围:0-14881000。缺省值:200

说明

该命令用于配置与端口相关的流控配置信息。如果没有指明具体的端口,则配置所有端口的信息。

 

8.9.8  show storm-control

操作级别

Normal

配置模式

Security

语法

show storm-control interface [<xge|is|trunk> <ethernet-list>]

参数定义

show 显示信息。

storm-control:风暴控制配置

<xge|is|trunk>:端口类型。

<ethernet-list>:显示以太网列表。下列的一个或多个以太网口:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x范围为1-6)

使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。

说明

该命令用于显示与端口相关的流控配置信息。如果没有指明具体的端口,则显示所有端口的信息。显示的每个端口的流控信息包括:

·     广播速率限制

·     组播速率限制

·     单播速率限制

 

例如:

P3600#configure

P3600(CONFIG)#security

P3600(CONFIG/Security)#storm-control bclimit interface xge 1 256

P36007(CONFIG/Security)#show storm-control interface xge 1

Flow Control Port Index     :   XGE1

Bcast Threshold             :   256

Mcast Threshold             :   200

Dlf Threshold               :   200

P3600(CONFIG/Security)#

 

8.9.9  vlan

操作级别

Privileged

配置模式

Security

语法

vlan <type> <id> <priority>

参数定义

vlan:配置VLAN

<type>IPv4/IPv6

<id>VLAN id。范围为1-4095

<priority>:优先级范围为0-7

说明

该命令配置VLAN

 

8.9.10  show vlan

操作级别

Normal

配置模式

Security

语法

show vlan [<type>]

参数定义

show:显示VLAN

vlan:显示VLAN

<type>IPv4/IPv6

说明

该命令显示VLAN

 

8.9.11  no vlan

操作级别

Privileged

配置模式

Security

语法

no vlan <type>

参数定义

no:删除VLAN

vlan:删除VLAN

<type>IPv4/IPv6

说明

该命令删除VLAN

 

例如:

P3600#configure

P3600(CONFIG)#security

P3600(CONFIG/Security)#vlan ipv6 1234 1

P3600(CONFIG/Security)#show vlan

type:                :   ipv6

vlan:                :   1234

priority:            :   1

P3600(CONFIG/Security)#no vlan ipv6

P3600(CONFIG/Security)#show vlan

P3600(CONFIG/Security)#

 

8.10  QoS命令

CSM QoS 命令用来配置QoS。

8.10.1  action

操作级别

Privileged

配置模式

QoS

语法

action <action-name> [meter <meter-name>] [s-pri <0..7>] [dscp

<0..63>] [egress-queue <0..7>] [precedence <green|yellow|red>] [traffic-class <0..63>] [vid <1..4094>]

参数定义

action:新建或修改操作。

<action-name>:操作名,最多32个字符。meter:限速。

<meter-name>:限速名,最多32个字符。

s-pri:新业务提供商的802.1p优先级。

<0..7>0~7

dscp:新DSCP值。

<0..63>0~63

precedence:丢弃优先级。

<green|yellow|red>:绿、黄或红。

traffic-classIPv6流量级别。

<0..63>范围为0-63

vid:VLAN

<1..4094>范围为1-4094

说明

该命令新建一个操作或修改已存在的操作。

 

8.10.2  no action

操作级别

Privileged

配置模式

QoS

语法

no action <action-name>

说明

该命令删除一个基于流的操作。

 

8.10.3  show action

操作级别

Normal

配置模式

QoS

语法

show action [<action-name>]

说明

该命令显示所有或一个指定的基于流的操作。

 

例如:

P3600#configure

P3600(CONFIG)#qos

P3600(CONFIG/QOS)#action test s-pri 3 dscp 20

P3600(CONFIG/QOS)#show action test

Action Name                             :test

Flow-Based QoS Action Selections        :New Priority,New DSCP,

Traffic Metering Name                   :

New Priority                            :3

New DSCP                                :20

Queue                                   :0

Drop Precedence                         :Green

Traffic Class                           :0

New VID                                 :0

P3600(CONFIG/QOS)#no action test

P3600(CONFIG/QOS)#show action

P3600(CONFIG/QOS)#

 

8.10.4  assign-action

操作级别

Privileged

配置模式

QoS

语法

assign-action interface <xge|is|trunk> <ethernet-index> rule-index <1..1024> action <action-name>

参数定义

assign-action:分配一个操作。

interfaceCSM桥接端口索引号。

<xge|is|trunk>:端口类型。

<ethernet-index>:下列以太端口中的一个:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x范围为1-6)

none

rule-index:包分类规则索引号。

<1..1024>1~1024

action:基于流的安全操作。

<action-name>:操作名,最多32个字符。

说明

该命令给桥接端口分配一个操作。

 

8.10.5  deassign-action

操作级别

Privileged

配置模式

QoS

语法

deassign-action interface <interface> rule-index <1..1024>

说明

该命令从桥接端口取消基于流的操作分配。

 

8.10.6  show action-assign

操作级别

Normal

配置模式

QoS

语法

show action-assign [interface <interface>] [rule-index <1..1024>]

说明

该命令显示所有或一些指定的基于流的操作分配。

 

例如:

P3600#configure

P3600(CONFIG)#qos

P3600(CONFIG/QOS)#assign-action interface xge 3 rule-index 1 action act1

P3600(CONFIG/QOS)#show action-assign

Interface      :XGE 3

Rule index     :1

Action Assign  :act1

P3600(CONFIG/QOS)#deassign-action interface xge 3 rule-index 1

P3600(CONFIG/QOS)#show action-assign

P3600(CONFIG/QOS)#

 

8.10.7  dot1p-mapping

操作级别

Privileged

配置模式

QoS

语法

dot1p-mapping <0..7> queue <0..7>

参数定义

dot1p-mapping:配置802.1p到优先级队列的映射。

<0..7>802.1p

queue:优先级队列。

<0..7>:优先级。

说明

该命令配置802.1p到优先级队列的映射。缺省值如下表所示。

 

802.1p优先级

缺省优先级队列

0

0

1

1

2

2

3

3

4

4

5

5

6

6

7

7

 

8.10.8  show dot1p-mapping

操作级别

Normal

配置模式

QoS

语法

show dot1p-mapping

参数定义

dot1p-mapping802.1p优先级到出口队列的映射。

说明

该命令显示802.1p优先级到出口队列的映射,格式如下:S优先级: 队列。

 

例如:

P3600#configure

P3600(CONFIG)#qos

P3600(CONFIG/QOS)#show dot1p-mapping

S-Priority           Queue

0                           0     

1                           1     

2                           2     

3                           3     

4                           4     

5                           5     

6                           6     

7                           7     

 

P3600(CONFIG/QOS)#dot1p-mapping 2 queue 1

P3600(CONFIG/QOS)#show dot1p-mapping

S-Priority           Queue

0                           0     

1                           1     

2                           1     

3                           3     

4                           4     

5                           5     

6                           6     

7                           7     

P3600(CONFIG/QOS)#

 

8.10.9  dscp

操作级别

Privileged

配置模式

QoS

语法

dscp interface <xge|is|trunk> <ethernet-list>

参数定义

dscp:启用DSCP映射

interface:启用DSCP映射。

<xge|is|trunk>:端口类型。

<ethernet-list>:显示以太网列表。下列的一个或多个以太网口:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x范围为1-6)

使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。

说明

该命令启用DSCP映射。

 

8.10.10  no dscp

操作级别

Privileged

配置模式

QoS

语法

no dscp interface <interface-list>

说明

该命令禁止DSCP映射。

 

例如:

P3600#configure

P3600(CONFIG)#qos

P3600(CONFIG/QOS)#show dscp-mapping interface xge 3

Interface Index      :xge:3

DSCP mapping   :disable

P3600(CONFIG/QOS)#dscp interface xge 3

P3600(CONFIG/QOS)#show dscp-mapping interface xge 3

Interface Index      :xge:3

DSCP mapping   :enable

Ingress DSCP   :1

Map queue      :0

New DSCP       :0

Drop precedence      :green

Ingress DSCP   :2

Map queue      :0

New DSCP       :0

Drop precedence      :green

Ingress DSCP   :3

Map queue      :0

New DSCP       :0

Drop precedence      :green

Ingress DSCP   :4

Map queue      :0

New DSCP       :0

Drop precedence      :green

Ingress DSCP   :5

Map queue      :0

New DSCP       :0

Drop precedence      :green

Ingress DSCP   :6

Map queue      :0

Press any key to continue (Q to quit)

P3600(CONFIG/QOS)#no dscp interface xge 3

P3600(CONFIG/QOS)#show dscp-mapping interface xge 3

Interface Index      :xge:3

DSCP mapping   :disable

P3600(CONFIG/QOS)#

 

8.10.11  dscp-mapping

操作级别

Privileged

配置模式

QoS

语法

dscp-mapping interface <xge|is|trunk> <ethernet-index> ingress-dscp <0..63> [queue <0..7>] [new-dscp <0..63>] [precedence <green|yellow|red>]

参数定义

dscp-mapping:配置DSCP到优先级的映射。

interfaceCSM桥接端口索引号。

<xge|is|trunk>:端口类型。

<ethernet-index>:下列以太端口中的一个:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x范围为1-6)

none

ingress-dscp:入口DSCP值。

<0..63>DSCP值。

queue:映射的queue id,缺省值:0

<0..7>queue值。

new-dscp:新DSCP值。

<0..63>DSCP值。

precedence:丢弃优先级。

<green|yellow|red>:绿、黄或红。

说明

该命令配置DSCP映射。

 

8.10.12  show dscp-mapping

操作级别

Normal

配置模式

QoS

语法

show dscp-mapping [<interface <interface>>[ ingress-dscp <0..63>]]

说明

该命令显示所有接口或某个指定接口的DSCP映射。只有DSCP映射为启用状态时,会显示如下DSCP映射信息:

·     Interface index(接口索引号)

·     DSCP mappingDSCP映射):启用

·     Ingress DSCP(入口DSCP

·     Map queue(映射队列)

·     New DSCP(新DSCP

·     Drop precedence(丢弃优先级) 否则,只显示:

·     Interface index(接口索引号)

·     DSCP mapping(接口索引号):禁止

 

例如:

P3600#configure

P3600(CONFIG)#qos

P3600(CONFIG/QOS)#dscp-mapping interface xge 3 ingress-dscp 1 s-pri 1 new-dscp 2 precedence red

P3600(CONFIG/QOS)#show dscp-mapping interface xge 3

Interface Index      :xge:3

DSCP mapping   :enable

Ingress DSCP   :1

Map queue      :1

New DSCP       :2

Drop precedence      :red

Ingress DSCP   :2

Map queue      :0

New DSCP       :0

Drop precedence      :green

Ingress DSCP   :3

Map queue      :0

New DSCP       :0

Drop precedence      :green

Ingress DSCP   :4

Map queue      :0

New DSCP       :0

Drop precedence      :green

Ingress DSCP   :5

Map queue      :0

New DSCP       :0

Drop precedence      :green

Ingress DSCP   :6

Map queue      :0

Press any key to continue (Q to quit)

 

8.10.13  egress-queue-metering

操作级别

Privileged

配置模式

QoS

语法

egress-queue-metering interface <xge|is|trunk> <ethernet-index> queue <0..7> [min-cir <0..10000000>][min-cbs <min-cbs-value>] [max-cir <0..10000000>] [max-cbs <max-cbs-value>]

参数定义

egress-queue-metering:配置出口队列限速参数。

interfaceCSM桥接端口索引号

<xge|is|trunk>:端口类型。

<ethernet-index>:下列以太端口中的一个:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x范围为1-6)

none

queue:出口队列。

<0..7>:优先级值。

min-cir:最小承诺信息速率(Committed Information Rate, CIR), 单位:kbps。缺省值:0

<0..10000000>:取值范围:0 ~10000000 Kbps

min-cbs:最小承诺突发尺寸

<min-cbs-value>: <4K|8K|16K|32K|64K|128K|256K|512K|1M|2M|4M|8M|16M>

max-cir:最大承诺信息速率Committed Burst Size, CBS),单位:

Kbps。缺省值:0

<0..10000000>:取值范围:0~10000000 Kbps0表示不限制。

Max-cbs:最大承诺突发尺寸

<max-cbs-value>: <4K|8K|16K|32K|64K|128K|256K|512K|1M|2M|4M|8M|16M>

说明

该命令配置出口队列限速。

 

8.10.14  show egress-queueu-metering

操作级别

Normal

配置模式

QoS

语法

show egress-queue-metering [interface <xge|is|trunk> <ethernet-index>] [queue <0..7>]

参数定义

show egress-queue-metering:显示出口队列限速参数。interface CSM桥接端口索引号.

<xge|is|trunk>:端口类型。

<ethernet-index>:下列以太端口中的一个:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x范围为1-6)

none

queue:出口队列。

<0..7>:优先级值。

说明

该命令显示所有出口队列限速或部分指定出口队列限速。

 

例如:

P3600#configure

P3600(CONFIG)#qos

P3600(CONFIG/QOS)#egress-queue-metering interface xge 2 queue 2 min-cir 100 max-cir 1024

P3600(CONFIG/QOS)#show egress-queue-metering interface xge 2

  Port        Queue      Min CIR(Kbps)  Min CBS       Max CIR(Kbps)  Max CBS

  XGE 2          0           0            64             0              64

  XGE 2          1           0            64             0              64

  XGE 2          2           128          64             1024           64

  XGE 2          3           0            64             0              64

  XGE 2          4           0            64             0              64

  XGE 2          5           0            64             0              64

  XGE 2          6           0            64             0              64

  XGE 2          7           0            64             0              64      P3600(CONFIG/QOS)#

 

8.10.15  egress-queue-weight

操作级别

Privileged

配置模式

QoS

语法

egress-queue-weight interface <xge|is|trunk> <ethernet-index> queue <0..7> [weight <0..15>] [sp-option <enable|disable>]

参数定义

egress-queue-weight:出口队列权重。

interfaceCSM桥接端口索引号

<xge|is|trunk>:端口类型。

<ethernet-index>:下列以太端口中的一个:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x范围为1-6)

none

queue:出口队列。

<0..7>:队列索引号。

weight:权重值,当启用sp-optionenable时,权重值不能设置。

<0..15>:取值范围:0~15

sp-option:严格优先级(strict priority,该值仅当选择了WRR+SP

时可设置。

<enable|disable>:启用或禁止SP

说明

当选择了WRR or WRR+SP时,该命令根据桥接端口索引号配置出口队列权重和队列。

 

例如:

P3600#configure

P3600(CONFIG)#qos

P3600(CONFIG/QOS)#scheduling interface xge 2 wrr+sp

P3600(CONFIG/QOS)#show scheduling interface xge 2

Port          Queue         Mode          Weight        SP

-----------------------------------------------------------------

XGE 2         0             wrr+sp        2             disable

XGE 2         1             wrr+sp        2             disable

XGE 2         2             wrr+sp        3             disable

XGE 2         3             wrr+sp        3             disable

XGE 2         4             wrr+sp        5             disable

XGE 2         5             wrr+sp        5             disable

XGE 2         6             wrr+sp        0             enable

XGE 2         7             wrr+sp        0             enable

P3600(CONFIG/QOS)#egress-queue-weight interface xge 2 queue 2 weight 3

P3600(CONFIG/QOS)#show scheduling interface xge 2

Port          Queue         Mode          Weight        SP

-----------------------------------------------------------------

XGE 2         0             wrr+sp        2             disable

XGE 2         1             wrr+sp        3             disable

XGE 2         2             wrr+sp        3             disable

XGE 2         3             wrr+sp        3             disable

XGE 2         4             wrr+sp        5             disable

XGE 2         5             wrr+sp        5             disable

XGE 2         6             wrr+sp        0             enable

XGE 2         7             wrr+sp        0             enable

P3600(CONFIG/QOS)#

 

8.10.16  gem-rate-limit

操作级别

Privileged

配置模式

QoS

语法

gem-rate-limit slot <num> port <num> onu <1-256>virtual-port <1-12>svid<1-4095>cvid<1-4095>up-limit<bandwidth>up-burst<burst size>down-limit<bandwidth>down-burst<burst size>

参数定义

gem-rate-limit:基于gemport限速。

slot<num>:槽位,范围1-17

port<num>:端口,范围1-16

ont<num>ONTID,范围1-256

virtual-port :范围1-12

svid:外层VLAN

<1..4095>范围为1-4094

cvid:内层VLAN

<1..4095>范围为1-4094

up-limit:上行限速。

<bandwidth>:范围<0,64-9953280>GPON:1244160, XGPON:2488320,XGSPON:9953280,步长: 64kbs

up-burst:上行尺寸限制。

<burst size>:范围<0-4095>缺省值128

down-limit:下行限速。

<bandwidth>:范围<0,64-9953280>GPON:1244160, xgpon:2488320,xgspon:9953280,步长: 64kbs

down-burst:下行尺寸限制。

<burst size>:范围<0-4095>缺省值128

说明

该命令新建一个GEM port限速。

 

8.10.17  show gem-rate-limit

操作级别

Normal

配置模式

configure

语法

show gem-rate-limit

说明

该命令用于显示GEM限速。

 

例如:

P3600#configure

P3600(CONFIG)#qos

P3600(CONFIG/QOS)#gem-rate-limit slot 4 port 1 ont 1 virtual-port 1 svid 101 cvid 4095 up-limit 12800 up-burst 128 down-limit 12800 down-burst 128

P3600(CONFIG/QOS)#show gem-rate-limit

GEM Based Rate-limit Entry:

slot  port ont vport svid  cvid  up-limit  up-burst  down-limit  down-burst

--------------------------------------------------------------------------

4     1     1     1   101  4095  12800      128        12800       128

P3600(CONFIG/QOS)#gem-rate-limit slot 4 port 1 ont 1 virtual-port 1 svid 101 cvid 4095 up-limit 0 up-burst 128 down-limit 0 down-burst 128

P3600(CONFIG/QOS)#show gem-rate-limit

slot  port ont vport svid  cvid  up-limit  up-burst  down-limit  down-burst

--------------------------------------------------------------------------

P3600(CONFIG/QOS)#

 

8.10.18  meter

操作级别

Privileged

配置模式

QoS

语法

meter <meter-name> type <srtcm|trtcm>

{cir <64..400000000>}

{cbs <4K|8K|16K|32K|64K|128K|256K|512K|1M|2M|4M|8M|16M|32M|64M|128M|256M|512M >}

[pir <64..400000000>]

[pbs <4K|8K|16K|32K|64K|128K|256K|512K|1M|2M|4M|8M|16M|32M|64M|128M|256M|512M>]

[ebs <4K|8K|16K|32K|64K|128K|256K|512K|1M|2M|4M|8M|16M|32M|64M|128M|256M|512M>]

参数定义

meter:新建或修改流量限速。

<meter-name>:限速名称,最多32个字符。type:限速类型。

<srtcm|trtcm>:单速率三色标记(Single Rate Three Color Marker,

srTcm)或双速率三色标记(Two Rate Three Color Marker,trTcm) 。缺省值:srTcm

cir:队列最大带宽的承诺信息速率(committed information rate

CIR),单位:Kbps。缺省值:10000000Kbps.

<64..400000000>64Kbps~400000000

cbs:队列最大带宽的承诺突发尺寸(committed burst size,CBS), 单位:byte。缺省值:64K bytes

<4K|8K|16K|32K|64K|128K|256K|512K|1M|2M|4M|8M|16M|32M|64M|128M|256M|512M >:可选

值。

pir:峰值信息速率(peak information rate, PIR)。仅当整形器类型为

trTCM 时可以设置。

PIR不能小于CIR,单位:Kbps。缺省值:10000000Kbps.

<64..400000000>64Kbps~400000000

pbs:峰值突发尺寸Peak Burst Size,PBS。仅当整形器类型为trTCM

时可以设置。缺省值:64Kbps

<4K|8K|16K|32K|64K|128K|256K|512K|1M|2M|4M|8M|16M|32M|64M|128M|256M|512M >:可选

值。

ebs:超额突发尺寸(Excess Burst Size, EBS)。仅当整形器类型为

srTCM 时可以设置。缺省值:64Kbps

<4K|8K|16K|32K|64K|128K|256K|512K|1M|2M|4M|8M|16M|32M|64M|128M|256M|512M >:可选

值。

说明

该命令新建或修改已存在的流量限速。

 

8.10.19  no meter

操作级别

Privileged

配置模式

QoS

语法

no meter <meter-name>

说明

该命令删除一个流量限速。

 

8.10.20  show meter

操作级别

Normal

配置模式

QoS

语法

show meter [<meter-name>]

说明

该命令显示所有或某个指定的流量限速。

 

例如:

P3600#configure

P3600(CONFIG)#qos

P3600(CONFIG/QOS)#meter m1 cir 128 cbs 256K

P3600((CONFIG/QOS)#show meter m1

Meter Name                              :m1

Meter Type                              :srTcm

CIR(Kbps)                               :128

CBS                                     :256K

PIR(Kbps)                               :1000000

PBS                                     :64K

EBS                                     :64K

P3600(CONFIG/QOS)#no meter m1

P3600(CONFIG/QOS)#show meter

P3600(CONFIG/QOS)#

 

8.10.21  rate-limit

操作级别

Privileged

配置模式

QoS

语法

rate-limit interface <xge|is|trunk> <ethernet-index> [ingress <0..100000000>] [egress <0..100000000>]

参数定义

rate-limit:端口速率限制。

interfaceCSM桥接端口索引号

<xge|is|trunk>:端口类型。

<ethernet-index>:下列以太端口中的一个:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x范围为1-6)

none

ingress:入口端口速率(Kbps)

<0..100000000>:取值范围:0 ~100000000 Kbps0表示禁止入口端口速率限制。

egress:出口端口速率(Kbps)

<0..100000000>:取值范围:0 ~100000000 Kbps0表示禁止出口端口速率限制。

说明

该命令配置基于端口的速率限制。

 

8.10.22  show rate-limit

操作级别

Normal

配置模式

QoS

语法

show rate-limit [interface <interface>]

说明

该命令显示所有或一个端口的速率限制配置。

 

例如:

P3600#configure

P3600(CONFIG)#qos

P3600(CONFIG/QOS)#rate-limit interface xge 2 ingress 1000 egress 1000

P3600(QOS)#show rate-limit

 Limit_Port    tIngress      tEgress

 IS 1/1        0             0

 IS 1/2        0             0

 IS 1/3        0             0

 IS 1/4        0             0

 IS 2/1        0             0

 IS 2/2        0             0

 IS 2/3        0             0

 IS 2/4        0             0

 IS 3/1        0             0

 IS 3/2        0             0

 IS 3/3        0             0

 IS 3/4        0             0

 IS 3/5        0             0

 IS 3/6        0             0

 IS 3/7        0             0

 IS 3/8        0             0

 IS 4/1        0             0

 IS 4/2        0             0

 IS 4/3        0             0

 IS 4/4        0             0

 IS 4/5        0             0

 IS 4/6        0             0

 IS 4/7        0             0

 IS 4/8        0             0

 IS 5/1        0             0

 IS 5/2        0             0

 IS 5/3        0             0

 IS 5/4        0             0

 IS 5/5        0             0

 IS 5/6        0             0

 IS 5/7        0             0

 IS 5/8        0             0

 IS 6/1        0             0

 IS 6/2        0             0

 IS 6/3        0             0

 IS 6/4        0             0

 IS 6/5        0             0

 IS 6/6        0             0

 IS 6/7        0             0

 IS 6/8        0             0

 IS 7/3        0             0

 IS 7/4        0             0

 IS 7/5        0             0

 IS 7/6        0             0

 IS 7/7        0             0

 IS 7/8        0             0

 IS 8/1        0             0

 IS 8/2        0             0

 IS 8/3        0             0

 IS 8/4        0             0

 IS 8/5        0             0

 IS 8/6        0             0

 IS 8/7        0             0

 IS 8/8        0             0

 IS 9/1        0             0

 IS 9/2        0             0

 IS 9/3        0             0

 IS 9/4        0             0

 IS 9/5        0             0

 IS 9/6        0             0

 IS 9/7        0             0

 IS 9/8        0             0

 IS 10/1       0             0

 IS 10/2       0             0

 IS 10/3       0             0

 IS 10/4       0             0

 IS 10/5       0             0

 IS 10/6       0             0

 IS 10/7       0             0

 IS 10/8       0             0

 IS 11/1       0             0

 IS 11/2       0             0

 IS 11/3       0             0

 IS 11/4       0             0

 IS 11/5       0             0

 IS 11/6       0             0

 IS 11/7       0             0

 IS 11/8       0             0

 IS 12/1       0             0

 IS 12/2       0             0

 IS 12/3       0             0

 IS 12/4       0             0

 IS 12/5       0             0

 IS 12/6       0             0

 IS 12/7       0             0

 IS 12/8       0             0

 IS 13/1       0             0

 IS 13/2       0             0

 IS 13/3       0             0

 IS 13/4       0             0

 IS 13/5       0             0

 IS 13/6       0             0

 IS 13/7       0             0

 IS 13/8       0             0

 IS 14/1       0             0

 IS 14/2       0             0

 IS 14/3       0             0

 IS 14/4       0             0

 IS 14/5       0             0

 IS 14/6       0             0

 IS 14/7       0             0

 IS 14/8       0             0

 IS 15/1       0             0

 IS 15/2       0             0

 IS 15/3       0             0

 IS 15/4       0             0

 IS 15/5       0             0

 IS 15/6       0             0

 IS 15/7       0             0

 IS 15/8       0             0

 IS 16/1       0             0

 IS 16/2       0             0

 IS 16/3       0             0

 IS 16/4       0             0

 IS 17/1       0             0

 IS 17/2       0             0

 IS 17/3       0             0

 IS 17/4       0             0

 XGE 1         0             0

 XGE 2         1000          1000

 XGE 5         0             0

 XGE 6         0             0

 XGE 7         0             0

 XGE 8         0             0

P3600(CONFIG/QOS)#

 

8.10.23  reset

操作级别

Privileged

配置模式

QoS

语法

reset metering-statistics [interface <xge|is|trunk> <ethernet-index>] [rule-index <1..65535>]

参数定义

reset:重置计数器。

metering-statistics:基于流的限速统计。

interfaceCSM桥接端口索引号。

<xge|is|trunk>:端口类型。

<ethernet-index>:下列以太端口中的一个:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8

trunk x (其中x范围为1-6)

none

rule-index:包分类规则索引号。

<1..65535>165535

说明

该命令重置所有或部分指定的基于流的限速统计。

 

例如:

P3600#configure

P3600(CONFIG)#qos

P3600(CONFIG/QOS)#reset metering-statistics interface xge 3 rule-index 1

P3600(CONFIG/QOS)#show      metering-statistics interface xge 3 rule 1

Interface      :XGE 3

Rule index     :1

Red Packets    :0

Non-Red Packets      :0

P3600(CONFIG/QOS)#  

 

8.10.24  scheduling

操作级别

Privileged

配置模式

QoS

语法

scheduling interface <xge|is|trunk> <ethernet-index> <sp|wrr|wrr+sp>

参数定义

scheduling:配置调度方法。

<xge|is|trunk>:端口类型。

<ethernet-index>:下列以太端口中的一个:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8

trunk x (其中x范围为1-6)

none

<sp|wrr|wrr+sp>:严格优先级(strict priority, SP)、加权轮询算法

weighted round robin,WRR)、或WRR+ SP

说明

该命令配置在CSM中使用的调度方法。

·     WRR表示加权轮询算法

·     SP表示严格优先级

 

8.10.25  show scheduling

操作级别

Normal

配置模式

QoS

语法

show scheduling [interface <xge|is|trunk> <ethernet-index>]

说明

该命令显示所有调度配置或某个指定接口的调度配置。

·     Bridge port index(桥接端口索引号)

·     Scheduling method(调度方法)

·     Queue list(队列列表)

·     Weight list(权重列表)

·     SP option listSP选项列表)。

 

例如:

P3600#configure

P3600(CONFIG)#qos

P3600(CONFIG/QOS)#show scheduling interface xge 2

Port          Queue         Mode          Weight        SP

-----------------------------------------------------------------

XGE 2         0             sp            0             enable

XGE 2         1             sp            0             enable

XGE 2         2             sp            0             enable

XGE 2         3             sp            0             enable

XGE 2         4             sp            0             enable

XGE 2         5             sp            0             enable

XGE 2         6             sp            0             enable

XGE 2         7             sp            0             enable

P3600(CONFIG/QOS)#scheduling interface xge 2 wrr

P3600(CONFIG/QOS)#show scheduling interface xge 2

(CONFIG/QOS)#show scheduling interface xge 2

Port          Queue         Mode          Weight        SP

-----------------------------------------------------------------

XGE 2         0             wrr           2             disable

XGE 2         1             wrr           3             disable

XGE 2         2             wrr           5             disable

XGE 2         3             wrr           15            disable

XGE 2         4             wrr           2             disable

XGE 2         5             wrr           3             disable

XGE 2         6             wrr           5             disable

XGE 2         7             wrr           15            disable        P3600(CONFIG/QOS)#

 

 

8.10.26  show metering-statistics

操作级别

Normal

配置模式

QoS

语法

show metering-statistics interface[xge|is|trunk> <etheterface <index>] [rule-index <1..65535>]

参数定义

action-assign:基于流的操作分配。

interfaceCSM桥接端口索引号。

<xge|is|trunk>:端口类型。

<ethernet-index>:下列以太端口中的一个:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8

trunk x (其中x范围为1-6)

none

rule-index:包分类规则索引号。

<1..65535>1~65535

说明

该类显示全部或部分指定的基于流的安全操作分配。

 

例如:

P3600#configure

P3600(CONFIG)#qos

P3600(CONFIG/QOS)#show metering-statistics interface xge 3 rule 1

Interface      :XGE 3

Rule index     :1

Red Packets    :0

Non-Red Packets      :0

P3600(CONFIG/QOS)#

 

 

 

8.11  组播系统级命令

CSM 组播系统级命令用来配置系统级组播。

8.11.1  group-to-vlan

操作级别

Privileged

配置模式

MCAST

语法

group-to-vlan <1..256> <1..4094> <A.B.C.D> <A.B.C.D> <uplink-vlan>

参数定义

group-to-vlan:配置组到VLAN映射。

<1..256>:输入索引。范围为1-256

<1..4094>:输入VLAN id。范围为1-4095

<A.B.C.D>:起始组ip地址。

<A.B.C.D>:结束组ip地址。

<uplink-vlan>: 1-4095。可选参数。用于配置向上联口转发report/leave时携带的VLAN,比如现场的组播VLAN 45,但上联口出去需要携带VLAN 2999

说明

该命令配置组到VLAN映射。

 

8.11.2  no group-to-vlan

操作级别

Privileged

配置模式

MCAST

语法

no group-to-vlan <1..256>

参数定义

no:删除组到VLAN映射。

group-to-vlan:删除组到VLAN映射。

<1..256>:输入索引。范围为1-256

说明

该命令删除组到VLAN映射。

 

例如:

P3600#configure

P3600(CONFIG)#multicast

P3600(CONFIG/MCAST)#group-to-vlan 1 1 225.1.1.1 225.2.2.2

P3600(CONFIG/MCAST)#show group-to-vlan

Multicast group to vlan mapping Entry:

-------------------------------------------------------------------------

id 1 vlan 1 start group 225.1.1.1 end group 225.2.2.2

P3600(CONFIG/MCAST)#no group-to-vlan 1

P3600(CONFIG/MCAST)#show group-to-vlan

Multicast group to vlan mapping Entry:

-------------------------------------------------------------------------

P3600(CONFIG/MCAST)#

 

8.11.3  show group-to-vlan

操作级别

Normal

配置模式

MCAST

语法

show group-to-vlan

参数定义

show:显示组到VLAN映射。

group-to-vlan:显示组到VLAN映射。

说明

该命令显示组到VLAN映射。

 

8.11.4  multicast-handling

操作级别

Privileged

配置模式

MCAST

语法

multicast-handling <none|snooping-with-proxy|transparent-snooping|ctc-stangdard|ctc-test >

参数定义

<none>:不支持IGMP

<snooping-with-proxy>:支持IGMP代理。

<transparent-snooping>:支持IGMP透传。

<ctc-stangard>:支持CTC可控。

<ctc-test>ONT是否支持CTC可控制。

说明

该命令设置系统的组播模式。

 

8.11.5  show multicast-handling

操作级别

Normal

配置模式

MCAST

语法

show multicast-handling

说明

该命令显示组播模式

 

例如:

P3600#configure

P3600(CONFIG)#multicast

P3600(CONFIG/MCAST)#show multicast-handling

Multicast Handling   :none

P3600(CONFIG/MCAST)#multicast-handling snooping-with-proxy

 

P3600(CONFIG/MCAST)#show multicast-handling

Multicast Handling         :snooping-with-proxy

 

P3600(CONFIG/MCAST)#

 

说明

要切换组播模式,必须先把组播模式参数设为“none”。

 

8.11.6  parameter

操作级别

Normal

配置模式

MCAST

语法

parameter

说明

该命令允许用户进入MCAST-parameter配置模式。

 

1. last-member-query-interval

操作级别

Privileged

配置模式

MCAST-parameter

语法

last-member-query-interval <1-25>

参数定义

last-member-query-interval: 配置IGMP上个成员查询间隔。

<1-25>:IGMP上个成员查询间隔,范围为1-25

说明

该命令配置IGMP上个成员查询间隔。

 

例如:

P3600#configure

P3600(CONFIG)#multicast

P3600(CONFIG/MCAST)#parameter

P3600(CONFIG/MCAST/PARAM)#last-member-query-interval 12

P3600(CONFIG/MCAST/PARAM)#exit

P3600(CONFIG/MCAST)#show parameter

Multicast parameter:

-------------------------------------------------------------------------

  Last member query interval: 12

  Query interval: 125

  Query response interval: 10

  Robust Value: 2Group aging time (calculated): 1010

  Sender IP: 1.2.3.4

  Sender IPV6: ::

P3600(CONFIG/MCAST)#

 

2. query-interval

操作级别

Privileged

配置模式

MCAST-parameter

语法

query-interval <10-3600>

参数定义

query-interval:配置查询间隔。

<10-3600>:查询间隔,范围为10-3600

说明

该命令配置查询间隔。

 

例如:

P3600#configure

P3600(CONFIG)#multicast

P3600(CONFIG/MCAST)#parameter

P3600(CONFIG/MCAST/PARAM)#query-interval 500

 

P3600(CONFIG/MCAST/PARAM)#exit

P3600(CONFIG/MCAST)#show parameter

Multicast parameter:

-------------------------------------------------------------------------

  Last member query interval: 12

  Query interval: 500

  Query response interval: 10

  Robust Value: 2

  Group aging time (calculated): 1010

  Sender IP: 1.2.3.4

  Sender IPV6: ::

P3600(CONFIG/MCAST)#

 

3. query-response-interval

操作级别

Privileged

配置模式

MCAST-parameter

语法

query-response-interval <1-25>

参数定义

query-response-interval:配置最大查询响应间隔。

<1-25>:最大查询响应间隔,范围为1-25

说明

该命令配置IGMP上个成员查询间隔。

 

例如:

P3600#configure

P3600(CONFIG)#multicast

P3600(CONFIG/MCAST)#parameter

P3600(CONFIG/MCAST/PARAM)#query-response-interval 20

P3600(CONFIG/MCAST/PARAM)#exit

P3600(CONFIG/MCAST)#show parameter

Multicast parameter:

-------------------------------------------------------------------------

  Last member query interval: 12

  Query interval: 500

  Query response interval: 20

  Robust Value: 2

  Group aging time (calculated): 1010

  Sender IP: 1.2.3.4

  Sender IPV6: ::

P3600(CONFIG/MCAST)#

 

4. show parameter

操作级别

Normal

配置模式

MCAST

语法

show parameter

参数定义

show:显示参数。

parameter:显示参数。

说明

该命令显示参数。

 

例如:

P3600#configure

P3600(CONFIG)#multicast

P3600(CONFIG/MCAST)#parameter

P3600(CONFIG/MCAST/PARAM)#help

 last-member-query-interval                - igmp last member query interval

 query-interval                            - Query interval

 query-response-interval                   - max query response

 robustness                                - robust value

 sender-ip                                 - IGMP packet sender ip

 sender-ipv6                               - IGMPV6 packet sender ip

P3600(CONFIG/MCAST/PARAM)#exit

P3600(CONFIG/MCAST)#show parameter

Multicast parameter:

-------------------------------------------------------------------------

  Last member query interval: 1

  Query interval: 125

  Query response interval: 10

  Robust Value: 2

  Sender IP: 1.2.3.4

  Sender IPV6: ::

 

P3600(CONFIG/MCAST)#

 

8.11.7  snooping

操作级别

Privileged

配置模式

MCSAT

语法

snooping

说明

该命令允许用户进入MCAST-Snooping配置模式。

 

例如:

P3600#configure

P3600(CONFIG)#multicast

P3600(CONFIG/MCAST)#snooping

P3600(CONFIG/MCAST/SNOOP)#help

 clear-counters                        - Clear multicast counters

 fast-leave                               - Fast Leave function

 show                                      - Display information

P3600(CONFIG/MCAST/SNOOP)#

 

1. clear-counters

操作级别

Privileged

配置模式

MCAST-SNOOP

语法

clear-counters

参数定义

clear-counters:清零组播计数器。

说明

该命令清零组播计数器。

 

2. fast-leave

操作级别

Privileged

配置模式

MCAST-SNOOP

语法

fast-leave <enable|disable>

说明

启用/禁用快速离开功能。缺省为禁用。

 

例如:

P3600#configure

P3600(CONFIG)#multicast

P3600(CONFIG/MCAST)#snooping

P3600(CONFIG/MCAST/SNOOP)#fast-leave enable

 

3. show counters

操作级别

Normal

配置模式

MCAST-SNOOP

语法

show counters

参数定义

show:显示组播计数器。

counters:显示组播计数器。

说明

该命令清零组播计数器。

 

例如:

P3600#configure

P3600(CONFIG)#multicast

P3600(CONFIG/MCAST)#snooping

P3600(CONFIG/MCAST/SNOOP)#clear-counters

P3600(CONFIG/MCAST/SNOOP)#show counters

  RX IGMP V1 Report                :0

  RX IGMP V2 Report                :0

  RX IGMP Leave                    :0

  RX IGMP Query                    :0

  RX IGMP General Query      :0

  RX IGMP Group Query              :0

  TX IGMP V1 Report                :0

  TX IGMP V2 Report                :0

  TX IGMP Leave                    :0

  TX IGMP Query                    :0

  TX IGMP General Query            :0

  TX IGMP Group Query              :0

  RX MLD V1 Report                 :0

  RX MLD V2 Report                 :0

  RX MLD V1 Leave                  :0

  RX MLD V1 Query                  :0

  RX MLD V1 General Query :0

  RX MLD V1 Group Query    :0

  TX MLD V1 Report                 :0

  TX MLD V2 Report                 :0

  TX MLD V1 Leave                  :0

  TX MLD V1 Query                  :0

  TX MLD V1 General Query  :0

  TX MLD V1 Group Query     :0

 

P3600(CONFIG/MCAST/SNOOP)#

 

4. show multicast-group

操作级别

Normal

配置模式

MCAST-SNOOP

语法

show multicast-group [vlan <1..4093>] [group <group-address>] [source <source-address>] [ interface <xge|is|trunk> <ethernet-list>]

参数定义

multicast-group:显示组播成员表(若没有指定其它参数,显示整个成员表)。

vlan:根据VLAN ID显示组播成员表。

<1..4094>VLAN ID

group:根据组IP地址显示组播成员表。

<group-address> IP source:根据源IP地址显示组播成员表。

<source-address>:源IP地址

interface:以太接口

<xge|is|trunk>:端口类型。

<ethernet-list>:显示以太网列表。下列的一个或多个以太网口:

xge x (其中x范围为1-8)

is x/y (其中x范围为1-17y范围为1-8)

trunk x (其中x范围为1-6)

使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。

说明

显示组播成员表,包括:

Group IP address(组IP地址)

Group member port list(组成员端口列表)

VLAN ID

Source IP address List(源IP地址列表)

Filter Mode(过滤模式)

IGMP VersionIGMP版本)

 

例如:

P3600#configure

P3600(CONFIG)#multicast

P3600(CONFIG/MCAST)#snooping

P3600(CONFIG/MCAST/SNOOP)#show multicast-group

Group IP Address     : 225.0.0.1

Group Vlan ID  : 100

Filter Mode    : Exclude

IGMP Version   : IGMPv2

 

Group Member Port List      : IS 1

xge 4

 

Source IP Address List      : 0.0.0.0

 

P3600(CONFIG/MCAST/SNOOP)#

 

 

P3600(CONFIG/MCAST/SNOOP)#

 

8.11.8  vlan-to-gem

操作级别

Privileged

配置模式

MCAST

语法

vlan-to-gem <1..256>  <1..4094>  <1..4094> <3800..3999>

参数定义

vlan-to-gem:配置VLANGEM映射。

<1..256>:配置入口id,范围为1-256

<1..4094>:配置起始VLAN

<1..4094>:配置结束VLAN

<3800..3999>:配置组播GEM端口。

说明

该命令配置VLANGEM映射。

 

8.11.9  no vlan-to-gem

操作级别

Privileged

配置模式

MCAST

语法

no vlan-to-gem <1-256>

参数定义

no:删除VLANGEM映射。

vlan-to-gem:删除VLANGEM映射。范围1-256

说明

该命令删除VLANGEM映射。

 

例如:

P3600#configure

P3600(CONFIG)#multicast

P3600(CONFIG/MCAST)#vlan-to-gem 123 234 345 3900

P3600(CONFIG/MCAST)#show vlan-to-gem

multicast vlan to gem mapping entry:

-------------------------------------------------------------------------

id 123 gem 3900 start vlan 234 end vlan 345

P3600(CONFIG/MCAST)#no vlan-to-gem 123

P3600(CONFIG/MCAST)#show vlan-to-gem

multicast vlan to gem mapping entry:

-------------------------------------------------------------------------

P3600(CONFIG/MCAST)#

 

8.11.10  show vlan-to-gem

操作级别

Normal

配置模式

MCAST

语法

show vlan-to-gem

参数定义

show:显示VLANGEM映射。

vlan-to-gem:显示VLANGEM映射。

说明

该命令显示VLANGEM映射。

 

8.11.11  vlan-to-new-vlan

操作级别

Privileged

配置模式

MCAST

语法

vlan-to-new-vlan olt-vlan <1..4094> ont-vlan <1..4094>

参数定义

vlan-to-new-vlan:配置组播VLAN转换条目。

olt-vlan:输入转换前的组播VLAN

<1..4094>:配置组播VLAN

ont-vlan:输入转换后的组播VLAN

<1..4094>:配置组播VLAN

说明

该命令配置组播VLAN转换。

 

8.11.12  no vlan-to-new-vlan

操作级别

Privileged

配置模式

MCAST

语法

no vlan-to-new-vlan olt-vlan <1..4094> ont-vlan <1..4094>

参数定义

no:删除组播VLAN转换。

vlan-to-new-vlan:组播VLAN转换条目。

olt-vlan:输入转换前的组播VLAN

<1..4094>:配置组播VLAN

ont-vlan:输入转换后的组播VLAN

<1..4094>:配置组播VLAN

说明

该命令删除组播VLAN转换。

 

例如:

P3600#configure

P3600(CONFIG)#multicast

P3600(CONFIG/MCAST)#vlan-to-new-vlan olt-vlan 123 ont-vlan 234

P3600(CONFIG/MCAST)#show vlan-to-new-vlan

multicast vlan to new vlan:

-------------------------------------------------------------------------

olt-vlan 123 to ont-vlan 234

P3600(CONFIG/MCAST)#no vlan-to-new-vlan olt-vlan 123 ont-vlan 234

P3600(CONFIG/MCAST)#show vlan-to-new-vlan

multicast vlan to new vlan:

-------------------------------------------------------------------------

P3600(CONFIG/MCAST)#

 

8.11.13  show vlan-to-new-vlan

操作级别

Normal

配置模式

MCAST

语法

show vlan-to-new-vlan

参数定义

show:显示组播VLAN转换。

vlan-to-new-vlan:组播VLAN转换条目。

说明

该命令显示组播VLAN转换。

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们