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的更多相关文章

  1. 【数据分析知识点】detailed table of contents

    Exploratory Data Analysis - Detailed Table of Contents http://www.itl.nist.gov/div898/handbook/eda/e ...

  2. WordPress 文章目录插件 Easy Table of Contents 配置教程

    今天介绍一款目录插件,本站已经使用一段时间,感觉不错,实现效果可以看文章页右侧边栏有目录,点击目录内容会快速定位.推荐给大家. 一.安装Easy Table of Contents 插件主页搜索Eas ...

  3. OpenStack(0) - Table of Contents

    1. Keystone OpenStack Identity Service2. Starting OpenStack Image Service3. Starting OpenStack Compu ...

  4. Table of Contents - JavaSE

    Java Bean Lombok IO Commons-IO - IOUtils Regular Expression 正则表达式常用操作 Concurrency java.util.concurre ...

  5. Table of Contents - Apache Commons

    Apache Commons 简述 CLI Usage of CLI Option Properties Codec 常见的编码解码 Compress Configuration2 Quick sta ...

  6. Table of Contents - Servlet & JSP

    Servlet Servlet API Overview Java Web 访问资源的路径问题 getParameter 与 request.getAttribute 的区别 转发与重定向的区别 中文 ...

  7. Table of Contents - JMS

    JMS Specification v1.1 JMS 基本概念 Message QueueBrowser 消息选择器 消息确认 ConnectionMetaData ExceptionListener ...

  8. Table of Contents - ActiveMQ

    Getting Started ActiveMQ 的安装 Hello World Configuring Standard ActiveMQ Components Connecting to Acti ...

  9. Table of Contents - CXF

    Getting Started A simple JAX-WS service Writing a service with Spring Tools WSDL to Java RESTful Ser ...

随机推荐

  1. python整理之(字符串、元组、列表、字典)

    一.关于字符串的整理总结 对于字符串的操作常用的有这些: 字符串的操作通过dir()函数可以查看 我们先整理没有下划线的用法,有下划线的暂时不去考虑. 1.capitalize 功能:使字符串的首字母 ...

  2. Lab_3_SysOps_Storage_Linux_v2.5

    System Operations - Lab 3: Managing Storage in AWS (Linux) - 2.5 =================================== ...

  3. Markdown 软件

    <<github.css>> Markdown 软件 :Typora / Haroopad / Markdownpad2 Markdownpad2软件注册及下载地址 邮箱地址: ...

  4. 关于delegate(代理)总结

    stackoverflow  上讲解:http://stackoverflow.com/a/12660523/4563358 delegate是将需要处理交给自己的代理. 在自己的对应的类中.h文件中 ...

  5. OAF_开发系列06_实现OAF属性集的介绍和开发Attribute Set(案例)

    20150705 Created By BaoXinjian

  6. 用ADO.NET存入数据库

    点击按钮存入登录名和密码: const string connstr = @"data source=USER-20160705UW\JSQL;initial catalog=Test;in ...

  7. PLSQL不好用,提示ora-12514 错误解决方法

    我的PLSQL不好用,提示ora-12514 错误时 我分两步干的: 1:用户名,密码,不写,提示错误后,cancel登陆 tools->preference左侧选->connection ...

  8. ASP.NET管道

    以IIS 6.0为例,在工作进程w3wp.exe中,利用Aspnet_ispai.dll加载.NET运行时(如果.NET运行时尚未加载).IIS 6引入了应用程序池的概念,一个工作进程对应着一个应用程 ...

  9. java安全沙箱(四)之安全管理器及Java API

    java是一种类型安全的语言,它有四类称为安全沙箱机制的安全机制来保证语言的安全性,这四类安全沙箱分别是: 类加载体系 .class文件检验器 内置于Java虚拟机(及语言)的安全特性 安全管理器及J ...

  10. HBase最佳实践-列族设计优化

    本文转自hbase.收藏学习下. 随着大数据的越来越普及,HBase也变得越来越流行.会用HBase现在已经变的并不困难,然而,怎么把它用的更好却并不简单.那怎么定义'用的好'呢?很简单,在保证系统稳 ...