Table of Contents ---BCM
Table of Contents
About This Document...................................................................................................................................14
Purpose and Audience ...........................................................................................................................14
Acronyms and Abbreviations.................................................................................................................14
Document Conventions .........................................................................................................................14
References .............................................................................................................................................15
Technical Support.........................................................................................................................................15
Section 1: Introduction.................................................................................................... 16
Section 2: Interactive Shell Behavior ............................................................................... 17
Section 3: CLI Commands ................................................................................................ 18
Age ................................................................................................................................................................18
Attach............................................................................................................................................................18
Auth ..............................................................................................................................................................19
BPDU.............................................................................................................................................................21
CABLEdiag .....................................................................................................................................................21
Cache.............................................................................................................................................................22
Clear ..............................................................................................................................................................22
COLOR ...........................................................................................................................................................23
Combo...........................................................................................................................................................24
COS................................................................................................................................................................25
Counter .........................................................................................................................................................26
Debug............................................................................................................................................................27
Detach...........................................................................................................................................................27
DMIRROR......................................................................................................................................................28
DOS ...............................................................................................................................................................29
DSCP..............................................................................................................................................................30
DTAG.............................................................................................................................................................31
Dump ............................................................................................................................................................32
Egress ............................................................................................................................................................33
EditReg..........................................................................................................................................................33
FieldProcessor ..............................................................................................................................................34
GetReg ..........................................................................................................................................................37
IFConfig .........................................................................................................................................................38
IGMP .............................................................................................................................................................39
INIT................................................................................................................................................................40
3/6/2011 FB1PM
BCMSMB Quick Start Guide Table of Contents
BROADCOM SMB Diagnostic Shell
February 23, 2011 • SMB-QSG104-R Page 5
®
IPG.................................................................................................................................................................40
L2...................................................................................................................................................................41
L2mode .........................................................................................................................................................43
Linkscan ........................................................................................................................................................43
Listmem ........................................................................................................................................................44
ListReg...........................................................................................................................................................44
Mcast ............................................................................................................................................................45
McastREP ......................................................................................................................................................46
Mirror............................................................................................................................................................47
Modify...........................................................................................................................................................48
ModReg.........................................................................................................................................................48
Netstat ..........................................................................................................................................................49
Packet Watcher ............................................................................................................................................49
PBMP ............................................................................................................................................................50
PortControl ...................................................................................................................................................51
PHY................................................................................................................................................................52
Port ...............................................................................................................................................................53
PortCrossConnect .........................................................................................................................................54
PortRate........................................................................................................................................................54
PortSampRate...............................................................................................................................................55
PortStat.........................................................................................................................................................55
PowerMode..................................................................................................................................................56
PutReg...........................................................................................................................................................57
PVlan.............................................................................................................................................................58
Rate...............................................................................................................................................................58
RXcfg .............................................................................................................................................................59
RXInit ............................................................................................................................................................60
RXMon ..........................................................................................................................................................60
SetReg ...........................................................................................................................................................61
Show .............................................................................................................................................................62
SOC................................................................................................................................................................63
STG ................................................................................................................................................................64
Subport .........................................................................................................................................................65
SwitchControl ...............................................................................................................................................66
TestClear .......................................................................................................................................................66
TestList ..........................................................................................................................................................67
TestMode......................................................................................................................................................67
3/6/2011 FB1PM
BCMSMB Quick Start Guide Table of Contents
BROADCOM SMB Diagnostic Shell
February 23, 2011 • SMB-QSG104-R Page 6
®
TestParameters ............................................................................................................................................68
TestRun.........................................................................................................................................................68
TestSelect......................................................................................................................................................69
Trunk.............................................................................................................................................................70
TX ..................................................................................................................................................................71
TXCount ........................................................................................................................................................72
TXStart ..........................................................................................................................................................72
VLAN .............................................................................................................................................................73
Write .............................................................................................................................................................77
Section 4: CLI Examples ................................................................................................... 78
Age ................................................................................................................................................................78
Display Current Value ............................................................................................................................78
Set Age Timer to 0..................................................................................................................................78
Attach............................................................................................................................................................78
Display Current List of Attached Devices ...............................................................................................78
Attach Unit 0..........................................................................................................................................78
Auth ..............................................................................................................................................................78
Display Current Settings.........................................................................................................................78
Enable Auth on fe0 ................................................................................................................................79
Enable Unknown SA Check ....................................................................................................................79
BPDU.............................................................................................................................................................80
Set and Display BPDU Multicast Address...............................................................................................80
Delete and Display BPDU Multicast Address .........................................................................................80
CABLEdiag .....................................................................................................................................................80
Connect Cable to fe0 and fe1 and Display Cable Status ........................................................................80
Cache.............................................................................................................................................................81
Turn VLAN Table Cache On ....................................................................................................................81
Turn VLAN Table Cache Off....................................................................................................................81
Clear ..............................................................................................................................................................81
Show and Clear Counters.......................................................................................................................81
Clear ARL................................................................................................................................................82
COLOR ...........................................................................................................................................................83
Remap PRI-7 and CFI-0 to TC-7 and Yellow (DP-2) for Ingress Port.......................................................83
Remap TC-7 and Green (DP-1) to PRI-7 and CFI-0 for Egress Port.........................................................83
Combo...........................................................................................................................................................83
Display Operating Parameters of ge1 Copper .......................................................................................83
3/6/2011 FB1PM
BCMSMB Quick Start Guide Table of Contents
BROADCOM SMB Diagnostic Shell
February 23, 2011 • SMB-QSG104-R Page 7
®
Set ge1 Fiber Parameters.......................................................................................................................83
COS................................................................................................................................................................84
Show Current COS Configuration...........................................................................................................84
Map Priority 7 to COS Queue 0..............................................................................................................84
Change weiGht for Four Queues............................................................................................................85
Change Weight for Eight Queues for DRR Mode ...................................................................................85
Configure Min and Max BW for port-x and queue-y .............................................................................86
Configure Drop Precedence for DLF Frame ...........................................................................................86
Counter .........................................................................................................................................................86
Display Current Settings.........................................................................................................................86
Turn Off Counter Collection...................................................................................................................86
Turn On Counter Collection on fe7 Only................................................................................................86
Debug............................................................................................................................................................87
List Options Enabled for Debugger Output............................................................................................87
Add TX to List of Options Enabled for Debugger Output.......................................................................87
Detach...........................................................................................................................................................87
Detach Current Unit...............................................................................................................................87
DMIRROR......................................................................................................................................................88
Set Capture Ports and Mirror-to-Port....................................................................................................88
DOS ...............................................................................................................................................................88
Set and Display DOS Attack Protect.......................................................................................................88
DSCP..............................................................................................................................................................89
Display Current Value ............................................................................................................................89
Map DSCP 1 to PRI 7 and Green ............................................................................................................90
Disable or Enable DSCP Mapping...........................................................................................................90
DTAG.............................................................................................................................................................90
Set fe0 to Service Provider Port Mode; Set fe1 to Customer Port Mode; Display Double-Tag Mode Status
of All Ports..........................................................................................................................................90
Change TPID Value to 0x8200 for Ports fe0 – fe47 and ge0 – ge3; Display Double-Tag Status of all Ports.
92
Dump ............................................................................................................................................................93
Dump SoC Registers of fe1.....................................................................................................................93
Dump PHY Parameters of Port 0............................................................................................................94
Dump EMAC Information.......................................................................................................................94
EditReg..........................................................................................................................................................95
Edit EARLY_TX Field of SWMODE Register.............................................................................................95
Egress ............................................................................................................................................................95
3/6/2011 FB1PM
BCMSMB Quick Start Guide Table of Contents
BROADCOM SMB Diagnostic Shell
February 23, 2011 • SMB-QSG104-R Page 8
®
Configure Forwarding Port for Ingress Port 1 ........................................................................................95
FieldProcessor ..............................................................................................................................................96
Create Group 1 and Set to Priority 1......................................................................................................96
Qualify DSTMAC Format and Display It..................................................................................................96
Qualify Ingress Port Bitmap ..................................................................................................................96
Qualify Ingress Port 1 and Change Outgoing Frame to VLAN 2 .............................................................96
Qualify Source Ipv6 Frame.....................................................................................................................97
Qualify Inports ......................................................................................................................................97
Configure Entry's Priority to Highest .....................................................................................................97
Configure Entry's Policy Action to Redirect Packet to Port 1.................................................................97
Configure Entry's Metering and Set Committed for
Ratio = 1000 kbits/s and Burst = 1000 kbits.......................................................................................98
Configure Policer to Support Flow Mode ..............................................................................................98
Configure Policer to Support MEF (Metro Ethernet Forum) Policing ....................................................98
Configure userdefine1 Field and Fill It Into Group 1 and Entry 1 ..........................................................99
Configure Chain Slide.............................................................................................................................99
Configure Range Check; Lookup and Egress Stage Usage....................................................................100
Show FP Action Parameter ..................................................................................................................101
Show FP Entry ......................................................................................................................................102
Display FP Status..................................................................................................................................102
GetReg ........................................................................................................................................................103
Get Register Value of SWMODE Register ............................................................................................103
Get Register Value of Page 0x0 and Address 0x0 ................................................................................103
Get Hex Register Value of SWMODE Register .....................................................................................103
IGMP ...........................................................................................................................................................103
Display Current IGMP Snooping Setting ..............................................................................................103
Turn On IGMP Snooping ......................................................................................................................103
INIT..............................................................................................................................................................103
Initialize SoC.........................................................................................................................................103
Init Both SoC and BCM.........................................................................................................................103
IPG...............................................................................................................................................................104
Display IPG of GE..................................................................................................................................104
Display IPG of GE in 100HD Mode .......................................................................................................104
L2.................................................................................................................................................................104
Add One Static Entry............................................................................................................................104
Remove FE0 Entries .............................................................................................................................104
Add L2 User Entry (Multiport Address)................................................................................................104
3/6/2011 FB1PM
BCMSMB Quick Start Guide Table of Contents
BROADCOM SMB Diagnostic Shell
February 23, 2011 • SMB-QSG104-R Page 9
®
L2mode .......................................................................................................................................................105
Start ARL Thread ..................................................................................................................................105
Stop ARL Thread...................................................................................................................................105
Learn Mode Control.............................................................................................................................105
Linkscan ......................................................................................................................................................105
Display Current Linkscan Status...........................................................................................................105
Listmem ......................................................................................................................................................106
Display Reference List of All Memories ...............................................................................................106
ListReg.........................................................................................................................................................106
List Fields of Register Page 0 and Address 0........................................................................................106
Mcast ..........................................................................................................................................................107
Add a Multicast Entry...........................................................................................................................107
Delete a Multicast Entry ......................................................................................................................107
McastREP ....................................................................................................................................................107
Configure Multicast Forwarding Bitmap for MC Group.......................................................................107
Configure Multicast Group to Replicate Three Packets for Different VLAN ........................................107
Mirror..........................................................................................................................................................108
Configure Ingress fe0 – fe3 Mirrored to ge0 in L2 Mode......................................................................108
Modify.........................................................................................................................................................108
Modify STATIC Field of ARL Table Entry 0............................................................................................108
ModReg.......................................................................................................................................................109
Modify Field SW_FWDG_MODE of SW_MODE ...................................................................................109
Netstat ........................................................................................................................................................109
Display SNMP Network Statistics for Port 0.........................................................................................109
Packet Watcher ..........................................................................................................................................111
Dump Raw Packet for CPU Port ...........................................................................................................111
Display Current Settings for PacketWatcher .......................................................................................111
PBMP ..........................................................................................................................................................112
Display Current Bitmaps ......................................................................................................................112
Display Hardware Bitmap of fe0 – fe1 ..................................................................................................112
PHY..............................................................................................................................................................112
Display PHY Register Values of ge0......................................................................................................112
Port .............................................................................................................................................................113
Display Characteristics of fe0...............................................................................................................113
Disable fe0 ...........................................................................................................................................113
Force fe0 to be 100 Mbps and in Half-Duplex Mode...........................................................................113
PortControl .................................................................................................................................................113
3/6/2011 FB1PM
BCMSMB Quick Start Guide Table of Contents
BROADCOM SMB Diagnostic Shell
February 23, 2011 • SMB-QSG104-R Page 10
®
Configure Ingress Sample Rate for Port to CPU...................................................................................113
Configure EEE Function........................................................................................................................114
PortRate......................................................................................................................................................114
Display Current ge1 Port Rate Settings................................................................................................114
Set Ingress Port Rate of ge1.................................................................................................................114
Set Egress port1 queue1 Rate..............................................................................................................114
PortStat.......................................................................................................................................................114
Display Port Status of fe0 and fe1........................................................................................................114
PutReg.........................................................................................................................................................115
Set Register Page 0x30 Offset 0x4 to 0x80000000 ..............................................................................115
Set Field QOS_EN of Register QOS_CTL to 3........................................................................................115
PVlan...........................................................................................................................................................115
Display Current PVLAN Setting of fe0 ..................................................................................................115
Disable Default VLAN Tagging for fe0 ..................................................................................................115
Set VLAN ID of fe0 to 1.........................................................................................................................115
Rate.............................................................................................................................................................116
Display Current Rate Settings ..............................................................................................................116
Set Rate Limit = 64, and Mcast = 1.......................................................................................................116
Rxcfg............................................................................................................................................................116
Change Receive Packet Size to 100......................................................................................................116
RXInit ..........................................................................................................................................................116
Initialize Packet Receive Task...............................................................................................................116
RXMon ........................................................................................................................................................117
Display Current Settings of RXMon......................................................................................................117
Monitor Packets for CPU Port..............................................................................................................117
SetReg .........................................................................................................................................................118
Set Register Page 0x30 Offset 0x4 to 0x80000000 ..............................................................................118
Set Field QOS_EN of Register QOS_CTL to 3........................................................................................118
Show ...........................................................................................................................................................118
Display Known Chips............................................................................................................................118
Show IP Statistics .................................................................................................................................118
SOC..............................................................................................................................................................119
Display Information of Unit 0...............................................................................................................119
STG ..............................................................................................................................................................119
Display Current STG Settings ...............................................................................................................119
Create a STG.........................................................................................................................................119
3/6/2011 FB1PM
BCMSMB Quick Start Guide Table of Contents
BROADCOM SMB Diagnostic Shell
February 23, 2011 • SMB-QSG104-R Page 11
®
Subport .......................................................................................................................................................120
Configure replication example.............................................................................................................120
SwitchControl .............................................................................................................................................120
Configure DOS Attack ..........................................................................................................................120
TestClear .....................................................................................................................................................121
Clear Test ID = 72 .................................................................................................................................121
TestList ........................................................................................................................................................122
List All Test Items .................................................................................................................................122
TestMode....................................................................................................................................................122
Add StopOnError Mode for Test..........................................................................................................122
TestParameters ..........................................................................................................................................123
Change Test Case “Traffic Test” Parameters to “PBM=fe0 – fe1” ........................................................123
TestRun.......................................................................................................................................................124
Run Test ID = 49 'PHY Loopback' Test and fe0 Port .............................................................................124
TestSelect....................................................................................................................................................125
Select PHY Loopback and Traffic Test ..................................................................................................125
Trunk...........................................................................................................................................................129
Add and Display a Trunk ......................................................................................................................129
Remove a Trunk ...................................................................................................................................129
TX ................................................................................................................................................................129
Transmit a Single Packet to fe7............................................................................................................129
TXCount ......................................................................................................................................................129
Display Current Value ..........................................................................................................................129
TXStart ........................................................................................................................................................129
Transmit 10 Packets to fe7 ..................................................................................................................129
VLAN ...........................................................................................................................................................130
Display Default VLAN ...........................................................................................................................130
Create a VLAN......................................................................................................................................130
Configure VLAN Translation Function..................................................................................................130
Configure VLAN Cross-Connect Function.............................................................................................131
Write ...........................................................................................................................................................131
Write an Entry of VLAN Table ..............................................................................................................131
3/6/2011 FB1PM
BCMSMB Quick Start Guide List of Tables
Table of Contents ---BCM的更多相关文章
- 【数据分析知识点】detailed table of contents
Exploratory Data Analysis - Detailed Table of Contents http://www.itl.nist.gov/div898/handbook/eda/e ...
- WordPress 文章目录插件 Easy Table of Contents 配置教程
今天介绍一款目录插件,本站已经使用一段时间,感觉不错,实现效果可以看文章页右侧边栏有目录,点击目录内容会快速定位.推荐给大家. 一.安装Easy Table of Contents 插件主页搜索Eas ...
- OpenStack(0) - Table of Contents
1. Keystone OpenStack Identity Service2. Starting OpenStack Image Service3. Starting OpenStack Compu ...
- Table of Contents - JavaSE
Java Bean Lombok IO Commons-IO - IOUtils Regular Expression 正则表达式常用操作 Concurrency java.util.concurre ...
- Table of Contents - Apache Commons
Apache Commons 简述 CLI Usage of CLI Option Properties Codec 常见的编码解码 Compress Configuration2 Quick sta ...
- Table of Contents - Servlet & JSP
Servlet Servlet API Overview Java Web 访问资源的路径问题 getParameter 与 request.getAttribute 的区别 转发与重定向的区别 中文 ...
- Table of Contents - JMS
JMS Specification v1.1 JMS 基本概念 Message QueueBrowser 消息选择器 消息确认 ConnectionMetaData ExceptionListener ...
- Table of Contents - ActiveMQ
Getting Started ActiveMQ 的安装 Hello World Configuring Standard ActiveMQ Components Connecting to Acti ...
- Table of Contents - CXF
Getting Started A simple JAX-WS service Writing a service with Spring Tools WSDL to Java RESTful Ser ...
随机推荐
- mock测试到底是什么?
经常听人说mock测试,究竟什么是mock测试呢?mock测试能解决什么问题?mock测试要如何做呢?今天为大家做简单介绍,之后会有详细的mock测试,感谢大家对测试梦工厂的持续关注. 概 ...
- Linux LVM硬盘管理之一:概念介绍
一.LVM概念介绍: LVM是 Logical Volume Manager(逻辑卷管理)的简写,它由Heinz Mauelshagen在Linux 2.4内核上实现.LVM将一个或多个硬盘的分区在逻 ...
- cygwin和mingw的区别
之前由于做一些JNI的开发,安装了MinGW,最近有个项目需要用到cygwin,于是就有个疑问,这两个东西有什么区别?在网上看了些资料,在这里复制粘贴一下,以备后查. Unix下编译通过的C代码,在w ...
- 让CSS布局更加直观:box-sizing
让CSS布局更加直观:box-sizing 如果你写过CSS或者你接触过CSS,相信你一定对盒子模型一点都不陌生.CSS其中一个让人比较困惑的地方就在于它的盒子模型中关于高度和宽度的计算,别说那些初学 ...
- PHPWord
PHPWord中文乱码 我在 使用PHPWord$section->addText(),输出中文是遇到乱码,PHPWord 中文乱码解决如下: 第一步:打开phpword/Section.php ...
- js嵌套对象相等比较的一种方法 (原创)
做前端开发经常会遇到比较js对象是否相等的情况, 或者说其它问题往往会归结到这个问题上来:比如对象数组的去重复. 网上看到过很多例子, 但是基本上都是那种比较简单的对象结构, 而复杂的对象结构,比如对 ...
- 修改eclipse中包的显示结构为树形
- SparkConf加载与SparkContext创建(源码阅读二)
紧接着昨天,我们继续开搞了啊.. 1.下面,开始创建BroadcastManager,就是传说中的广播变量管理器.BroadcastManager用于将配置信息和序列化后的RDD.Job以及Shuff ...
- 微信调试、API、AJAX的调试 SocketLog
SocketLog适合Ajax调试和API调试, 举一个常见的场景,用SocketLog来做微信调试, 我们在做微信API开发的时候,如果API有bug,微信只提示"改公众账号暂时无法提供服 ...
- HBase内部操作日志说明
版本:0.94-cdh4.2.1 1. Split Region [regionserver60020-splits-1397585864985] INFO org.apache.hadoop.hba ...