02-H3C P3500 GPON OLT常用命令介绍
本章节下载: 02-H3C P3500 GPON OLT常用命令介绍 (1.86 MB)
H3C P3500系列GPON OLT交换机
常用命令
资料版本:6W101-20231122
Copyright © 2023 新华三技术有限公司 版权所有,保留一切权利。 非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部,并不得以任何形式传播。 除新华三技术有限公司的商标外,本手册中出现的其它公司的商标、产品标识及商品名称,由各自权利人拥有。 本文档中的信息可能变动,恕不另行通知。 |
3.1.31 show running-version-check
5.1.4 show alarm-indication-conf
6.3.9 show interface-pm-24hour
6.11.18 show drop-precedence-mapping
6.11.19 show metering-statistics
6.12.9 show multicast-group-author
6.12.10 show multicast-preview-group
本章介绍全局配置模式下的命令。
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
access |
说明 |
该命令用于进入access配置模式。进入该模式后,提示符变成: System_name(ACCESS)。 |
例如:
P3500(ACCESS)#help
enable-password - Change enable password
idle-timeout - Set session idle timeout
inband-mgmt-host - Add inband management access host
inband-mgmt-host-list - Inband management host access list
no - Delete an object
password - Change user password
show - Display information
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
P3500(ACCESS)#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
alarm |
说明 |
该命令用于进入alarm配置模式。进入该模式后,提示符变成: system_name(ALARM)#。 |
例如:
P3500#alarm
P3500(ALARM)#help
alarm-led-control - Alarm LED control
show - Display information
P3500(ALARM)#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
configure |
说明 |
该命令用于进入configure配置模式。进入该模式后,提示符变成: system_name(CONFIG)#。
|
例如:
P3500#configure
P3500(CONFIG)#help
cross-vlan-mapping - Config the allowed mapping between
multicast VLAN and user VLANs
cross-vlan-mapping-check - Cross VLAN mapping Check
def-mcast-rate - Configure the default
Multicast rate
gem-ratelimit - gem-ratelimit
gpon-profile - set pon profile to all slot
l2 - Enter L2 configuration mode
l3 - Enter L3 configuration mode
mask - Create packet classification mask
mirror - Configure mirror
multicast - Enter DSLAM-MCAST
configuration mode
no - Delete an object.
qos - qos
rule - Create a packet classification
rule
security - Set MAC limit per bridge port
shaping-profile - Create a shaping profile
show - Display information
brief-show - show brief information
exit - Move up one level in configuration mode
help - Provide help information
history - Show command history
home - Return to global configuration mode
kill - Terminate other telnet sessions
ping - Send ICMP echo request
quit - Quit current session
slot - Enter slot-based configuration mode
telnet - Telnet to a remote host
traceroute - Perform traceroute
tree - Show command tree
who - Display login user information P3500(CONFIG)#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
ip |
说明 |
该命令用于进入IP配置模式。在该模式下,用户配置管理访问的参数。进入该模式后,提示符变成: system_name(IP)#。 |
例如:
P3500#ip
P3500(IP)#help
inband-management-vid - Set inband management VLAN ID
local-management - Set local management IP address.
management - Set management ip address
management-manner - Set system management manner
no - Delete an object
outband-management - Outband management mode
route - Add IP route
show - Display information
vlan_ip - Set Vlan IP address
brief-show - show brief information
exit - Move up one level in configuration mode
help - Provide help information
history - Show command history
home - Return to global configuration mode
kill - Terminate other telnet sessions
ping - Send ICMP echo request
quit - Quit current session
slot - Enter slot-based configuration mode
telnet - Telnet to a remote host
traceroute - Perform traceroute
tree - Show command tree
who - Display login user information
P3500(IP)#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
ipv6 |
说明 |
该命令用于进入IPV6配置模式。在该模式下,用户配置管理访问的参数。进入该模式后,提示符变成: system_name(IPv6)#。 |
例如:
P3500#ipv6
P3500(IPv6)#help
addroute - Add IPV6 route.
delroute - Del IPV6 route.
management - Set management ipv6 address.
openflag - management ipv6 address enable flag .
show - Display Ipv6 information.
brief-show - show brief information
exit - Move up one level in configuration mode
help - Provide help information
history - Show command history
home - Return to global configuration mode
kill - Terminate other telnet sessions
ping - Send ICMP echo request
quit - Quit current session
slot - Enter slot-based configuration mode
telnet - Telnet to a remote host
traceroute - Perform traceroute
tree - Show command tree
who - Display login user information
P3500(IPv6)#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
slot <s1-s2> |
说明 |
本命令用于进入基于板卡-插槽的配置模式 如果指定slot 1 ~ slot 5或slot U1 ~ slot U3,表示插槽位于机框1。 如果指定了slot S1-S2,且在指定的插槽存在物理插板,CLI进入指定的板卡配置模式,提示符变成与板卡类型相对应的大写提示符。 System_name(module_name-S1-S2)。 其中S1为1~3,S2为1~5,或U1~U3。 如果指定slot S1-S2,且在指定插槽存在虚拟插板,CLI进入指定的板卡配置模式,提示符变成与插板类型相对应的小写提示符。 System_name(module_name-S1-S2)。 其中S1为1~2,S2为1~5,或U1~U3。 如果指定了slot S1-S2,但指定插槽不存在物理或虚拟插板,CLI将返回如下显示: “no physical or virtual module found in the specified slot”.(未在指定插槽找到物理或虚拟插槽) 在进入不同GPON板槽位之后,实际下发进入端口视图的slot索引值仍为1/*/* |
例如:
P3500#slot 1
Entering character mode
Escape character is '^]'.
GPFA-1-1> help
Help may be requested at any point in a command by entering a question mark '?'. If nothing matches, the help list will be empty and you must backup until entering a '?' shows the available options.
Two styles of help are provided:
1. Full help is available when you are ready to enter a command argument (e.g. 'show ?') and describes possible argument(s).
2. Partial help is provided when an abbreviated argument is entered and you want to know what arguments match the input (e.g. 'show ru?'.)
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
syslog |
说明 |
该命令用于进入syslog配置模式。进入该模式后,提示符变成: system_name(syslog)# |
例如:
P3500#syslog
P3500(syslog)#help
logging - adds the syslog message category
no - Delete an object
proxy - Config the syslog proxy,transfer thesyslog 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
history - Show command history
home - Return to global configuration mode
kill - Terminate other telnet sessions
ping - Send ICMP echo request
quit - Quit current session
slot - Enter slot-based configuration mode
telnet - Telnet to a remote host
traceroute - Perform traceroute
tree - Show command tree
who - Display login user information
serverP3500(syslog)#
本节列出了一般命令。通用命令用于进入/离开 Privileged 模式、设置/显示标题行和系统联系人,显示命令历史等。
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
brief-show |
说明 |
该命令用于简要显示告警,端口,mac地址,温度,vlan等相关信息。 |
例如:
P3500#brief-show
alarm - Display alarm summary
alarm-history - Display alarm history summary
configuration - Current operating configuration
interface - Show L3 interface configuration
mac-address - Display MAC address
port - Display port related information
slot - Display all modules information
in the current system
temperature - Display CSM temperat information
trunk - Display trunk group configuration.
vlan - Display the VLAN summary
vlan-translate - Vlan translate information
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
brief-show alarm |
说明 |
该命令用于简要显示当前告警信息。 |
例如:
P3500#brief-show alarm
Num Seq Alarm Name Severity Ocurred Time Entity Type Entity Ins
---+--------+--------------------------+--------+--------------------+------------+----------
1 1 CSM Uplink Port Down Major 2021/07/30, 17:41:17 CSM Port 1-A-XGE 1
2 2 CSM Uplink Port Down Major 2021/07/30, 17:41:17 CSM Port 1-A-XGE 2
3 3 CSM Uplink Port Down Major 2021/07/30, 17:41:17 CSM Port 1-A-XGE 3
4 4 CSM Uplink Port Down Major 2021/07/30, 17:41:17 CSM Port 1-A-XGE 4
5 5 Module Type Mismatch Major 2021/07/30, 17:41:40 Module 1-P1
6 6 Standby CSM Remove Major 2021/07/30, 17:41:40 Shelf 1
7 7 Heartbeat Fail Major 2021/07/30, 17:41:41 Shelf 1
8 8 -48V DC Input Abnormal Major 2021/07/30, 17:42:29 Module 1-P2
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
brief-show alarm-history |
说明 |
该命令用于简要显示历史告警信息。 |
例如:
P3500#brief-show alarm-history
Seq Alarm Name Severity Ocurred Time Entity Type Entity Ins
--------+--------------------------+------------+--------------------+------------+----------
1 CSM Uplink Port Down Major 2021/07/30, 17:41:17 CSM Port 1-A-XGE 1
2 CSM Uplink Port Down Major 2021/07/30, 17:41:17 CSM Port 1-A-XGE 2
3 CSM Uplink Port Down Major 2021/07/30, 17:41:17 CSM Port 1-A-XGE 3
4 CSM Uplink Port Down Major 2021/07/30, 17:41:17 CSM Port 1-A-XGE 4
5 Module Type Mismatch Major 2021/07/30, 17:41:40 Module 1-P1
6 Standby CSM Remove Major 2021/07/30, 17:41:40 Shelf 1
7 Heartbeat Fail Major 2021/07/30, 17:41:41 Shelf 1
8 -48V DC Input Abnormal Major 2021/07/30, 17:42:29 Module 1-P2
9 Module Type Mismatch Major 2021/07/30, 17:43:24 Module 1-4
10 Module Fail to Up Major 2021/07/30, 17:46:25 Module 1-4
11 Module Fail to Up Major 2021/07/30, 17:46:41 Module 1-P1
12 PON Rouge ONT Major 2021/07/30, 17:49:00 PON ONT 1-2-2-3
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
brief-show configuration running |
说明 |
该命令用于简要显示控制交换板的配置。 |
例如:
P3500#brief-show configuration running
#MXCA software release version: E1001
#slot MXCA
enable
system name P3500
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
telnet-host-list disable
tftp-host-list disable
exit
......
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
brief-show interface |
说明 |
该命令用于显示L3接口配置。 |
例如:
P3500#config
P3500#l2
P3500(CONFIG/L2)#vlan interface xge 1,3 vid 111 tag
P3500(CONFIG/L2)#exit
P3500(CONFIG)#l3 interface interface vlan 111:1 ip 1.1.11.1 netmask 255.255.255.0
P3500(CONFIG)#brief-show interface
VLAN ID :111
VLAN Sub-Interface ID :1
IP Address :1.1.11.1
Subnet Mask :255.255.255.0
Proxy ARP State :Disable
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
brief-show mac-address [type <type>] [vid <type>] [mac <type>] [interface<xge|is|iu|trunk> <ethernet-index>] |
参数 |
type: 类型, dynamic或者static。 vid: vlan id,1..4095。 mac: mac地址。 interface: <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 不带任何参数则显示所有的mac地址。 |
说明 |
该命令用于显示mac地址信息。 |
例如:
P3500#brief-show mac-address
P3500(CONFIG/L3)#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
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
brief-show port |
说明 |
该命令用于显示port相关信息。 |
例如:
P3500#brief-show port
Port Admin Oper CfgSpeed CfgDup CfgFlow ActSpeed ActDup ActFlow Orient
IS 1/1 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 1/2 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 1/3 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 1/4 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 1/5 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 1/6 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 1/7 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 1/8 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 2/1 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 2/2 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 2/3 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 2/4 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 2/5 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 2/6 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 2/7 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 2/8 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 3/1 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 3/2 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 3/3 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 3/4 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 3/5 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 3/6 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 3/7 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 3/8 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 4/1 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 4/2 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 4/3 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 4/4 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 4/5 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 4/6 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 4/7 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 4/8 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 5/1 Unlock Up 10000M Full On 10000M Full On Subscriber
IS 5/2 Unlock Up 10000M Full On 10000M Full On Subscriber
IS 5/3 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 5/4 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 5/5 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 5/6 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 5/7 Unlock Down 10000M Full On Unknown Full Off Subscriber
IS 5/8 Unlock Down 10000M Full On Unknown Full Off Subscriber
IU 1/1 Unlock Down 10000M Full On Unknown Full Off Subscriber
IU 1/2 Unlock Down 10000M Full On Unknown Full Off Subscriber
IU 2/1 Unlock Down 10000M Full On Unknown Full Off Subscriber
IU 2/2 Unlock Down 10000M Full On Unknown Full Off Subscriber
IU 2/3 Unlock Down 10000M Full On Unknown Full Off Subscriber
IU 2/4 Unlock Down 10000M Full On Unknown Full Off Subscriber
IU 3/1 Unlock Down 10000M Full On Unknown Full Off Subscriber
IU 3/2 Unlock Down 10000M Full On Unknown Full Off Subscriber
IU 3/3 Unlock Down 10000M Full On Unknown Full Off Subscriber
IU 3/4 Unlock Down 10000M Full On Unknown Full Off Subscriber
XGE 1 Unlock Down Auto Auto Auto Unknown Full Off Network
XGE 2 Unlock Up Auto Auto Auto 1000M Full On Network
XGE 3 Unlock Up Auto Auto Auto 10000M Full On Network
XGE 4 Unlock Up Auto Auto Auto 10000M Full On Network
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
brief -show slot [detail] |
参数定义 |
brief-show:显示信息。 slot:显示现有系统中的所有插板的信息。detail:显示更多的详细信息。 |
说明 |
显示当前系统中的插板信息,参数解释如下: Shelf-slot,机框-插槽 (5个字节) Module_name,插板名称(对于CSM,显示为插板名称(A/S/L(standalone)),若插槽不是虚拟分配且其available state (可用状态)是UNR,插板名称显示为UNR。(9个字节) Available state (可用状态:VIR(虚拟), MIS(不匹配), MAT(匹配)或UNR(不识别)) (4个字节) Operational Status (运行状态:Up、Down) (5 个字节) Hardware version (硬件版本,包括部件号:硬件版本) (14 个字节) Software/firmware revision (软件/固件版本,11个字节) Serial Number (序列号,17个字节) Boot-loader Version (Boot-loader 版本,当命令包含detail参数时显示) Uptime (运行时间,dddd:hh:mm:ss) (13个字节) File System version (file system版本,当命令包含detail参数时显示,只适用于CSM1x插板) Module disabled cause (插板禁用原因,当命令包含detail参数时显示) 注意:对于POW1A、PCU、风扇盘和背板,shelf-slot一栏将显示如下: PWRA: “shelf-P1/P2”,shelf为1~2。PU1A:“shelf-U1” ,shelf为1~2。 背板:“shelf” ,shelf为1~2。风扇盘:“shelf” ,shelf为1~2。 当插板available state为VIR、MIS、UNR时,所有的版本和运行时间信息都显示为NA。 |
P3500#brief-show slot
Sh-S Module Ava O Hardware Ver SW Ver Serial Number UP Time
1-1 GPFA MAT U GN0206021161:A0 E1000 1012018112600030 1 days 08:11:13
1-2 GPFA VIR D N/A:N/A N/A N/A N/A
1-B MXCA(A) MAT U GN0206030340:B3 E1000 1012020033000036 1 days 08:13:53
1-P2 PWRA MAT U N/A:N/A N/A N/A N/A
1 FAN1A MAT U GN2424525305:A6 N/A 1012017082900435 N/A
1 BKP1G MAT U N/A:N/A N/A N/A N/A
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
brief-show temperature |
说明 |
该命令用于显示温度信息。 |
例如:
P3500#brief-show temperature
CSM Temperature : 40
Fan Speed : 70
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
brief-show trunk |
说明 |
该命令用于显示trunk组信息。 |
例如:
P3500(CONFIG/L2/PORT)#trunk 1 awe iu 1/1,2 srcMAC
P3500(CONFIG/L2/PORT)#brief-show trunk
Trunk group :1
Trunk name :awe
Port list :IU 1/1,IU 1/2
Load balance scheme :srcMAC
Administrative Status :UP
Operational Status :DOWN
CfgSpeed :10000M
CfgDup :Full
CfgFlow :On
Actual speed :Unknown
ActDup :Full
ActFlow :Off
Orient :Subscriber
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
brief-show vlan |
说明 |
该命令用于简要显示vlan相关信息。 |
例如:
P3500(CONFIG/L2/PORT)#brief-show vlan
vlan ingress check : enable
vlan user-isolation : Enable
S-Vlan TPID : 0x8100
C-Vlan TPID : 0x8100
VID Name Ports Untag ports Mode
----+-------------------+----------------------------------+------------------------+-------
1 DEFAULT_VLAN IS 1/1-5/8,IU 2/1-3/4,xge 1-3,tr IU 2/1-3/4,xge 1-3,tru Full
unk 1 nk 1
6 hanhan IS 2/1-2/8,xge 1,xge 3 Full
41 41 IS 1/1,IS 1/6 Full
50 test IS 2/1,xge 2 Routed
100 sun xge 2 Full
101 jinx IS 1/1-1/2,IS 2/1-2/2,IS 4/1,IU Full
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
brief-show vlan-translate <slot> <port> <ont> |
说明 |
该命令用于简要显示vlan转换相关信息。 |
例如:
P3500(CONFIG/L2/PORT)#brief-show vlan-translate
VLAN Translation Entry:
slot port ont vport cvid new-svid new-cvid cos new-cos
--------------------------------------------------------------------------
1 1 1 1 41 41 4095 copy 8
1 1 1 1 101 101 4095 copy 8
1 1 2 1 41 41 4095 copy 8
1 1 3 1 41 41 4095 copy 8
1 1 4 1 41 41 4095 copy 8
1 1 5 1 41 41 4095 copy 8
1 1 6 1 41 41 4095 copy 8
1 1 7 1 41 41 4095 copy 8
1 1 8 1 41 41 4095 copy 8
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
exit |
参数定义 |
exit:配置模式上升一个级别。 |
说明 |
该命令用于将配置模式升高一个级别。在全局配置模式下输入exit,结束当前CLI会话。 |
例如:
P3500#configure
P3500(CONFIG)#exit
P3500#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
help |
参数定义 |
help:提供帮助信息。 |
说明 |
该命令用于为用户提供帮助信息,相当于在提示符后直接输入“?”。 |
例如:
P3500#help
access - Enter access configuration mode
alarm - Enter Alarm configuration mode
auto-correction - Enable CLI auto correction mode
banner - Configure login banner
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
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
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
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
time - Local Time
timezone - Time zone
tos - Set TOS configuration
upgrade-lc - Upgrade Line Card Image
upload - Upload a file
virtual - Assign virtual module
write - Write a file
ztd - configuration for auto configuration on startup
brief-show - show brief information
exit - Move up one level in configuration mode
help - Provide help information
history - Show command history
home - Return to global configuration mode
kill - Terminate other telnet sessions
ping - Send ICMP echo request
quit - Quit current session
slot - Enter slot-based configuration mode
telnet - Telnet to a remote host
traceroute - Perform traceroute
tree - Show command tree
who - Display login user information
P3500#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
history |
参数定义 |
history:命令历史。 |
说明 |
该命令显示配置的历史缓存大小(通过命令history-size设置)以及最大缓存允许范围内最近输入的命令。 |
例如:
P3500#history-size 30
P3500#history
History buffer is configured to show up to 30 commands.
1 no pause
2 Z
3 disable
4 enable
5 history-size 30
6 history
P3500#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
home |
参数定义 |
home:返回到全局配置模式。 |
说明 |
该命令将CLI返回到全局配置模式。 |
例如:
P3500#configure l2
P3500(L2)#
P3500(L2)#home
P3500#
操作级别 |
Administrator |
配置模式 |
全局配置模式 |
语法 |
kill |
参数定义 |
无 |
说明 |
该命令用于kill除了本身以外的其他CLI会话。 |
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
ping <A.B.C.D> [size <1..60000>] [timeout <1..3600>] [number <0..65535>] |
参数定义 |
<A.B.C.D>:目标IP地址。 size:发送包的大小。 <1..60000>:字节数。 timeout:等待第一次响应的秒数,缺省值为10秒。 <1..3600>:秒数。 number:在发送指定的包个数后停止发送。如果数值设为0,将一直发送 ICMP回应请求包,直到用户手工停止(按CTRL-C)。 <0..65535>:包的个数。 |
说明 |
该命令发送ping数据包到目的IP地址。 |
例如:
P3500#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
P3500#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
quit |
说明 |
该命令结束当前CLI会话。 |
例如:
P3500#quit
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
telnet <A.B.C.D> [<port-number>] |
参数定义 |
telnet:telnet到一个远程主机。 <A.B.C.D>:目标IP地址。 <port-number>:端口号。 |
说明 |
该命令建立起到目标IP地址的telnet会话。 |
例如:
P3500#telnet 192.168.0.36
Entering character mode
Escape character is '^]'.
C1-2>
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
traceroute <A.B.C.D> [ max-ttl <1..255>][ min-ttl <1..255>][ to-interval <1..120>][ src <A.B.C.D>] |
参数定义 |
traceroute:跟踪路由。 <A.B.C.D>:目标IP地址。max-ttl:最大生存时间。 <1..255>:范围1 ~ 255,缺省值为30。 min-ttl:最小生存时间。 <1..255>:范围1 ~ 255,缺省值为1。to-interval:超时(timeout)间隔。 <1..120>:范围1~120秒,缺省为3秒。 src: 源IP地址。 <A.B.C.D>:源IP地址。 |
说明 |
该命令执行到目标IP地址的跟踪路由。 |
例如:
P3500#traceroute 10.230.7.32 max-ttl 20 min-ttl 2 to-interval 3 src
10.230.5.88
Use <CtrlC> to stop the traceroute:
traceroute to 10.230.7.32 (10.230.7.32) from 10.230.5.88, 20 hops max,
38 byte packets 2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
11 * * *
12 * * *
13 * * *
14 * * *
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
P3500#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
who |
参数定义 |
|
说明 |
该命令用于显示所有CLI会话。 |
例如:
P3500#who
User IP Address Login Time
-------------+--------------------------------+--------------------------
admin [::ffff:192.168.7.107]:62426 1999/11/30, 01:37:13
本节列出了系统命令。系统命令用于重启、上载、下载、保存等。
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
auto-correction <enable|disable> |
参数定义 |
auto-correction:自动校准开关。 <enable|disable>: 使能或去使能。缺省值:enable。 |
说明 |
该命令用于启用CLI自动校正模式。 |
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
show auto-correction |
参数定义 |
show:显示CLI自动校正模式状态。 auto-correction:显示CLI自动校正模式状态。 |
说明 |
该命令用于显示CLI自动校正模式状态。 |
例如:
P3500#auto-correction enable
P3500#show auto-correction
Auto-correction feature enabled
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
banner [<delineator>] |
参数定义 |
banner:自动校准开关。 <delineator>:分隔符。 |
说明 |
该命令用于配置登录横幅。 |
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
show banner |
参数定义 |
show:显示系统banner。 banner:显示系统banner。 |
说明 |
该命令用于显示系统banner。 |
例如:
P3500#banner q
Enter TEXT message. End with the character q
hello q
P3500#show banner
hello
P3500#
操作级别 |
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服务器下载文件到节点。 文件名称应包括全路径。假设主用CSM板和备用CSM板上的目标目录为DIR,DIR是tftpboot的子目录,文件名称为FILENAME,那么全路径应为: 若下载到主用CSM板上,全路径为/DIR/FILE或 /active/DIR/FILENAME。 若下载到备用CSM板上,全路径为 /standby/DIR/FILENAME。 若备份同步(Redundancy Synchronization)功能开启,下载到主用CSM板的文件将下载到主用CSM板,并同步到备用CSM 板。 若备份同步(Redundancy Synchronization)功能关闭,下载到主用CSM板的文件将仅下载到主用CSM板。 若操作员仅需要把文件下载到备用CSM板,目标文件名应指向备用CSM板的目录。 |
例如:
P3500#download ip 10.230.9.1 src csm1g.ipe dst csm1g.ipe
Are you sure you want to download this file (y/n)?
y
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 csm1g.ipe success .
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
commit-image <active|standby|both> |
参数定义 |
commit-image:执行CSM image文件。 <active|standby|both>: 主用CSM板、备用CSM板、主用和备用CSM板。 |
说明 |
该命令用于分别执行主用或备用CSM板的image文件或同时执行两块CSM板的image文件。 |
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
show image-commit-status |
说明 |
该命令用于显示CSM映象文件执行状态。 |
例如:
P3500#commit-image both
Commit Active Operation done. Commit Standby Operation done.
Please use command "show image-commit-status" to check commit status!
P3500#show image-commit-status
Location Module Status Commit Status
Slot A Active Inprogress
Slot B Standby Inprogress
P3500#show image-commit-status
Location Module Status Commit Status
Slot A Unknown Success
Slot B Active Success
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
disable |
说明 |
该命令用于从Privileged级别进入到Normal级别(暂时未实现此命令) |
例如:
P3500#disable
You are in the Administrator Mode,the command is invalid
P3500#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
enable |
说明 |
该命令用于从Normal级别进入到Privileged级别(暂时未实现此命令) |
例如:
P3500#enable
Enter Password:
You are now in the Privileged Mode
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
dot1p [mgmt <enable|disable> <0..7>] |
参数定义 |
dot1p :设置优先级标签。 mgmt:管理部分。 <enable|disable>:启用、禁用。 <0..7>:优先级范围,缺省值为5. |
说明 |
该命令用于设置802.1p优先级标签。 |
例如:
P3500#dot1p mgmt enable 7
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
tos [ mgmt <1..7>] |
参数定义 |
tos:设置TOS配置。 mgmt:管理部分。 <1..7>:取值范围1~7,缺省值为1。 |
说明 |
该命令设置TOS配置。 |
例如:
P3500#show qos
System TOS/DSCP option :None
Management Interface TOS :1
Management Interface DSCP :CS2
P3500#tos mgmt 3
P3500#show qos
System TOS/DSCP option :TOS
Management Interface TOS :3
Management Interface DSCP :CS2
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
dscp [ mgmt <CS0|AF11|AF12|AF13|AF21|AF22|AF23|AF31|AF32|AF33|AF4 1|AF42|AF43|EF|CS1|CS2|CS3|CS4|CS5|CS6|CS7>] |
参数定义 |
dscp:设置DSCP配置。 mgmt:管理部分。 <CS0|AF11|AF12|AF13|AF21|AF22|AF23|AF31|AF32|AF33|AF4 1|AF42|AF43|EF|CS1|CS2|CS3|CS4|CS5|CS6|CS7>:DSCP 值, 缺省值为CS2。 |
说明 |
该命令设置DSCP配置。 |
例如:
P3500#dscp mgmt CS6
P3500#show qos
System TOS/DSCP option :DSCP
Management Interface TOS :1
Management Interface DSCP :CS6
Option for management :Disable
Priority for management :0
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
no tos-dscp |
说明 |
该命令恢复TOS/DSCP配置缺省值。 |
例如:
P3500#show qos
System TOS/DSCP option :DSCP
Management Interface TOS :1
Management Interface DSCP :CS1
Option for management :Disable
Priority for management :0
P3500#no tos-dscp
P3500#show qos
System TOS/DSCP option :None
Management Interface TOS :1
Management Interface DSCP :CS2
Option for management :Disable
Priority for management :0
P3500#
操作级别 |
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:秒。 |
说明 |
该命令用于设置夏令时开始时间和结束时间。 |
例如:
P3500#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
P3500#dst date start 2009/12/21/10/10/10 end 2009/12/22/10/10/10
P3500#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
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
dst option <enable|disable> |
参数定义 |
dst:夏令时。 option:夏令时选项。 <enable|disable>:启用或关闭夏令时。缺省值:disable. |
说明 |
该命令用于设置夏令时选项(启用或关闭)。 |
例如:
P3500#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
P3500#dst option enable
P3500#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
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
erase config |
参数定义 |
erase:从闪存删除配置数据。 config:配置数据。 |
说明 |
该命令用于从闪存删除配置数据(保留IP地址和缺省网关)。 |
例如:
P3500#erase config
Are you sure you want to erase the configuration (y/n)?
y
Configuration erased.
P3500#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
history-size <0..256> |
参数定义 |
<0..256>:保存在历史中的命令最多个数,取值范围:0-256。缺省值:20 |
说明 |
该命令设置历史缓存大小。 |
例如:
P3500# history-size 100
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
manual-sync CSM |
参数定义 |
manual-sync:手工同步。CSM: CSM1x 插板。 |
说明 |
手工同步CSM插板。 当同步状态为“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板和备份CSM之间同步文件和数据。请在同步状态不在“in synchronizing”(同步中)时做手工切换。) |
例如:
P3500#manual-sync CSM
P3500#show sync
CSM Sync Configuration : Enable
CSM Sync Status : In Synchronizing
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
no file <file-name> |
参数定义 |
no: 删除文件。 file:闪存文件。 <file-name>:文件名称,最长64字节。 |
说明 |
该命令用于从闪存删除文件。 文件名称应包括全路径。假设主用CSM板和备份CSM上的源目录为DIR,DIR是“tftpboot”的子目录,文件名为FILENAME, 那么全路径为: 若从主用CSM板删除文件,全路径为/DIR/FILE或 /active/DIR/FILENAME。 若从备用CSM板删除文件,全路径为 /standby/DIR/FILENAME。 不可能从CSM板删除映象文件。节点拒绝此类操作。 |
例如:
P3500#no file .namemap.dat
Are you sure you want to delete this file (y/n)?
n
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
no sntp server <A.B.C.D> |
参数定义 |
no:删除。 sntp server:SNTP服务器。 <A.B.C.D>: SNTP 服务器IP地址。 |
说明 |
该命令删除SNTP服务器。 |
例如:
P3500#sntp server 1.1.1.1
P3500#show sntp
SNTP status : Disable
client type : NTP
NTP minpoll : 1200 (sec)
NTP maxpoll : 1200 (sec)
SNTP server LastSync LastReceive
1.1.1.1 Not Sync 0-00:00:00
P3500#no sntp server 1.1.1.1
P3500#show sntp
SNTP status : Disable
client type : NTP
NTP minpoll : 1200 (sec)
NTP maxpoll : 1200 (sec)
SNTP server LastSync LastReceive
P3500#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
pause |
说明 |
当输出超过一页显示不下时,该命令激活后续CLI命令输出的暂停功能。用户可以按任何键(或当前命令指定的按键)显示下一页内容。 |
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
no pause |
说明 |
当输出超过一页显示不下时,该命令关闭后续CLI命令输出的暂停功能。输出将没有暂停全部显示完毕。 |
例如:
P3500#no pause
P3500#help
access - Enter access configuration mode
alarm - Enter Alarm configuration mode
auto-correction - Enable CLI auto 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
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
P3500#pause
P3500#help
access - Enter access configuration mode
alarm - Enter Alarm configuration mode
auto-correction - Enable CLI auto 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)
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
protection-link <uplink-port> |
参数定义 |
protection-link:为保护链路增加以太网口。 分配上行链路(朝着WAN方向或上行)作为保护链路上行端口是以下端口的一个: xge x (其中x = 1 .. 4)。 trunk x (其中x = 1 .. 6)。 |
说明 |
该命令为保护链路增加以太上行端口。 |
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
no protection-link |
参数定义 |
no:删除已有的保护链接。 protection-link:保护链接。 |
说明 |
该命令删除一个已有的保护链接。 |
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
show protection-link |
参数定义 |
show:显示保护链路上的以太端口。 protection-link:保护链路上的以太端口。 |
说明 |
该命令用于显示保护链路上的以太端口。 |
例如:
P3500#protection-link xge 1
P3500#show protection-link
Protection Link :xge 1;
P3500#no protection-link
P3500#show protection-link
Protection Link :none;
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
reset all [soft|hard] |
参数定义 |
reset:重启一块或多块插板。 all:除CSM以外的所有插板。 soft:通过通信消息软重启插板。hard:通过物理重启信号重启插板。 |
说明 |
重启系统中除CSM板外的所有插板。缺省为软重启。 |
例如:
P3500#reset all hard
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
reset slot <S1-S2> [soft|hard] |
参数定义 |
reset:重启一块或多块插板。slot:根据插槽号重启插板。 <S1-S2 >:插板所在的插槽,格式为S1-S2。S1为1~2,S2为 1~5、或U1~U3。目前仅支持S1=1。 soft:通过通信消息软重启插板。 hard:通过物理重启信号重启插板。 |
说明 |
重启指定机框和插槽上的插板。 重启主用CSM板会引起CSM板切换。缺省为软重启。 若两块CSM板正在同步,不允许CSM板重启,并显示如下错误信息: “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””(. 重启可能导致节点文件或数据库丢失或不一致,因为节点正在主用CSM板和备用CSM板之间同步文件和数据库。请在同步状态不为“in synchronizing”(同步中)时重启插板。) 若当前映象文件或file system执行状态为“in progresss”(进行中),禁止CSM板重启,并显示如下错误信息: “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板正在执行CSM映象文件或节点file system映象文件。请在执行状态不为“in progress”(进行中)时重启插板。) |
例如:
P3500#reset slot 1-1 soft
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
reset type <GPFA|Active_CSM|Standby_CSM> [soft|hard] |
参数定义 |
reset:重启一块或多块插板type: 插 板 类 型: active_CSM:重启主用CSM板 Standby_CSM:重启备用CSM板 GPFA:重启GPFA板 soft:软重启插板。 hard:通过物理重启信号重启插板。 |
说明 |
重启一种类型的插板。 缺省为软重启。 |
例如:
P3500#show slot
Sh-S Module Ava O Hardware Ver SW Ver Serial Number UP Time
1-1 GPFA MAT U GN0206021161:A0 E1000 1012018112600030 1 days 08:11:13
1-B MXCA(A) MAT U GN0206030340:A8 E1001 1012019111300003 5 days 07:57:34
1-P1 PWRA MAT U 2424552505:A4 N/A 1012013053104076 N/A
1 FAN1A MAT U GN2424525305:A6 N/A 1012017082800235 N/A
1 BKP1G MAT U N/A:N/A N/A N/A N/A
P3500#reset type GPFA soft
P3500#show slot
Sh-S Module Ava O Hardware Ver SW Ver Serial Number UP Time
1-1 GPFA MAT D N/A:N/A N/A N/A N/A
1-B MXCA(A) MAT U GN0206030340:A8 E1001 1012019111300003 5 days 08:06:16
1-P1 PWRA MAT U 2424552505:A4 N/A 1012013053104076 N/A
1 FAN1A MAT U GN2424525305:A6 N/A 1012017082800235 N/A
1 BKP1G MAT U N/A:N/A N/A N/A N/A
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
resetnode |
参数定义 |
resetnode:重启整个节点 |
说明 |
该命令重启节点 若两块CSM板之间正在进行同步,不允许重启节点,并显示如下错误信息: “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””. (重启可能导致节点文件或数据库丢失或不一致,因为节点正在主用CSM板和备用CSM板之间同步文件和数据库。请在同步状态不为“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板正在执行CSM映象文件或节点file system映象文件。请在执行状态不为“in progress”(进行中)时重启节点。) |
例如:
P3500#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
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
save [config] |
参数定义 |
save:保存配置 config:保存配置到配置文件 |
说明 |
该命令保存当前全局、CSM以及其它所有插板的配置到配置文件。 |
例如:
P3500#save config
Are you sure you want to save the configuration (y/n)?
y
P3500#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
show board |
参数定义 |
show:显示当前系统中所有模块信息。 board:显示当前系统中所有模块信息。 |
说明 |
该命令显示当前系统中所有模块信息。 |
例如:
P3500#show board
Sh-S Module Ava O Hardware Ver SW Ver Serial Number UP Time
1-1 GPFA MAT U GN0206021161:A0 E1001 1012018112600029 0 days 18:27:38
1-B MXCA(A) MAT U GN0206030340:A8 E1001 1012019111300003 0 days 22:38:49
1-P1 PWRA MAT U 2424552505:A4 N/A 1012013053104076 N/A
1 FAN1A MAT U GN2424525305:A6 N/A 1012017082800235 N/A
1 BKP1G MAT U N/A:N/A N/A N/A N/A
P3500#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
show bsp-write-status |
参数定义 |
show:显示bsp写入状态。 bsp-write-status:显示bsp写入状态。 |
说明 |
该命令显示bsp写入状态。 |
例如:
P3500#show bsp-write-status
Location Module Status Bsp Write Status
Slot A Unknown Unknown
Slot B Active Idle
P3500#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
show cpu-memory |
参数定义 |
cpu-memory:当前CPU和内存使用情况。 |
说明 |
该命令显示主用和备用CSM板的CPU和内存使用情况,包括: 主用CSM板CPU使用率主用CSM板内存使用率备用CSM板CPU使用率 备用CSM板内存使用率。 |
例如:
P3500#show cpu-memory
Active CSM CPU usage : 26%
Active CSM Memory usage : 57%
Standby CSM CPU usage : 30%
Standby CSM Memory usage : 58%
P3500#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
show file [active|standby|ramdisk] |
参数定义 |
file:显示闪存信息。 [active|standby|ramdisk]:主用CSM板或备用CSM板,缺省为主用 CSM板。 |
说明 |
该命令显示闪存( “tftpboot”)上的文件和文件夹大小、最近更新时间以及总的闪存大小(使用/未使用)。 显示的文件包括: 当前目录下的所有文件,包括映象文件和配置文件。 |
例如:
P3500#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-26 10:38:18 12669815 /tftpboot/csm1g.ipe
2021-01-11 07:50:27 223975 /tftpboot/dump.tar.gz
2021-01-01 21:52:15 40 /tftpboot/env.dat
2021-01-01 00:00:11 <DIR> 40 /tftpboot/getbulk
2021-01-11 15:52:40 2397 /tftpboot/lc0004.cfg
2021-01-23 03:19:12 597 /tftpboot/list_file
2021-01-26 11:01:03 <DIR> 80 /tftpboot/pm
2021-01-26 11:01:03 223 /tftpboot/pm/_pm_1_1.0_948884400_0_15m.gz
2021-01-26 11:00:04 445 /tftpboot/pm/_pm_1_1.0_948884400_3_15m.gz
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
P3500#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
show image-in-csm |
参数定义 |
image-in-csm:储存在CSM板的映象文件信息列表 |
说明 |
该命令显示储存在CSM板的映象文件信息列表: 文件名 版本。 |
例如:
P3500#show image-in-csm
File Name Version
csm1g.ipe E1001
P3500#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
show qos |
说明 |
该命令显示TOS/DSCP配置。 |
例如:
P3500#show qos
System TOS/DSCP option :None
Management Interface TOS :1
Management Interface DSCP :CS2
Option for management :Disable
Priority for management :0
P3500#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
show running-version-check |
参数定义 |
show:显示节点运行版本检查。 running-version-check:显示节点运行版本检查。 |
说明 |
该命令显示节点运行版本检查。 |
例如:
P3500#show running-version-check
Shelf-Slot Module Name Required Version Running Version Result
1-3 GPFA E1001 E1001 Pass
1-B MXCA E1001 E1001 Pass
P3500#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
show slot [detail] |
参数定义 |
show:显示信息。 slot:显示现有系统中的所有插板的信息。detail:显示更多的详细信息。 |
说明 |
显示当前系统中的插板信息,参数解释如下: Shelf-slot,机框-插槽 (5个字节) Module_name,插板名称(对于CSM,显示为插板名称(A/S/L(standalone)),若插槽不是虚拟分配且其available state (可用状态)是UNR,插板名称显示为UNR。(9个字节) Available state (可用状态:VIR(虚拟), MIS(不匹配), MAT(匹配)或UNR(不识别)) (4个字节) Operational Status (运行状态:Up、Down) (5 个字节) Hardware version (硬件版本,包括部件号:硬件版本) (14 个字节) Software/firmware revision (软件/固件版本,11个字节) Serial Number (序列号,17个字节) Boot-loader Version (Boot-loader 版本,当命令包含detail参数时显示) Uptime (运行时间,dddd:hh:mm:ss) (13个字节) File System version (file system版本,当命令包含detail参数时显示,只适用于CSM1x插板) Module disabled cause (插板禁用原因,当命令包含detail参数时显示) 注意:对于POW1A、PCU、风扇盘和背板,shelf-slot一栏将显示如下: PWRA: “shelf-P1/P2”,shelf为1~2。PU1A:“shelf-U1” ,shelf为1~2。 背板:“shelf” ,shelf为1~2。风扇盘:“shelf” ,shelf为1~2。 当插板available state为VIR、MIS、UNR时,所有的版本和运行时间信息都显示为NA。
|
例如:
P3500#show slot detail
Shelf-Slot : 1-1
Module : XSM1A
Available : VIR
Opstate : Down
Hardware : N/A:N/A
Software : N/A
Serial Number : N/A
Boot loader : N/A
UP Time : N/A
Disable Reason : Unknown
Shelf-Slot : 1-2
Module : GPFA
Available : MAT
Opstate : Up
Hardware : GN0206030328:A0
Software : 1.2.0.27
Serial Number : 1012019122000427
Boot loader : N/A
UP Time : 0 days 22:36:35
Disable Reason : Unknown
Shelf-Slot : 1-4
Module : GPFA
Available : MAT
Opstate : Up
Hardware : GN0206030328:A0
Software : 1.2.0.25
Serial Number : 1012019122000418
Boot loader : N/A
UP Time : 0 days 21:39:49
Disable Reason : Unknown
Shelf-Slot : 1-5
Module : GPFA
Available : MAT
Opstate : Up
Hardware : GN0206030328:A0
Software : 1.2.0.27
Serial Number : 1012019122000425
Boot loader : N/A
UP Time : 0 days 22:36:35
Disable Reason : Unknown
Shelf-Slot : 1-A
Module : MXCA(A)
Available : MAT
Opstate : Up
Hardware : GN0206030340:B0
Software : E1001
Serial Number : 1012020033000033
Boot loader : 1.0
File system version : 1.0.0.25
Kernel Version : 3.1.1.4
UP Time : 0 days 22:39:13
Disable Reason : Unknown
Shelf-Slot : 1-B
Module : MXCA(S)
Available : MAT
Opstate : Up
Hardware : GN0206030340:B3
Software : E1001
Serial Number : 1012020033000030
Boot loader : 1.0
File system version : 1.0.0.25
Kernel Version : 3.1.1.4
UP Time : 0 days 22:37:10
Disable Reason : Unknown
Shelf-Slot : 1-P2
Module : PWRA
Available : MAT
Opstate : Up
Hardware : 2424552505:A4
Software : N/A
Serial Number : 1012013052800445
Boot loader : N/A
UP Time : N/A
Disable Reason : Unknown
Shelf-Slot : 1
Module : FAN1A
Available : MAT
Opstate : Up
Hardware : GN2424525305:A6
Software : N/A
Serial Number : 1012017083000817
Boot loader : N/A
UP Time : N/A
Disable Reason : Unknown
Shelf-Slot : 1
Module : BKP1G
Available : MAT
Opstate : Up
Hardware : N/A:N/A
Software : N/A
Serial Number : N/A
Boot loader : N/A
UP Time : N/A
Disable Reason : Unknown
P3500#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
show sync |
参数定义 |
sync:同步设置和状态。 |
说明 |
显示当前同步设置和状态,包括: 同步选项 同步状态:Not applicable(不适用)、In synchronizing(同步中)、 Synchronized(已同步)、Not synchronized(未同步)。 |
例如:
P3500#show sync
CSM Sync Configuration : Enable
CSM Sync Status : Synchronized
CSM Manual Sync Status : Synchronized
P3500#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
show time |
参数定义 |
time:本地时间。 |
说明 |
显示时间,包括: 当前本地时间 (YYYY/MM/DD/hh/mm/ss) 时区 当前夏令时(daylight saving time,DST)选项以及夏令时开始和结束日期。 |
例如:
P3500#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
P3500#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
show version |
参数定义 |
show:显示bsp/cpld/app版本。 version:显示bsp/cpld/app版本。 |
说明 |
该命令显示bsp/cpld/app版本。 |
例如:
P3500#show version
cpld_version = 1.3
app_version = E1001
kernel_version = 3.1.1.4
uboot_version = 3.1.1.1
dtb_version = 3.1.1.1
rootfs_version = 3.1.1.2
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
sntp ntpPoll<60..86400> <60..86400> |
参数定义 |
sntp:Simple Network Time Protocol(简单网络时间协议) ntpPoll:Network Time Protocol(网络时间协议) <60..86400>:NTP最小时间,缺省为1200s。 <60..86400>:NTP最大时间,缺省为1200s。 |
说明 |
设置NTP时间。 |
例如:
P3500#sntp ntpPoll 60 1800
P3500#show sntp
SNTP status : Enable
client type : NTP
NTP minpoll : 60 (sec)
NTP maxpoll : 1800 (sec)
SNTP server LastSync LastReceive
10.230.9.1 Not Sync 0-00:00:00
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
sntp option <enable|disable> |
参数定义 |
sntp:Simple Network Time Protocol(简单网络时间协议) option:SNTP选项 <enable|disable>:启用或禁用SNTP客户端。缺省值:disable |
说明 |
设置SNTP选项。 |
例如:
P3500#show sntp
SNTP status : Disable
client type : NTP
NTP minpoll : 1200 (sec)
NTP maxpoll : 1200 (sec)
SNTP server LastSync LastReceive
P3500#sntp option enable
P3500#show sntp
SNTP status : Enable
client type : NTP
NTP minpoll : 1200 (sec)
NTP maxpoll : 1200 (sec)
SNTP server LastSync LastReceive
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
sntp poll-interval <60..65535 > |
参数定义 |
sntp:Simple Network Time Protocol(简单网络时间协议)。 poll-interval:配置SNTP轮询间隔。 <60..65535>:单位为秒,缺省值为1200秒。 |
说明 |
该命令配置SNTP轮询间隔。 |
例如:
P3500#sntp poll-interval 3000
P3500#show sntp
SNTP status : Disable
client type : NTP
NTP minpoll : 1200 (sec)
NTP maxpoll : 1200 (sec)
SNTP server LastSync LastReceive
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式. |
语法 |
sntp ptype <ntp|sntp> |
参数定义 |
sntp:Simple Network Time Protocol(简单网络时间协议) ptype :客户端类型。 <ntp|sntp>:类型为ntp/sntp。缺省值:ntp |
说明 |
该命令配置SNTP客户端类型。 |
例如:
P3500#sntp ptype ntp
P3500#show sntp
SNTP status : Enable
client type : NTP
NTP minpoll : 60 (sec)
NTP maxpoll : 1800 (sec)
SNTP server LastSync LastReceive
10.230.9.1 Not Sync 0-00:00:00
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式. |
语法 |
sntp server <A.B.C.D> |
参数定义 |
sntp server:SNTP服务器。 <A.B.C.D>:SNTP 服务器IP地址。 |
说明 |
该命令配置SNTP服务器 |
例如:
P3500#sntp server 10.230.9.1
P3500#show sntp
SNTP status : Enable
client type : NTP
NTP minpoll : 1200 (sec)
NTP maxpoll : 1200 (sec)
SNTP server LastSync LastReceive
10.230.9.1 Not Sync 0-00:00:00
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
sntp sync |
参数定义 |
sntp:Simple Network Time Protocol(简单网络时间协议)。 sync:与SNTP服务器手工同步。 |
说明 |
该命令用于与SNTP服务器手工同步。 |
例如:
P3500#show sntp
SNTP status : Enable
client type : NTP
NTP minpoll : 1200 (sec)
NTP maxpoll : 1200 (sec)
SNTP server LastSync LastReceive
10.230.9.1 Not Sync 0-00:00:00
P3500#sntp sync
P3500#show sntp
SNTP status : Enable
client type : NTP
NTP minpoll : 1200 (sec)
NTP maxpoll : 1200 (sec)
SNTP server LastSync LastReceive
10.230.9.1 Sync 0-00:00:06
P3500#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
show sntp |
参数定义 |
sntp:Simple network time protocol(简单网络时间协议) |
说明 |
该命令显示当前SNTP配置。 |
例如:
P3500#show sntp
SNTP status : Enable
SNTP poll interval : 1200 (seconds)
SNTP server LastSync LastReceive
10.230.9.1 Sync 0-00:18:50
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
switchover CSM |
参数定义 |
switchover:切换操作。 CSM: CSM1x 插板。 |
说明 |
该命令切换CSM插板。 |
例如:
P3500#switchover CSM
Are you sure you want to switchover CSM module ? (yes or no)
y
Switchover CSM module Success !
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
switchover-counter-reset |
说明 |
重置切换计数器。 |
例如:
P3500#switchover-counter-reset
P3500#show switchover
Success Switchover Counter : 0
Failed Switchover Counter : 0
P3500#
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
no switchover-record <yyyy/mm/dd/HH/MM/SS> |
参数定义 |
no: 删除一个切换记录。 switchover-record:删除一个切换记录。 <yyyy/mm/dd/HH/MM/SS>:yyyy:年, mm:月份, dd:日期,HH:小时(24小时制),MM:分钟,SS:秒。 |
说明 |
该命令删除一个切换记录。 |
例如:
P3500#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
P3500#no switchover-record 2010/01/18/14/10/42
P3500#show switchover
Success Switchover Counter : 1
Failed Switchover Counter : 0
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
show switchover |
参数定义 |
switchover:切换统计和记录。 |
说明 |
显示切换统计和记录,包括: Sucessuful Switchover Counter(切换成功计数器) Failed switchover counter(切换失败计数器) Switchover time (切换时间,YYYY/MM/DD/hh/mm/ss) Switchover Reason, includes:切换原因,包括: CLI-command switchover(CLI命令切换) NMS-command switchover(NMS命令切换) Button switchover from active CSM(来自主用CSM板的按钮切换) Active CSM reset instructed by CLI command or NMS command (CLI命令或NMS命令指示的主用CSM板重启) Heartbeat failure in active CSM(主用CSM板心跳失败) Removal of active CSM(主用CSM板拆除) Protection uplink is down in active CSM but is up in standby CSM (保护上行链路在主用CSM板为down,但在备用CSM板为up) Switchover results (切换结果:Success(成功)、Failure(失败)) Switchover failure reason, includes: 切 换 失 败 原 因 包 括 : Synchronization disabled(同步禁用) Standby CSM is in STB_standby_partial state with uplink down(备用CSM为STB_standby_partial状态,上行链路为down) Standby CSM is in STB_Init state(备用CSM板状态为STB_Init) Standby CSM is in STB_Oos state(备用CSM板状态为STB_Oos)Standby CSM is in Power_on state. (备用CSM板状态为Power_on) Standby CSM is in Pre_Init state. (备用CSM板状态为Pre_Init) File is synchronizing b/w active and standby主用和备用CSM板之间的文件在同步。 |
例如:
P3500#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
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
sync-option <enabled|disabled> |
参数定义 |
sync-option:CSM板卡同步选项。 <enable|disable>:启动或禁止。缺省值:enable |
说明 |
该命令设置CSM插板同步选项。 |
例如:
P3500#show sync
CSM Sync Configuration : Enable
CSM Sync Status : Synchronized
P3500#sync-option disable
P3500#show sync
CSM Sync Configuration : Disable
CSM Sync Status : Not Synchronized
P3500#sync-option enable
P3500#show sync
CSM Sync Configuration : Enable
CSM Sync Status : In Synchronizing
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
system [contact <string>] [location <string>] [name <string>] |
参数定义 |
contact <string>:系统联系人。最多128个字符,允许空格。 location <string>:系统地理位置。最多128个字符,允许空格。 name <string>:提示符中的系统名称。最多64个字符, 允许空格。 |
说明 |
该命令设置系统联系人、地址位置、名称信息。 |
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
show system |
参数定义 |
show:显示信息。 system: 显示系统名称、联系人、地理位置和系统启动时间。 |
说明 |
显示如下系统信息: 系统名称 系统联系人 系统地理位置 系统启动时间。 |
例如:
P3500#system contact H3C location HangzhouBinjiang name P3500
P3500#show system
System Information
System Description : P3500 MSAP
System Name : P3500
System Contact : H3C
System Location : HangzhouBinjiang
System UP Time : 0 days 01:26:37
ZTD Function : Disable
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
time < yyyy/mm/dd/HH/MM/SS > |
参数定义 |
time:本地时间。 <yyyy/mm/dd/HH/MM/SS> :yyyy:年, mm:月份, dd: 日期,HH:小时(24小时制),MM:分钟,SS:秒。 |
说明 |
该命令设置节点上的本地时间。 |
例如:
P3500#time 2009/12/23/17/13/50
P3500#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
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
timezone <gmt-12:00, gmt-11:00, gmt-10:00, gmt-09:00, gmt-08:00, gmt-07:00, gmt-06:00, gmt-05:00, gmt-04:00, gmt-03:30, gmt-03:00, gmt-02:00, gmt-01:00, gmt+00:00, gmt+01:00, gmt+02:00, gmt+03:00, gmt+03:30, gmt+04:00, gmt+04:30, gmt+05:00, gmt+05:30, gmt+05:45, gmt+06:00, gmt+06:30, gmt+07:00, gmt+08:00, gmt+09:00, gmt+09:30, gmt+10:00, gmt+11:00, gmt+12:00, gmt+13:00> <gmt-12:00, gmt-11:00, gmt-10:00, gmt-09:00, gmt-08:00, gmt-07:00, gmt-06:00, gmt-05:00, gmt-04:00, gmt-03:30, gmt-03:00, gmt-02:00, gmt-01:00, gmt+00:00, gmt+01:00, gmt+02:00, gmt+03:00, gmt+03:30, gmt+04:00, gmt+04:30, gmt+05:00, gmt+05:30, gmt+05:45, gmt+06:00, gmt+06:30, gmt+07:00, gmt+08:00, gmt+09:00, gmt+09:30, gmt+10:00, gmt+11:00, gmt+12:00, gmt+13:00>: |
参数定义 |
Gmt-12:00, 比GMT时间早12小时 …, Gmt-03:30, 比GMT时间早3.5小时 …, Gmt+05:45, 比GMT时间迟5小时45分钟 … Gmt+12:00, 比GMT时间迟12小时。 |
说明 |
该命令设置时区。 |
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
no timezone |
参数定义 |
no:删除系统时区配置。 timezone:删除系统时区配置。 |
说明 |
该命令删除系统时区配置。 |
例如:
P3500#timezone gmt-12:00
P3500#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
P3500#no timezone
P3500#show time
Local time : 2020/11/09, 00:04:12
Time Zone : gmt-244: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
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
upgrade-lc slot <Slot Id> src <file-name> |
参数定义 |
upgrade-lc:升级板卡镜像文件。 slot :GPON板槽位。 <Slot Id>:GPON板槽位,范围为1-5。 <file-name>:全路径文件名,最长为64字节。 |
说明 |
该命令用于升级板卡镜像文件。 |
例如:
P3500#upgrade-lc slot 3 src /ramdisk/gpn2.ipe
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.
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
upload ip <A.B.C.D> src <file-name> [dst <file-name>] |
参数定义 |
upload:上传文件。 ip:远程主机IP地址。 <A.B.C.D>:合法IP地址。 src:源文件名 <file-name>:全路径文件名,最长为64字节。 dst:目标文件名。 <file-name>:全路径文件名,最长为64字节。 |
说明 |
该命令用于将文件上载到远程主机如NMS或EMS或console终端。 文件名应包括全路径。假设主用CSM板和备用CSM板上的源目录是DIR,DIR是tftpboot的子目录,文件名为FILENAME,全路径为: 若从主用CSM板上载,全路径为/DIR/FILE或 /active/DIR/FILENAME 若从备用CSM板上载,全路径为/standby/DIR/FILENAME。 |
例如:
P3500#upload ip 10.230.1.17 src csm1g.ipe dst 1111.ipe
begin upload file to tftp server,please wait...
upload 1111.ipe success .
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
virtual <S1-S2> <module_type> |
参数定义 |
<S1-S2>:插板所在的插槽,格式为S1-S2。S1为1~3,S2为1~5(P3500)、或U1~U3。 <module_type>:虚拟GPFA插板 |
说明 |
该命令分配虚拟机框或插板。当机框号不存在,节点会分配虚拟一个机框。 |
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
no virtual <S1-S2> |
参数定义 |
no:删除虚拟插板的分配。 virtual:取消虚拟插板的分配。 <S1-S2>:插板所在的插槽,格式为S1-S2。S1为1~3,S2为1~5(P3500)、或U1~U3。 |
说明 |
该命令取消虚拟插板的分配。 |
例如:
P3500#show slot
Sh-S Module Ava O Hardware Ver SW Ver Serial Number UP Time
1-3 GPFA MAT D N/A:N/A N/A N/A N/A
1-B MXCA(A) MAT U GN0206030340:A8 E1001 1012019111300003 5 days 20:57:31
1-P1 PWRA MAT U 2424552505:A4 N/A 1012013053104076 N/A
1 FAN1A MAT U GN2424525305:A6 N/A 1012017082800235 N/A
1 BKP1G MAT U N/A:N/A N/A N/A N/A
P3500#virtual 1-4 GPFA
P3500#show slot
Sh-S Module Ava O Hardware Ver SW Ver Serial Number UP Time
1-3 GPFA MAT D N/A:N/A N/A N/A N/A
1-4 GPFA VIR D N/A:N/A N/A N/A N/A
1-B MXCA(A) MAT U GN0206030340:A8 E1001 1012019111300003 5 days 20:58:43
1-P1 PWRA MAT U 2424552505:A4 N/A 1012013053104076 N/A
1 FAN1A MAT U GN2424525305:A6 N/A 1012017082800235 N/A
1 BKP1G MAT U N/A:N/A N/A N/A N/A
P3500#no virtual 1-4
Pay Attention to Read: Please make sure to reconfigure the VLAN,
VLAN translation, PON protection and ACL when you change the board type. (y/n)?y
P3500#show slot
Sh-S Module Ava O Hardware Ver SW Ver Serial Number UP Time
1-3 GPFA MAT D N/A:N/A N/A N/A N/A
1-B MXCA(A) MAT U GN0206030340:A8 E1001 1012019111300003 5 days 21:03:01
1-P1 PWRA MAT U 2424552505:A4 N/A 1012013053104076 N/A
1 FAN1A MAT U GN2424525305:A6 N/A 1012017082800235 N/A
1 BKP1G MAT U N/A:N/A N/A N/A N/A
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
write filetype <image|cpld> [slot <S1-S2>] [moduletype <module_type>] [all] |
参数定义 |
write:写文件。 filetype:文件类型。 <image|cpld> slot: 插板插槽号。 <S1-S2>: 插板所在的插槽,格式为S1-S2。S1为1~3,S2为1~5(P3500)、或U1~U3或A,B。 moduletype: 插板类型。 <module_type>:MXCA|Active_CSM|Standby_CSM|GPFA插板。 all:下载image或boot loader或cpld或bsp到所有插板。 |
说明 |
该命令用于将image/cpld/文件写到某个插板。 |
操作级别 |
Normal |
配置模式 |
全局配置模式 |
语法 |
show write-status |
参数定义 |
write-status:Image/boot-loader下载状态。 |
说明 |
该命令用于显示image/boot-loader下载状态。 |
例如:
P3500#show write-status
Location Module Name Download Status
1-2 GPFA idle
1-4 GPFA idle
1-5 GPFA idle
P3500#write filetype bsp moduletype MXCA
During writing image/boot-loader file into a module,
it must make sure that the module won't be removed or powered off.
Otherwise the module will fail writing image/boot-loader and will fail restarting after reset.
Are you sure you want to write the image/loader into slot (null)(MXCA) (y/n)?
P3500#
操作级别 |
Privileged |
配置模式 |
全局配置模式 |
语法 |
ztd <enable|disable> |
参数定义 |
ztd:配置启动时配置。 <enable|disable>:启用/禁用。缺省值:disable |
说明 |
该命令配置启动时是否自动配置。 |
例如:
P3500#ztd enable
P3500#
本章列出了 Access 命令。Access 命令用于创建/删除用户账号和密码、设置/删除登录限制等。
操作级别 |
Administrator |
配置模式 |
Access |
语法 |
enable-password |
参数定义 |
enable-password: 更改enable密码。 |
说明 |
该命令更改进入privileged级别的密码。要求用户输入旧密码(缺省密码是admin,按ENTER)、新密码并再输一次新密码确认。 |
例如:
P3500#access
P3500(Access)#enable-password
Enter the old-password:
Enter the new-password:
Confirm the new-password:
Password changed.
P3500(Access)#
操作级别 |
Privileged |
配置模式 |
Access |
语法 |
idle-timeout <60…100000> |
参数定义 |
Idle-timeout: 设置会话空闲超时时间。 <60..100000>: 空闲时间,单位为秒。缺省值:300 |
说明 |
该命令设置空闲超时时间,单位为秒。该命令设置在用户退出系统前会话空闲的最长时间。空闲超时时间通常是为了安全原因而设。若会话无人看管,系统会注销该用户以防止未授权访问。 |
操作级别 |
Privileged |
配置模式 |
Access |
语法 |
no idle-timeout |
参数定义 |
idle-timeout:会话空闲超时。 |
说明 |
该命令禁用会话空闲超时。不关闭会话ID。 |
例如:
P3500#access
P3500(Access)#idle-timeout 600
Exec timeout set to 600 sec
P3500(Access)#no idle-timeout
P3500(Access)#
操作级别 |
Privileged |
配置模式 |
Access |
语法 |
inband-mgmt-host <A.B.C.D> [netmask <A.B.C.D>] |
参数定义 |
inband-mgmt-host: 增加带内访问主机地址。 <A.B.C.D>: 运行带内管理访问的网络/主机IP地址。 netmask:子网掩码。 <A.B.C.D>:掩码 |
说明 |
该命令为系统添加带内管理访问列表。若没有指定远程用户,不管带内管理请求源在哪里都允许带内管理访问。若存在一个或多个远程用户配置,只允许来自指定IP地址/IP网络的带内管理消息。若未提供掩码,IP地址解释为一个主机地址。 |
操作级别 |
Privileged |
配置模式 |
Access |
语法 |
no inband-mgmt-host <A.B.C.D> |
参数定义 |
inband-mgmt-host: 删除一个带内管理访问列表记录。 <A.B.C.D>: 网络/主机IP地址。 |
说明 |
该命令删除一个带内管理访问系统的主机。 |
操作级别 |
Privileged |
配置模式 |
Access |
语法 |
inband-mgmt-host-list <enable|disable> |
参数定义 |
Inband-mgmt-host-list:带内管理主机访问列表。 enable: 启用带内管理主机访问列表。 disable: 禁用带内管理主机访问列表。缺省值:disable |
说明 |
该命令启用/禁用带内管理主机访问列表。 |
操作级别 |
Normal |
配置模式 |
Access |
语法 |
show inband-mgmt-host |
说明 |
该命令显示带内管理访问列表。 |
例如:
P3500(ACCESS)#show inband-mgmt-host
Inband Mgmt Host Lists : Disable
Access Address Netmask
P3500(ACCESS)#inband-mgmt-host-list enable
P3500(ACCESS)#inband-mgmt-host 10.230.1.1 netmask 255.255.255.0
P3500(ACCESS)#show inband-mgmt-host
Inband Mgmt Host Lists : Enable
Access Address Netmask
10.230.1.1 255.255.255.0
P3500(ACCESS)#no inband-mgmt-host 10.230.1.1
P3500(ACCESS)#show inband-mgmt-host
Inband Mgmt Host Lists : Enable
Access Address Netmask
P3500(ACCESS)#
操作级别 |
Normal |
配置模式 |
Access |
语法 |
password |
参数定义 |
password: 更改用户密码。 |
说明 |
该命令更改用户自己的密码。要求用户输入旧密码(缺省未设置密码,按ENTER)、新密码、再输入一次新密码确认。 |
例如:
P3500#access
P3500(Access)#password
Enter the old-password:
Enter the new-password:
Confirm the new-password:
Password changed.
P3500(Access)#
操作级别 |
Normal |
配置模式 |
Access |
语法 |
show telnet |
说明 |
该命令显示用于telnet访问的访问列表和telnet端口。 |
例如:
P3500(ACCESS)#show telnet
Telnet Port : 23
Telnet Host Lists : Disable
Access Address Netmask
10.1.1.10 255.0.0.0
P3500(ACCESS)#
操作级别 |
Privileged |
配置模式 |
Access |
语法 |
telnet-host <A.B.C.D> [netmask <A.B.C.D>] |
参数定义 |
telnet-host: 添加telnet访问列表记录。 <A.B.C.D>: 允许telnet访问的网络/主机地址。 netmask: 子网掩码。 <A.B.C.D>: 掩码。 |
说明 |
该命令添加telnet访问系统的访问列表。若没有指定远程用户, 无论请求源来自哪里都允许telnet访问。若存在一个或多个远程用户配置,只允许来自指定IP地址/IP网络的telnet会话。若未提供掩码,IP地址解释为主机地址。 |
操作级别 |
Privileged |
配置模式 |
Access |
语法 |
no telnet-host <A.B.C.D> |
说明 |
该命令从telnet访问列表删除一个已有记录。 |
操作级别 |
Normal |
配置模式 |
Access |
语法 |
show telnet |
参数定义 |
show:显示信息。 telnet:显示telnet端口及telnet访问列表。 |
说明 |
该命令显示用于telnet端口及telnet访问的访问列表。 |
例如:
P3500#access
P3500(ACCESS)#telnet-host 10.1.1.10 netmask 255.0.0.0
P3500(ACCESS)#show telnet
Telnet Port : 23
Telnet Host Lists : Disable
Access Address Netmask
10.1.1.10 255.0.0.0
P3500(ACCESS)#no telnet-host 10.1.1.10
P3500(ACCESS)#show telnet
Telnet Port : 23
Telnet Host Lists : Disable
Access Address Netmask
P3500(ACCESS)#
操作级别 |
Privileged |
配置模式 |
Access |
语法 |
telnet-host-list <enable|disable> |
参数定义 |
<enable>: 使用Telnet主机访问列表 <disable>: 禁用Telnet主机访问列表。缺省值:disable |
说明 |
该命令启用/禁用Telnet主机访问列表。 |
例如:
P3500#access
P3500(ACCESS)#show telnet
Telnet Port : 23
Telnet Host Lists : Disable
Access Address Netmask
P3500(ACCESS)#telnet-host-list enable
P3500(ACCESS)#show telnet
Telnet Port : 23
Telnet Host Lists : Enable
Access Address Netmask
P3500(ACCESS)#
操作级别 |
Privileged |
配置模式 |
Access |
语法 |
tftp-host <A.B.C.D> [netmask <A.B.C.D>] |
参数定义 |
tftp-host: 添加TFTP 访问主机。 <A.B.C.D>: 允许TFTP访问的网络/主机地址。 netmask: 子网掩码。 <A.B.C.D>: 掩码。 |
说明 |
该命令添加FTFP访问系统的列表。若没有指定远程用户,无论请求源来自哪里都允许TFTP访问。若存在一个或多个远程用户配置,只允许来自指定IP地址/IP网络的TFTP消息。若未提供掩码,IP地址解释为主机地址。 |
操作级别 |
Privileged |
配置模式 |
Access |
语法 |
no tftp-host <A.B.C.D> |
参数定义 |
no tftp-host: 删除一个TFTP访问列表记录。 <A.B.C.D>:网络/主机IP地址。 |
说明 |
该命令删除一台用于TFTP访问系统的TFTP主机。 |
操作级别 |
Normal |
配置模式 |
Access |
语法 |
show tftp-host |
参数定义 |
tftp-host: 显示TFTP访问列表。 |
说明 |
该命令显示TFTP访问列表。 |
例如:
P3500#access
P3500(ACCESS)#tftp-host 1.1.1.1 netmask 255.255.255.0
P3500(ACCESS)#show tftp-host
Tftp Host Lists : Disable
Access Address Netmask
1.1.1.1 255.255.255.0
P3500(ACCESS)#no tftp-host 1.1.1.1
P3500(ACCESS)#show tftp-host
Tftp Host Lists : Disable
Access Address Netmask
P3500(ACCESS)#
操作级别 |
Privileged |
配置模式 |
Access |
语法 |
tftp-host-list <enable|disable> |
参数定义 |
tftp-host-list: TFTP 主机访问列表。 <enable|disable>: 启用/禁用TFTP主机访问列表。缺省值:dieable |
说明 |
该命令启用/禁用TFTP主机访问列表。 |
例如:
P3500(ACCESS)#show tftp-host
Tftp Host Lists : Disable
Access Address Netmask
P3500(ACCESS)#tftp-host-list enable
P3500(ACCESS)#show tftp-host
Tftp Host Lists : Enable
Access Address Netmask
P3500(ACCESS)#
操作级别 |
Administrator |
配置模式 |
Access |
语法 |
user-account <user-name> password <password> login-location <telnet|console|both> |
参数定义 |
user-account: 添加/更改用户账号。 <user-name>: 用户名、字符串(数字和字母,最大长度25)。 password: 配置用户密码(数字和字母,最大长度32)。 <password>: 用户密码,字符串。 login-location:选择允许用户登录的位置。 < telnet|console|both >: 仅Telnet、仅Console和telnet与 console。 |
说明 |
该命令添加用户账号到系统,或修改已有用户账号的密码。 |
操作级别 |
Administrator |
配置模式 |
Access |
语法 |
no user-account <user-name> |
参数定义 |
no:删除一个用户账号。 user-account:用户账号。 <user-name>: 用户名字符串。 |
说明 |
该命令从系统删除一个用户账号。 |
操作级别 |
Administrator |
配置模式 |
Access |
语法 |
show user [username] |
参数定义 |
username: 用户账号名称。 |
说明 |
该命令显示一个或所有用户账号信息。对于每个账号,显示如下信息: User name(用户名) IP address (IP 地址,针对当前活动用户) Whether currently active(当前是否活动) Successful login counter(成功登录次数) Last login time(最近登录时间) Login counter(登录次数) Failed login counter (登录失败次数,可选) Lock out counter (锁定次数,可选) Whether currently lockout (当前是否锁定,可选) The allowed login location(允许登录位置)。 |
例如:
P3500#access
P3500(ACCESS)#show user
Login Statistics:
User IP address Type Last login Login Counter Valid Login Location
admin [::ffff:192.168.0.144]:58383 active Nov 9 00:32,2020 33 Both
P3500(ACCESS)#user-account utstarcom password 123456 login-location telnet
P3500(ACCESS)#show user
Login Statistics:
User IP address Type Last login Login Counter Valid Login Location
admin [::ffff:192.168.0.144]:58383 active Nov 9 00:32,2020 33 Both
utstarcom N/A N/A N/A 0 Telnet
P3500(ACCESS)#no user-account utstarcom
P3500(ACCESS)#show user
Login Statistics:
User IP address Type Last login Login Counter Valid Login Location
admin [::ffff:192.168.0.144]:58383 active Nov 9 00:32,2020 33 Both
本节列出了告警命令。告警命令用于显示告警和告警过滤器,创建/删除告警过滤器。
操作级别 |
Privileged |
配置模式 |
Alarm |
语法 |
alarm-led-control [critical <on|off>][major <on|off>][minor <on|off>] |
参数定义 |
alarm-led-control:告警LED控制。 critical:严重告警LED。 <on|off>:当系统中存在严重告警时,LED是亮还是灭。 major:主要告警LED。 <on|off>:当系统中存在主要告警时,LED是亮还是灭。 minor:次要告警LED。 <on|off>:当系统中存在次要告警时,LED是亮还是灭。 |
说明 |
该命令设置告警LED控制开关。 |
例如:
P3500#alarm
P3500(ALARM)#show alarm-indication-conf
Alarm indication configuration in CSM :
Critical Alarm LED : off
Major Alarm LED : off
Minor Alarm LED : off
P3500(ALARM)#alarm-led-control critical on major on minor on
P3500(ALARM)#show alarm-indication-conf
Alarm indication configuration in CSM :
Critical Alarm LED : on
Major Alarm LED : on
Minor Alarm LED : on
P3500(ALARM)#
操作级别 |
Normal |
配置模式 |
Alarm |
语法 |
show alarm [severity <critical|major|minor|warning>] |
参数定义 |
show:显示信息。 alarm:显示未解决的告警。 severity:告警严重程度。 <critical|major|minor|warning>:严重、主要、次要告警或警告。 |
说明 |
该命令显示系统中活动的未解决告警。若指定了可选字段,仅显示相关告警级别的告警。 |
例如:
P3500#alarm
P3500(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 :
Alarm Sequence Number : 3
P3500(ALARM)#
操作级别 |
Normal |
配置模式 |
Alarm |
语法 |
show alarm-history |
说明 |
该命令显示所有发生的告警。 |
例如:
P3500#alarm
P3500(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 :
Alarm Sequence Number : 3
Alarm class : Communication
Entity type : CSM Port
P3500(ALARM)#
操作级别 |
Normal |
配置模式 |
Alarm |
语法 |
show alarm-indication-conf |
说明 |
该命令显示告警指示配置。 |
例如:
P3500#alarm
P3500(ALARM)#show alarm-indication-conf
Alarm indication configuration in CSM :
Critical Alarm LED : on
Major Alarm LED : on
Minor Alarm LED : on
P3500(ALARM)#
本章介绍 CSM 插板支持的命令,包括 CSM 系统级命令, CSM 二层命令, CSM 三层命令,安全命令,QoS 命令,以及组播命令。
配置模式是指一些功能相关的命令集合。每个命令都与一个或多个配置模式相关。只有在相关的配置模式下才能访问指定的命令。
操作级别 |
Normal |
配置模式 |
CONFIG |
语法 |
l2 |
参数定义 |
l2: 进入二层配置模式。 |
说明 |
该命令用于进入CSM二层配置模式。进入该模式后,提示符变成: system_name(CONFIG/L2)#。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#help
bridge - Enter module specific bridge
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
brief-show - show brief information
exit - Move up one level in configuration mode
help - Provide help information
history - Show command history
home - Return to global configuration mode
kill - Terminate other telnet sessions
ping - Send ICMP echo request
quit - Quit current session
slot - Enter slot-based configuration mode
telnet - Telnet to a remote host
traceroute - Perform traceroute
tree - Show command tree
who - Display login user information
P3500(CONFIG/L2)#
操作级别 |
Normal |
配置模式 |
L2 |
语法 |
bridge |
参数定义 |
bridge:进入插板特定的bridge配置模式。 |
说明 |
该命令用于进入插板特定的Bridge配置模式。进入该模式之后,提示符变为: system_name(CONFIG/L2/BRIDGE)#。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#bridge
P3500(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
reset - Resets the counter.
show - Display information
stationmove - enable station move on xge port
brief-show - show brief information
exit - Move up one level in configuration mode
help - Provide help information
history - Show command history
home - Return to global configuration mode
kill - Terminate other telnet sessions
ping - Send ICMP echo request
quit - Quit current session
slot - Enter slot-based configuration mode
telnet - Telnet to a remote host
traceroute - Perform traceroute
tree - Show command tree
who - Display login user information
P3500(CONFIG/L2/BRIDGE)#
操作级别 |
Normal |
配置模式 |
L2 |
语法 |
mstp |
参数定义 |
mstp: 进入生成树(Spanning Tree Subsystem)配置模式。 |
说明 |
该命令用于进入插板特定的生成树配置模式。进入该模式之后,提示符变为: system_name(CONFIG/L2/MSTP)#。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#mstp
P3500(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
brief-show - show brief information
exit - Move up one level in configuration mode
help - Provide help information
history - Show command history
home - Return to global configuration mode
kill - Terminate other telnet sessions
ping - Send ICMP echo request
quit - Quit current session
slot - Enter slot-based configuration mode
telnet - Telnet to a remote host
traceroute - Perform traceroute
tree - Show command tree
who - Display login user information
P3500(CONFIG/L2/MSTP)#
操作级别 |
Normal |
配置模式 |
L2 |
语法 |
port |
参数定义 |
port: 进入插板特定的Port配置模式。 |
说明 |
该命令用于进入插板特定的Port配置模式。进入该模式之后,提示符变为: system_name(CONFIG/L2/PORT)# |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#port
P3500(CONFIG/L2/PORT)#help
disable - Administratively lock one or
more Ethernet port
enable - Administratively unlock one or
more Ethernet port
lacp - lacp xge port_list priority key
no - Delete an object.
oritentation - Set port oritentation mode
show - Display information
speed - Set port data rate
trunk - Create trunk group.
brief-show - show brief information
exit - Move up one level in configuration mode
help - Provide help information
history - Show command history
home - Return to global configuration mode
kill - Terminate other telnet sessions
ping - Send ICMP echo request
quit - Quit current session
slot - Enter slot-based configuration mode
telnet - Telnet to a remote host
traceroute - Perform traceroute
tree - Show command tree
who - Display login user information
P3500(CONFIG/L2/PORT)#
操作级别 |
Normal |
配置模式 |
L2 |
语法 |
vlan |
参数定义 |
vlan:进入特定的vlan配置模式。 |
说明 |
该命令用于进入插板特定的vlan配置模式。进入该模式之后,提示符变为: system_name(CONFIG/L2/VLAN)#。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#vlan
P3500(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-format - configure option82 format
option-replace-mode - configure the option replace or drop
pppoe-option - Enable/Disable the PPPoE option
s-tpid - Configure TPID for service provider VLANs.
show - Display VLAN information
stacking - Configure TLS VLAN
translate - Create VLAN Translate entry
usr-isolation - Configure user isolation
vid - Creates a new VLAN or modifies the
name of an existing VLAN
brief-show - show brief information
exit - Move up one level in configuration mode
help - Provide help information
history - Show command history
home - Return to global configuration mode
kill - Terminate other telnet sessions
ping - Send ICMP echo request
quit - Quit current session
slot - Enter slot-based configuration mode
telnet - Telnet to a remote host
traceroute - Perform traceroute
tree - Show command tree
who - Display login user informationP3500(CONFIG/L2/VLAN)#
操作级别 |
Normal |
配置模式 |
L2 |
语法 |
rstp |
参数定义 |
rstp: 进入生成树(Spanning Tree)配置模式。 |
说明 |
该命令用于进入插板特定的生成树配置模式。进入该模式之后,提示符变为: system_name(CONFIG/L2/RSTP)#。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#rstp
P3500(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-admin-state - Set port administrative state
port-pathcost - Set path cost
port-priority - Set port priority
priority - Set RSTP priority
show - Display information
brief-show - show brief information
exit - Move up one level in configuration mode
help - Provide help information
history - Show command history
home - Return to global configuration mode
kill - Terminate other telnet sessions
ping - Send ICMP echo request
quit - Quit current session
slot - Enter slot-based configuration mode
telnet - Telnet to a remote host
traceroute - Perform traceroute
tree - Show command tree
who - Display login user informationP3500(CONFIG/L2/RSTP)#
操作级别 |
Normal |
配置模式 |
configure |
语法 |
l3 |
参数定义 |
l3: 进入三层配置模式。 |
说明 |
该命令用于进入三层配置模式。进入该模式后,提示符变为: system_name(CONFIG/L3)#。 |
例如:
P3500#configure
P3500(CONFIG)#l3
P3500(CONFIG/L3)#help
arp - Enter L3-Arp configuration mode
dhcp - Enter DHCP relay configuration mode
dhcpv6 - Enter DHCPv6 relay configuration mode
interface - Enter L3-Interface configuration mode
routing - L3 Routing configure and show
brief-show - show brief information
exit - Move up one level in configuration mode
help - Provide help information
history - Show command history
home - Return to global configuration mode
kill - Terminate other telnet sessions
ping - Send ICMP echo request
quit - Quit current session
slot - Enter slot-based configuration mode
telnet - Telnet to a remote host
traceroute - Perform traceroute
tree - Show command tree
who - Display login user informationP3500(CONFIG/L3)#
操作级别 |
Normal |
配置模式 |
L3 |
语法 |
arp |
参数定义 |
arp: 进入ARP配置模式。 |
说明 |
该命令用于进入ARP配置模式。进入该模式后,提示符变为: system_name(CONFIG/L3/ARP)#。 |
例如:
P3500#configure
P3500(CONFIG)#l3
P3500(CONFIG/L3)#arp
P3500(CONFIG/L3/ARP)#help
arp - Add static arp entry.
arp-timer - Set ARP timers
flush - Flush dynamic ARP entries.
no - Delete an object
show - Display information
P3500(CONFIG/L3/ARP)#
操作级别 |
Normal |
配置模式 |
L3 |
语法 |
dhcp |
参数定义 |
dhcp: 进入DHCP中继配置模式。 |
说明 |
该命令用于进入三层DHCP中继配置模式。进入该模式后,提示符变为: system_name(CONFIG/L3/DHCP)#。 |
例如:
P3500#configure
P3500(CONFIG)#l3
P3500(CONFIG/L3)#dhcp
P3500(CONFIG/L3/DHCP)#help
disable - Disable DHCP relay on the specified VLAN interface
enable - Enable DHCP relay on the specified VLAN interface
no - Delete an object
relay-active - Active the DHCP relay configuration
server - Add DHCP server on the specified VLAN interface
show - Display information
P3500(CONFIG/L3/DHCP)#
操作级别 |
Normal |
配置模式 |
L3 |
语法 |
dhcpv6 |
参数定义 |
dhcpv6: 进入DHCP中继配置模式。 |
说明 |
该命令用于进入三层DHCP中继配置模式。进入该模式后,提示符变为: system_name(CONFIG/L3/DHCPv6)#。 |
例如:
P3500#configure
P3500(CONFIG)#l3
P3500(CONFIG/L3)#dhcpv6
P3500(CONFIG/L3/DHCPv6)#help
relay - configure DHCPv6 relay
P3500(CONFIG/L3/DHCPv6)#
操作级别 |
Normal |
配置模式 |
L3 |
语法 |
interface |
参数定义 |
interface: 进入三层interface配置模式。 |
说明 |
该命令用于进入三层interface配置模式。进入该模式后,提示符变为: system_name(CONFIG/L3/INTERFACE)#。 |
例如:
P3500#configure
P3500(CONFIG)#l3
P3500(CONFIG/L3)#interface
P3500(CONFIG/L3/INTERFACE)#help
addv6route - Add interface vlan IPV6 route.
delv6route - Del l3 interface IPV6 route.
interface - Create a layer 3 VLAN interface.
no - Remove an object
proxy-arp - Config proxy ARP function.
show - Display object
P3500(CONFIG/L3/INTERFACE)#
操作级别 |
Normal |
配置模式 |
CONFIG |
语法 |
security |
参数定义 |
security: 进入安全配置模式。 |
说明 |
该命令用于进入安全配置模式。进入该模式后,提示符变为: system_name(CONFIG/Security)#。 |
例如:
P3500#configure
P3500(CONFIG)#security
P3500(CONFIG/Security)#help
action - Create or modify flow-based action
anti-dos-attack - anti dos attack
anti-MAC-spoofing - anti MAC spoofing
assign-action - Assign one action
deassign-action - De-assign one action from
one bridge port
dhcp-filter - dhcp filter
frame-filter - frame filter
ip-bind - ip bind
mcast-filter - mcast filter
msg-speed-limit - massage speed limit
no - Delete an object
show - Display information.
storm-control - Configure storm control limit
for incoming multicast
traffic in packet per second
trust-dscp - trust dscp
user-ip-bind - The IP is bound to the user port
vlan - vlan
P3500(CONFIG/Security)#
操作级别 |
Normal |
配置模式 |
CONFIG |
语法 |
qos |
参数定义 |
qos: 进入QoS配置模式。 |
说明 |
该命令用于进入QoS配置模式。进入该模式后,提示符变为: system_name(CONFIG/QOS)#。 |
例如:
P3500#configure
P3500(CONFIG)#qos
P3500(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.
default-priority - Configure default 802.1p
priority for untag packets.
dot1p-mapping - Configures 802.1p priority to egress queue mapping.
drop-precendence - Configure drop precedence and DEI bit option.
dscp - Enable DSCP to priority mapping.
dscp-mapping - Configure DSCP mapping.
egress-drop-dei - Ingress Drop Precedence Mapping when drop precedence and DEI bit are enabled.
egress-drop-nodei - Ingress Drop Precedence Mapping when drop precedence is enabled and DEI bit are disabled.
egress-queue-metering - Configures egress queue metering parameters.
egress-queue-weight - Egress queue weight
ingress-drop-dei - Configure ingress drop precedence mapping when drop
precedence and DEI bit are enabled.
ingress-drop-nodei - Configure ingress drop precedence mapping when drop
precedence is enabled and DEI bit is disabled.
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.
P3500(CONFIG/QOS)#
操作级别 |
Normal |
配置模式 |
CONFIG |
语法 |
multicast |
参数定义 |
multicast:进入CONFIG-MCAST配置模式。 |
说明 |
该命令用于进入CSM组播配置模式。进入该模式后,提示符变为: system_name(CONFIG/MCAST)#。 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#help
group-to-vlan - Configure group to vlan mapping
group-v6-to-vlan - Configure V6 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
P3500(CONFIG/MCAST)#
操作级别 |
Normal |
配置模式 |
CONFIG-MCAST |
语法 |
parameter |
参数定义 |
parameter:进入CONFIG-MCAST-parameter配置模式。 |
说明 |
该命令用于进入CSM组播IGMP parameter配置模式。进入该模式后,提示符变为: system_name(CONFIG/MCAST/PARAM)#。 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#parameter
P3500(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
P3500(CONFIG/MCAST/PARAM)#
操作级别 |
Normal |
配置模式 |
CONFIG-MCAST |
语法 |
snooping |
参数定义 |
snooping:进入CONFIG-MCAST-Snoop配置模式。 |
说明 |
该命令用于进入CSM组播IGMP Snooping配置模式。进入该模式后,提示符变为: system_name(CONFIG/MCAST/SNOOP)#。 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#snooping
P3500(CONFIG/MCAST/SNOOP)#help
clear-counters - Clear multicast counters
fast-leave - Fast Leave function
show - Display information
P3500(CONFIG/MCAST/SNOOP)#
操作级别 |
Normal |
配置模式 |
CONFIG |
语法 |
Gpon-profile |
参数定义 |
gpon-profile:进入CONFIG-GPON-PROFILE配置模式。 |
说明 |
该命令用于进入GPON-PROFILE板卡profile模板配置模式。进入该模式后,提示符变为:system_name(CONFIG/config-t-gpon-pro)#。 该模式用于全局配置所有pon板的profile模板。 |
例如:
P3500#configure gpon-profile
P3500(CONFIG/config-t-gpon-pro)#help
dba - define the traffic type and the fixed, assured and maximum bandwidth assigned for that traffic type
flow - define the characteristics of
an ONU traffic flow
multicast-dynamic - Create a template for ONT
dynamic multicast
multicast-oper - create a multicast operations
profile to be supported by an
ONU
multicast-static - specifie one or more multicast
group address ranges and
associated multicast VLAN and
multicast GEM port
rate-ctrl - create an ONU profile with the
specified rate control (PIR,CIR
values) and scheduling policy
(SP, WRR, etc.).
tcont-bind - establish a binding between a
TCONT and a virtual
port (i.e. GEM port)
tcont-svc - create ONU T-CONT service
profiles
voip-sip-server - SIP Agent Profile
vportsvc - the characteristics of a
virtual port
P3500(config-t-gpon-pro)#
操作级别 |
Privileged |
配置模式 |
CONFIG GPON-PROFILE |
语法 |
dab<profile-id> [profile-name <profile-name>] [ type1 fix <fix-bandwidth> ] [type2 assure <assure-bandwidth>] [ type3 assure <assure-bandwidth> max <max-bandwidth> ] [ type4 max <max-bandwidth> ] |
参数定义 |
dba-profile。profile-id <profile-id> DBA模板编号。 数值类型,取值范围:1-128。 profile-name <profile-name> DBA模板名称,字符串类型 type1 配置类型为固定带宽的DBA模板。 - type2 配置类型为保证带宽的DBA模板。 - type3 配置类型为保证带宽+最大带宽的DBA模板。 - type4 配置类型为最大带宽的DBA模板。 - type5 配置类型为固定带宽+保证带宽+最大带宽的DBA模板。 - fix fix-bandwidth 固定带宽。此部分带宽固定分配给用户,即使该用户不使用,其他用户也不可以占用。 数值类型,取值范围:256Kbit/s-1237248Kbit/s。 单位:Kbit/s。 assure assure-bandwidth 保证带宽。此部分带宽分配给用户,如果用户没有使用,其他用户可以占用此部分带宽。 数值类型,取值范围:256Kbit/s-1237248Kbit/s。 单位:Kbit/s。 max max-bandwidth 最大带宽。此带宽指某用户可以使用的最大的带宽值。 在type3类型的DBA模板中,最大带宽必须大于或等于保证带宽。 在type5类型的DBA模板中,最大带宽必须大于或等于固定带宽与保证带宽之和。 数值类型,取值范围:256Kbit/s-1244160Kbit/s。 单位:Kbit/s。 |
说明 |
此命令用于增加所有板卡的DBA(Dynamic Bandwidth Assignment)模板。 |
操作级别 |
Privileged |
配置模式 |
CONFIG |
语法 |
no gpon-profile dba <profile-id> |
说明 |
该命令用于删除所有板卡的dba模板。 |
操作级别 |
Normal |
配置模式 |
CONFIG |
语法 |
show gpon-profile dba <profile-id | all> |
说明 |
该命令用于显示所有板卡的dba模板。 |
例如:
P3500#configure gpon-profile
P3500(config-t-gpon-pro)#dba id 2 name awed type4 max 102400
P3500#configure show gpon-profile dba all
slot id profile name type fix bandwidth assure bandwidth max bandwidth
Kbps Kbps Kbps
-------------------------------------------------------------------------------
1 2 awed type4 \ \ 102400
2 2 awed type4 \ \ 102400
3 2 awed type4 \ \ 102400
4 2 awed type4 \ \ 102400
5 2 awed type4 \ \ 102400
操作级别 |
Privileged |
配置模式 |
CONFIG GPON-PROFILE |
语法 |
flow-profile <profile-id1> <profile-id2> [ profile-name <profile-name> ] [uni-type <uni-type-value>] [uni-port-bitmap <uni-port-bitmap-vlaue>] [upmap-type <upmap-type-value>] [vlan-start <vlan-start-value>] [vlan-stop <vlan-stop-value>] [pri-bitmap <pri-bitmap-vlaue>] [vport-num <vport-num-vlaue>] |
参数定义 |
<profile-id1> 1..128 <profile-id2> 1..127 <profile-name> FLOW模板名称,字符串类型 <uni-type-value> <ethernet-uni|ip-host|veip> <uni-port-bitmap-vlaue> 缺省值:0xff <upmap-type-value> <vlanId|priorityBits|vlanIdAndPriorityBits> <vlan-start-value> 1..4095 缺省 101 <vlan-stop-value> 1..4095 缺省 101 <pri-bitmap-vlaue> 缺省 0xf <vport-num-vlaue> 1..8 缺省 1 |
说明 |
此命令用于建立所有板卡的ONU业务流的模板。 |
操作级别 |
Privileged |
配置模式 |
CONFIG |
语法 |
no gpon-profile flow <profile-id> |
说明 |
该命令用于删除所有板卡的flow模板。 |
操作级别 |
Normal |
配置模式 |
CONFIG |
语法 |
show gpon-profile flow < profile-id1 / profile-id2> | all> |
说明 |
该命令用于显示所有板卡的flow模板。 |
例如:
P3500#configure gpon-profile
P3500(config-t-gpon-pro)#flow id 2 2 name newprof_flow_2 uni-type veip uni-bitmap 0xff upmap-type vlanId 101 101 pri-bitmap 0xf vport 1
P3500(config-t-gpon-pro)#exit
P3500#configure show gpon-profile flow all
slot :5
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 :0xf
vport num :1
-------------------------------------------------------------------------
slot :5
profile id1 :2
profile id2 :2
profile name :newprof_flow_2
uni type :veip
uni port bitmap :0xff
upmap type :vlanId
vlan start :101
vlan stop :101
pri bitmap :0xf
vport num :1
-------------------------------------------------------------------------
操作级别 |
Privileged |
配置模式 |
CONFIG GPON-PROFILE |
语法 |
multicast-dynamic<profile-id1><profile-id2> [name <profile-name>][gemport<gemport-value> ] [vlanid<vlanid-vlaue>] [ srcip<srcip-valu>] [ grpaddr-start <start-address> ] [ grpaddr-stop<stop-address> ] [ grpbw<bandwidth> ] [ 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 <vlanid-vlaue> 0..4095 <srcip-value> IPaddress <grpaddr-start-value> IPaddress <grpaddr-stop-value> IPaddress <grpbw-vlaue> 0..31 <grpipv6addr-start-value> IPaddress <grpipv6addr-stop-value> IPaddress |
说明 |
此命令用于建立所有板卡的onu动态组播模板。 |
操作级别 |
Privileged |
配置模式 |
CONFIG |
语法 |
no gpon-profile multicast-dynamic<profile-id1> <profile-id2> |
说明 |
该命令用于删除所有板卡的onu动态组播模板。 |
操作级别 |
Normal |
配置模式 |
CONFIG |
语法 |
show gpon-profile multicast-dynamic < profile-id1 / profile-id2> | all> |
说明 |
该命令用于显示所有板卡的onu动态组播模板。 |
例如:
P3500#configure gpon-profile multicast-dynamic id 2 2 name qwe gemport 3800 vlanid 101
P3500#configure show gpon-profile multicast-dynamic 2/2
slot :5
profile id1 :2
profile id2 :2
profile name :qwe
gemport :3800
vlanid :101
srcip :0.0.0.0
grpaddr start :0.0.0.0
grpaddr stop :0.0.0.0
grpbw :0
grpipv6addr start :::
grpipv6addr stop :::1:0:0
-------------------------------------------------------------------------
P3500#
操作级别 |
Privileged |
配置模式 |
CONFIG GPON-PROFILE |
语法 |
multicast-oper <profile-id> [ profile-name <profile-name> ] [igmp-ver <igmp-ver-value>] [ctrl-mode <ctrl-mode-vlaue>] [fastleave <fastleave-value>] |
参数定义 |
<profile-id> 1..256 <profile-name> multicast-oper模板名称,字符串类型 <igmp-ver-value> <v1(1)| v2(2)| v3(3)> <ctrl-mode-vlaue> <snooping-only> |
说明 |
此命令用于建立所有板卡的ONU组播业务操作的模板。 |
操作级别 |
Privileged |
配置模式 |
CONFIG |
语法 |
no gpon-profile multicast-oper<profile-id> |
说明 |
该命令用于删除所有板卡的ONU组播业务操作的模板。 |
操作级别 |
Normal |
配置模式 |
CONFIG |
语法 |
show gpon-profile multicast-oper <profile-id> |
说明 |
该命令用于显示所有板卡的ONU组播业务操作的模板。 |
例如:
P3500#configure gpon-profile multicast-oper id 2 name we igmp-ver v1 ctrl-mode snooping-only fastleave disabled
P3500#configure show gp multicast-oper 2
slot :5
id :2
profile name :we
igmp ver :v1
ctrl mode :snooping-only
fastleave :disable
upstream TCI :0
upstream TCI ctol :pass
downstream TCI :0
downstream TCI ctol :pass
-------------------------------------------------------------------------------
操作级别 |
Privileged |
配置模式 |
CONFIG GPON-PROFILE |
语法 |
multicast-static-profile <profile-id1> <profile-id2> [ profile-name <profile-name> ] [gemport <gemport-value>] [vlanid <vlanid-vlaue>] [srcip <srcip-value>] [grpaddr-start<grpaddr-start-value>] [grpaddr-stop <grpaddr-stop-value>] [grpbw <grpbw-vlaue>] |
参数定义 |
<profile-id1> 1..256 <profile-id2> 0..31 <profile-name> multicast-static模板名称,字符串类型 <gemport-value> 3800..3999 <vlanid-vlaue> 0..4095 <srcip-value> IPaddress <grpaddr-start-value> IPaddress <grpaddr-stop-value> IPaddress <grpbw-vlaue> 0..31 |
说明 |
此命令用于建立所有板卡的ONU静态组播的模板。 |
操作级别 |
Privileged |
配置模式 |
CONFIG |
语法 |
no gpon-profile multicast-static-profile <profile-id1> <profile-id2> |
说明 |
该命令用于删除所有板卡的ONU静态组播的模板。 |
操作级别 |
Normal |
配置模式 |
CONFIG |
语法 |
show multicast-static-profile < profile-id1 / profile-id2> | all> |
说明 |
该命令用于显示所有板卡的ONT静态组播的模板。 |
例如:
P3500#cconfigure gpon-profile multicast-static id 2 2 name ww gemport 3800 vlanid 101
P3500#configure show gpon-profile multicast-static 2/2
slot :5
profile id1 :2
profile id2 :2
profile name :ww
gemport :3800
vlanid :101
srcip :0.0.0.0
grpaddr start :0.0.0.0
grpaddr stop :0.0.0.0
grpbw :0
-------------------------------------------------------------------------
操作级别 |
Privileged |
配置模式 |
CONFIG GPON-PROFILE |
语法 |
rate-ctrl <profile-id> [ profile-name <profile-name>] [sir <sir-vlaue> ] [ pir <pir-value> ] |
参数定义 |
<profile-id> 1..128 <profile-name> string <sir-vlaue> 128-1244160Kbps,步长 64Kbps <pir-value> 128-1244160Kbps,步长 64Kbps |
说明 |
此命令用于建立所有板卡的ONU流量控制的模板。 |
操作级别 |
Privileged |
配置模式 |
CONFIG |
语法 |
no gpon-profile rate-ctrl <profile-id> |
说明 |
该命令用于删除所有板卡的ONU流量控制的模板。 |
操作级别 |
Normal |
配置模式 |
CONFIG |
语法 |
show gpon-profile rate-ctrl-profile <profile-id | all> |
说明 |
该命令用于显示所有板卡的ONU流量控制的模板。 |
例如:
P3500#configure gpon-profile rate-ctrl id 2
P3500#configure show gpon-profile rate-ctrl 2
slot id profile name sir pir
(Kbps) (Kbps)
--------------------------------------------------------------
5 2 newprofile_2 128 1024
操作级别 |
Privileged |
配置模式 |
CONFIG GPON-PROFILE |
语法 |
tcont-bind<profile-id> { v-port <vport-vlaue> } [ profile-name <profile-name> ] [vportsvc-index <vportsvc-index-value>] [tcon-index <tont-index-vlaue>] [tcontsvc-index <tcontsvc-index-value>] |
参数定义 |
<profile-id> 1..128 <vport-vlaue> 1..8 <profile-name> string <vportsvc-index-value> 1..128 <tont-index-vlaue> 1..8 <tcontsvc-index-value> 1..128 |
说明 |
此命令用于建立所有板卡的T-CONT绑定模板(vportsvc-profile,tcont-svc-profile)。T-CONT是ONT上的物理资源,只有绑定了模板后,才能够用于承载业务。绑定成功后,T-CONT可以依据绑定模板中的不同配置,提供灵活的动态带宽分配方案。 |
操作级别 |
Privileged |
配置模式 |
CONFIG |
语法 |
no gpon-profile tcont-bind <profile-id> |
说明 |
该命令用于删除所有板卡的ONU流量控制的模板。 |
操作级别 |
Normal |
配置模式 |
CONFIG |
语法 |
show gpon-profile tcont-bind <profile-id | all> |
说明 |
该命令用于显示所有板卡的ONU流量控制的模板。 |
例如:
P3500#configure gpon-profile tcont-bind id 2 v-port 1
P3500#configure show gpon-profile tcont-bind 2
slot id vport profile name vportsvc index tont index vlaue tcontsvc index
--------------------------------------------------------------------------------------------
5 2 1 newprofile_2 1 0 2
操作级别 |
Privileged |
配置模式 |
CONFIG GPON-PROFILE |
语法 |
tcont-svc<profile-id> [ profile-name <profile-name> ] [ dba-profile <dba-profile-id> ] |
参数定义 |
<profile-id> 1..128 <profile-name> string <dba-profile-id> 1..256 |
说明 |
此命令用于创建一条tcont svc模板到所有板卡,关联dba-profile。 |
操作级别 |
Privileged |
配置模式 |
CONFIG |
语法 |
no gpon-profile tcont-svc<profile-id> |
说明 |
该命令用于删除所有板卡的ONT流量控制的模板。 |
操作级别 |
Normal |
配置模式 |
CONFIG |
语法 |
show gpon-profile tcont-svc<profile-id | all> |
说明 |
该命令用于显示所有板卡的ONT流量控制的模板。 |
例如:
P3500#configure gpon-profile tcont-svc id 2 name qwe dba-id 1
P3500#configure show gpon-profile tcont-svc all
slot id profile name dba profile id
------------------------------------------------------------------
2 1 newprof_tcontsvc_1 1
2 2 qwe 1
操作级别 |
Privileged |
配置模式 |
CONFIG GPON-PROFILE |
语法 |
voip-sip-server<profile-id> [ profile-name <profile-name> ] [ proxy-addr <proxy SrvAddr> ] [external-proxy-addr <out Proxy Addr> ] [registering-addr <register SrvAddr > ] [transport <port> ] |
参数定义 |
<profile-id> 1..2 <profile-name> string <proxy Server Addr> IP address <out Proxy Addr> IP address <register SrvAddr> IP address <port> port id, 默认5060. |
说明 |
此命令用于创建一条sip代理模板到所有板卡。 |
操作级别 |
Privileged |
配置模式 |
CONFIG |
语法 |
no gpon-profile voip-sip-server <profile-id> |
说明 |
该命令用于删除所有板卡的sip代理模板。 |
操作级别 |
Privileged |
配置模式 |
CONFIG GPON-PROFILE |
语法 |
vportsvc <profile-id> [ profile-name <profile-name> ] [ us-pri < uspri-value> ] [usratectrl-id<usratectrl-id-value> ] [dsratectrl-id<dsratectrl-id-value> ] |
参数定义 |
<profile-id> 1..128 <profile-name> string < uspri-value> 0..7 <usratectrl-id-value> 0..128 <dsratectrl-id-value> 0..128 |
说明 |
此命令用于创建命令用于创建virtual port svc的模板到所有板卡。 |
操作级别 |
Privileged |
配置模式 |
CONFIG |
语法 |
no gpon-profile vportsvc<profile-id> |
说明 |
该命令用于删除所有板卡的virtual port svc的模板。 |
操作级别 |
Normal |
配置模式 |
CONFIG |
语法 |
show gpon-profile vportsvc<profile-id | all> |
说明 |
该命令用于显示所有板卡的virtual port svc的模板。 |
例如:
P3500#configure gpon-profile vportsvc id 2 name qwe
P3500#configure show gpon-profile vportsvc 2
slot :2
id :2
profile name :qwe
encry mode :disable
upflowpri :0
upratectrl index :0
down ratectrl index :0
本章介绍 CSM 系统级命令。
操作级别 |
Privileged |
配置模式 |
CONFIG |
语法 |
cross-vlan-mapping <multicast-vlan> <s-vid> <c-vid> |
参数定义 |
cross-vlan-mapping:配置在组播VLAN和用户VLAN间允许的映射。 <multicast-vlan>:组播VLAN id。范围为1-4093。组播VLAN id在组播信道数据库中定义。 <s-vid>:服务提供商VLAN id。范围为1-4093。 <c-vid>:用户VLAN id。范围为0-4093。若为0则视为用户VLAN被忽略。 |
说明 |
该命令用于配置组播VLAN与用户VLAN之间允许的映射信息。总共可定义1024项。 |
操作级别 |
Privileged |
配置模式 |
CONFIG |
语法 |
no cross-vlan-mapping <multicast-vlan> <s-vid> <c-vid> |
说明 |
该命令用于删除已定义的组播VLAN映射信息。 |
操作级别 |
Normal |
配置模式 |
CONFIG |
语法 |
show cross-vlan-mapping [vid <1..4093>] |
说明 |
该命令显示跨VLAN映射配置信息,包括: 每个组播VLAN的跨VLAN映射表格跨VLAN核对选项状态 |
例如:
P3500#configure
P3500(CONFIG)#cross-vlan-mapping 100 20 10
P3500(CONFIG)#show cross-vlan-mapping
Cross VLAN Mapping Check :Disable
MulticastVlanID ServiceVlanID CustomerVlanID
100 20 10
P3500(CONFIG)#no cross-vlan-mapping 100 20 10
P3500(CONFIG)#show cross-vlan-mapping
Cross VLAN Mapping Check :Disable
MulticastVlanID ServiceVlanID CustomerVlanID
P3500(CONFIG)#
操作级别 |
Privileged |
配置模式 |
CONFIG |
语法 |
cross-vlan-mapping-check <enable | disable> |
参数定义 |
cross-vlan-mapping-check :配置跨VLAN映射核对功能。 <enable | disable>:开启/关闭跨VLAN映射核对功能。缺省值:disable. |
说明 |
该命令用于配置跨VLAN映射核对功能。 |
例如:
P3500#configure
P3500(CONFIG)#cross-vlan-mapping-check enable
P3500(CONFIG)#show cross-vlan-mapping
Cross VLAN Mapping Check :Enable
MulticastVlanID ServiceVlanID CustomerVlanID
P3500(CONFIG)#
操作级别 |
Privileged |
配置模式 |
CONFIG |
语法 |
gem-ratelimit <direction> slot <1-5> port <1-16> ont <1-256> virtual-port <1-8> rate-limit <speed> burst-size <size> |
参数定义 |
gem-ratelimit:限速。 <direction>: 方向upstream/downstream(上行/下行)。 slot:板卡。 <slot id>:板卡id。范围1-5. port:端口。 <1-16>:端口号。 ont:ont。 <1-256>:ont口。 virtual-port:虚端口。 <1-8>:虚端口。 rate-limit:速率。 <speed>: 速率。(最大值:gpon:1244160, xgpon:2488320,xgspon:9953280) step size: 64kbs burst-size:突发流量。 <size>:大小,缺省值为128。 |
说明 |
该命令用于gem限速。 |
例如:
P3500#configure
P3500(CONFIG)#gem-ratelimit upstream slot 1 port 1 ont 1 virtual-port 1 rate-limit 0 burst-size 128
P3500(CONFIG)#
操作级别 |
Normal |
配置模式 |
configure |
语法 |
show gem-ratelimit |
说明 |
该命令用于显示GEM限速。 |
操作级别 |
Privileged |
配置模式 |
configure |
语法 |
mask <mask-name> priority <1..10> [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] [egress-port] [src-ipv6-ip <ip-wildcard>] [dst-ipv6-ip <ip-wildcard>] [traffic-class] [flow-label] |
参数定义 |
mask:创建包分类掩码。 <mask-name>:包分类掩码名。不超过32个字符。 priority:包分类掩码优先级。 <1..10>:优先级范围为1-10。 s-vid:服务器供应商VLAN id。 s-pri:服务器供应商VLAN优先级值。 c-vid:客户VLAN id。 c-pri:客户VLAN优先级值。 ether-type:以太网类型。 src-mac:源MAC地址。 <mac-wildcard>:定义MAC地址过滤位的16进制数。例如00:00:00:00:00:00。 dst-mac:目的MAC地址。 <mac-wildcard>:定义MAC地址过滤位的16进制数。例如00:00:00:00:00:00。 sender-mac:ARP数据包发送端MAC地址。 <mac-wildcard>:定义MAC地址过滤位的16进制数。例如00:00:00:00:00:00。 target-mac:ARP数据包目标端MAC地址。 <mac-wildcard>:定义MAC地址过滤位的16进制数。例如00:00:00:00:00:00。 ip-protocol:IP协议类型。 sender-ip:ARP数据包发送端IP地址。 <ip-wildcard>:定义地址<A.B.C.D>过滤位的通配符。 target-ip:ARP数据包目标端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>过滤位的通配符。 dscp:DSCP位。 tos:TOS位。 src-tcp:源TCP端口。 dst-tcp:目标TCP端口。 src-udp:源UDP端口。 dst-udp:目标UDP端口。 tcp-ack:TCP ACK码。 tcp-syn:TCP SYN码。 tcp-fin:TCP FIN码。 egress-port:出口。 src-ipv6-ip:源IPv6 IP地址。 <ip-wildcard>:定义地址<A:B::C:D>过滤位的通配符。 dst-ipv6-ip:目标IPv6 IP地址。 <ip-wildcard>:定义地址<A:B::C:D>过滤位的通配符。 traffic-class:IPv6流量级别。 flow-label:IPv6流标签。 |
说明 |
该命令用于创建一条带优先级的包分类掩码。该优先级决定先过滤哪个域。 |
操作级别 |
Privileged |
配置模式 |
CONFIG |
语法 |
no mask <mask-name> |
说明 |
该命令用于删除一条ACL掩码。 |
在删除掩码之前必须确保该掩码目前没有应用于任何规则,处于使用中的掩码不能删除。
操作级别 |
Normal |
配置模式 |
CONFIG |
语法 |
show mask [<mask-name>] |
说明 |
该命令用于显示所有或某个指定的ACL掩码。 |
例如:
P3500#configure
P3500(CONFIG)#mask utmask priority 2
P3500(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
P3500(CONFIG)#no mask utmask
P3500(CONFIG)#show mask
No Mask Entry now.
P3500(CONFIG)#
操作级别 |
Privileged |
配置模式 |
MIRROR |
语法 |
mirror-port <mirror-port-list> |
参数定义 |
mirror-port:配置镜像端口。 mirror-port-list: 以下以太口之一: xge x (x为1-4) iu x/y (where x = 1..3, y = 1..4) none. |
说明 |
该命令用于将<mirror-port-list>设置为镜像端口。镜像端口用于监控接收端口的接收行为或发送端口的发送行为。 mirror-port是一个端口索引。只有XGE口和上联IU口可以配置为镜像端口。 |
操作级别 |
Privileged |
配置模式 |
MIRROR |
语法 |
receive <ethernet-index> |
参数定义 |
receive:入口流量镜像。 ethernet-index:以太网口为以下之一: xge x(x为1-4) is x/y(x为1-5,y为1-8) iu x/y(x 为1-3,y 为1-4) trunk x(x为1-6) none。 |
说明 |
入口流量镜像端口。 |
操作级别 |
Privileged |
配置模式 |
MIRROR |
语法 |
transmit <ethernet-index> |
参数定义 |
transmit:出口流量镜像。 ethernet-index: 以太网口为以下之一: xge x(x为1-4) is x/y(x为1-5,y为1-8) iu x/y(x 为1-3,y 为1-4) trunk x(x为1-6) none。 |
说明 |
出口流量镜像端口。 入口和出口流量镜像端口可以是相同的端口。但是总带宽不可以超过镜像端口,否则镜像端口无法完全抓住被监控端口的数据流。 |
操作级别 |
Privileged |
配置模式 |
MIRROR |
语法 |
remote <enable/disable> [tpid <hex value>] [vid <1..4093>] [pri <0..7>] [cfi <set|non-set>] |
参数定义 |
remote:远端镜像。 <enable/disable>:允许/禁止远端镜像。 tpid:tpid。 <hex value>:tpid 为不带0X的16进制,缺省值为0x8100。 vid:VLAN id。 <1..4093>:VLAN id范围为1-4093。 pri:优先级。 <0..7>:优先级范围为0-7。 cfi:CFI值。 <set|non-set>:配置CFI值与否。 |
说明 |
设置镜像端口报文出口的VLAN设置。 |
操作级别 |
Normal |
配置模式 |
MIRROR |
语法 |
show |
说明 |
该命令用于显示是否配置镜像端口,如果配置了该端口是否有监控被镜像的端口。显示信息包括: 镜像端口 被镜像的接收端口被镜像的发送端口远端端口 TPID (远端镜像启用) VID (远端镜像启用) PRI (远端镜像启用) CFI (远端镜像启用)。 |
操作级别 |
Normal |
配置模式 |
CONFIG |
语法 |
show mirror |
说明 |
该命令用于显示是否配置镜像端口,如果配置了该端口是否有监控被镜像的端口。显示信息包括: 镜像端口 被镜像的接收端口被镜像的发送端口远端端口 TPID (远端镜像启用) VID (远端镜像启用) PRI (远端镜像启用) CFI (远端镜像启用)。 |
例如:
P3500#configure
P3500(CONFIG)#mirror
P3500(CONFIG/MIRROR)#mirror-port xge 1
P3500(CONFIG/MIRROR)#receive xge 2
P3500(CONFIG/MIRROR)#show
Mirror port Rx Ports Tx Ports Remote Mirror
XGE 1 XGE 2 Null Disable
P3500(CONFIG/MIRROR)#exit
P3500(CONFIG)#show mirror
Mirror port Rx Ports Tx Ports Remote Mirror
XGE 1 XGE 2 Null Disable
操作级别 |
Privileged |
配置模式 |
CONFIG |
语法 |
rule <rule-name> index <1..65535> mask-priority <1..10> [s-vid <1..4093>] [s-pid <0..7>] [c-vid <1..4093>] [c-pid <0..7>] [ether-type <type>] [src-mac <mac-address>] [dst-mac <mac-address>] [send-mac <mac-address>] [target-mac <mac-address>] [ip-protocol <1..255>] [sender-ip <ip-address>] [target-ip <ip-address>] [src-ip <ip-address>] [dst-ip <ip-address>] [dscp <0..63>] [tos-bits <0..15>] [src-tcp <1..65535>] [dst-tcp <1..65535>] [src-udp <1..65535>] [dst-udp <1..65535>] [egress-port <iu|is|xge|trunk> <ethernet-index>] [src-ipv6-ip <ip-addrss>] [dst-ipv6-ip <ip-address>] [traffic-class <8bit(0-255)>] [flow-label <20bit(0-1048576)>] |
参数定义 |
rule:创建一个包分类规则。 <rule-name> :包分类规则名称(不超过32个字符)。 index:包分类规则索引。 <1..65535>:索引值,范围为1 -65535。 mask-priority:包分类掩码。 <1..10> :范围为1 – 10。 s-vid:服务供应商VLAN ID。 <1..4093>: VLAN ID,范围为1 – 4093。 s-pid:服务供应商VLAN 802.1p 优先级。 <0..7>:范围为0 – 7。 c-vid:客户VLAN ID。 <1..4093>: VLAN ID,范围为1 ~ 4093。 c-pid:客户VLAN 802.1p优先级。 <0..7>:范围为0 – 7。 ether-type:十六进制的以太类型。 <type>:十六进制值。 src-mac:源MAC地址。 <mac-address>: aa:bb:cc:dd:ee:ff 。 dst-mac:目的MAC地址。 <mac-address>: aa:bb:cc:dd:ee:ff 。 sender-mac:ARP包的发送端MAC地址。 <mac-address>: aa:bb:cc:dd:ee:ff 。 target-mac:ARP包的目标MAC地址。 <mac-address>: aa:bb:cc:dd:ee:ff 。 ip-protocol: IP协议类型。 <1..255>: IP协议类型。范围为1-255。 sender-ip: ARP包的发送端IP地址。 <ip-address>: IP地址<A.B.C.D>。 target-ip:ARP包的目的端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。 egress-port: 出口。 <iu|is|xge|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 src-ipv6-ip:源IPv6地址。 <ip-addrss>:地址<A:B::C:D>。 dst-ipv6-ip:目标IPv6地址。 <ip-address>:地址<A:B::C:D>。 traffic-class:IPv6流量级别。 <8bit(0-255)>:范围为0-255(8bit)。 flow-label:IPv6流标签。 <20bit(0-1048576)>:范围为0-1048576(20bit)。 |
说明 |
该命令创建一条包分类规则。 |
在配置规则之前,需要先配置好掩码。
操作级别 |
Privileged |
配置模式 |
CONFIG |
语法 |
no rule <rule-name> |
说明 |
该命令用于删除一条ACL规则。 |
删除 ACL 规则之前必须删除输入端口。
操作级别 |
Normal |
配置模式 |
CONFIG |
语法 |
show rule [<rule-name>] |
说明 |
该命令显示所有或指定的包分类规则。如果显示的是所有分类规则,包分类规则的总数目也会一并显示。 |
例如:
P3500#configure
P3500(CONFIG)#mask mask1 priority 2
P3500(CONFIG)#rule rule1 index 1 mask-priority 2
P3500(CONFIG)#show rule
Rule ID :1
Rule Name :rule1
Mask Priority :2
S-VID :1
S-PRI :0
C-VID :1
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 :IS 1/0
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
P3500(CONFIG)#
P3500(CONFIG)#no rule rule1
P3500(CONFIG)#show rule
No Rule Entry now.
P3500(CONFIG)#
操作级别 |
Privileged |
配置模式 |
CONFIG |
语法 |
shaping-profile <profile-name> [cir <32..131072>] [cbs <2048..65536>] [pir <32..131072>] [pbs <2048..65536>] [ebs <2048..65536>] |
参数定义 |
shaping-profile:创建一个整形模板。 <profile-name>:整形模板名称(不超过32个字符) 。 cir: CIR (kbps),缺省为32768 kbps。 <32..131072>: 32 kbps ~ 131072 kbps 。cbs: CBS (bytes),缺省为65536字节。 <2048..65536>:2048字节 ~ 65536字节。 pir: PIR (kbps),缺省为32768 kbps。 <32..131072>:32 kbps ~ 131072 kbps。 pbs: PBS (kbps),缺省为65536 kbps。 <2048..65536>:2048 kbps~65536kbps。 ebs: EBS (bytes),缺省为65536字节。 <2048..65536>:2048字节 ~ 65536字节。 |
说明 |
该命令用于创建一个整形模板。 |
操作级别 |
Privileged |
配置模式 |
CONFIG |
语法 |
no shaping-profile <profile-name> |
说明 |
该命令用于删除一个整形模板。 |
操作级别 |
Normal |
配置模式 |
CONFIG |
语法 |
show shapping-profile [<profile-name>] |
说明 |
该命令显示所有或某个指定的整形模板。 |
例如:
P3500#configure
P3500(CONFIG)#shaping-profile test cir 10000 cbs 55555
P3500(CONFIG)#show shaping-profile
Name :def_shaping_prof
CIR(kbps) :32768
CBS(bytes) :65536
PIR(kbps) :32768
PBS(bytes) :65536
EBS(bytes) :65536
Name :test
CIR(kbps) :10000
CBS(bytes) :55555
PIR(kbps) :32768
PBS(bytes) :65536
EBS(bytes) :65536
P3500(CONFIG)#no shaping-profile test
P3500(CONFIG)#show shaping-profile
Name :def_shaping_prof
CIR(kbps) :32768
CBS(bytes) :65536
PIR(kbps) :32768
PBS(bytes) :65536
EBS(bytes) :65536
P3500(CONFIG)#
操作级别 |
Privileged |
配置模式 |
L2-bridge |
语法 |
agingtimer <10..1000000> |
参数定义 |
<10..1000000>:以秒计的老化时间,范围:10 ~ 1000000s。 |
说明 |
该命令设置二层转换老化时间,单位为秒。缺省值为300秒。老化时间就是指收到来自某个MAC地址的数据包后,该MAC地址在转发数据库中保留的时间。转发数据库中的内容会定期超时清理掉,以免它们长期保存在数据库中。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#bridge
P3500(CONFIG/L2/BRIDGE)#agingtimer 600
P3500(CONFIG/L2/BRIDGE)#show fdb
Agingtimer :600
S-VID MAC Address Forward Port Type
3903 00:0b:16:21:2c:37 Local Management
3904 00:0b:16:21:2c:37 Local Management
3804 00:0b:16:21:2c:37 Local Management
3902 00:0b:16:21:2c:37 Local Management
3801 00:0b:16:21:2c:37 Local Management
3901 00:0b:16:21:2c:37 Local Management
3802 00:0b:16:21:2c:37 Local Management
3803 00:0b:16:21:2c:37 Local Management
4094 00:0b:16:21:2c:37 Local Management
1 00:0b:16:21:2c:37 Local Management
P3500(CONFIG/L2/BRIDGE)#
操作级别 |
Privileged |
配置模式 |
L2-bridge |
语法 |
fdb mac <xx:xx:xx:xx:xx:xx> vid <1..4093> interface <xge|is|iu|trunk> <ethernet-index> |
参数定义 |
fdb:在fdb上增加一个入口。 mac:mac地址。 <xx:xx:xx:xx:xx:xx>:mac地址。 vid:VLAN ID。 <1..4093>:有效的Valid VLAN ID范围 interface:桥接端口索引号。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 |
说明 |
该命令在fdb上增加一个入口。 |
操作级别 |
Normal |
配置模式 |
L2-bridge |
语法 |
show fdb [type <dynamic|static>] [vid <1..4093>] [interface <xge|is|iu|trunk> <ethernet-index>] |
参数定义 |
show:显示FDB。 fdb:显示FDB。 type:前向数据库类型。 <dynamic|static>:FDB入口为动态或静态。 vid:VLAN ID <1..4093>:有效的VLAN ID范围 interface:桥接端口索引号。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 |
说明 |
该命令显示FDB。 |
操作级别 |
Privileged |
配置模式 |
L2-bridge |
语法 |
no fdb [mac <xx:xx:xx:xx:xx:xx>] [vid <1..4093>] |
参数定义 |
no:从FDB上删除入口。 fdb:删除入口。 mac:mac地址。 <xx:xx:xx:xx:xx:xx>:mac地址。 vid:VLAN ID。 <1..4093>:有效的VLAN ID范围。 |
说明 |
该命令从FDB上删除入口。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#bridge
P3500(CONFIG/L2/BRIDGE)#fdb mac 00:11:00:11:00:11 vid 1234 interface xge 2
P3500(CONFIG/L2/BRIDGE)#show fdb
VLAN ID :3903
MAC Address :00:0b:16:21:2c:37
Port Index :Local
Type :Management
VLAN ID :3904
MAC Address :00:0b:16:21:2c:37
Port Index :Local
Type :Management
VLAN ID :1234
MAC Address :00:0b:16:21:2c:37
Port Index :Local
Type :Management
VLAN ID :3804
MAC Address :00:0b:16:21:2c:37
Port Index :Local
Type :Management
VLAN ID :3902
MAC Address :00:0b:16:21:2c:37
Port Index :Local
Type :Management
VLAN ID :3801
MAC Address :00:0b:16:21:2c:37
Port Index :Local
Type :Management
VLAN ID :3901
MAC Address :00:0b:16:21:2c:37
Port Index :Local
Type :Management
VLAN ID :3802
MAC Address :00:0b:16:21:2c:37
Port Index :Local
Type :Management
VLAN ID :1234
MAC Address :00:11:00:11:00:11
Port Index :XGE 2
Type :Static
VLAN ID :3803
MAC Address :00:0b:16:21:2c:37
Port Index :Local
Type :Management
VLAN ID :4094
MAC Address :00:0b:16:21:2c:37
Port Index :Local
Type :Management
VLAN ID :1
MAC Address :00:0b:16:21:2c:37
Port Index :Local
Type :Management
P3500(CONFIG/L2/BRIDGE)#no fdb mac 00:11:00:11:00:11 vid 1234
Are you sure you want to delete all FDB entries for this MAC and VLAN (y/n)?
y
P3500(CONFIG/L2/BRIDGE)#show fdb
VLAN ID :3903
MAC Address :00:0b:16:21:2c:37
Port Index :Local
Type :Management
VLAN ID :3904
MAC Address :00:0b:16:21:2c:37
Port Index :Local
Type :Management
VLAN ID :1234
MAC Address :00:0b:16:21:2c:37
Port Index :Local
Type :Management
VLAN ID :3804
MAC Address :00:0b:16:21:2c:37
Port Index :Local
Type :Management
VLAN ID :3902
MAC Address :00:0b:16:21:2c:37
Port Index :Local
Type :Management
VLAN ID :3801
MAC Address :00:0b:16:21:2c:37
Port Index :Local
Type :Management
P3500(CONFIG/L2/BRIDGE)#
操作级别 |
Privileged |
配置模式 |
L2-bridge |
语法 |
flush fdb [vid <1..4093>] [interface <xge|is|iu|trunk> <ethernet-index>] |
参数定义 |
vid:VLAN ID <1..4093>:有效的VLAN ID范围 interface:桥接端口索引号。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 |
说明 |
该命令删除所有动态FDB(二层)输入项。如果没有说明VLAN 参数,则删除所有的项。 |
例如:
P3500#slot 1-1
P3500(CSM-1-1)#bridge
P3500(CSM-1-1/BRIDGE)#flush fdb
"Are you sure you want to delete all dynamic forwarding database entries (y/n)?"
y
P3500(CSM-1-1/BRIDGE)#
操作级别 |
Privileged |
配置模式 |
L2-bridge |
语法 |
interface-pm <iu|xge|is|trunk> <ethernet-index> <enable|disable> |
参数定义 |
Interface-pm:收集5分钟,15分钟和24小时性能数据。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 <enable>:开始收集性能数据。 <disable>:停止收集性能数据。 |
说明 |
开启/关闭收集网桥接口5分钟,15分钟和24小时性能数据。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#bridge
P3500(CONFIG/L2/BRIDGE)#interface-pm xge 4 enable
P3500(CONFIG/L2/BRIDGE)#
操作级别 |
Normal |
配置模式 |
L2-bridge |
语法 |
reset counter [<iu|xge|is|trunk> <ethernet-index>] |
参数定义 |
reset:重置计数器。 counter:重置GE口数据包数据。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 vlan-counter:重置一个或全部VLAN数据包数据。 vid:VLAN id。 <1..4093>:VLAN id范围为1-4093。 |
说明 |
该命令重置计数器。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#bridge
P3500(CONFIG/L2/BRIDGE)#reset counter xge 3
P3500(CONFIG/L2/BRIDGE)#
操作级别 |
Normal |
配置模式 |
L2-bridge |
语法 |
reset vlan-counter [vid <1..4093>] |
参数定义 |
reset:重置计数器。 vlan-counter:重置一个或全部VLAN数据包数据。 vid:VLAN id。 <1..4093>:VLAN id范围为1-4093。 |
说明 |
该命令重置VLAN数据包数据计数器。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#bridge
P3500(CONFIG/L2/BRIDGE)#reset vlan-counter
P3500(CONFIG/L2/BRIDGE)#
操作级别 |
Privileged |
配置模式 |
L2-bridge |
语法 |
stationmove interface <xge|is|iu|trunk> <ethernet-index> |
参数定义 |
stationmove:启动stationmove功能。 interface:桥接端口索引号。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 |
说明 |
该命令启动stationmove功能。 |
操作级别 |
Privileged |
配置模式 |
L2-bridge |
语法 |
no stationmove interface <xge|is|iu|trunk> <ethernet-index> |
参数定义 |
no:禁止stationmove功能。 stationmove:禁止stationmove功能。 interface:桥接端口索引号。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 |
说明 |
该命令删除stationmove功能。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#bridge
P3500(CONFIG/L2/BRIDGE)#stationmove interface xge 2
P3500(CONFIG/L2/BRIDGE)#no stationmove interface xge 2
P3500(CONFIG/L2/BRIDGE)#
操作级别 |
Normal |
配置模式 |
L2-bridge |
语法 |
show fdb |
参数定义 |
bridge:二层转换网桥信息。 |
说明 |
该命令显示以下网桥信息:老化时间 转换的MAC地址。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#bridge
P3500(CONFIG/L2/BRIDGE)#show fdb
Agingtimer :600
S-VID MAC Address Forward Port Type
3901 00:1c:82:07:a4:3a Local Management
4094 a0:c0:a8:d2:fe:04 Slot 3 Management
4094 00:1c:82:07:a4:3a Local Management
1 00:1c:82:07:a4:3a Local Management
3900 00:1c:82:07:a4:3a Local Management
3904 00:1c:82:07:a4:3a Local Management
1234 00:1c:82:07:a4:3a Local Management
3903 00:1c:82:07:a4:3a Local Management
3902 00:1c:82:07:a4:3a Local Management
P3500(CONFIG/L2/BRIDGE)#
操作级别 |
Normal |
配置模式 |
L2-bridge |
语法 |
show interface-pm-5min [<xge|is|iu|trunk> <ethernet-index>] |
参数定义 |
interface-pm-15min :显示网桥接口15分钟的所有性能数据, 包括: 网桥接口端口号(IU1..IU3, IS1..IS5, GE1..GE4, trunk1..trunk2) 每个性能数据记录(bucket)的结束时间 (End time of each PM data record (bucket)) 接收的不完整帧数(Rx undersize frames) 接收的片段(Rx Fragments) 接收的FCS错误帧(Rx FCS Error Frames) 接收的对齐错误帧(Rx Alignment Error Frames) 接收的超大帧(Rx Oversize Frames) 接收的模糊帧(Rx Jabber Frames) 接收的代码错误(Rx Code Errors) 发送延时(Tx Deferrals) 发送超延时(Tx Excessive Deferrals) 发送单冲突(Tx Single Collisions) 发送多冲突(Tx Multiple Collisions) 发送迟冲突(Tx Late Collisions) 接收的总字节(Rx total octets) 接收的总帧数(Rx total frames) 接收的组播帧(Rx multicast frames) 接收的广播帧(Rx broadcast frames) 接收丢弃(Rx discards) 接收暂停帧(Rx pause frames) 接收控制帧(Rx control frames) 发送总字节(Tx total octets) 发送总帧数(Tx total frames) 发送的组播帧(Tx multicast frames) 发送的广播帧(Tx broadcast frames) 发送暂停帧(Tx pause frames) 发送控制帧(Tx control 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) 接收的1519~1522字节(Rx 1519 to 1522 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) 发送的1519~1522字节(Tx 1519 to 1522 Octets) 发送的Jumbo帧(Tx Jumbo Frames) 接收载荷(Rx Load) 发送载荷(Tx Load)。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 |
说明 |
显示收集的桥接端口所有的5分钟性能数据。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#P3500(CONFIG/L2/BRIDGE)#show interface-pm-5 xge 1
Current List for :XGE 1
Bridge Port Index :XGE 1
Elapsed time :00:03:59
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, 02:55:09
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
bridge
操作级别 |
Normal |
配置模式 |
L2-bridge |
语法 |
show interface-pm-15min [<xge|is|iu|trunk> <ethernet-index>] |
参数定义 |
interface-pm-15min :显示网桥接口15分钟的所有性能数据, 包括: 网桥接口端口号(IU1..IU3, IS1..IS5, GE1..GE4, trunk1..trunk2) 每个性能数据记录(bucket)的结束时间 (End time of each PM data record (bucket)) 接收的不完整帧数(Rx undersize frames) 接收的片段(Rx Fragments) 接收的FCS错误帧(Rx FCS Error Frames) 接收的对齐错误帧(Rx Alignment Error Frames) 接收的超大帧(Rx Oversize Frames) 接收的模糊帧(Rx Jabber Frames) 接收的代码错误(Rx Code Errors) 发送延时(Tx Deferrals) 发送超延时(Tx Excessive Deferrals) 发送单冲突(Tx Single Collisions) 发送多冲突(Tx Multiple Collisions) 发送迟冲突(Tx Late Collisions) 接收的总字节(Rx total octets) 接收的总帧数(Rx total frames) 接收的组播帧(Rx multicast frames) 接收的广播帧(Rx broadcast frames) 接收丢弃(Rx discards) 接收暂停帧(Rx pause frames) 接收控制帧(Rx control frames) 发送总字节(Tx total octets) 发送总帧数(Tx total frames) 发送的组播帧(Tx multicast frames) 发送的广播帧(Tx broadcast frames) 发送暂停帧(Tx pause frames) 发送控制帧(Tx control 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) 接收的1519~1522字节(Rx 1519 to 1522 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) 发送的1519~1522字节(Tx 1519 to 1522 Octets) 发送的Jumbo帧(Tx Jumbo Frames) 接收载荷(Rx Load) 发送载荷(Tx Load)。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 |
说明 |
显示收集的桥接端口所有的15分钟性能数据。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#bridge
P3500(CONFIG/L2/BRIDGE)#show interface-pm-15 xge 1
Current List for :XGE 1
Bridge Port Index :XGE 1
Elapsed time :00:14:48
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, 02:45:08
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
P3500(CONFIG/L2/BRIDGE)#
操作级别 |
Normal |
配置模式 |
L2-bridge |
语法 |
show interface-pm-24hour [<xge|is|iu|trunk> <ethernet-index>] |
参数定义 |
interface-pm-24hour :显示网桥接口24小时的所有性能数据, 包括: 网桥接口端口号(IU1..IU3, IS1..IS5, GE1..GE4, trunk1..trunk2) 每个性能数据记录(bucket)的结束时间 (End time of each PM data record (bucket) 接收的不完整帧数(Rx undersize frames) 接收的片段(Rx Fragments) 接收的FCS错误帧(Rx FCS Error Frames) 接收的对齐错误帧(Rx Alignment Error Frames) 接收的超大帧(Rx Oversize Frames) 接收的模糊帧(Rx Jabber Frames) 接收的代码错误(Rx Code Errors) 发送延时(Tx Deferrals) 发送超延时(Tx Excessive Deferrals) 发送单冲突(Tx Single Collisions) 发送多冲突(Tx Multiple Collisions) 发送迟冲突(Tx Late Collisions) 接收的总字节(Rx total octets) 接收的总帧数(Rx total frames) 接收的组播帧(Rx multicast frames) 接收的广播帧(Rx broadcast frames) 接收丢弃(Rx discards) 接收暂停帧(Rx pause frames) 接收控制帧(Rx control frames) 发送总字节(Tx total octets) 发送总帧数(Tx total frames) 发送的组播帧(Tx multicast frames) 发送的广播帧(Tx broadcast frames) 发送暂停帧(Tx pause frames) 发送控制帧(Tx control 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) 接收的1519~1522字节(Rx 1519 to 1522 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) 发送的1519~1522字节(Tx 1519 to 1522 Octets) 发送的Jumbo帧(Tx Jumbo Frames) 接收载荷(Rx Load) 发送载荷(Tx Load)。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 |
说明 |
显示收集的桥接端口所有的24小时性能数据。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#bridge
P3500(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 P3500(CONFIG/L2/BRIDGE)#
操作级别 |
Normal |
配置模式 |
L2-bridge |
语法 |
show statistics [<iu|xge|is|trunk> <ethernet-index>] |
参数定义 |
show:显示GE口数据包数据。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 |
说明 |
该命令显示端口数据包数据。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#bridge
P3500(CONFIG/L2/BRIDGE)#show statistics xge 3
Port :XGE 3
Rx total octets :0
Rx total frames :0
Rx multicast frames :0
Rx broadcast frames :0
Rx discards :0
Rx puase frames :0
Rx control frames :0
Tx total octets :0
Tx total frames :0
Tx multicast frames :0
Tx broadcast frames :0
Tx discards :0
Tx puase frames :0
Tx control frames :0
Rx 64 octets :0
Rx 65 to127 octets :0
Rx 128 to255 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 to127 octets :0
Tx 128 to255 octets :0
Tx 256 to 511 octets :0
Tx 512 to 1023 octets :0
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
P3500(CONFIG/L2/BRIDGE)#
CSM二层以太网环路检测命令用于配置环路检测功能。
操作级别 |
Privileged |
配置模式 |
L2-LOOP-DETECT |
语法 |
direction <uplink|downlink|both> |
参数定义 |
<uplink|downlink|both>:配置环路检测的方向。 缺省为both。 |
说明 |
该命令配置环路检测的方向。 下联口环路检测暂不生效。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#loop-detect
P3500(CONFIG/L2/LOOP-DETECT)# direction downlink
操作级别 |
Privileged |
配置模式 |
L2-LOOP-DETECT |
语法 |
disable |
参数定义 |
|
说明 |
该命令关闭环路检测功能。 |
操作级别 |
Privileged |
配置模式 |
L2-LOOP-DETECT |
语法 |
enable |
参数定义 |
|
说明 |
该命令打开环路检测功能。 |
操作级别 |
Privileged |
配置模式 |
L2-LOOP-DETECT |
语法 |
ether-type <0x600-0xffff> |
参数定义 |
<0x600-0xffff>: 环网检测使用的以太网类型。缺省0x9900。 |
说明 |
该命令用于设置环网检测使用的以太网类型。 |
例如:
P3500(CONFIG/L2/LOOP-DETECT)# ether-type 0x9999
操作级别 |
Privileged |
配置模式 |
L2-LOOP-DETECT |
语法 |
interval <10-86400> |
参数定义 |
<10-86400>: 环网检测周期,单位秒。缺省60秒。 |
说明 |
该命令用于设置环网检测周期。 |
操作级别 |
Privileged |
配置模式 |
L2-LOOP-DETECT |
语法 |
recover-time <0-1440> |
参数定义 |
<0-1440>: 检测到有环路的ONT被关闭后,自动恢复的周期,单位分钟。缺省1440分钟。 |
说明 |
该命令用于设置环网检测ONT自动恢复的周期。 |
操作级别 |
Normal |
配置模式 |
L2-LOOP-DETECT |
语法 |
show |
参数定义 |
|
说明 |
该命令用于显示环网检测参数及状态。 |
例如:
P3500#con l2 loop-detect show
Loop detect switch status : Disable
Loop detect transmit Interval : 60 Seconds
Loop detect ether type : 0x9999
Loop detect direction : Both
Loop detect recover time : 1440 Minutes
Active CSM port status of Loop detect:
Entity Type Entity Ins Last Report Time Status Times
-------------+-------------+----------------------+------------+----
CSM 二层端口级命令用于配置端口信息。
操作级别 |
Privileged |
配置模式 |
L2-port |
语法 |
disable <xge|iu|is|trunk> <ethernet-list> |
参数定义 |
disable:从管理员级别锁定一个或多个以太口。 <xge|iu|is|trunk>:端口类型。 <ethernet-list>:显示以太网列表。下列的一个或多个以太网口: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6)。 使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。 |
说明 |
该命令将一个或多个以太口的管理状态设为“锁定”。该命令只能用于设置外部以太口。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#port
P3500(CONFIG/L2/PORT)#disable xge 2
P3500(CONFIG/L2/PORT)#show port xge 2
Shelf Port Admin Oper CfgSpeed CfgDup CfgFlow ActSpeed ActDup ActFlow Orient
1 XGE 2 Lock Down Auto Auto Auto Unknown Full Off Network
P3500(CONFIG/L2/PORT)#
操作级别 |
Privileged |
配置模式 |
L2-port |
语法 |
enable <xge|iu|is|trunk> <ethernet-list> |
参数定义 |
enable:从管理员级别解锁一个或多个以太口。 <xge|iu|is|trunk>:端口类型。 <ethernet-list>:显示以太网列表。下列的一个或多个以太网口: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6)。 使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。 |
说明 |
该命令将一个或多个以太口的管理状态设为“解锁”。该命令只能用于设置外部以太口。用户不能对处于“解锁”状态的运行任何管理任务。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#port
P3500(CONFIG/L2/PORT)#enable xge 2
P3500(CONFIG/L2/PORT)#show port xge 2
Shelf Port Admin Oper CfgSpeed CfgDup CfgFlow ActSpeed ActDup ActFlow Orient
1 XGE 2 Unlock Down Auto Auto Auto Unknown Full Off Network
P3500(CONFIG/L2/PORT)#
操作级别 |
Privileged |
配置模式 |
L2-port |
语法 |
lacp <xge|iu> <x-y|x,y..> <0..65535> <0..65535> |
参数定义 |
lacp:lacp GE端口列表优先级键值。 <xge><x-y|x,y..>:下列一个或多个以太网口: xge x (其中x范围为1-4)。 iu x/y (其中x范围为1-3,y范围为1-4) 使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。 <0..65535>:lacp端口优先级值。 <0..65535>:lacp端口键值。 |
说明 |
该命令配置端口列表优先级键值。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#port
P3500(CONFIG/L2/PORT)#lacp xge 2 2 3
P3500(CONFIG/L2/PORT)#
操作级别 |
Privileged |
配置模式 |
L2-port |
语法 |
oritentation <xge|iu|is|trunk> <ethernet-list> <network|subscriber> |
参数定义 |
Oritentation:设置端口方向。 <xge|iu|is|trunk>:端口类型。 <ethernet-list>:显示以太网列表。下列的一个或多个以太网口: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6)。 使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。 network:将端口设置为网络方向。 subscriber:将端口设置为用户方向。 |
说明 |
该命令用于设置一个或多个以太口的端口方向模式。对内部端口不能设置。端口速度项缺省为“自动”。IS端口不能设置。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#port
P3500(CONFIG/L2/PORT)#oritentation xge 2 subscriber
P3500(CONFIG/L2/PORT)#show port xge 2
Shelf Port Admin Oper CfgSpeed CfgDup CfgFlow ActSpeed ActDup ActFlow Orient
1 XGE 2 Unlock Down Auto Auto Auto Unknown Full Off Subscriber
P3500(CONFIG/L2/PORT)#
操作级别 |
Normal |
配置模式 |
L2-port |
语法 |
show port [<xge|iu|is|trunk> <ethernet-list>] |
参数定义 |
show port:显示端口信息。 <xge|iu|is|trunk>:端口类型。 <ethernet-list>:显示以太网列表。下列的一个或多个以太网口: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6)。 使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。 |
说明 |
该命令显示端口信息。如果没有指定端口列表便显示所有端口的信息。对于每个端口,显示的信息有: 端口号 管理状态(锁定/解锁) 操作状态 (up/down) 方向 (网络/用户) 设定的速度/全双工/流控制实际速度/全双工/流控制 SFP类型 (CSM1A: GE1 ~ GE4, CSM1B: GE1 ~ GE2) |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#port
P3500(CONFIG/L2/PORT)#show port xge 2
Shelf Port Admin Oper CfgSpeed CfgDup CfgFlow ActSpeed ActDup ActFlow Orient
1 XGE 2 Unlock Down Auto Auto Auto Unknown Full Off Subscriber
P3500(CONFIG/L2/PORT)#
操作级别 |
Normal |
配置模式 |
L2-port |
语法 |
Show transceiver [interface<xge|iu|is|trunk> <ethernet-list>] |
参数定义 |
show transceiver :显示光模块状态。 Interface: <xge|iu|is|trunk>:端口类型。 <ethernet-list>:显示以太网列表。下列的一个或多个以太网口: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6)。 使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。 |
说明 |
该命令用于显示光模块信息。 |
操作级别 |
Privileged |
配置模式 |
L2-port |
语法 |
speed <xge|iu|is|trunk> <ethernet-list> <auto|10hoff|10hon|10foff|10fon|100hoff|100hon|100foff|100fon|1000hoff|1000hon|1000foff|1000fon|10000foff|10000fon> |
参数定义 |
speed:启用一个或多个以太口。 <xge|iu|is|trunk>:端口类型。 <ethernet-list>:显示以太网列表。下列的一个或多个以太网口: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6)。 使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。 <auto>:自动协商以太口设置10hoff: 10 Mbps半双工无流控制 10hon: 10 Mbps半双工带流控制 10foff: 10 Mbps全双工无流控制 10fon: 10 Mbps全双工带流控制 100hoff: 100 Mbps半双工无流控制 100hon: 100 Mbps半双工带流控制 100foff: 100 Mbps全双工无流控制 100fon: 100 Mbps全双工带流控制 1000hoff: 1000 Mbps半双工无流控制 1000hon: 1000 Mbps半双工带流控制 1000foff: 1000 Mbps全双工无流控制 1000fon: 1000 Mbps全双工带流控制 10000foff:10000 Mbps全双工无流控制 10000fon:10000 Mbps全双工带流控制。 |
说明 |
该命令设置一个或多个以太口的端口速度/双工模式。对于内部端口不能进行设置。 速度的缺省值为“自动”。只能对外部端口进行设置。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#port
P3500(CONFIG/L2/PORT)#speed xge 2 10000fon
P3500(CONFIG/L2/PORT)#show port xge 2
Shelf Port Admin Oper CfgSpeed CfgDup CfgFlow ActSpeed ActDup ActFlow Orient
1 XGE 2 Unlock Down 10000M Full On Unknown Full Off Subscriber
P3500(CONFIG/L2/PORT)#
操作级别 |
Privileged |
配置模式 |
L2-port |
语法 |
trunk <trunk-index> <trunk-name> <xge|iu> <x-y|x,y..> <srcMAC|dstMAC|srcdstMAC|srcIP|dstIP|srcdstIP> [<static|lacp>] [<0..65535>] [<active|passive>] [fast|slow] |
参数定义 |
trunk:创建一个trunk组。 <trunk-index>:trunk组编号。X范围为1 ~ 6。 <trunk-name>:32个字符以内的trunk组名称。 <xge><x-y|x,y..>:下列一个或多个以太网口: xge x (其中x范围为1-4)。 iu x/y (其中x范围为1-3,y范围为1-4) 使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。<srcMAC|dstMAC|srcdstMAC|srcIP|dstIP|srcdstIP>: 载荷平衡项: 源MAC地址 目的MAC地址 源及目的MAC地址源IP地址 目的IP地址 源及目的IP地址。 <static|lacp>:TRUNK协议。静态:手动设置链路汇聚。lacp:动态设置链路汇聚,链路汇聚运行。 <0..65535>:lacp组优先级值。 缺省值:65535 <active|passive>:主动:主动发送lacp数据包。被动:被动接收lacp数据包。 缺省值:active fast|slow:快速:启用模式时快速发送lacp数据包。慢速:启用模式时慢速发送lacp数据包。缺省值:fast |
说明 |
该命令用于添加一个trunk组。 添加端口到trunk组里时需遵循以下规则: 一个trunk组最多由8个XGE口组成(xge 1..4) 同一个端口不可以添加到多个trunk中。 |
操作级别 |
Privileged |
配置模式 |
L2-port |
语法 |
no trunk <trunk-index> |
说明 |
该命令通过指定的trunk号删除trunk组。 |
操作级别 |
Normal |
配置模式 |
L2-port |
语法 |
show trunk [<trunk-index>] |
参数定义 |
trunk:显示trunk组配置。 <trunk-index>:trunk组号,1-6。 |
说明 |
该命令用于显示一个指定的或所有的trunk组信息。显示的每个trunk组信息包括: trunk组号 trunk名称 trunk组里的端口列表管理状态 操作状态 实际速度/全双工/完全控制trunk组载荷平衡项 方向 (网络/用户)。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#port
P3500(CONFIG/L2/PORT)#trunk 1 utstarcom xge 3-4 srcMAC
P3500(CONFIG/L2/PORT)#show trunk
Trunk group :1
Trunk name :utstarcom
Port list :xge 3,xge 4,
Load balance scheme :srcMAC
Administrative Status :UP
Operational Status :UP
CfgSpeed :Auto
CfgDup :Auto
CfgFlow :On
Actual speed :100M
ActDup :Full
ActFlow :On
Orient :Network
P3500(CONFIG/L2/PORT)#no trunk 1 P3500(CONFIG/L2/PORT)#show trunk
P3500(CONFIG/L2/PORT)#
CSM 二层 VLAN 命令用于配置 VLAN。
操作级别 |
Privileged |
配置模式 |
L2-VLAN |
语法 |
flush l2-proxy-arp-statistics [<1..4093>] |
参数定义 |
l2-proxy-arp-stats:删除ARP项或重置包数据。 <1..4093>:VLAN ID范围: 1 ~ 4093。 |
说明 |
该命令重置ARP包数据,包括接收到的ARP请求及发送的响应。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#vlan
P3500(CONFIG/L2/VLAN)#flush l2-proxy-arp-statistics 1
Are you sure you want to reset all ARP packets statistics for this VLAN (yes/no)?
yes
P3500(CONFIG/L2/VLAN)#show l2-proxy-arp
Vlan Id :100
Status :Disabled
IP address :0.0.0.0
MAC address :00:00:00:00:00:00
Received ARP request :0
Sent ARP response :0
P3500(CONFIG/L2/VLAN)#
操作级别 |
Privileged |
配置模式 |
L2-VLAN |
语法 |
interface <xge|is|iu|trunk> <ethernet-list> vid <2..4093> <tag|untag> |
参数定义 |
interface:添加以太接口到VLAN中。 <xge|is|iu|trunk>:端口类型。 <ethernet-list>:显示以太网列表。下列的一个或多个以太网口: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6)。 使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。 vid:VLAN ID。 <2..4093>:VLAN ID。 <tag>:端口带标签。 <untag>:端口不带标签。 |
说明 |
该命令用于将桥接端口添加到已存在的VLAN里。 在双标签模式下,只有面向网络的接口才可以分配到服务供应商VLAN里,只有面向用户的接口才可以分配到用户VLAN里。但在标签模式下,内部端口不可以无标签添加到VLAN里。 |
操作级别 |
Privileged |
配置模式 |
L2-VLAN |
语法 |
no interface <xge|is|iu|trunk> <ethernet-list> vid <2..4093 > |
参数定义 |
no interface:从一个VLAN里删除以太接口。 <xge|is|iu|trunk>:端口类型。 <ethernet-list>:显示以太网列表。下列的一个或多个以太网口: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6)。 使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。 vid:VLAN ID。 <2..4093>:VLAN ID。 |
说明 |
该命令从VLAN里删除以太口。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#vlan
P3500(CONFIG/L2/VLAN)#interface xge 1 vid 200 tag
P3500(CONFIG/L2/VLAN)#show 200
vlan id :200
vlan egress port :xge 1
vlan untag port :
P3500(CONFIG/L2/VLAN)#no interface xge 1 vid 200
P3500(CONFIG/L2/VLAN)#show 200
vlan id :200
vlan egress port :
vlan untag port :
P3500(CONFIG/L2/VLAN)#
操作级别 |
Privileged |
配置模式 |
L2-VLAN |
语法 |
l2-proxy-arp gateway-address <2..4093> <mac-address> <ip-address> |
参数定义 |
l2-proxy-arp:配置二层代理ARP功能。gateway-address:配置VLAN的路由网关地址。 <2..4093>: VLAN ID 。 <mac-address>:网关MAC地址。 <ip-address>:网关IP地址。 |
说明 |
该命令设置VLAN的网关MAC和IP地址。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#vlan
P3500(CONFIG/L2/VLAN)#l2-proxy-arp gateway-address 200 00:11:00:10: 01:00 10.230.1.1
P3500(CONFIG/L2/VLAN)#show l2-proxy-arp
Vlan Id :200
Status :Disabled
IP address :10.230.1.1
MAC address :00:11:00:10:01:00
Received ARP request :0
Sent ARP response :0
P3500(CONFIG/L2/VLAN)#
操作级别 |
Privileged |
配置模式 |
L2-VLAN |
语法 |
l2-proxy-arp local-proxy-arp <2..4093> <enable|diable> |
参数定义 |
l2-proxy-arp:配置二层ARP功能。 local-proxy-arp: 配置二层代理ARP local-proxy-arp功能。 <2..4093>: VLAN ID 。 <enable|diable>:启用或禁止二层代理ARP local-proxy-arp功能。 |
说明 |
该命令用于启用或禁止二层代理ARP local-proxy-arp功能。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#vlan
P3500(CONFIG/L2/VLAN)#l2-proxy-arp local-proxy-arp 200 enable
P3500(CONFIG/L2/VLAN)#show l2-proxy-arp
Vlan Id :200
Status :Enabled
IP address :10.230.1.1
MAC address :00:11:00:10:01:00
Received ARP request :0
Sent ARP response :0
P3500(CONFIG/L2/VLAN)#
操作级别 |
Privileged |
配置模式 |
L2-VLAN |
语法 |
L2-proxy-arp state <2..4093> <enable |disable> |
参数定义 |
l2-proxy-arp:配置二层代理ARP功能。 state:配置管理状态。 <2..4093>:VLAN ID。 enable:启用二层代理ARP功能。 disable:进制二层代理ARP功能。缺省值:disable |
说明 |
该命令启用/禁止每个VLAN的二层代理ARP功能。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#vlan
P3500(CONFIG/L2/VLAN)#l2-proxy-arp state 200 enable
P3500(CONFIG/L2/VLAN)#show l2-proxy-arp
Vlan Id :200
Status :Enabled
IP address :10.230.1.1
MAC address :00:11:00:10:01:00
Received ARP request :0
Sent ARP response :0
P3500(CONFIG/L2/VLAN)#
操作级别 |
Normal |
配置模式 |
L2-VLAN |
语法 |
show l2-proxy-arp [vid <2..4093>] [default] |
参数定义 |
l2-proxy-arp :二层ARP代理配置及数据。 vid:VLAN ID <2..4093>:范围:2 ~ 4093. default:显示默认值。 |
说明 |
该命令用于显示桥接VLAN的ARP数据。该桥接VLAN的 L2-proxy-arp 必须是“启用”的。显示的ARP数据包括以下信息: VLAN ID IP地址 MAC地址 接收的ARP请求发送的ARP响应 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#vlan
P3500(CONFIG/L2/VLAN)#show l2-proxy-arp
Vlan Id :200
Status :Enabled
IP address :10.230.1.1
MAC address :00:11:00:10:01:00
Received ARP request :0
Sent ARP response :0
P3500(CONFIG/L2/VLAN)#
操作级别 |
Privileged |
配置模式 |
L2-VLAN |
语法 |
dhcp-option <vid> <enable/disable> |
参数定义 |
dhcp-option:允许/禁止DHCP选项。 <vid>:VLAN id,0意味着所有VLAN。 <enable/disable>:允许/禁止。缺省值:disable |
说明 |
该命令允许/禁止DHCP选项。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#vlan
P3500(CONFIG/L2/VLAN)#dhcp-option 0 enable
P3500(CONFIG/L2/VLAN)#
操作级别 |
Privileged |
配置模式 |
L2-VLAN |
语法 |
pppoe-option <vid> <enable/disable> |
参数定义 |
pppoe-option:启用/禁用PPPOE选项。 <vid>:VLAN id。0意味着所有VLAN。 <enable/disable>:启用/禁用。缺省值:disable |
说明 |
该命令启用/禁用PPPOE选项。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#vlan
P3500(CONFIG/L2/VLAN)#pppoe-option 0 enable
P3500(CONFIG/L2/VLAN)#show vlan-option
DHCP Option Insert : Disable
PPPoE Option Insert : Enable
Device Id Mode : IP
Replcae Mode : Disable
P3500(CONFIG/L2/VLAN)#
操作级别 |
Privileged |
配置模式 |
L2-VLAN |
语法 |
option-device-id ip |
参数定义 |
option-device-id:设置在插入选项时使用的设备id。 ip:把设备id设为IP。 |
说明 |
该命令设置在插入选项时把设备id设为IP。 |
操作级别 |
Privileged |
配置模式 |
L2-VLAN |
语法 |
option-device-id mac |
参数定义 |
option-device-id:设置在插入选项时使用的设备id。 mac:把设备id设为MAC地址。 |
说明 |
该命令设置在插入选项时把设备id设为MAC地址。 |
操作级别 |
Privileged |
配置模式 |
L2-VLAN |
语法 |
option-device-id system-name |
参数定义 |
option-device-id:设置在插入选项时使用的设备id。 system-name:把设备id设为系统名称。 |
说明 |
该命令设置在插入选项时把设备id设为系统名称。 |
操作级别 |
Privileged |
配置模式 |
L2-VLAN |
语法 |
option-device-id user-defined |
参数定义 |
option-device-id:设置在插入选项时使用的设备id。 user-defined:用户设置设备id。 |
说明 |
该命令设置在插入选项时让用户设置设备id。 |
操作级别 |
Privileged |
配置模式 |
L2-VLAN |
语法 |
option-format <mode> |
参数定义 |
<mode>: default:{eth|trk} NAS_slot/NAS_subslot/ NAS_port:SVLAN.CVLAN AccessNodeIdentifier/ANI_rack/ANI_shelf/ANI_slot/ANI_subslot/ANI_port/ONU_ID [ONU_Slot/ONU_Subslot/Port_ID] [LN|EP|GP] customer1:SVLAN.CVLAN AccessNodeIdentifier/ANI_shelf/ANI_slot/ANI_port/Logical_port/Virtual_port/ONU_ID |
说明 |
该命令设置vlan格式为<mode>模式。 |
操作级别 |
Privileged |
配置模式 |
L2-VLAN |
语法 |
option-replace-mode <replace-mode> |
参数定义 |
option-replace-mode:配置选项为替换或丢弃。 <replace-mode>:enable:允许在DHCP和PPPoE中替换选项信息。disable:将选项数据包丢弃。缺省值为disable。 |
说明 |
该命令配置选项为替换或丢弃。 |
操作级别 |
Normal |
配置模式 |
L2-VLAN |
语法 |
show vlan-option <vid> |
参数定义 |
show:显示状态。 vlan-option:显示选项状态。 <vid>:VLAN id。 |
说明 |
该命令显示DHCP 和PPPoE选项状态。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#vlan
P3500(CONFIG/L2/VLAN)#option-device-id system-name
P3500(CONFIG/L2/VLAN)#option-replace-mode enable
P3500(CONFIG/L2/VLAN)#show vlan-option
DHCP Option Insert : Enable
PPPoE Option Insert : Disable
Device Id Mode : System Name
Replcae Mode : Enable
P3500(CONFIG/L2/VLAN)#
操作级别 |
Privileged |
配置模式 |
L2-VLAN |
语法 |
stacking slot <1-5> port <1-16> svlan <2-4093> [cos <copy/replace>] [new-cos <0-7>] |
参数定义 |
stacking:配置堆叠 VLAN。 slot:slot id。 <1-5>:范围为1-5。 port:PON端口id。 <1-16>:范围为1-16。 svlan:TLS VLAN。 <2-4093>:id范围为2-4093。 cos:COS。 <copy/replace>:cos行为,复制/替换。 new-cos:new cos值。 <0-7>:范围为0-7。 |
说明 |
该命令配置堆叠VLAN。 |
操作级别 |
Normal |
配置模式 |
L2-VLAN |
语法 |
show stacking |
参数定义 |
show:显示配置。 stacking:显示堆叠VLAN配置。 |
说明 |
该命令显示堆叠VLAN配置。 |
操作级别 |
Privileged |
配置模式 |
L2-VLAN |
语法 |
no stacking slot <1-5> port <1-16> |
参数定义 |
no:删除配置。 stacking:堆叠VLAN配置。 slot:slot id。 <1-5>:范围为1-5。 port:PON端口id。 <1-16>:范围为1-16。 |
说明 |
该命令删除堆叠VLAN配置。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#vlan
P3500(CONFIG/L2/VLAN)#stacking slot 5 port 3 svlan 20 cos copy new-cos 4
P3500(CONFIG/L2/VLAN)#show stacking
TLS VLAN Entry:
slot port tls-vlan cos new-cos
------------------------------------------------------------
1 2 2 copy 8
5 3 20 copy 8
P3500(CONFIG/L2/VLAN)#no stacking slot 1 port 2
P3500(CONFIG/L2/VLAN)#show stacking
TLS VLAN Entry:
slot port tls-vlan cos new-cos
------------------------------------------------------------
5 3 20 copy 8
P3500(CONFIG/L2/VLAN)#
操作级别 |
Privileged |
配置模式 |
L2-VLAN |
语法 |
translate slot <1-10> port <1-16> ont <1-256> virtual-port <1-8> cvid <1-4095> new-svid <1-4094> [new-cvid <1-4095>] [cos <copy|replace>] [new-cos <0-7>] |
参数定义 |
translate:创建转换。 slot:slot id。 <1-10>:范围为1-10。 port:PON端口id。 <1-16>:范围为1-16。 ont:ont id。 <1-256>:范围为1-256。 virtual-port:虚拟端口。 <1-8>:虚拟端口号为1-8。 cvid:用户VLAN id。 <1-4095>:4095意为任意。 new-svid:新SVID。 <1-4094>:范围为1-4094。 new-cvid:新用户VLAN id。 <1-4095>:4095意为无。 cos:COS。 <copy/replace>:cos行为,复制/替换。 new-cos:new cos值。 <0-7>:范围为0-7。 |
说明 |
该功能创建VLAN转换入口。 |
操作级别 |
Normal |
配置模式 |
L2-VLAN |
语法 |
show translate |
参数定义 |
show:显示配置。 translate:显示VLAN转换配置。 |
说明 |
该命令显示VLAN 转换配置。 |
操作级别 |
Privileged |
配置模式 |
L2-VLAN |
语法 |
no translate slot <1-10> port <1-16> ont <1-256> virtual-port <1-8> cvid <1-4095> |
参数定义 |
no:删除配置。 translate:删除VLAN转换配置。 slot:slot id。 <1-10>:范围为1-10。 port:PON端口id。 <1-16>:范围为1-16。 ont:ont id。 <1-256>:范围为1-256。 virtual-port:虚拟端口。 <1-8>:虚拟端口号为1-8。 cvid:用户VLAN id。 <1-4095>:4095意为任意。 |
说明 |
该命令删除VLAN转换配置。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#vlan
P3500(CONFIG/L2/VLAN)#translate slot 1 port 1 ont 1 virtual-port 1 cvid 1 new-svid 1
P3500(CONFIG/L2/VLAN)#translate slot 1 port 1 ont 2 virtual-port 1 cvid 1 new-svid 1
P3500(CONFIG/L2/VLAN)#show translate
VLAN Translation Entry:
slot port ont vport cvid new-svid new-cvid cos new-cos
--------------------------------------------------------------------------
1 1 1 1 1 1 4095 copy 8
1 1 2 1 1 1 4095 copy 8
P3500(CONFIG/L2/VLAN)#no translate slot 1 port 1 ont 2 virtual-port 1 cvid 1
P3500(CONFIG/L2/VLAN)#show translate
VLAN Translation Entry:
slot port ont vport cvid new-svid new-cvid cos new-cos
--------------------------------------------------------------------------
1 1 1 1 1 1 4095 copy 8
P3500(CONFIG/L2/VLAN)#
操作级别 |
Privileged |
配置模式 |
L2-VLAN |
语法 |
s-tpid <s-tpid> |
参数定义 |
s-tpid:配置服务供应商VLAN的TPID。 <s-tpid>:十六进制的服务供应商TPID,范围:0x0001 ~ 0xFFFF,缺省值为0x8100. |
说明 |
该命令用于配置服务供应商VLAN的TPID值。 |
操作级别 |
Privileged |
配置模式 |
L2-VLAN |
语法 |
usr-isolation <enable|disable-standard|disable-enhanced> |
参数定义 |
<enable>:允许用户隔离。 <disable-standard>:拒绝用户隔离。 <disable-enhanced>:拒绝用户隔离(增强)。 |
说明 |
该命令用户启用或禁止一个用户接口的所有VLAN的用户隔离功能。用户隔离可防止任何用户接口间的切换。当启用用户隔离功能时,用户接口接收到发往其它用户口的数据帧时会将该帧丢弃掉。用户隔离功能缺省为禁止。 |
操作级别 |
Privileged |
配置模式 |
L2-VLAN |
语法 |
vid <2..4093> name <vlan-name> [mode <full-bridge|limited-bridge|routed>] |
参数定义 |
vid:创建一个VLAN或修改已有VLAN的名称 <2..4093>:VLAN ID。 name: VLAN名称。 <vlan-name>:20个字符以内的VLAN名称。 mode:VLAN模式。 <full-bridge>:全网桥模式。 <limited-bridge>:限制网桥模式。 <routed>:路由模式。 |
说明 |
该命令用于创建一个VLAN或修改已有VLAN的名称。 |
操作级别 |
Privileged |
配置模式 |
CSM-VLAN |
语法 |
no vid <2..4093> |
参数定义 |
no vid:删除一个VLAN。 <2..4093>: VLAN ID 。 |
说明 |
该命令用于删除一个已创建的VLAN。删除VLAN之前,需要将 VLAN里的所有以太口都移除。 |
操作级别 |
Normal |
配置模式 |
L2-VLAN |
语法 |
show [<1..4093>] |
参数定义 |
show:显示VLAN信息。 <1..4093>:VLAN ID。 |
说明 |
该命令显示VLAN相关的信息。如果没有指定VLAN ID号, 将显示所有配置的VLAN信息。 对于全局VLAN设置,显示的信息有: 入口检查设置 用户隔离设置 服务供应商VLAN的TPID 用户VLAN的TPID 显示的每个VLAN信息包括: VLAN ID VLAN名称 VLAN模式(full bridge/limited bridge/routed) VLAN类型 (service-provider, customer) 带桥接模式信息的桥接VLAN列表不带标签接口列表 带标签接口列表 面向网络的接口列表(可选) 面向用户的接口列表(可选)。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#vlan
P3500(CONFIG/L2/VLAN)#s-tpid 0x888a
P3500(CONFIG/L2/VLAN)#c-tpid 0x888a
P3500(CONFIG/L2/VLAN)#usr-isolation enable
P3500(CONFIG/L2/VLAN)#ingresscheck enable
P3500(CONFIG/L2/VLAN)#vid 200 name ut mode routed
P3500(CONFIG/L2/VLAN)#show 200
vlan ingress check :enable
vlan user-isolation :enable
S-Vlan TPID :0x888a
C-Vlan TPID :0x888a
vlan id :200
vlan name :ut
vlan egress port :
vlan untag port :
vlan mode :Routed
P3500(CONFIG/L2/VLAN)#no vid 200
P3500(CONFIG/L2/VLAN)#show 200
vlan ingress check :enable
vlan user-isolation :disable-enhanced
S-Vlan TPID :0x888a
C-Vlan TPID :0x888a
P3500(CONFIG/L2/VLAN)#
CSM 二层 RSTP(快速生成树协议)用于配置生成树。
操作级别 |
Privileged |
配置模式 |
L2-RSTP |
语法 |
disable |
说明 |
该命令禁止生成树算法。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#rstp
P3500(CONFIG/L2/RSTP)#disable
P3500(CONFIG/L2/RSTP)#show rstp
RSTP Status : Disabled
Switch Priority : 32768
Switch Mac Address : 02:12:05:a1:61:45
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 : 15
Time Since Last Topology Change :0 days 00:00:00
Total Number of Topology Changes :0
P3500(CONFIG/L2/RSTP)#
操作级别 |
Privileged |
配置模式 |
L2-RSTP |
语法 |
enable |
说明 |
该命令启用生成树算法。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#rstp
P3500(CONFIG/L2/RSTP)#enable
P3500(CONFIG/L2/RSTP)#show rstp
RSTP Status : Enabled
Switch Priority : 32768
Switch Mac Address :02:12:05:a1:61:45
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 :15
Time Since Last Topology Change :0 days 00:00:00
Total Number of Topology Changes :0
P3500(CONFIG/L2/RSTP)#
操作级别 |
Privileged |
配置模式 |
L2-RSTP |
语法 |
fwdelay <4..30> |
参数定义 |
fwdelay:配置转发延时。 <4..30>:网桥转发延时,以秒计。 |
说明 |
该命令设置转发延时值,以秒计。缺省值为15s。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#rstp
P3500(CONFIG/L2/RSTP)#fwdelay 20
P3500(CONFIG/L2/RSTP)#show rstp
RSTP Status :Disabled
Switch Priority :32768
Switch Mac Address :02:12:05:a1:61:45
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
P3500(CONFIG/L2/RSTP)#
操作级别 |
Privileged |
配置模式 |
L2-RSTP |
语法 |
hellotime <1..10> |
参数定义 |
hellotime:配置hello time。 <1..10>: Hello time值,单位秒,范围:1 ~ 10。 |
说明 |
该命令用于设置hello time,以秒计。缺省值为2s。Hello time应该满足:2*(hello+1) <= max_age。 Hello time表示交换机每隔多少时间向别的交换机广播它的hello信息。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#rstp
P3500(CONFIG/L2/RSTP)#hellotime 2
P3500(CONFIG/L2/RSTP)#show rstp
RSTP Status : Disabled
Switch Priority : 32768
Switch Mac Address : 02:12:05:a1:61:45
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 : 2
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
P3500(CONFIG/L2/RSTP)#
操作级别 |
Privileged |
配置模式 |
L2-RSTP |
语法 |
maxage <6..40> |
参数定义 |
maxage:配置最大老化时间。 <6..40>:以秒计的最大老化时间。范围:6 ~ 40 |
说明 |
该命令用于设置以秒计的最大老化时间,缺省值为20s。 该参数用于测量端口保留的接收到的协议信息的时间,当保留的时间超过交换机记录的最大老化时间时,丢弃该信息。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#rstp
P3500(CONFIG/L2/RSTP)#maxage 50
P3500(CONFIG/L2/RSTP)#show rstp
RSTP Status :Disabled
Switch Priority :32768
Switch Mac Address :02:12:05:a1:61:45
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
P3500(CONFIG/L2/RSTP)#
操作级别 |
Privileged |
配置模式 |
L2-RSTP |
语法 |
port-admin-state <xge|is|iu|trunk> <ethernet-list> <enable|disable> |
参数定义 |
port-admin-state:配置端口管理状态。 <xge|is|iu|trunk>:端口类型。 <ethernet-list>:显示以太网列表。下列的一个或多个以太网口: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6)。 使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。 <enable>:允许接收或发送BPDU。 <disable>:禁止接收或发送BPDU。缺省值:disable |
说明 |
该命令用于设置端口RSTP管理状态。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#rstp
P3500(CONFIG/L2/RSTP)#port-admin-state xge 1 enable
P3500(CONFIG/L2/RSTP)#show port xge 1
Bridge Port :9
Port Index :xge 1
RSTP Administrative State :Enabled
RSTP Operational State :Disabled
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
P3500(CONFIG/L2/RSTP)#
操作级别 |
Privileged |
配置模式 |
L2-RSTP |
语法 |
port-pathcost <xge|is|iu|trunk> <ethernet-list> <1.. 200000000 > |
参数定义 |
port-pathcost:配置路径消耗。 <xge|is|iu|trunk>:端口类型。 <ethernet-list>:显示以太网列表。下列的一个或多个以太网口: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6)。 使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。 <1.. 200000000 >:路径消耗值。 |
说明 |
该命令用于设置RSTP路径消耗。缺省的路径消耗与端口速度相关。对于10 Mb/s 链路,缺省的路径消耗为2,000,000。对于Mb/s链路, 缺省的路径消耗为200,000。对于1Gb/s链路,缺省的路径消耗为 20,000。对于10G链路,缺省的路径消耗为2,000。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#rstp
P3500(CONFIG/L2/RSTP)#port-pathcost xge 1 2000000
P3500(CONFIG/L2/RSTP)#show port xge 1
Bridge Port :9
Port Index :xge 1
RSTP Administrative State :Enabled
RSTP Operational State :Disabled
Port Priority :128
Path Cost :2000000
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
P3500(CONFIG/L2/RSTP)#
操作级别 |
Privileged |
配置模式 |
L2-RSTP |
语法 |
port-priority <xge|is|iu|trunk> <ethernet-list> <0..240> |
参数定义 |
port-priority:配置端口优先级。 <xge|is|iu|trunk>:端口类型。 <ethernet-list>:显示以太网列表。下列的一个或多个以太网口: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6)。 使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。 <0..240>:端口优先级值,步长为16。 |
说明 |
该命令用于设置RSTP端口优先级。缺省值为128。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#rstp
P3500(CONFIG/L2/RSTP)#port-priority xge 1 192
P3500(CONFIG/L2/RSTP)#show port xge 1
Bridge Port :9
Port Index :xge 1
RSTP Administrative State :Enabled
RSTP Operational State :Disabled
Port Priority :192
Path Cost :2000000
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
P3500(CONFIG/L2/RSTP)#
操作级别 |
Privileged |
配置模式 |
L2-RSTP |
语法 |
priority <0..61440> |
参数定义 |
Priority:配置网桥优先级。 <0..61440>:生成树优先级值,步长4096。 |
说明 |
该命令用于修改交换机的生成树优先级。缺省值为32768。 如果所有的交换机都按缺省设置运行,网络中MAC地址最低的交换机就成根交换机。然而,由于流量类型,转发端口数, 或者线路类型等因素,带有最低MAC地址的交换机并不一定的最理想的根交换机。通过增加理想的交换机的优先级(降低数字优先级数值),使其成为根交换机。用户可使用生成树协议重新计算,来形成一个新的、稳定的拓扑结构。而且, 建立在缺省参数基础上的拓扑结构,其在交换机网络中建立的源与目标元素之间的路径并不一定是最理想的。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#rstp
P3500(CONFIG/L2/RSTP)#priority 40960
P3500(CONFIG/L2/RSTP)#show rstp
RSTP Status :Disabled
Switch Priority :40960
Switch Mac Address :02:12:05:a1:61:45
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
P3500(CONFIG/L2/RSTP)#
操作级别 |
Normal |
配置模式 |
L2-RSTP |
语法 |
show port [<xge|is|iu|trunk> <ethernet-list>] |
参数定义 |
show port:显示RSTP端口配置。 <xge|is|iu|trunk>:端口类型。 <ethernet-list>:显示以太网列表。下列的一个或多个以太网口: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6)。 使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。 |
说明 |
该命令显示以太口上生成树算法的配置信息,包括:端口号 RSTP管理状态RSTP操作状态端口优先级路径消耗 指定的根优先级指定的跟MAC 指定的端口桥接MAC 指定的端口号 指定的消耗。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#rstp
P3500(CONFIG/L2/RSTP)#show port xge 1
Bridge Port :9
Port Index :xge 1
RSTP Administrative State :Enabled
RSTP Operational State :Disabled
Port Priority :192
Path Cost :2000000
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
P3500(CONFIG/L2/RSTP)#
操作级别 |
Normal |
配置模式 |
L2-RSTP |
语法 |
show rstp |
说明 |
该命令用于显示插板级别的生成树算法参数配置信息,包括: RSTP插板状态 (启用/禁止) 网桥标识优先级 网桥转发延时网桥最大时间网桥hello时间 最后一次拓扑修改以来的时间拓扑修改次数 指定的根根 端 口 根 消 耗 转发延时最大时间 Hello时间。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#rstp
P3500(CONFIG/L2/RSTP)#show rstp
RSTP Status :Disabled
Switch Priority :40960
Switch Mac Address :02:12:05:a1:61:45
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
P3500(CONFIG/L2/RSTP)#
操作级别 |
Privileged |
配置模式 |
L2-MSTP |
语法 |
configuration instance <MST instance id> vlan <vlan range ex> |
参数定义 |
configuration:配置MSTP。 instance:基于MST实例配置。 <MST instance id>:MST实例id。 vlan:加到实例映射上的VLAN范围。 <vlan range ex>:VLAN范围。例如:1-65,72,300,最多64个字符。 |
说明 |
该命令基于MST实例进行配置。 |
操作级别 |
Privileged |
配置模式 |
L2-MSTP |
语法 |
configuration no instance <MST instance id> vlan <vlan range ex> |
参数定义 |
configuration:删除一个MSTP配置。 no:删除一个配置。 instance:删除基于MST实例配置。 <MST instance id>:MST实例id。 vlan:加到实例映射上的VLAN范围。 <vlan range ex>:VLAN范围。例如:1-65,72,300,最多64个字符。 |
说明 |
该命令删除一个基于MST实例进行的配置。 |
操作级别 |
Privileged |
配置模式 |
L2-MSTP |
语法 |
configuration name <configuration name> |
参数定义 |
configuration:配置MSTP。 name:设置配置名。 <configuration name>:最多32个字符。 |
说明 |
该命令设置配置名。 |
操作级别 |
Privileged |
配置模式 |
L2-MSTP |
语法 |
configuration no name |
参数定义 |
configuration:删除MSTP配置名。 name:配置名。 |
说明 |
该命令删除MST配置名。 |
操作级别 |
Privileged |
配置模式 |
L2-MSTP |
语法 |
configuration revision <configuration revision number> |
参数定义 |
configuration:配置MSTP。 revision:设置配置修改次数。 <configuration revision number>:数字范围为0-65535。 |
说明 |
该命令配置修改次数。 |
操作级别 |
Privileged |
配置模式 |
L2-MSTP |
语法 |
configuration no revision |
参数定义 |
configuration:删除配置修改次数。 no:删除修改次数。 revision:删除修改次数。
|
说明 |
该命令删除修改次数限制。 |
操作级别 |
Normal |
配置模式 |
L2-MSTP |
语法 |
show configuration |
参数定义 |
show:显示信息。 configuration:显示配置信息。 |
说明 |
显示配置信息。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#vlan
P3500(CONFIG/L2/VLAN)#vid 1234 name test mode routed
P3500(CONFIG/L2/VLAN)#exit
P3500(CONFIG/L2)#mstp
P3500(CONFIG/L2/MSTP)#configuration instance 3 vlan 1234
P3500(CONFIG/L2/MSTP)#configuration name test
P3500(CONFIG/L2/MSTP)#configuration revision 12345
P3500(CONFIG/L2/MSTP)#show configuration
Name [test]
Revision 12345
Instance Vlans mapped
-------- ------------------------------------------------------------0 1-1233,1235-4093
3 1234
----------------------------------------------------------------------------
P3500(CONFIG/L2/MSTP)#configuration no name
P3500(CONFIG/L2/MSTP)#show configuration
Name []
Revision 12345
Instance Vlans mapped
-------- ------------------------------------------------------------0 1-1233,1235-4093
3 1234
----------------------------------------------------------------------------
P3500(CONFIG/L2/MSTP)#
操作级别 |
Privileged |
配置模式 |
L2-MSTP |
语法 |
disable |
参数定义 |
disable:禁用MSTP多生成树。 |
说明 |
该命令禁用MSTP多生成树。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#mstp
P3500(CONFIG/L2/MSTP)#disable
P3500(CONFIG/L2/MSTP)#
操作级别 |
Privileged |
配置模式 |
L2-MSTP |
语法 |
enable |
参数定义 |
enable:启用MSTP多生成树。 |
说明 |
该命令启用MSTP多生成树。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#mstp
P3500(CONFIG/L2/MSTP)#enable
P3500(CONFIG/L2/MSTP)#
操作级别 |
Privileged |
配置模式 |
L2-MSTP |
语法 |
forward-time <number of seconds for the forward delay> |
参数定义 |
forward-time :设置生成树转发延迟。 <number of seconds for the forward delay>:延迟为4-30,单位为秒。 |
说明 |
该命令设置生成树转发延迟。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#mstp
P3500(CONFIG/L2/MSTP)#forward-time 27
P3500(CONFIG/L2/MSTP)#show instance
######MST00 vlans mapped: 2-4093
Bridge address 000b.1621.2c37 priority 8192 (8192 sysid 0)
Root address 000b.1621.2c37 priority 8192 (8192 sysid 0)
Regional Root address 000b.1621.2c37 priority 8192
Operational hello time 2, forward delay 27, max age 20, hops 20
Configured hello time 2, forward delay 27, max age 20, max hops 20
Interface Role Status Cost Prio.Nbr Type PortFast
--------- ----------- ----------- --------- ----------- ---------------- ---
P3500(CONFIG/L2/MSTP)#
操作级别 |
Privileged |
配置模式 |
L2-MSTP |
语法 |
hello-time <number of seconds > |
参数定义 |
hello-time:设置生成树hello间隔。 <number of seconds >:间隔为1-10,单位为秒。 |
说明 |
该命令设置生成树hello间隔。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#mstp
P3500(CONFIG/L2/MSTP)#hello-time 9
P3500(CONFIG/L2/MSTP)#show instance
######MST00 vlans mapped: 2-4093
Bridge address 000b.1621.2c37 priority 8192 (8192 sysid 0)
Root address 000b.1621.2c37 priority 8192 (8192 sysid 0)
Regional Root address 000b.1621.2c37 priority 8192
Operational hello time 9, forward delay 27, max age 20, hops 20
Configured hello time 9, forward delay 27, max age 20, max hops 20
Interface Role Status Cost Prio.Nbr Type PortFast
--------- ----------- ----------- --------- ----------- ---------------- ---
P3500(CONFIG/L2/MSTP)#
操作级别 |
Privileged |
配置模式 |
L2-MSTP |
语法 |
instance <MST instance id> port-pathcost interface xge <ethernet-index> <1..200000000> |
参数定义 |
instance:配置基于MST实例的配置。 <MST instance id>:实例id,范围为0-15。 port-pathcost:设置路径代价。 interface:端口类型。 <ethernet-index>:<ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) iu x/y(其中x的范围是1-3,y的范围是1-4) none。 <1..200000000>:端口代价值范围为1-200000000。 |
说明 |
该命令配置路径代价。 |
操作级别 |
Privileged |
配置模式 |
L2-MSTP |
语法 |
instance <MST instance id> port-priority interface xge <ethernet-index> <0..240> |
参数定义 |
instance:配置基于MST实例的配置。 <MST instance id>:实例id,范围为0-15。 port-priority:设置端口优先级。 interface:端口类型。 <ethernet-index>:<ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) iu x/y(其中x的范围是1-3,y的范围是1-4) none。 <0..240>:端口优先级值范围为0-240,步长为16。 |
说明 |
该命令配置端口优先级。 |
操作级别 |
Privileged |
配置模式 |
L2-MSTP |
语法 |
instance <MST instance id> priority <priority> |
参数定义 |
instance:配置基于MST实例的配置。 <MST instance id>:实例id,范围为0-15。 priority:桥优先级。 <priority>:桥优先级为4096的倍数。 |
说明 |
该命令配置生成树的桥优先级。 |
操作级别 |
Normal |
配置模式 |
L2-MSTP |
语法 |
show instance <MST instance id> |
参数定义 |
show:显示组播生成树实例。 instance:显示组播生成树实例。 <MST instance id>:实例id,范围为0-15。 |
说明 |
该命令显示组播生成树实例。 |
操作级别 |
Normal |
配置模式 |
L2-MSTP |
语法 |
show instance detail |
参数定义 |
show:显示组播生成树实例。 instance:显示组播生成树实例。 detail:显示详细信息。 |
说明 |
该命令配显示组播生成树实例详细信息。 |
操作级别 |
Normal |
配置模式 |
L2-MSTP |
语法 |
show instance port interface xge <ethernet-index> |
参数定义 |
show:显示端口生成树实例。 instance:显示端口生成树实例。 interface:端口类型。 <ethernet-index>:<ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) iu x/y(其中x的范围是1-3,y的范围是1-4) none。 |
说明 |
该命令显示端口生成树实例。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#mstp
P3500(CONFIG/L2/MSTP)#configuration instance 12 vlan 1
P3500(CONFIG/L2/MSTP)#instance 12 port-pathcost interface xge 1 200
P3500(CONFIG/L2/MSTP)#instance 12 port-priority interface xge 1 16
P3500(CONFIG/L2/MSTP)#instance 12 priority 4096
P3500(CONFIG/L2/MSTP)#show instance
######MST00 vlans mapped: 2-4093
Bridge address 001c.8207.a43a priority 32768 (32768 sysid 0)
Root address 001c.8207.a43a priority 32768 (32768 sysid 0)
Regional Root address 001c.8207.a43a priority 32768
Operational hello time 2, forward delay 10, max age 20, hops 20
Configured hello time 2, forward delay 10, max age 20, max hops 20
Interface Role Status Cost Prio.Nbr Type PortFast
--------- ----------- ----------- --------- ----------- ---------------- ---
######MST12 vlans mapped: 1
Bridge address 001c.8207.a43a priority 4108 (4096 sysid 12)
Root address 001c.8207.a43a priority 4108 (4096 sysid 12)
Interface Role Status Cost Prio.Nbr Type PortFast
--------- ----------- ----------- --------- ----------- ---------------- ---GE1 Disabled Disabled 200 16.51 Shr FALSE
GE2 Disabled Disabled 2000 128.52 Shr FALSE
GE3 Disabled Disabled 2000 128.53 Shr FALSE
GE4 Disabled Disabled 2000 128.54 Shr FALSE
P3500(CONFIG/L2/MSTP)#
操作级别 |
Privileged |
配置模式 |
L2-MSTP |
语法 |
max-age <maximum number of seconds the information> |
参数定义 |
max-age:最大等待时间。 <maximum number of seconds the information>:最大等待时间范围为6-40,单位为秒。 |
说明 |
该命令设置生成树最大等待时间。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#mstp
P3500(CONFIG/L2/MSTP)#max-age 39
P3500(CONFIG/L2/MSTP)#show instance
######MST00 vlans mapped: 2-4093
Bridge address 000b.1621.2c37 priority 8192 (8192 sysid 0)
Root address 000b.1621.2c37 priority 8192 (8192 sysid 0)
Regional Root address 000b.1621.2c37 priority 8192
Operational hello time 9, forward delay 27, max age 39, hops 20
Configured hello time 9, forward delay 27, max age 39, max hops 20
Interface Role Status Cost Prio.Nbr Type PortFast
--------- ----------- ----------- --------- ----------- ---------------- ---
P3500(CONFIG/L2/MSTP)#
操作级别 |
Privileged |
配置模式 |
L2-MSTP |
语法 |
max-hops <maximum number of hops a BPDU is valid> |
参数定义 |
max-hops:设置生成树的最大跳数。 <maximum number of hops a BPDU is valid>:使一个BPDU有效的生成树最大跳数。范围1-40. |
说明 |
该命令配置生成树最大跳数。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#mstp
P3500(CONFIG/L2/MSTP)#max-hops 28
P3500(CONFIG/L2/MSTP)#show instance
######MST00 vlans mapped: 2-4093
Bridge address 000b.1621.2c37 priority 8192 (8192 sysid 0)
Root address 000b.1621.2c37 priority 8192 (8192 sysid 0)
Regional Root address 000b.1621.2c37 priority 8192
Operational hello time 9, forward delay 27, max age 39, hops 28
Configured hello time 9, forward delay 27, max age 39, max hops 28
Interface Role Status Cost Prio.Nbr Type PortFast
--------- ----------- ----------- --------- ----------- ---------------- ---
P3500(CONFIG/L2/MSTP)#
CSM 三层命令用于配置接口信息。
操作级别 |
Privileged |
配置模式 |
L3-Interface |
语法 |
interface vlan <vlan-interface> [ip <A.B.C.D>] [netmask <A.B.C.D>] [ipv6 <A:B::C:D>] [prefix <A>] |
参数定义 |
interface:创建三层VLAN接口。 vlan:创建三层VLAN接口。 <vlan-interface>:三层VLAN接口,格式为: vlan <2..4093>:x (x是指定VLAN的路由接口号,现在为1)。ip: IP地址。 <A.B.C.D>: IP地址。 netmask:子网掩码。 <A.B.C.D>:子网掩码地址。 ipv6:配置IPV6地址。 <A:B::C:D>:IPV6地址。 prefix:IPv6前缀。 <A>:前缀长度为0-128。 |
说明 |
该命令用于为路由VLAN创建一个三层VLAN接口。 |
操作级别 |
Privileged |
配置模式 |
L3-Interface |
语法 |
no interface vlan <vlan-interface> |
说明 |
该命令删除一个三层VLAN接口。说明:在删除主VLAN(primary VLAN)之前,所有的辅VLAN(secondary VLAN)都必须删除 |
操作级别 |
Normal |
配置模式 |
L3-Interface |
语法 |
show interface [vlan <vlan-interface>] |
说明 |
该命令用于显示所有或指定的VLAN接口信息: VLAN ID VLAN子接口ID IP地址掩码 接口代理ARP状态。 |
例如:
P3500#configure
P3500(CONFIG)#l2
P3500(CONFIG/L2)#vlan
P3500(CONFIG/L2/VLAN)#vid 100 name test mode routed
P3500(CONFIG/L2/VLAN)#home
P3500#configure
P3500(CONFIG)#l3
P3500(CONFIG/L3)#interface
P3500(CONFIG/L3/INTERFACE)#interface vlan 100:1 ip 1.1.1.1 netmask 255.255.255.0
P3500(CONFIG/L3/INTERFACE)#show interface
VLAN ID :100
VLAN Sub-Interface ID :1
IP Address :1.1.1.1
Subnet Mask :255.255.255.0
Proxy ARP State :Disable
P3500(CONFIG/L3/INTERFACE)#no interface vlan 100:1
P3500(CONFIG/L3/INTERFACE)#show interface
P3500(CONFIG/L3/INTERFACE)#
操作级别 |
Privileged |
配置模式 |
L3-Interface |
语法 |
proxy-arp <enable|diable><vlan-interface> |
参数定义 |
proxy-arp:配置代理ARP功能。 <enable|diable>:禁止或启用接口的代理ARP功能。 <vlan-interface>:三层VLAN接口,格式为: vlan <2..4093>:x (x是指定VLAN的路由接口号,现在为1)。 |
说明 |
该命令用于配置VLAN接口的代理ARP功能。 |
例如:
P3500#configure
P3500(CONFIG)#l3
P3500(CONFIG/L3)#interface
P3500(CONFIG/L3/INTERFACE)#proxy-arp disable vlan 100:1
P3500(CONFIG/L3/INTERFACE)#show interface vlan 100:1
VLAN ID :100
VLAN Sub-Interface ID :1
IP Address :1.1.1.1
Subnet Mask :255.255.255.0
Proxy ARP State :Disable
P3500(CONFIG/L3/INTERFACE)#
操作级别 |
Privileged |
配置模式 |
L3-Interface |
语法 |
addv6route <vlan-interface> destination <A:B::C:D> prefix <A> nexthop <A:B::C:D> |
参数定义 |
addv6route:添加三层VLAN口IPv6路由。 <vlan-interface>:三层VLAN接口,格式为: vlan <2..4093>:x (x是指定VLAN的路由接口号,现在为1)。 destination:目标主机/网络IPv6地址。 <A:B::C:D>:地址。 prefix:子网前缀长度。 <A>:范围为 0-128。 nexthop:网关IPv6地址。 <A:B::C:D>:地址。 |
说明 |
该命令添加三层VLAN口IPv6路由。 |
操作级别 |
Privileged |
配置模式 |
L3-Interface |
语法 |
delv6route <vlan-interface> destination <A:B::C:D> |
参数定义 |
delv6route:删除l3口IPv6路由。 <vlan-interface>:三层VLAN接口,格式为: vlan <2..4093>:x (x是指定VLAN的路由接口号,现在为1)。 destination:目标主机/网络IPv6地址。 <A:B::C:D>:地址。 |
说明 |
该命令删除l3口IPv6路由。 |
操作级别 |
Normal |
配置模式 |
L3-Interface |
语法 |
show v6route [<vlan-interface>] |
参数定义 |
show v6route:显示l3口IPv6路由。 <vlan-interface>:三层VLAN接口,格式为: vlan <2..4093>:x (x是指定VLAN的路由接口号,现在为1)。 |
说明 |
该命令显示l3口IPv6路由。 |
操作级别 |
Privileged |
配置模式 |
L3 |
语法 |
l3 routing <disable|enable|show> |
参数定义 |
disable:关闭业务三层转发。 enable: 开启业务三层转发。 show: 显示三层转发配置 |
说明 |
该命令用于配置和显示业务三层转发模式。 |
例如:
P3500#configure
P3500(CONFIG)#l3
P3500(CONFIG/L3)#routing show
L3 Routing Function: disabled
CSM 安全命令用于配置安全代理信息。
操作级别 |
Privileged |
配置模式 |
Security |
语法 |
action <action-name> [interface <xge|is|iu|trunk> <ethernet-index>] [vid <1..4093>] [dst-mac <mac-address>] [acl <permit|deny>] [mirror] |
参数定义 |
action:新建或修改基于流的操作。 <action-name>:操作名称,最多32个字符。 interface:端口类型。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 vid:新的VLAN ID,对于每个安全操作,“change VLAN ID” 和“change destination MAC”是互斥的。也就是说,如果选择了“change VLAN ID”,就不能选择“change destination MAC”。反之亦然。 <1..4093>:1~4093。 dst-mac:新的MAC地址,对于每个安全操作, “change destination MAC” 和“change VLAN ID” 是互斥的。也就是说,如果选择了“change destination MAC”,就不能选择“change VLAN ID”。反之亦然。 <mac-address>:aa:bb:cc:dd:ee:ff acl:访问控制(Access control)。 <permit|deny>:允许或拒绝。 mirror:镜像到端口。 |
说明 |
该命令创建一个基于流的操作的安全操作或修改一个已存在的基于流的安全操作。 |
操作级别 |
Privileged |
配置模式 |
Security |
语法 |
no action <action-name> |
说明 |
该命令删除一个基于流的安全操作。 |
操作级别 |
Normal |
配置模式 |
Security |
语法 |
show action [<action-name>] |
说明 |
该命令显示所有或指定基于流的安全操作。 |
例如:
P3500#configure
P3500(CONFIG)#security
P3500(CONFIG/Security)#action act1 interface xge 3 vid 100
P3500(CONFIG/Security)#show action
Action Name : act1
Port Index : xge 3
Vlan ID: : 100
Dest MAC : 00:00:00:00:00:00
ACL Action : deny
Mirror Option : FALSE
P3500(CONFIG/Security)#no action act1
P3500(CONFIG/Security)#show action act1
Generic command execution error...
^
% Bad command P3500(CONFIG/Security)#
操作级别 |
Privileged |
配置模式 |
Security |
语法 |
anti-dos-attack <mode> |
参数定义 |
anti-dos-attack:防dos攻击。 <mode>:启用或禁用。缺省值:disable |
说明 |
该命令配置防dos攻击启用或禁用。 |
例如:
P3500#configure
P3500(CONFIG)#security
P3500(CONFIG/Security)#anti-dos-attack enable
P3500(CONFIG/Security)#show security-function
anti-mac-spoofing : disable
anti-dos-attack : enable
trust-dscp : disable
mcast-filter : disable
dhcp-filter : disable
P3500(CONFIG/Security)#
操作级别 |
Privileged |
配置模式 |
Security |
语法 |
anti-MAC-attack <mode> |
参数定义 |
anti-MAC-attack:防MAC地址欺骗。 <mode>:启用或禁用。缺省值:disable |
说明 |
该命令配置防MAC ip欺骗启用或禁用。 |
例如:
P3500#configure
P3500(CONFIG)#security
P3500(CONFIG/Security)#anti-MAC-spoofing enable
P3500(CONFIG/Security)#show security-function
anti-mac-spoofing : enable
anti-dos-attack : enable
trust-dscp : disable
mcast-filter : disable
dhcp-filter : disable
P3500(CONFIG/Security)#
操作级别 |
Privileged |
配置模式 |
Security |
语法 |
assign-action interface <xge|is|iu|trunk> <ethernet-index> rule-index <1..65535> action <action-name> |
参数定义 |
assign-action:分配一个操作。 interface:端口类型。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 rule-index:包分类规则索引号。 <1..65535>:1~65535。 action:基于流的安全操作。 <action-name>:操作名称,最多32个字符。 |
说明 |
该命令分配一个基于流的安全操作到一个桥接端口。 |
操作级别 |
Privileged |
配置模式 |
Security |
语法 |
deassign-action interface <xge|is|iu|trunk> <ethernet-index> rule-index <1..65535> |
参数定义 |
deassign-action:从桥接端口取消操作分配。 interface:端口类型。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 rule-index:包分类规则索引号。 <1..65535>:1~65535。 |
说明 |
该命令从一个桥接端口取消基于流的安全操作的分配。 |
操作级别 |
Normal |
配置模式 |
Security |
语法 |
show action-assign [interface <xge|is|iu|trunk> <ethernet-index>] [rule-index <1..65535>] |
参数定义 |
action-assign:基于流的操作分配。 interface:CSM桥接端口索引号。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 rule-index:包分类规则索引号。 <1..65535>:1~65535。 |
说明 |
该命令显示所有或指定的部分基于流的安全操作的分配。 |
例如:
P3500#configure
P3500(CONFIG)#security
P3500(CONFIG/Security)#assign-action interface xge 3 rule-index 1 action act1
P3500(CONFIG/Security)#show action-assign
Port Index : xge 3
RuleIndex: : 1
Action Name : act1
P3500(CONFIG/Security)#deassign-action interface xge 3 rule-index 1
P3500(CONFIG/Security)#show action-assign
P3500(CONFIG/Security)#
操作级别 |
Privileged |
配置模式 |
Security |
语法 |
ip-bind interface <xge|is|iu|trunk> <ethernet-index> ip mask <ip-addrss-mask> port interface <xge|is|iu|trunk> <ethernet-index> <mode> |
参数定义 |
ip-bind:配置IP绑定。 interface:端口类型。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 ip:ip地址。 <ip-addrss>:<A.B.C.D>。 mask:IP地址掩码。 <ip-addrss-mask>:<A.B.C.D>。 vlan:绑定VLAN。 <vlan>:范围为1-4095。 <mode>:允许/禁止。缺省值:禁止 |
说明 |
该命令配置IP绑定端口和VLAN。 |
操作级别 |
Normal |
配置模式 |
Security |
语法 |
show ip-bind [ interface <xge|is|iu|trunk> <ethernet-index> ] |
参数定义 |
show:显示IP绑定。 ip-bind:显示IP绑定。 interface:端口类型。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 |
说明 |
该命令显示IP绑定。 |
例如:
P3500#configure
P3500(CONFIG)#security
P3500(CONFIG/Security)#ip-bind interface xge 1 ip 1.1.1.1 mask 255.255.255.0 vlan 100 enable
P3500(CONFIG/Security)#show ip-bind interface xge 1
Port Index : XGE1
IP : 1.1.1.1
mask : 255.255.255.0
vlan: : 100
P3500(CONFIG/Security)#
操作级别 |
Privileged |
配置模式 |
Security |
语法 |
msg-speed-limit interface <xge|is|iu|trunk> <ethernet-index> <type> <<64..4000000>> <<cbs>> <mode> |
参数定义 |
msg-speed-limit:配置消息速度限制。 interface:端口类型。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 <type>:类型为dhcp,igmp,icmp。 <<64..4000000>>:64Kbps~4000000Kbps。缺省值:1000000Kbps 。 <<cbs>>: 可选值为<4K|8K|16K|32K|64K|128K|256K|512K|1M|2M|4M|8M|16M>,缺省值为64Kbps。 <mode>:允许/禁止。缺省值:禁止。 |
说明 |
该命令配置消息速度限制。 |
操作级别 |
Normal |
配置模式 |
Security |
语法 |
show msg-speed-limit [interface <xge|is|iu|trunk> <ethernet-index> <type>] |
参数定义 |
show:显示消息速度限制。 msg-speed-limit:显示消息速度限制。 interface:端口类型。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 <type>:类型为dhcp,igmp,icmp。 |
说明 |
该命令显示消息速度限制。 |
例如:
P3500#configure
P3500(CONFIG)#security
P3500(CONFIG/Security)#msg-speed-limit interface xge 3 igmp 64 16M enable
P3500(CONFIG/Security)#show msg-speed-limit
Port Index : XGE3
type: : igmp
rate: : 64
cbs : 16M
P3500(CONFIG/Security)#
操作级别 |
Privileged |
配置模式 |
Security |
语法 |
dhcp-filter <mode> |
参数定义 |
dhcp-filter:配置DHCP过滤器。 <mode>:启用/禁用。缺省值:禁用。 |
说明 |
该命令配置DHCP过滤器。 |
操作级别 |
Privileged |
配置模式 |
Security |
语法 |
mcast-filter <mode> |
参数定义 |
mcast-filter:配置组播过滤器。 <mode>:启用/禁用。缺省值:禁用。 |
说明 |
该命令配置组播过滤器。 |
例如:
P3500#configure
P3500(CONFIG)#security
P3500(CONFIG/Security)#dhcp-filter enable
P3500(CONFIG/Security)#mcast-filter enable
P3500(CONFIG/Security)#show security-function
anti-mac-spoofing : enable
anti-dos-attack : enable
trust-dscp : disable
mcast-filter : enable
dhcp-filter : enable
P3500(CONFIG/Security)#
操作级别 |
Privileged |
配置模式 |
Security |
语法 |
frame-filter mac-addr <mac-address> <action> |
参数定义 |
frame-filter:配置帧过滤器。 mac-addr:数据包MAC地址。 <mac-address>:aa:bb:cc:dd:ee:ff。 <action>:丢弃/转发 |
说明 |
该命令配置帧过滤器。 |
操作级别 |
Privileged |
配置模式 |
Security |
语法 |
no frame-filter mac-addr <mac-address> <action> |
参数定义 |
no frame-filter:删除帧过滤配置。 mac-addr:数据包MAC地址。 <mac-address>:aa:bb:cc:dd:ee:ff。 |
说明 |
该命令删除帧过滤配置。 |
操作级别 |
Normal |
配置模式 |
Security |
语法 |
show frame-filter |
参数定义 |
show:显示帧过滤器。 frame-filter:显示帧过滤器。 |
说明 |
该命令显示帧过滤器。 |
例如:
P3500#configure
P3500(CONFIG)#security
P3500(CONFIG/Security)#frame-filter mac-addr 00:00:00:11:11:11 drop
P3500(CONFIG/Security)#show frame-filter
MAC Addr : 00:00:00:11:11:11
action : drop
index : 35
MAC Addr : 01:80:c2:00:00:00
action : drop
index : 0
MAC Addr : 01:80:c2:00:00:01
action : drop
index : 1
MAC Addr : 01:80:c2:00:00:02
action : drop
index : 2
MAC Addr : 01:80:c2:00:00:03
action : drop
index : 3
MAC Addr : 01:80:c2:00:00:04
action : drop
index : 4
MAC Addr : 01:80:c2:00:00:05
action : drop
index : 5
MAC Addr : 01:80:c2:00:00:06
action : drop
index : 6
MAC Addr : 01:80:c2:00:00:07
action : drop
index : 7
MAC Addr : 01:80:c2:00:00:08
action : drop
index : 8
MAC Addr : 01:80:c2:00:00:09
action : drop
index : 9
MAC Addr : 01:80:c2:00:00:0a
action : drop
index : 10
MAC Addr : 01:80:c2:00:00:0b
action : drop
index : 11
MAC Addr : 01:80:c2:00:00:0c
action : drop
index : 12
MAC Addr : 01:80:c2:00:00:0d
action : drop
index : 13
MAC Addr : 01:80:c2:00:00:0e
action : drop
index : 14
MAC Addr : 01:80:c2:00:00:0f
action : drop
index : 15
MAC Addr : 01:80:c2:00:00:10
action : drop
index : 16
MAC Addr : 01:80:c2:00:00:20
action : drop
index : 17
MAC Addr : 01:80:c2:00:00:21
action : drop
index : 18
MAC Addr : 01:80:c2:00:00:22
action : drop
index : 19
MAC Addr : 01:80:c2:00:00:23
action : drop
index : 20
MAC Addr : 01:80:c2:00:00:24
action : drop
index : 21
MAC Addr : 01:80:c2:00:00:25
action : drop
index : 22
MAC Addr : 01:80:c2:00:00:26
action : drop
index : 23
MAC Addr : 01:80:c2:00:00:27
action : drop
index : 24
MAC Addr : 01:80:c2:00:00:28
action : drop
index : 25
MAC Addr : 01:80:c2:00:00:29
action : drop
index : 26
MAC Addr : 01:80:c2:00:00:2a
action : drop
index : 27
MAC Addr : 01:80:c2:00:00:2b
action : drop
index : 28
MAC Addr : 01:80:c2:00:00:2c
action : drop
index : 29
MAC Addr : 01:80:c2:00:00:2d
action : drop
index : 30
MAC Addr : 01:80:c2:00:00:2e
action : drop
index : 31
MAC Addr : 01:80:c2:00:00:2f
action : drop
index : 32
MAC Addr : 10:00:00:00:00:00
action : drop
index : 34
MAC Addr : 11:11:11:11:11:11
action : drop
index : 33
P3500(CONFIG/Security)#
操作级别 |
Privileged |
配置模式 |
Security |
语法 |
storm-control [<xge|is|iu|trunk> <ethernet-list>] |
参数定义 |
storm-control:风暴配置 <broadcast/multicast/unicast>: 广播/组播/单播。 all-port/port-list: 配置到所有端口还是指定端口。 <xge|is|iu|trunk>:端口类型。 <ethernet-list>:显示以太网列表。下列的一个或多个以太网口: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6)。 使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。 <bandwidth>: 速率. 速率单位:pps。取值范围:0~14881000,0表示禁止速率控制。缺省值:200。 |
说明 |
该命令用于显示与端口相关的流控配置信息。如果没有指明具体的端口,则显示所有端口的信息。显示的每个端口的流控信息包括: 广播速率限制 组播速率限制 单播速率限制 |
操作级别 |
Normal |
配置模式 |
Security |
语法 |
show storm-control [<xge|is|iu|trunk> <ethernet-list>] |
参数定义 |
show: 显示信息。 storm-control:风暴控制配置 <xge|is|iu|trunk>:端口类型。 <ethernet-list>:显示以太网列表。下列的一个或多个以太网口: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6)。 使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。
|
说明 |
该命令用于显示与端口相关的风暴控制配置信息。如果没有指明具体的端口,则显示所有端口的信息。显示的每个端口的信息包括: 广播速率限制 组播速率限制 单播速率限制 |
例如:
P3500#configure
P3500(CONFIG)#security
P3500(CONFIG/Security)#storm-control broadcast port-list xge 1 256
P3500(CONFIG/Security)#show storm-control xge 1
Storm Control Port Index : XGE1
Broadcast Threshold : 256
Multicast Threshold : 200
Unicast Threshold : 200
P3500(CONFIG/Security)#
操作级别 |
Privileged |
配置模式 |
Security |
语法 |
trust-dscp <mode> |
参数定义 |
trust-dscp:信任DSCP。 <mode>:模式为允许/禁止。缺省值:禁用。 |
说明 |
配置信任DSCP。 |
例如:
P3500#configure
P3500(CONFIG)#security
P3500(CONFIG/Security)#trust-dscp disable
P3500(CONFIG/Security)#show security-function
anti-mac-spoofing : enable
anti-dos-attack : enable
trust-dscp : disable
mcast-filter : enable
dhcp-filter : enable
P3500(CONFIG/Security)#
操作级别 |
Privileged |
配置模式 |
Security |
语法 |
vlan <type> <id> <priority> |
参数定义 |
vlan:配置VLAN。 <type>:IPv4/IPv6。 <id>:VLAN id。范围为1-4095。 <priority>:优先级范围为0-7。 |
说明 |
该命令配置VLAN。 |
操作级别 |
Normal |
配置模式 |
Security |
语法 |
show vlan [<type>] |
参数定义 |
show:显示VLAN。 vlan:显示VLAN。 <type>:IPv4/IPv6。 |
说明 |
该命令显示VLAN。 |
操作级别 |
Privileged |
配置模式 |
Security |
语法 |
no vlan <type> |
参数定义 |
no:删除VLAN。 vlan:删除VLAN。 <type>:IPv4/IPv6。 |
说明 |
该命令删除VLAN。 |
例如:
P3500#configure
P3500(CONFIG)#security
P3500(CONFIG/Security)#vlan ipv6 1234 1
P3500(CONFIG/Security)#show vlan
type: : ipv6
vlan: : 1234
priority: : 1
P3500(CONFIG/Security)#no vlan ipv6
P3500(CONFIG/Security)#show vlan
P3500(CONFIG/Security)#
操作级别 |
Normal |
配置模式 |
Security |
语法 |
show security-function |
参数定义 |
show:显示安全选项。 security-function:显示安全选项。 |
说明 |
该命令显示安全选项。 |
例如:
P3500#configure
P3500(CONFIG)#security
P3500(CONFIG/Security)#anti-dos-attack enable
P3500(CONFIG/Security)#anti-MAC-spoofing enable
P3500(CONFIG/Security)#show security-function
anti-mac-spoofing : enable
anti-dos-attack : enable
trust-dscp : disable
mcast-filter : disable
dhcp-filter : disable
P3500(CONFIG/Security)#
CSM QoS 命令用来配置 QoS。
操作级别 |
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>] |
参数定义 |
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-class:IPv6流量级别。 <0..63>:范围为0-63。 |
说明 |
该命令新建一个操作或修改已存在的操作。 |
操作级别 |
Privileged |
配置模式 |
QoS |
语法 |
no action <action-name> |
说明 |
该命令删除一个基于流的操作。 |
操作级别 |
Normal |
配置模式 |
QoS |
语法 |
show action [<action-name>] |
说明 |
该命令显示所有或一个指定的基于流的操作。 |
例如:
P3500#configure
P3500(CONFIG)#qos
P3500(CONFIG/QOS)#action test s-pri 3 dscp 20
P3500(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
P3500(CONFIG/QOS)#no action test
P3500(CONFIG/QOS)#show action
P3500(CONFIG/QOS)#
操作级别 |
Privileged |
配置模式 |
QoS |
语法 |
assign-action interface <xge|is|iu|trunk> <ethernet-index> rule-index <1..65535> action <action-name> |
参数定义 |
assign-action:分配一个操作。 interface:CSM桥接端口索引号。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 rule-index:包分类规则索引号。 <1..65535>:1~65535。 action:基于流的安全操作。 <action-name>:操作名,最多32个字符。 |
说明 |
该命令给桥接端口分配一个操作。 |
操作级别 |
Privileged |
配置模式 |
QoS |
语法 |
deassign-action interface <interface> rule-index <1..65535> |
说明 |
该命令从桥接端口取消基于流的操作分配。 |
操作级别 |
Normal |
配置模式 |
QoS |
语法 |
show action-assign [interface <interface>] [rule-index <1..65535>] |
说明 |
该命令显示所有或一些指定的基于流的操作分配。 |
例如:
P3500#configure
P3500(CONFIG)#qos
P3500(CONFIG/QOS)#assign-action interface xge 3 rule-index 1 action act1
P3500(CONFIG/QOS)#show action-assign
Interface :XGE 3
Rule index :1
Action Assign :act1
P3500(CONFIG/QOS)#deassign-action interface xge 3 rule-index 1
P3500(CONFIG/QOS)#show action-assign
P3500(CONFIG/QOS)#
操作级别 |
Privileged |
配置模式 |
QoS |
语法 |
default-priority interface <xge|is|iu|trunk> <ethernet-index> priority <0..7> |
参数定义 |
default-priority:不带标签的数据包的缺省802.1p优先级。 interface:CSM桥接端口索引号。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 priority:入口速率(kbps)。 <0..7>:取值范围:0~7,缺省值:0。 |
说明 |
该命令配置不带标签的数据包的缺省802.1p优先级。 |
操作级别 |
Normal |
配置模式 |
QoS |
语法 |
show default-priority [interface <interface>] |
参数定义 |
show:显示缺省优先级。 default-priority:显示缺省优先级。 interface:CSM桥接端口索引号。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 |
说明 |
该命令显示不带标签的数据包的缺省802.1p优先级。 |
例如:
P3500#configure
P3500(CONFIG)#qos
P3500(CONFIG/QOS)#show default-priority interface xge 3
Port :XGE 3
Priority :0
P3500(CONFIG/QOS)#default-priority interface xge 3 priority 2
P3500(CONFIG/QOS)#show default-priority interface xge 3
Port :XGE 3
Priority :2
P3500(CONFIG/QOS)#
操作级别 |
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 |
1 |
1 |
0 |
2 |
2 |
3 |
3 |
4 |
4 |
5 |
5 |
6 |
6 |
7 |
7 |
操作级别 |
Normal |
配置模式 |
QoS |
语法 |
show dot1p-mapping |
参数定义 |
dot1p-mapping:802.1p优先级到出口队列的映射。 |
说明 |
该命令显示802.1p优先级到出口队列的映射,格式如下:S优先级: 队列。 |
例如:
P3500#configure
P3500(CONFIG)#qos
P3500(CONFIG/QOS)#show dot1p-mapping
S-Priority Queue
0 1
1 0
2 2
3 3
4 4
5 5
6 6
7 7
P3500(CONFIG/QOS)#dot1p-mapping 2 queue 1
P3500(CONFIG/QOS)#show dot1p-mapping
S-Priority Queue
0 1
1 0
2 1
3 3
4 4
5 5
6 6
7 7
P3500(CONFIG/QOS)#
操作级别 |
Privileged |
配置模式 |
QoS |
语法 |
drop-precedence interface <xge|is|iu|trunk> <ethernet-list> <enable|disable> [dei-bit <enable|disable>] |
参数定义 |
drop-precedence:丢弃优先级选项。 <xge|is|iu|trunk>:端口类型。 <ethernet-list>:显示以太网列表。下列的一个或多个以太网口: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6)。 使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。 <enable|disable>:启用或禁止丢弃优先级。缺省值:disable dei-bit:DEI bit选项。该选项仅当启用丢弃优先级时有效。 <enable|disable>:启用或禁止DEI bit。缺省值:disable |
说明 |
该命令配置丢弃优先级和DEI bit选项。 |
例如:
P3500# configure
P3500(CONFIG)#qos
P3500(CONFIG/QOS)#drop-precendence interface xge 3 enable dei-bit enable
P3500(CONFIG/QOS)#show drop-precedence-mapping interface xge 3
Interface Index :xge:3
Drop precedence option :enable
DEI bit option :enable
Ingress S-PRI :0
Ingress DEI bit :1
Ingress Drop precedence :green
Ingress S-PRI :0
Ingress DEI bit :2
Ingress Drop precedence :green
Ingress S-PRI :1
Ingress DEI bit :1
Ingress Drop precedence :green
Ingress S-PRI :1
Ingress DEI bit :2
Ingress Drop precedence :green
Ingress S-PRI :2
Ingress DEI bit :1
Ingress Drop precedence :green
Ingress S-PRI :2
Ingress DEI bit :2
Ingress Drop precedence :green
Ingress S-PRI :3
Ingress DEI bit :1
Ingress Drop precedence :green
Press any key to continue (Q to quit)
操作级别 |
Privileged |
配置模式 |
QoS |
语法 |
dscp interface <xge|is|iu|trunk> <ethernet-list> |
参数定义 |
dscp:启用DSCP映射 interface:启用DSCP映射。 <xge|is|iu|trunk>:端口类型。 <ethernet-list>:显示以太网列表。下列的一个或多个以太网口: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6)。 使用“-”指定连续的索引号(比如:xge 2-4)。使用“,”分隔不连续的索引号(比如:xge 1,3)。在一个接口列表中指定的所有接口必须是同一种类型的。 |
说明 |
该命令启用DSCP映射。 |
操作级别 |
Privileged |
配置模式 |
QoS |
语法 |
no dscp interface <interface-list> |
说明 |
该命令禁止DSCP映射。 |
例如:
P3500#configure
P3500(CONFIG)#qos
P3500(CONFIG/QOS)#show dscp-mapping interface xge 3
Interface Index :xge:3
DSCP mapping :disable
P3500(CONFIG/QOS)#dscp interface xge 3
P3500(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)
P3500(CONFIG/QOS)#no dscp interface xge 3
P3500(CONFIG/QOS)#show dscp-mapping interface xge 3
Interface Index :xge:3
DSCP mapping :disable
P3500(CONFIG/QOS)#
操作级别 |
Privileged |
配置模式 |
QoS |
语法 |
dscp-mapping interface <xge|is|iu|trunk> <ethernet-index> ingress-dscp <0..63> [s-pri <0..7>] [new-dscp <0..63>] [precedence <green|yellow|red>] |
参数定义 |
dscp-mapping:配置DSCP到优先级的映射。 interface:CSM桥接端口索引号。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 ingress-dscp:入口DSCP值。 <0..63>:DSCP值。 s-pri:新业务提供商的802.1p 优先级,缺省值:0。 <0..7>:802.1p优先级值。 new-dscp:新DSCP值。 <0..63>:DSCP值。 precedence:丢弃优先级。 <green|yellow|red>:绿、黄或红。 |
说明 |
该命令配置DSCP映射。 |
操作级别 |
Normal |
配置模式 |
QoS |
语法 |
show dscp-mapping [<interface <interface>>[ ingress-dscp <0..63>]] |
参数定义 |
interface:CSM桥接端口索引号。 <0..63 >:dscp值。 |
说明 |
该命令显示所有接口或某个指定接口的DSCP映射。只有DSCP映射为启用状态时,会显示如下DSCP映射信息: Interface index(接口索引号) DSCP mapping(DSCP映射):启用 Ingress DSCP(入口DSCP) Map queue(映射队列) New DSCP(新DSCP) Drop precedence(丢弃优先级) 否则,只显示: Interface index(接口索引号) DSCP mapping(接口索引号):禁止 |
例如:
P3500#configure
P3500(CONFIG)#qos
P3500(CONFIG/QOS)#dscp-mapping interface xge 3 ingress-dscp 1 s-pri 1 new-dscp 2 precedence red
P3500(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)
操作级别 |
Privileged |
配置模式 |
QoS |
语法 |
egress-drop-dei interface <xge|is|iu|trunk> <ethernet-index> s-pri <0..7> precedence <green|yellow|red> [dei-bit <0|1>] [egress-spri <0..7>] |
参数定义 |
egress-drop-dei:当丢弃优先级和DEI bit为启用状态时的出口丢弃优先级映射。 interface:CSM桥接端口索引号 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 s-pri:业务提供商的802.1p优先级。 <0..7>:0 ~7。 precedence:丢弃优先级。 <green|yellow|red>:绿、黄或红。dei-bit:DEI bit值。 <0|1>:DEI bit为0或1 。 egress-spri:出口S-PRI值。 <0..7>:0 ~7。 |
说明 |
该命令配置当丢弃优先级和DEI bit为启用状态时的出口丢弃优先级映射。 |
例如:
P3500#configure
P3500(CONFIG)#qos
P3500(CONFIG/QOS)#egress-drop-dei interface xge 3 s-pri 1 precedence red dei-bit 0 egress-spri 2
P3500(CONFIG/QOS)#show drop-precedence-mapping interface xge 3
Interface Index :xge:3
Drop precedence option :enable
DEI bit option :enable
Ingress S-PRI :0
Ingress DEI bit :1
Ingress Drop precedence :green
Ingress S-PRI :0
Ingress DEI bit :2
Ingress Drop precedence :green
Ingress S-PRI :1
Ingress DEI bit :1
Ingress Drop precedence :green
Ingress S-PRI :1
Ingress DEI bit :2
Ingress Drop precedence :green
Ingress S-PRI :2
Ingress DEI bit :1
Ingress Drop precedence :green
Ingress S-PRI :2
Ingress DEI bit :2
Ingress Drop precedence :green
Ingress S-PRI :3
Ingress DEI bit :1
Ingress Drop precedence :green
Press any key to continue (Q to quit)
操作级别 |
Privileged |
配置模式 |
QoS |
语法 |
egress-drop-nodei interface <xge|is|iu|trunk> <ethernet-index> s-pri <0..7> precedence <green|yellow|red> egress-spri <0..7> |
参数定义 |
egress-drop-dei:当丢弃优先级和DEI bit为禁止状态时的出口丢弃优先级映射。 interface:CSM桥接端口索引号 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 s-pri:业务提供商802.1p优先级。 <0..7>:0 ~7。 precedence:丢弃优先级。 <green|yellow|red>:绿、黄或红。 egress-spri:出口S-PRI值。 <0..7>:0 ~7。 |
说明 |
该命令配置当丢弃优先级和DEI bit为禁止状态时的出口丢弃优先级映射。 |
例如:
P3500#configure
P3500(CONFIG)#qos
P3500(CONFIG/QOS)#egress-drop-nodei interface xge 3 s-pri 2 precedence green egress-spri 2
P3500(CONFIG/QOS)#show drop-precedence-mapping interface xge 3
Interface Index :xge:3
Drop precedence option :enable
DEI bit option :enable
Ingress S-PRI :0
Ingress DEI bit :1
Ingress Drop precedence :green
Ingress S-PRI :0
Ingress DEI bit :2
Ingress Drop precedence :green
Ingress S-PRI :1
Ingress DEI bit :1
Ingress Drop precedence :green
Ingress S-PRI :1
Ingress DEI bit :2
Ingress Drop precedence :green
Ingress S-PRI :2
Ingress DEI bit :1
Ingress Drop precedence :green
Ingress S-PRI :2
Ingress DEI bit :2
Ingress Drop precedence :green
Ingress S-PRI :3
Ingress DEI bit :1
Ingress Drop precedence :green
Press any key to continue (Q to quit)
操作级别 |
Privileged |
配置模式 |
QoS |
语法 |
egress-queue-metering interface <xge|is|iu|trunk> <ethernet-index> queue <0..7> [min-cir <0..10000000>] [max-cir <0..10000000>] |
参数定义 |
egress-queue-metering:配置出口队列限速参数。 interface:CSM桥接端口索引号 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 queue:出口队列。 <0..7>:优先级值。 min-cir:最小承诺信息速率(Committed Information Rate, CIR), 单位:kbps。缺省值:0。 <0..10000000>:取值范围:0 ~10000000 Kbps。 max-cir:最大承诺信息速率(Committed Burst Size, CBS),单位: Kbps。缺省值:0。 <0..10000000>:取值范围:0~10000000 Kbps。0表示不限制。 |
说明 |
该命令配置出口队列限速。 |
操作级别 |
Normal |
配置模式 |
QoS |
语法 |
show egress-queue-metering [interface <xge|is|iu|trunk> <ethernet-index>] [queue <0..7>] |
参数定义 |
show egress-queue-metering:显示出口队列限速参数。interface :CSM桥接端口索引号. <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 queue:出口队列。 <0..7>:优先级值。 |
说明 |
该命令显示所有出口队列限速或部分指定出口队列限速。 |
例如:
P3500#configure
P3500(CONFIG)#qos
P3500(CONFIG/QOS)#egress-queue-metering interface xge 2 queue 2 min-cir 100 max-cir 1024
P3500(CONFIG/QOS)#show egress-queue-metering interface xge 2
Port Queue Min CIR(Kbps) Max CIR(Kbps)
XGE 2 0 0 0
XGE 2 1 0 0
XGE 2 2 100 1024
XGE 2 3 0 0
XGE 2 4 0 0
XGE 2 5 0 0
XGE 2 6 0 0
XGE 2 7 0 0 P3500(CONFIG/QOS)#
操作级别 |
Privileged |
配置模式 |
QoS |
语法 |
egress-queue-weight interface <xge|is|iu|trunk> <ethernet-index> queue <0..7> [weight <0..15>] [sp-option <enable|disable>] |
参数定义 |
egress-queue-weight:出口队列权重。 interface:CSM桥接端口索引号 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 queue:出口队列。 <0..7>:队列索引号。 weight:权重值,当启用sp-option为enable时,权重值不能设置。 <0..15>:取值范围:0~15。 sp-option:严格优先级(strict priority),该值仅当选择了WRR+SP 时可设置。 <enable|disable>:启用或禁止SP。 |
说明 |
当选择了WRR or WRR+SP时,该命令根据桥接端口索引号配置出口队列权重和队列。 |
例如:
P3500#configure
P3500(CONFIG)#qos
P3500(CONFIG/QOS)#scheduling interface xge 2 wrr+sp
P3500(CONFIG/QOS)#show scheduling interface xge 2
Bridge_port_index Queue Scheduling_method Weight SP
XGE 2 0 wrr+sp 1 disable
XGE 2 1 wrr+sp 1 disable
XGE 2 2 wrr+sp 1 disable
XGE 2 3 wrr+sp 2 disable
XGE 2 4 wrr+sp 2 disable
XGE 2 5 wrr+sp 14 disable
XGE 2 6 wrr+sp 8 disable
XGE 2 7 wrr+sp 15 disable
P3500(CONFIG/QOS)#egress-queue-weight interface xge 2 queue 2 weight 2
P3500(CONFIG/QOS)#show scheduling interface xge 2
Bridge_port_index Queue Scheduling_method Weight SP
XGE 2 0 wrr+sp 1 disable
XGE 2 1 wrr+sp 1 disable
XGE 2 2 wrr+sp 2 disable
XGE 2 3 wrr+sp 2 disable
XGE 2 4 wrr+sp 2 disable
XGE 2 5 wrr+sp 14 disable
XGE 2 6 wrr+sp 8 disable
XGE 2 7 wrr+sp 15 disable
P3500(CONFIG/QOS)#
操作级别 |
Privileged |
配置模式 |
Security |
语法 |
ingress-drop-dei interface <xge|is|iu|trunk> <ethernet-index> s-pri <0..7> dei-bit <0|1> precedence <green|yellow|red> |
参数定义 |
ingress-drop-dei:当丢弃优先级和DEI bit为启用状态时的入口丢弃优先级映射。 interface:CSM桥接端口索引号 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 s-pri:业务提供商的802.1p优先级。 <0..7>:0 ~7。 dei-bit:DEI bit值。 <0|1>:DEI bit为0或1。 precedence:丢弃优先级。 <green|yellow|red>:绿、黄或红。 |
说明 |
该命令配置当丢弃优先级和DEI bit为启用状态时的入口丢弃优先级映射。 |
例如:
P3500#configure
P3500(CONFIG)#qos
P3500(CONFIG/QOS)#ingress-drop-dei interface xge 3 s-pri 2 dei-bit 0 precedence green
P3500(CONFIG/QOS)#show drop-precedence-mapping interface xge 3
Interface Index :xge:3 Drop precedence option :enable DEI bit option :enable
Ingress S-PRI :0
Ingress DEI bit :1
Ingress Drop precedence :green Ingress S-PRI :0
Ingress DEI bit :2
Ingress Drop precedence :green Ingress S-PRI :1
Ingress DEI bit :1
Ingress Drop precedence :green Ingress S-PRI :1
Ingress DEI bit :2
Ingress Drop precedence :green Ingress S-PRI :2
Ingress DEI bit :1
Ingress Drop precedence :green Ingress S-PRI :2
Ingress DEI bit :2
Ingress Drop precedence :green Ingress S-PRI :3
Ingress DEI bit :1
Ingress Drop precedence :green
Press any key to continue (Q to quit)
操作级别 |
Privileged |
配置模式 |
QoS |
语法 |
ingress-drop-nodei interface <xge|is|iu|trunk> <ethernet-index> s-pri <0..7> precedence <green|yellow|red> |
参数定义 |
ingress-drop-nodei:当丢弃优先级为启用状态但DEI bit为禁止状态时的入口丢弃优先级映射。 interface:CSM桥接端口索引号。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 s-pri:业务提供商的802.1p优先级。 <0..7>:0~7。 precedence:丢弃优先级。 <green|yellow|red>:绿、黄或红。 |
说明 |
该命令配置当丢弃优先级为启用状态但DEI bit为禁止状态时的入口丢弃优先级映射。 |
例如:
P3500#configure
P3500(CONFIG)#qos
P3500(CONFIG/QOS)#ingress-drop-nodei interface xge 3 s-pri 2 precedence red
P3500(CONFIG/QOS)#show drop-precedence-mapping interface xge 3
Interface Index :xge:3
Drop precedence option :enable
DEI bit option :enable
Ingress S-PRI :0
Ingress DEI bit :1
Ingress Drop precedence :green
Ingress S-PRI :0
Ingress DEI bit :2
Ingress Drop precedence :green
Ingress S-PRI :1
Ingress DEI bit :1
Ingress Drop precedence :green
Ingress S-PRI :1
Ingress DEI bit :2
Ingress Drop precedence :green
Ingress S-PRI :2
Ingress DEI bit :1
Ingress Drop precedence :green
Ingress S-PRI :2
Ingress DEI bit :2
Ingress Drop precedence :green
Ingress S-PRI :3
Ingress DEI bit :1
Ingress Drop precedence :green
Press any key to continue (Q to quit)
操作级别 |
Privileged |
配置模式 |
QoS |
语法 |
meter <meter-name> [type <srtcm|trtcm>] [cir <64..4000000>] [cbs <4K|8K|16K|32K|64K|128K|256K|512K|1M|2M|4M|8M|16M >] [pir <64..4000000>] [pbs <4K|8K|16K|32K|64K|128K|256K|512K|1M|2M|4M|8M|16M >] [ebs <4K|8K|16K|32K|64K|128K|256K|512K|1M|2M|4M|8M|16M >] |
参数定义 |
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。缺省值:1000000Kbps。 <64..4000000>:64Kbps~4000000Kbps。 cbs:队列最大带宽的承诺突发尺寸(committed burst size,CBS), 单位:byte。缺省值:64K bytes。 <4K|8K|16K|32K|64K|128K|256K|512K|1M|2M|4M|8M|16M >:可选 值。 pir:峰值信息速率(peak information rate, PIR)。仅当整形器类型为 trTCM 时可以设置。 PIR不能小于CIR,单位:Kbps。缺省值:1000000Kbps。 <64..4000000>:64Kbps~4000000Kbps。 pbs:峰值突发尺寸(Peak Burst Size,PBS)。仅当整形器类型为trTCM 时可以设置。缺省值:64Kbps。 <4K|8K|16K|32K|64K|128K|256K|512K|1M|2M|4M|8M|16M >:可选 值。 ebs:超额突发尺寸(Excess Burst Size, EBS)。仅当整形器类型为 srTCM 时可以设置。缺省值:64Kbps。 <4K|8K|16K|32K|64K|128K|256K|512K|1M|2M|4M|8M|16M >:可选 值。 |
说明 |
该命令新建或修改已存在的流量限速。 |
操作级别 |
Privileged |
配置模式 |
QoS |
语法 |
no meter <meter-name> |
说明 |
该命令删除一个流量限速。 |
操作级别 |
Normal |
配置模式 |
QoS |
语法 |
show meter [<meter-name>] |
说明 |
该命令显示所有或某个指定的流量限速。 |
例如:
P3500#configure
P3500(CONFIG)#qos
P3500(CONFIG/QOS)#meter m1 cir 128 cbs 256K
P3500(CONFIG/QOS)#show meter m1
Meter Name :m1
Meter Type :srTcm
CIR(Kbps) :128
CBS :256K
PIR(Kbps) :1000000
PBS :64K
EBS :64K
P3500(CONFIG/QOS)#no meter m1
P3500(CONFIG/QOS)#show meter
P3500(CONFIG/QOS)#
操作级别 |
Privileged |
配置模式 |
QoS |
语法 |
rate-limit interface <xge|is|iu|trunk> <ethernet-index> [ingress <0..80000000>] [egress <0..80000000>] |
参数定义 |
rate-limit:端口速率限制。 interface:CSM桥接端口索引号 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 ingress:入口端口速率(Kbps)。 <0..80000000>:取值范围:0 ~80000000 Kbps,0表示禁止入口端口速率限制。 egress:出口端口速率(Kbps)。 <0..80000000>:取值范围:0 ~80000000 Kbps,0表示禁止出口端口速率限制。 |
说明 |
该命令配置基于端口的速率限制。 |
操作级别 |
Normal |
配置模式 |
QoS |
语法 |
show rate-limit [interface <interface>] |
说明 |
该命令显示所有或一个端口的速率限制配置。 |
例如:
P3500#configure
P3500(CONFIG)#qos
P3500(CONFIG/QOS)#rate-limit interface xge 2 ingress 1000 egress 1000
P3500(CONFIG/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 1/5 0 0
IS 1/6 0 0
IS 1/7 0 0
IS 1/8 0 0
IS 2/1 0 0
IS 2/2 0 0
IS 2/3 0 0
IS 2/4 0 0
IS 2/5 0 0
IS 2/6 0 0
IS 2/7 0 0
IS 2/8 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
IU 1/1 0 0
IU 1/2 0 0
IU 2/1 0 0
IU 2/2 0 0
IU 2/3 0 0
IU 2/4 0 0
IU 3/1 0 0
IU 3/2 0 0
IU 3/3 0 0
IU 3/4 0 0
XGE 1 0 0
XGE 2 1000 1000
XGE 3 0 0
XGE 4 0 0
P3500(CONFIG/QOS)#
操作级别 |
Privileged |
配置模式 |
QoS |
语法 |
reset metering-statistics [interface <xge|is|iu|trunk> <ethernet-index>] [rule-index <1..65535>] |
参数定义 |
reset:重置计数器。 metering-statistics:基于流的限速统计。 interface:CSM桥接端口索引号。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 rule-index:包分类规则索引号。 <1..65535>:1~65535。 |
说明 |
该命令重置所有或部分指定的基于流的限速统计。 |
例如:
P3500#configure
P3500(CONFIG)#qos
P3500(CONFIG/QOS)#reset metering-statistics interface xge 3 rule-index 1
P3500(CONFIG/QOS)#show metering-statistics interface xge 3
Interface :XGE 3
Rule index :1
Red Packets :0
Non-Red Packets :0
P3500(CONFIG/QOS)#
操作级别 |
Privileged |
配置模式 |
QoS |
语法 |
scheduling interface <xge|is|iu|trunk> <ethernet-index> <sp|wrr|wrr+sp> |
参数定义 |
scheduling:配置调度方法。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 <sp|wrr|wrr+sp>:严格优先级(strict priority, SP)、加权轮询算法 (weighted round robin,WRR)、或WRR+ SP。 |
说明 |
该命令配置在CSM中使用的调度方法。 WRR表示加权轮询算法 SP表示严格优先级 |
操作级别 |
Normal |
配置模式 |
QoS |
语法 |
show scheduling [interface <xge|is|iu|trunk> <ethernet-index>] |
说明 |
该命令显示所有调度配置或某个指定接口的调度配置。 Bridge port index(桥接端口索引号) Scheduling method(调度方法) Queue list(队列列表) Weight list(权重列表) SP option list(SP选项列表)。 |
例如:
P3500#configure
P3500(CONFIG)#qos
P3500(CONFIG/QOS)#show scheduling interface xge 2
Bridge_port_index Queue Scheduling_method Weight SP
XGE 2 0 wrr+sp 1 disable
XGE 2 1 wrr+sp 1 disable
XGE 2 2 wrr+sp 2 disable
XGE 2 3 wrr+sp 2 disable
XGE 2 4 wrr+sp 2 disable
XGE 2 5 wrr+sp 14 disable
XGE 2 6 wrr+sp 8 disable
XGE 2 7 wrr+sp 15 disable
P3500(CONFIG/QOS)#scheduling interface xge 2 wrr
P3500(CONFIG/QOS)#show scheduling interface xge 2
Bridge_port_index Queue Scheduling_method Weight SP
XGE 2 0 wrr 1 disable
XGE 2 1 wrr 1 disable
XGE 2 2 wrr 1 disable
XGE 2 3 wrr 2 disable
XGE 2 4 wrr 2 disable
XGE 2 5 wrr 4 disable
XGE 2 6 wrr 8 disable
XGE 2 7 wrr 15 disable
P3500(CONFIG/QOS)#
操作级别 |
Normal |
配置模式 |
QoS |
语法 |
show drop-precedence-mapping [interface <xge|is|iu|trunk> <ethernet-index>] |
参数定义 |
drop-precedence-mapping:丢弃优先级信息。 interface:CSM桥接端口索引号 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 |
说明 |
该命令显示所有或某个指定接口的丢弃优先级映射,包括如下信息: Bridge port index(桥接端口索引号) Drop precedence option(丢弃优先级选项) DEI bit option(DEI bit选项) Ingress Mapping(入口映射) S-PRI DEI bit (仅当丢弃优先级和DEI bit为启用状态时显示) Drop precedence(丢弃优先级) Egress Remark(出口备注) S-PRI Drop precedence(丢弃优先级) DEI bit (仅当丢弃优先级和DEI bit为启用状态时显示) Egress S-PRI(出口S-PRI)。 |
例如:
P3500#configure
P3500(CONFIG)#qos
P3500(CONFIG/QOS)#show drop-precedence-mapping
Interface Index :IS:1
Drop precedence option :disable
DEI bit option :disable
Ingress S-PRI :1
Ingress Drop precedence :green
Ingress S-PRI :2
Ingress Drop precedence :green
Ingress S-PRI :3
Ingress Drop precedence :green
Ingress S-PRI :4
Ingress Drop precedence :green
Ingress S-PRI :5
Ingress Drop precedence :green
Ingress S-PRI :6
Ingress Drop precedence :green
Ingress S-PRI :7
Ingress Drop precedence :green
Egress S-PRI :0
Egress Drop precedence :green
Egress New S-PRI :0
Egress S-PRI :0
Egress Drop precedence :yellow
Egress New S-PRI :0
Egress S-PRI :0
Press any key to continue (Q to quit)
操作级别 |
Normal |
配置模式 |
QoS |
语法 |
show metering-statistics interface [iu|is|xge|trunk> <etheterface <iu|is|xge|trunk>] [rule-index <1..65535>] |
参数定义 |
action-assign:基于流的操作分配。 interface:CSM桥接端口索引号。 <xge|is|iu|trunk>:端口类型。 <ethernet-index>:下列以太端口中的一个: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) trunk x (其中x范围为1-6) none。 rule-index:包分类规则索引号。 <1..65535>:1~65535。 |
说明 |
该类显示全部或部分指定的基于流的安全操作分配。 |
例如:
P3500#configure
P3500(CONFIG)#qos
P3500(CONFIG/QOS)#show metering-statistics interface xge 3
Interface :XGE 3
Rule index :1
Red Packets :0
Non-Red Packets :0
P3500(CONFIG/QOS)#
CSM 组播系统级命令用来配置系统级组播。
操作级别 |
Privileged |
配置模式 |
MCAST |
语法 |
group-to-vlan <1..256> <2..4093> <A.B.C.D> <A.B.C.D> <uplink-vlan> |
参数定义 |
group-to-vlan:配置组到VLAN映射。 <1..256>:输入索引。范围为1-256。 <1..4094>:输入VLAN id。范围为2-4093。 <A.B.C.D>:起始组ip地址。 <A.B.C.D>:结束组ip地址。 <uplink-vlan>: 2-4093。可选参数。用于配置向上联口转发report/leave时携带的vlan,比如现场的组播vlan 45,但上联口出去需要携带vlan 2999。 |
说明 |
该命令配置组到VLAN映射。 |
操作级别 |
Normal |
配置模式 |
MCAST |
语法 |
show group-to-vlan |
参数定义 |
show:显示组到VLAN映射。 group-to-vlan:显示组到VLAN映射。 |
说明 |
该命令显示组到VLAN映射。 |
操作级别 |
Privileged |
配置模式 |
MCAST |
语法 |
no group-to-vlan <1..256> |
参数定义 |
no:删除组到VLAN映射。 group-to-vlan:删除组到VLAN映射。 <1..256>:输入索引。范围为1-256。 |
说明 |
该命令删除组到VLAN映射。 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#group-to-vlan 1 1 225.1.1.1 225.2.2.2
P3500(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
P3500(CONFIG/MCAST)#no group-to-vlan 1
P3500(CONFIG/MCAST)#show group-to-vlan
Multicast group to vlan mapping Entry:
-------------------------------------------------------------------------
P3500(CONFIG/MCAST)#
操作级别 |
Privileged |
配置模式 |
MCAST |
语法 |
group-v6-to-vlan <1..256> <2..4093> <A:B::C:D> <A:B::C:D> <uplink-vlan> |
参数定义 |
group-v6-to-vlan: 配置V6组到VLAN映射。 <1..256>:输入索引。范围为1-256。 <2..4093>:输入VLAN id。范围为2-4093。 <A:B::C:D>:起始V6组ip地址。 <A:B::C:D>:结束V6组ip地址。 <uplink-vlan>: 2-4093。可选参数。用于配置向上联口转发report/leave时携带的vlan,比如现场的组播vlan 45,但上联口出去需要携带vlan 2999。 |
说明 |
该命令配置V6组到VLAN映射。 |
操作级别 |
Normal |
配置模式 |
MCAST |
语法 |
show group-v6-to-vlan |
参数定义 |
show:显示V6组到VLAN映射。 group-v6-to-vlan:显示V6组到VLAN映射。 |
说明 |
该命令显示V6组到VLAN映射。 |
操作级别 |
Privileged |
配置模式 |
MCAST |
语法 |
no group-v6-to-vlan <1..256> |
参数定义 |
no:删除V6组到VLAN映射。 group-v6-to-vlan:删除V6组到VLAN映射。 <1..256>:输入索引。范围为1-256。 |
说明 |
该命令删除V6组到VLAN映射。 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#group-v6-to-vlan 3 3 FF::3 FF::4:4
P3500(CONFIG/MCAST)#show group-v6-to-vlan
Multicast V6 group to vlan mapping Entry:
-------------------------------------------------------------------------
id 3 vlan 3 start group FF::3 end group FF::4:4
P3500(CONFIG/MCAST)#no group-v6-to-vlan 3
P3500(CONFIG/MCAST)#show group-v6-to-vlan
Multicast V6 group to vlan mapping Entry:
-------------------------------------------------------------------------
P3500(CONFIG/MCAST)#
操作级别 |
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>:onu是否支持CTC可控制。 |
说明 |
该命令设置系统的组播模式。 |
操作级别 |
Normal |
配置模式 |
MCAST |
语法 |
show multicast-handling |
说明 |
该命令显示组播模式 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#show multicast-handling
Multicast Handling :none
P3500(CONFIG/MCAST)#multicast-handling snooping-with-proxy
P3500(CONFIG/MCAST)#show multicast-handling
Multicast Handling :snooping-with-proxy
P3500(CONFIG/MCAST)#
要切换组播模式,必须先把组播模式参数设为“none”。
操作级别 |
Privileged |
配置模式 |
MCAST |
语法 |
profile id <1-64> <1-20> gemport <gemport> startIP <A.B.C.D> <A.B.C.D> authtype <permit/preview/deny> [length <num>] [interval <num>] [count <num>] [reset_time <num>] |
参数定义 |
profile:配置参数。 id:参数索引1. <1-64>:范围为1-64. <1-20>:参数索引2,范围为1-20. gemport:GEM口。 <gemport>:GEM口id。 startIP:配置组播组地址范围开始处地址。 <A.B.C.D>:地址范围为224.0.1.0-239.255.255.255。 stopIP:配置组播组结束地址。 <A.B.C.D>:地址范围为224.0.1.0-239.255.255.255。 authtype:配置认证方式。 <permit/preview/deny>:三种认证方式:(1)允许。(2)预览。(3)禁止。 length:预览长度,单位为秒。 <num>:配置长度。 interval:预览间隔。 <num>:配置间隔。 count:预览次数。 <num>:配置次数。 reset_time:预览重置时间。 |
说明 |
该命令配置组播模板。 |
操作级别 |
Normal |
配置模式 |
MCAST |
语法 |
show profile |
参数定义 |
show:显示组播模板。 profile:显示组播模板。 |
说明 |
该命令显示组播模板。 |
操作级别 |
Privileged |
配置模式 |
MCAST |
语法 |
no profile id <1-64> <num> |
参数定义 |
no:删除组播模板。 profile:删除组播模板。 id:模板索引1。 <1-64>:索引1 .范围为1-64. <num>:索引2。 |
说明 |
该命令删除组播模板。 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#profile id 12 20 gemport 123 startIP 225.0.0.0 stopIP 230.0.0.0 authtype permit length 10 interval 20 count 40 reset_time 80
P3500(CONFIG/MCAST)#show profile
id1 id2 Gemport group auth type length Interval count reset time
12 20 123 225.0.0.0 permit
P3500(CONFIG/MCAST)#no profile id 12 20
P3500(CONFIG/MCAST)#show profile
id1 id2 Gemport group auth type length Interval count reset time
P3500(CONFIG/MCAST)#
操作级别 |
Privileged |
配置模式 |
MCAST |
语法 |
service profile <1-64> slot <num> link <num> onu <1-64> |
参数定义 |
service:配置服务流模板。 profile:模板索引1。 <1-64>:索引1 .范围为1-64。 slot:输入slot id。 <num>:输入slot id。 link:输入连接id。 <num>:输入连接id。 onu:输入光网络单元id。 <1-64>:输入光网络单元id,范围为1-64。 |
说明 |
该命令配置服务流模板。 |
操作级别 |
Normal |
配置模式 |
MCAST |
语法 |
show service |
参数定义 |
show:显示服务。 profile:显示服务流模板。 |
说明 |
该命令显示服务流模板。 |
操作级别 |
Privileged |
配置模式 |
MCAST |
语法 |
no service slot <num> link <num> onu <1-64> |
参数定义 |
no:删除服务模板。 service:删除服务模板。 slot:输入slot id。 <num>:输入slot id。 link:输入连接id。 <num>:输入连接id。 onu:输入光网络单元id。 <1-64>:输入光网络单元id,范围为1-64。 |
说明 |
该命令删除服务流模板。 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#service profile 12 slot 5 link 3 onu 20
P3500(CONFIG/MCAST)#show service
slot link onu id 1
5 3 20 12
P3500(CONFIG/MCAST)#no service slot 5 link 3 onu 20
P3500(CONFIG/MCAST)#show service
slot link onu id 1
P3500(CONFIG/MCAST)#
操作级别 |
Privileged |
配置模式 |
MCSAT |
语法 |
snooping |
说明 |
该命令允许用户进入MCAST-Snooping配置模式。 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#snooping
P3500(CONFIG/MCAST/SNOOP)#help
clear-counters - Clear multicast counters
fast-leave - Fast Leave function
show - Display information
P3500(CONFIG/MCAST/SNOOP)#
操作级别 |
Privileged |
配置模式 |
MCAST |
语法 |
userview slot <1-5> port <1-16> ont <1-64> max <0-1024> |
参数定义 |
useview:配置最大用户视图。 slot:输入slot id。 <1-5>:输入slot id。范围为1-5。 port:输入端口。 <1-16>:端口id为1-16。 ont:输入光网络单元id。 <1-64>:光网络单元id范围为1-64。 max:用户访问程序最大值。 <0-1024>:输入最大值。 |
说明 |
该命令配置用户访问程序最大值。 |
操作级别 |
Normal |
配置模式 |
MCAST |
语法 |
show userview |
说明 |
该命令显示用户访问程序最大值。 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#userview slot 1 port 16 ont 64 max 11
P3500(CONFIG/MCAST)# show userview
slot port ont max
------------------------------------------
1 16 64 11
操作级别 |
Privileged |
配置模式 |
MCAST |
语法 |
vlan-to-gem <1..256> <1..4094> <1..4094> <3800..3999> |
参数定义 |
vlan-to-gem:配置VLAN至GEM映射。 <1..256>:配置入口id,范围为1-256。 <1..4094>:配置起始VLAN。 <1..4094>:配置结束VLAN。 <3800..3999>:配置组播GEM端口。 |
说明 |
该命令配置VLAN至GEM映射。 |
操作级别 |
Normal |
配置模式 |
MCAST |
语法 |
show vlan-to-gem |
参数定义 |
show:显示VLAN至GEM映射。 vlan-to-gem:显示VLAN至GEM映射。 |
说明 |
该命令显示VLAN至GEM映射。 |
操作级别 |
Privileged |
配置模式 |
MCAST |
语法 |
no vlan-to-gem <1-256> |
参数定义 |
no:删除VLAN至GEM映射。 vlan-to-gem:删除VLAN至GEM映射。范围1-256 |
说明 |
该命令删除VLAN至GEM映射。 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#vlan-to-gem 123 234 345 3900
P3500(CONFIG/MCAST)#show vlan-to-gem
multicast vlan to gem mapping entry:
-------------------------------------------------------------------------
id 123 gem 3900 start vlan 234 end vlan 345
P3500(CONFIG/MCAST)#no vlan-to-gem 123
P3500(CONFIG/MCAST)#show vlan-to-gem
multicast vlan to gem mapping entry:
-------------------------------------------------------------------------
P3500(CONFIG/MCAST)#
操作级别 |
Normal |
配置模式 |
MCAST |
语法 |
show multicast-group-author <slot> <link> <onu> |
参数定义 |
show:显示组播用户活跃组作者。 multicast-group-author:显示组播用户活跃组作者。 <slot>:输入slot id。 <link>:输入link id。 <onu>:输入onu id。 |
说明 |
该命令显示组播用户活跃组作者。 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#service profile 1 slot 6 link 6 onu 32
P3500(CONFIG/MCAST)#show multicast-group-author 6 6 32
slot link onu gemport groupid authtype length repeat time repeat count reset time
6 6 32 1 225.0.0.0 permit
P3500(CONFIG/MCAST)#
操作级别 |
Normal |
配置模式 |
MCAST |
语法 |
show multicast-preview-group |
参数定义 |
show:显示组播预览组。 multicast-preview-group:显示组播预览组。 |
说明 |
该命令显示组播预览组。 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#show multicast-preview-group
P3500(CONFIG/MCAST)#
操作级别 |
Normal |
配置模式 |
MCAST |
语法 |
parameter |
说明 |
该命令允许用户进入MCAST-parameter配置模式。 |
操作级别 |
Normal |
配置模式 |
MCAST |
语法 |
show parameter |
参数定义 |
show:显示参数。 parameter:显示参数。 |
说明 |
该命令显示参数。 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#parameter
P3500(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
P3500(CONFIG/MCAST/PARAM)#exit
P3500(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: ::
P3500(CONFIG/MCAST)#
操作级别 |
Privileged |
配置模式 |
MCAST-parameter |
语法 |
last-member-query-interval <1-25> |
参数定义 |
last-member-query-interval: 配置IGMP最后成员查询间隔。 <1-25>:IGMP最后成员查询间隔,范围为1-25 |
说明 |
该命令配置IGMP最后成员查询间隔。 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#parameter
P3500(CONFIG/MCAST/PARAM)#last-member-query-interval 12
P3500(CONFIG/MCAST/PARAM)#exit
P3500(CONFIG/MCAST)#show parameter
Multicast parameter:
-------------------------------------------------------------------------
Last member query interval: 12
Query interval: 125
Query response interval: 10
Robust Value: 2
Sender IP: 1.2.3.4
Sender IPV6: ::
P3500(CONFIG/MCAST)#
操作级别 |
Privileged |
配置模式 |
MCAST-parameter |
语法 |
query-interval <10-3600> |
参数定义 |
query-interval:配置查询间隔。 <10-3600>:查询间隔,范围为10-3600。 |
说明 |
该命令配置查询间隔。 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#parameter
P3500(CONFIG/MCAST/PARAM)#query-interval 500
P3500(CONFIG/MCAST/PARAM)#exit
P3500(CONFIG/MCAST)#show parameter
Multicast parameter:
-------------------------------------------------------------------------
Last member query interval: 12
Query interval: 500
Query response interval: 10
Robust Value: 2
Sender IP: 1.2.3.4
Sender IPV6: ::
P3500(CONFIG/MCAST)#
操作级别 |
Privileged |
配置模式 |
MCAST-parameter |
语法 |
query-response-interval <1-25> |
参数定义 |
query-response-interval:配置最大查询响应间隔。 <1-25>:最大查询响应间隔,范围为1-25。 |
说明 |
该命令配置IGMP最大查询响应间隔。 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#parameter
P3500(CONFIG/MCAST/PARAM)#query-response-interval 20
P3500(CONFIG/MCAST/PARAM)#exit
P3500(CONFIG/MCAST)#show parameter
Multicast parameter:
-------------------------------------------------------------------------
Last member query interval: 12
Query interval: 500
Query response interval: 20
Robust Value: 2
Sender IP: 1.2.3.4
Sender IPV6: ::
P3500(CONFIG/MCAST)#
操作级别 |
Privileged |
配置模式 |
MCAST-parameter |
语法 |
robustness <2-10> |
参数定义 |
robustness:配置鲁棒性。 <2-10>:鲁棒性值范围为2-10。 |
说明 |
该命令配置鲁棒性。 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#parameter
P3500(CONFIG/MCAST/PARAM)#robustness 2
P3500(CONFIG/MCAST/PARAM)#exit
P3500(CONFIG/MCAST)#show parameter
Multicast parameter:
-------------------------------------------------------------------------
Last member query interval: 12
Query interval: 500
Query response interval: 20
Robust Value: 2
Sender IP: 1.2.3.4
Sender IPV6: ::
P3500(CONFIG/MCAST)#
操作级别 |
Privileged |
配置模式 |
MCAST-parameter |
语法 |
sender-ip <A.B.C.D> |
参数定义 |
sender-ip:配置IGMP数据包发送者IP。 <A.B.C.D>:IGMP数据包发送者ip地址。 |
说明 |
该命令配置IGMP数据包发送者IP。 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#parameter
P3500(CONFIG/MCAST/PARAM)#sender-ip 111.111.111.111
P3500(CONFIG/MCAST/PARAM)#exit
P3500(CONFIG/MCAST)#show parameter
Multicast parameter:
-------------------------------------------------------------------------
Last member query interval: 12
Query interval: 500
Query response interval: 20
Robust Value: 2
Sender IP: 111.111.111.111
Sender IPV6: ::
P3500(CONFIG/MCAST)#
操作级别 |
Privileged |
配置模式 |
MCAST-parameter |
语法 |
sender-ip <A:B:C:D> |
参数定义 |
sender-ip:配置IGMP数据包发送者IP。 <A:B::C:D>:IGMP数据包发送者ipv6地址。 |
说明 |
该命令配置IGMP数据包发送者IP。 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#parameter
P3500(CONFIG/MCAST/PARAM)#sender-ipv6 FE00:222::222:222
P3500(CONFIG/MCAST/PARAM)#exit
P3500(CONFIG/MCAST)#show parameter
Multicast parameter:
-------------------------------------------------------------------------
Last member query interval: 12
Query interval: 500
Query response interval: 20
Robust Value: 2
Sender IP: 111.111.111.111
Sender IPV6: FE00:222::222:222
P3500(CONFIG/MCAST)#
操作级别 |
Privileged |
配置模式 |
MCAST-SNOOP |
语法 |
fast-leave <enable|disable> |
说明 |
启用/禁用快速离开功能。缺省为禁用。 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#snooping
P3500(CONFIG/MCAST/SNOOP)#fast-leave enabled
操作级别 |
Normal |
配置模式 |
MCAST-SNOOP |
语法 |
Show config |
说明 |
该命令显示侦听模式的组播信息: IGMP模式 IGMP unknown forward setting(IGMP未知转发设置) IGMP no-response-leave query count and interval(IGMP无响应离开查询次数和间隔) IP source address(IP源地址) Fast leave option(快速离开选项) Robustness variable(健壮性变量) Router Discover mode(路由器发现模式) Aging time(老化时间) IGMP client mode(IGMP客户端模式) IGMP client IP address(IGMP客户端IP地址) |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#snooping
P3500(CONFIG/MCAST/SNOOP)#show config
Multicast Mode : Snooping-with-proxy
IGMP Unknown Forward : Forward
No response query count : 1
No response query interval : 2
Last query count : 1
Last query interval : 2
IP source address : 0.0.0.0
Aging time : 180
Fast leave option : Enabled
Robustness variable : 2
IGMP client mode : Keep
IGMP client IP address : 0.0.0.0
Router Discover mode : Auto
P3500(CONFIG/MCAST/SNOOP)#
操作级别 |
Normal |
配置模式 |
MCAST-SNOOP |
语法 |
show multicast-group [vlan <1..4093>] [group <group-address>] [source <source-address>] [ interface <xge|is|iu|trunk> <ethernet-list>] |
参数定义 |
multicast-group:显示组播成员表(若没有指定其它参数,显示整个成员表)。 vlan:根据VLAN ID显示组播成员表。 <1..4093>:VLAN ID group:根据组IP地址显示组播成员表。 <group-address>: 组 IP 地 址 source:根据源IP地址显示组播成员表。 <source-address>:源IP地址 interface:以太接口 <xge|is|iu|trunk>:端口类型。 <ethernet-list>:显示以太网列表。下列的一个或多个以太网口: xge x (其中x范围为1-4) is x/y (其中x范围为1-5,y范围为1-8) iu x/y (其中x范围为1-3,y范围为1-4) 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 Version(IGMP版本) |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#snooping
P3500(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
P3500(CONFIG/MCAST/SNOOP)#
操作级别 |
Privileged |
配置模式 |
MCAST-SNOOP |
语法 |
clear-counters |
参数定义 |
clear-counters:清零组播计数器。 |
说明 |
该命令清零组播计数器。 |
操作级别 |
Normal |
配置模式 |
MCAST-SNOOP |
语法 |
show counters |
参数定义 |
show:显示组播计数器。 counters:显示组播计数器。 |
说明 |
该命令查询组播计数器。 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#snooping
P3500(CONFIG/MCAST/SNOOP)#clear-counters
P3500(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
P3500(CONFIG/MCAST/SNOOP)#
操作级别 |
Normal |
配置模式 |
MCAST-SNOOP |
语法 |
show multicast-router |
参数定义 |
show:显示组播路由端口。 multicast-router:显示组播路由端口。 |
说明 |
该命令显示组播路由端口。 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#snooping
P3500(CONFIG/MCAST/SNOOP)#show multicast-router
P3500(CONFIG/MCAST/SNOOP)#
操作级别 |
Normal |
配置模式 |
MCAST-SNOOP |
语法 |
show multicast-v6-group |
参数定义 |
show:显示IPv6组播成员表。 multicast-v6-router:显示IPv6组播成员表。 |
说明 |
该命令显示IPv6组播成员表。 |
例如:
P3500#configure
P3500(CONFIG)#multicast
P3500(CONFIG/MCAST)#snooping
P3500(CONFIG/MCAST/SNOOP)#show multicast-v6-group
P3500(CONFIG/MCAST/SNOOP)#
该章节列出了 IP 命令。IP 命令用来创建/删除 IP 地址、路由、DNS 服务器等。
操作级别 |
Privileged |
配置模式 |
IP |
语法 |
inband-management-vid <2..4093> |
参数定义 |
inband-management-vid:设置带内管理VLAN ID。 <2..4093>: 取值范围2-4093,缺省为4092。 |
说明 |
该命令设置带内管理VLAN ID。 |
例如:
P3500#ip
P3500(IP)#inband-management-vid 100
P3500(IP)#show ip
System management manner : outband
Management IP Config :
Management IP address : 10.4.42.166
Management IP netmask : 255.255.255.0
Management hardware address : 00:e0:8e:00:02:25
Inband management VLAN : 100
Outband management VLAN option : untaged
Outband management VLAN : 117
Local outband management IP config :
Active Csm IP address : 10.20.30.1
Active Csm IP Netmask : 255.255.255.0
Standby Csm IP address : 10.20.30.3
Standby Csm IP Netmask : 255.255.255.0
P3500(IP)#
操作级别 |
Privileged |
配置模式 |
IP |
语法 |
local-management [active-ip <A.B.C.D>][ active-mask <A.B.C.D>][ standby-ip <A.B.C.D>][ standby-mask <A.B.C.D>] |
参数定义 |
local-management: 设置本地管理IP地址。 active-ip: 配置主用CSM板的本地管理IP地址。 <A.B.C.D>: 主用CSM板的本地管理IP地址,缺省为10.20.30.1。 Active-mask:配置主用CSM板的子网掩码。 <A.B.C.D>:本地管理掩码,缺省为255.255.255.0。 standby-ip: 配置备用CSM板的本地管理IP地址。 <A.B.C.D>: 备用CSM板的本地管理IP地址,缺省为10.20.30.3。 Standby-mask:配置备用CSM板的子网掩码。 <A.B.C.D>: 本地管理掩码,缺省为255.255.255.0。 |
说明 |
该命令设置本地带外管理IP地址。 |
例如:
P3500#ip
P3500(IP)#local-management active-ip 10.1.1.1 active-mask 255.255.255.0 standby-ip 10.2.2.2 standby-mask 255.255.255.255
P3500(IP)#show ip
System management manner : outband
Management IP Config :
Management IP address : 10.4.42.166
Management IP netmask : 255.255.255.0
Management hardware address : 00:e0:8e:00:02:25
Inband management VLAN : 50
Outband management VLAN option : untaged
Outband management VLAN : 117
Local outband management IP config :
Active Csm IP address : 10.1.1.1
Active Csm IP Netmask : 255.255.255.0
Standby Csm IP address : 10.2.2.2
Standby Csm IP Netmask : 255.255.255.255
P3500(IP)#
操作级别 |
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地址。 |
例如:
P3500#ip
P3500(IP)#show ip
System management manner : outband
Management IP Config :
Management IP address : 10.4.42.166
Management IP netmask : 255.255.255.0
Management hardware address : 00:e0:8e:00:02:25
Inband management VLAN : 50
Outband management VLAN option : untaged
Outband management VLAN : 117
Local outband management IP config :
Active Csm IP address : 10.20.30.1
Active Csm IP Netmask : 255.255.255.0
Standby Csm IP address : 10.20.30.3
Standby Csm IP Netmask : 255.255.255.0
P3500(IP)#management ip 1.1.1.1 netmask 2.2.2.2
This command will change the IP address to 1.1.1.1. Execute anyway? (yes or no)
yes
操作级别 |
Privileged |
配置模式 |
IP |
语法 |
management-manner <inband|outband> |
参数定义 |
management-manner:设置系统管理方式。 <inband|outband>: 带内管理或带外管理,缺省值:outband |
说明 |
该命令设置系统管理方式。 |
例如:
P3500(IP)#management-manner inband
P3500(IP)#show ip
System management manner : inband
Management IP Config :
Management IP address : 10.4.42.166
Management IP netmask : 255.255.255.0
Management hardware address : 00:e0:8e:00:02:25
Inband management VLAN : 50
Outband management VLAN option : untaged
Outband management VLAN : 117
Local outband management IP config :
Active Csm IP address : 10.20.30.1
Active Csm IP Netmask : 255.255.255.0
Standby Csm IP address : 10.20.30.3
Standby Csm IP Netmask : 255.255.255.0
P3500(IP)#
操作级别 |
Privileged |
配置模式 |
IP |
语法 |
outband-management [vlan-tag-option <untag|tag>][ vid <1..4093>] |
参数定义 |
outband-management:带外管理模式。 vlan-tag-option:VLAN tag选项。 <untag|tag>: Untagged或tagged,缺省为untagged。 vid: 配置VLAN ID。 <2..4093>:取值范围2-4093,缺省为4093。 |
说明 |
该命令设置带外管理VLAN。 |
例如:
P3500#ip
P3500(IP)#outband-management vlan-tag-option tag vid 100
P3500(IP)#show ip
System management manner : outband
Management IP Config :
Management IP address : 10.4.42.166
Management IP netmask : 255.255.255.0
Management hardware address : 00:e0:8e:0d:e8:9f
Inband management VLAN : 4092
Outband management VLAN option : tag
Outband management VLAN : 100
Local outband management IP config :
Active Csm IP address : 10.20.30.1
Active Csm IP Netmask : 255.255.255.0
Standby Csm IP address : 10.20.30.3
Standby Csm IP Netmask : 255.255.255.0
P3500(IP)#
操作级别 |
Privileged |
配置模式 |
IP |
语法 |
route <A.B.C.D> netmask <A.B.C.D> gateway <A.B.C.D> |
参数定义 |
route:增加IP路由。 <A.B.C.D>:目标主机/网络IP地址。 netmask:子网掩码。 <A.B.C.D>: 网络掩码,缺省值255.255.255.255。 gateway:网关IP地址。 <A.B.C.D>:网关IP地址。 |
说明 |
该命令添加一条静态路由。缺省网关IP地址为0.0.0.0,掩码为 0.0.0.0。 |
操作级别 |
Privileged |
配置模式 |
IP |
语法 |
no route <A.B.C.D> [<A.B.C.D>] |
参数定义 |
no: 删除一条已有的静态路由。 route:路由项。 <A.B.C.D>: 目标网络/主机地址。 [<A.B.C.D>]:网络掩码。 |
说明 |
该命令删除一条已有的静态路由。 |
操作级别 |
Normal |
配置模式 |
IP |
语法 |
show route |
说明 |
该命令显示路由表。 |
例如:
P3500#ip
P3500(IP)#route 192.168.0.23 netmask 255.255.255.255 gateway 192.168.0.1
add IP route successfully!
P3500(IP)#show route
Destination Netmask Gateway
192.168.0.23 255.255.255.255 192.168.0.1
P3500(IP)#no route 192.168.0.23 255.255.255.255
del IP route successfully!
P3500(IP)#show route
Destination Netmask Gateway
P3500(IP)#
操作级别 |
Normal |
配置模式 |
IP |
语法 |
show arp |
说明 |
该命令显示ARP表。 |
例如:
P3500#ip
P3500(IP)#show arp
IP address Type MAC Address Interface
10.20.30.4 Dynamic 00:E0:8E:F8:FC:DF vlan4092
10.20.30 Dynamic 00:E0:8E:F8:FC:DF eth0
10.230.7.254 Dynamic 00:0E:84:E0:B5:00 vlan4092
P3500(IP)#
操作级别 |
Normal |
配置模式 |
IP |
语法 |
show ip |
说明 |
该命令显示IP地址、客户端地址和DNS服务器地址。对于客户端地址,显示客户端地址分配信息(哪个地址分配到了哪个插槽)。 |
例如:
P3500#ip
P3500(IP)#show ip
System management manner : outband
Management IP Config :
Management IP address : 192.168.0.23
Management IP netmask : 255.255.255.0
Management IP gateway : 0.0.0.0
Management hardware address : 00:1c:82:07:a4:39
Inband management VLAN : 100
Outband management VLAN option : untaged
Outband management VLAN : 0
Local outband management IP config :
Active Csm IP address : 10.20.30.1
Active Csm IP Netmask : 255.255.255.0
Standby Csm IP address : 10.20.30.3
Standby Csm IP Netmask : 255.255.255.0
P3500(IP)#
操作级别 |
Privileged |
配置模式 |
IP |
语法 |
vlan_ip vlanid <2-4093> operator <create|delete> ip <A.B.C.D> [netmask <A.B.C.D>] [gw <A.B.C.D>] |
参数定义 |
vlan_ip:设置vlan IP地址。 vlanid:vlan id ,取值范围2-4093。缺省为4093。 operator:create-创建,delete-删除。 ip:配置vlan IP地址。 <A.B.C.D>:vlan IP地址。 Netmask:配置子网掩码。 <A.B.C.D>:vlan掩码,缺省为255.255.255.0。 gw:配置vlan网关地址。 <A.B.C.D>:网关地址,缺省为0.0.0.0。 |
说明 |
该命令设置vlan IP地址。 |
例如:
P3500#ip
P3500(IP)#vlan_ip vlanid 4093 operator create ip 1.2.3.4 netmask 255.255.255.0 gw 1.1.1.1
This command will change the Vlan IP address to 1.2.3.4.
Execute anyway? (yes or no)
yes
P3500(IP)#
本节列出了ipv6命令。ipv6命令用来增减ipv6路由、设置ipv6地址等。
操作级别 |
Privileged |
配置模式 |
IPv6 |
语法 |
addroute destination <A:B::C:D> prefix <A> nexthop <A:B::C:D> |
参数定义 |
addroute:添加IPv6路由。 destination:配置目标主机地址。 <A:B::C:D>:目标主机地址。 prefix:配置前缀长度。 <A>:网络前缀长度,取值范围0-128。 nexthop:配置IPv6网关地址。 <A:B::C:D>:IPv6网关地址。 |
说明 |
该命令添加IPv6路由。 |
操作级别 |
Privileged |
配置模式 |
IPv6 |
语法 |
delroute index <value >= 1> |
参数定义 |
delroute:删除IPv6路由。 index <value >= 1>:由index索引IPv6路由表入口并删除,该index的值须不小于1。 |
说明 |
该命令删除IPv6路由。 |
操作级别 |
Privileged |
配置模式 |
IPv6 |
语法 |
management type <A> [ip <A:B::C:D>] [prefix <A>] [gw <A:B::C:D>] |
参数定义 |
management:设置IPv6地址。 type:配置获得IP类型。 <A>:IP类型。0为动态,1为静态。 ip:配置IP地址。 <A:B::C:D>:IP地址。 prefix :配置子网前缀。 <A>:配置掩码。范围为0-128。 gw:配置网关。 <A:B::C:D>:配置网关地址。 |
说明 |
该命令设置管理IPv6地址。 |
操作级别 |
Privileged |
配置模式 |
IPv6 |
语法 |
openflag enable <0/disable, 1/enable> |
参数定义 |
openflag:配置IPv6地址启动标志。 enable:允许管理IPv6地址与否。 <0/disable, 1/enable>:是否允许管理IPv6地址。0为禁止,1为允许。 |
说明 |
该命令配置IPv6地址启用标志。 |
操作级别 |
Normal |
配置模式 |
IPv6 |
语法 |
show ipv6 |
参数定义 |
show:显示系统相关IPv6地址。 ipv6:显示系统相关IPv6地址。 |
说明 |
该命令显示系统相关IPv6地址。 |
操作级别 |
Normal |
配置模式 |
IPv6 |
语法 |
show route |
参数定义 |
show:显示IPv6路由表。 route:显示IPv6路由表。 |
说明 |
该命令显示IPv6路由表。 |
本节列出了syslog命令。syslog命令用来增减系统日志消息类别及配置系统日志代理等。
操作级别 |
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个字符。 udp:udp端口。 <1..65535>:端口范围为1-65535。缺省值为514。 localtime:在时间戳中使用本地时间。 |
说明 |
该命令配置系统日志服务器。 |
操作级别 |
Privileged |
配置模式 |
syslog |
语法 |
no syslog-server |
参数定义 |
no:删除系统日志服务器。 syslog-server:删除系统日志服务器。 |
说明 |
该命令删除系统日志服务器。 |
操作级别 |
Normal |
配置模式 |
syslog |
语法 |
show server |
参数定义 |
show:显示系统日志配置。 server:显示系统日志服务器配置。 |
说明 |
该命令显示系统日志服务器配置。 |
例如:
P3500#syslog
P3500(syslog)#syslog-server 2.3.4.5 facility 2 description test udp 1234 localtime
P3500(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
P3500(syslog)#no syslog-server 2.3.4.5
P3500(syslog)#show server
Server Address Facility Types of Logging
P3500(syslog)#
操作级别 |
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:记录GPON板状态变动。 sys-alarm:记录系统警告。 multicast:记录组播CDR和登录/注销记录事件。 all:记录所有信息。 |
说明 |
该命令增加系统日志消息类别。 |
操作级别 |
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:删除GPON板状态变动。 sys-alarm:删除系统警告。 multicast:删除组播CDR和登录/注销记录事件。 若缺省则删除所有该服务器的系统日志消息。 |
说明 |
该命令删除系统日志消息类别。 |
例如:
P3500#syslog
P3500(syslog)#syslog-server 1.2.3.4 facility 1 description test udp 5678 localtime
P3500(syslog)#logging 1.2.3.4 login dhcp dsl-link ether-link conf-change
P3500(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
P3500(syslog)#no logging 1.2.3.4 login dhcp dsl-link
P3500(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
P3500(syslog)#
操作级别 |
Privileged |
配置模式 |
syslog |
语法 |
proxy <option> |
参数定义 |
proxy:配置系统日志代理。 <option>:配置代理选项,允许/禁止系统日志代理。缺省值:disable |
说明 |
该命令配置系统日志代理,将系统日志从本地用户转移到实际服务器。 |
操作级别 |
Normal |
配置模式 |
syslog |
语法 |
show proxy |
参数定义 |
show:显示系统日志配置。 proxy:显示代理配置。 |
说明 |
该命令显示代理配置。 |
例如:
P3500#syslog
P3500(syslog)#proxy enable
P3500(syslog)#show proxy
The Syslog Proxy is: Enable
P3500(syslog)#
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!