Table of Contents ---BCM

时间:2021-07-03 22:55:41

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