MPLS除錯筆記二支援命令測試
Switch 命令測試
Mpls 使用命令中的options
BCM.0> mpls options Type=PORT
RePLace 0x00000001
WithID 0x00000002
DRop 0x00000010
NetWork 0x00000020
ControlWord 0x00000040
SEQuenced 0x00000080
CouNTed 0x00000100
IntPriSet 0x00000200
IntPriMap 0x00000400
ColorMap 0x00000800
EgressTunnel 0x00001000
ServiceTagged 0x00004000
ServiceVlanAdd 0x00008000
ServiceVlanReplace 0x00010000
ServiceVlanDelete 0x00020000
ServiceVlanTpidReplace 0x00040000
InnerVlanPreserve 0x00800000
BCM.0>
BCM.0> mpls options Type=PortMatch
Port 0x00000002
PortVlan 0x00000003
PortVlanStacked 0x00000005
Label 0x00000007
LabelPort 0x00000008
LabelVlan 0x00000009
BCM.0>
BCM.0>
BCM.0>
BCM.0>
BCM.0> mpls options Type=MplsSwitch
LookupInnerLabel 0x00000001
CouNTed 0x00000002
IntPriSet 0x00000004
IntPriMap 0x00000008
ColorMap 0x00000010
OUTerEXP 0x00000020
OUTerTTL 0x00000040
INnerEXP 0x00000080
INnerTTL 0x00000100
TTLDECrement 0x00000200
BCM.0>
BCM.0>
BCM.0> mpls options Type=MplsEgressLabel
TTLSET 0x00000001
TTLCoPy 0x00000002
TTLDECrement 0x00000004
EXPSET 0x00000008
EXPREMark 0x00000010
EXPCoPy 0x00000020
PRISET 0x00000040
PRIREMark 0x00000080
BCM.0>
Vlan 24 情況
BCM.0> vlan 24
Current settings:
VRF=0
OuterTPID=0x8100
LearnDisable=0
UnknownIp6McastToCpu=0
UnknownIp4McastToCpu=0
Ip4Disable=0
Ip6Disable=0
Ip4McastDisable=0
Ip6McastDisable=0
Ip4McastL2Disable=0
Ip6McastL2Disable=0
L3VrfGlobalDisable=0
MplsDisable=0
CosqEnable=0
MiMTermDisable=0
Cosq=0
Ip6McastFloodMode=MCAST_FLOOD_UNKNOWN
Ip4McastFloodMode=MCAST_FLOOD_UNKNOWN
L2McastFloodMode=MCAST_FLOOD_UNKNOWN
IfClass=0
Pbmp
BCM.0> pbmp
Current bitmaps:
FE ==> 0x000000000000000000000000
GE ==> 0x000000000000000003fffffc
XE ==> 0x000000000000000000000000
E ==> 0x000000000000000003fffffc
HG ==> 0x00000000000000003c000000
IL ==> 0x000000000000000000000000
SCH ==> 0x000000000000000000000000
HL ==> 0x000000000000000000000000
HG2 ==> 0x000000000000000000000000
ST ==> 0x00000000000000003c000000
S ==> 0x000000000000000000000000
GX ==> 0x00000000000000003c000000
XL ==> 0x000000000000000000000000
MXQ ==> 0x000000000000000000000000
XG ==> 0x000000000000000000000000
XQ ==> 0x00000000000000003c000000
XT ==> 0x000000000000000000000000
CL ==> 0x000000000000000000000000
AXP ==> 0x000000000000000000000000
HPLT ==> 0x000000000000000000000000
PORT ==> 0x00000000000000003ffffffc
CMIC ==> 0x000000000000000000000001
LB ==> 0x000000000000000000000002
MMU ==> 0x000000000000000000000000
ALL ==> 0x00000000000000003fffffff
同時新增連續多個埠到VLAN 中
BCM.0> pbmp ge10-ge11
0x000000000000000000003000 ==> ge10-ge11
BCM.0>
BCM.0> vlan create 21
BCM.0> vlan add 21 PortBitMap=0x000000000000000000003000
BCM.0> vlan show 21
vlan 21 ports ge10-ge11 (0x000000000000000000003000), untagged none (0x000000000000000000000000) MCAST_FLOOD_UNK
Phy地址show
BCM.0> phy ge10
Port ge10 (PHY addr 0x0b): BCM54640 (54640 Gigabit PHY Driver)
0x00: 0x1140 0x01: 0x79ed 0x02: 0x0362 0x03: 0x5db1
0x04: 0x05e1 0x05: 0x41e1 0x06: 0x0067 0x07: 0x2001
0x08: 0x0000 0x09: 0x0600 0x0a: 0x0000 0x0b: 0x0000
0x0c: 0x0000 0x0d: 0x0000 0x0e: 0x0000 0x0f: 0x3000
0x10: 0x0021 0x11: 0x2300 0x12: 0x0000 0x13: 0x0000
0x14: 0x0000 0x15: 0x5b80 0x16: 0x0000 0x17: 0x0f42
0x18: 0x7067 0x19: 0xf514 0x1a: 0x240e 0x1b: 0xffff
0x1c: 0x7ea8 0x1d: 0x00cd 0x1e: 0x0000 0x1f: 0x0000
BCM.0>
BCM.0> phy ge11
Port ge11 (PHY addr 0x0c): BCM54640 (54640 Gigabit PHY Driver)
0x00: 0x1140 0x01: 0x79c9 0x02: 0x0362 0x03: 0x5db1
0x04: 0x05e1 0x05: 0x0000 0x06: 0x0064 0x07: 0x2001
0x08: 0x0000 0x09: 0x0600 0x0a: 0x0000 0x0b: 0x0000
0x0c: 0x0000 0x0d: 0x0000 0x0e: 0x0000 0x0f: 0x3000
0x10: 0x0021 0x11: 0x0000 0x12: 0x0000 0x13: 0x0000
0x14: 0x0000 0x15: 0x5000 0x16: 0x0000 0x17: 0x0f42
0x18: 0x7067 0x19: 0x1000 0x1a: 0x0000 0x1b: 0xffff
0x1c: 0x7e08 0x1d: 0x0000 0x1e: 0x0000 0x1f: 0x0000
Ps ge9-ge10
BCM.0> ps ge9-ge10
ena/ speed/ link auto STP lrn inter max loop
port link duplex scan neg? state pause discrd ops face frame back
ge9 up 100M FD SW Yes Forward TX RX None FA SGMII 2000
ge10 up 100M FD SW Yes Forward TX RX None FA SGMII 2000
BCM.0>
Rate
BCM.0> rate
Current settings:
cpu0: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge0: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge1: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge2: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge3: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge4: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge5: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge6: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge7: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge8: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge9: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge10: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge11: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge12: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge13: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge14: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge15: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge16: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge17: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge18: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge19: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge20: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge21: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge22: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
ge23: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
hg0: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
hg1: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
hg2: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
hg3: Bcast=FALSE ; Mcast=FALSE ; Dlfbc=FALSE ;
rxmon show
BCM.0> rxmon show
RX Info @ time=924862370: started. Last fill 924850412. Thread is running.
+verbose for more info
Pkt Size 1600. Pkts/Chain 4. All COS PPS 500. Burst 500. Flags 0.
Sys PPS 0. Sys tokens 0. Sys fill 8244194.
Cntrs: Pkts 427056. Last start 427056. Tunnel 0. Owned 0.
Bad Hndlr 0. No Hndlr 0. Not Running 0.
Thrd Not Running 0. DCB Errs 0.
Registered callbacks:
cpu_packet_mon Priority=100. Argument=0x0. COS 0xffffffffffff.
Packets handled 427056, owned 0.
RX CMD Priority=100. Argument=0x0. COS 0xffffffffffff.
Packets handled 0, owned 0.
Discard Priority= 0. Argument=0x0. COS 0xffffffffffff.
Packets handled 0, owned 0.
Channel Info
Chan 1 is running: Chains 4. COS 0xff. DCB/pkt 1
rpkt 427228. rbyte 56394096. dpkt 0. dbyte 0. mem fail 0 flags 0.
Queue Info
Queue 0: PPS 0. CurPkts 0. TotPkts 427272. Disc rate 0, qlen 0.
Queue 1: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 2: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 3: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 4: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 5: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 6: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 7: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 8: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 9: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 10: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 11: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 12: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 13: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 14: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 15: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 16: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 17: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 18: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 19: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 20: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 21: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 22: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 23: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 24: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 25: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 26: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 27: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 28: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 29: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 30: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 31: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 32: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 33: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 34: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 35: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 36: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 37: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 38: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 39: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 40: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 41: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 42: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 43: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 44: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 45: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 46: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
Queue 47: PPS 0. CurPkts 0. TotPkts 0. Disc rate 0, qlen 0.
BCM.0>
Rxcfg
BCM.0> rxcfg
Current RX configuration:
Pkt Size 8192. Pkts/chain 4. All COS PPS 1000. Burst 100
Channel 0: Chains 0. PPS 0. COSBMP 0x0.
Channel 1: Chains 4. PPS 1000. COSBMP 0xff.
Channel 2: Chains 0. PPS 0. COSBMP 0x0.
Channel 3: Chains 0. PPS 0. COSBMP 0x0.
System wide rate limit: 0
BCM.0> rxmon start
NOTE: 'debugmod diag rx' required for rxmon output
BCM.0> rxcfg 0 PKTSIZE=100
BCM.0> rxcfg
Current RX configuration:
Pkt Size 100. Pkts/chain 4. All COS PPS 1000. Burst 100
Channel 0: Chains 4. PPS 1000. COSBMP 0xff.
Channel 1: Chains 4. PPS 1000. COSBMP 0xff.
Channel 2: Chains 0. PPS 0. COSBMP 0x0.
Channel 3: Chains 0. PPS 0. COSBMP 0x0.
System wide rate limit: 0
Show chips
BCM.0> show chips
Known chips:
Index Chip Chip Dev/Rev Driver Dev/Rev
0 BCM56300_A0 0xb300 0x01 0xb504 0x01
1 BCM56301_A0 0xb301 0x01 0xb504 0x01
2 BCM56302_A0 0xb302 0x01 0xb504 0x01
3 BCM56303_A0 0xb303 0x01 0xb504 0x01
4 BCM56304_A0 0xb304 0x01 0xb504 0x01
5 BCM56305_A0 0xb305 0x01 0xb504 0x01
6 BCM56306_A0 0xb306 0x01 0xb504 0x01
7 BCM56307_A0 0xb307 0x01 0xb504 0x01
8 BCM56308_A0 0xb308 0x01 0xb504 0x01
9 BCM56309_A0 0xb309 0x01 0xb504 0x01
10 BCM56300_A1 0xb300 0x02 0xb504 0x01
11 BCM56301_A1 0xb301 0x02 0xb504 0x01
Cos
BCM.0> cos port show PortBitMap=ge9
Port ge9 COS configuration:
------------------------------
Config (max queues): 8
Schedule mode: weighted round-robin
Weighting (in packets):
COSQ 0 = 0 packets
COSQ 1 = 0 packets
COSQ 2 = 0 packets
COSQ 3 = 0 packets
COSQ 4 = 0 packets
COSQ 5 = 0 packets
COSQ 6 = 0 packets
COSQ 7 = 0 packets
Priority to queue mappings:
PRIO 0 ==> COSQ 0
PRIO 1 ==> COSQ 1
PRIO 2 ==> COSQ 2
PRIO 3 ==> COSQ 3
PRIO 4 ==> COSQ 4
PRIO 5 ==> COSQ 5
PRIO 6 ==> COSQ 6
PRIO 7 ==> COSQ 7
PRIO 8 ==> COSQ 7
PRIO 9 ==> COSQ 7
PRIO 10 ==> COSQ 7
PRIO 11 ==> COSQ 7
PRIO 12 ==> COSQ 7
PRIO 13 ==> COSQ 7
PRIO 14 ==> COSQ 7
PRIO 15 ==> COSQ 7
更改排程方式
BCM.0> cos simple
BCM.0> cos port show PortBitMap=ge9
Port ge9 COS configuration:
------------------------------
Config (max queues): 1
Schedule mode: simple round-robin
Weighting (in packets):
COSQ 0 = 0 packets
Priority to queue mappings:
PRIO 0 ==> COSQ 0
PRIO 1 ==> COSQ 0
PRIO 2 ==> COSQ 0
PRIO 3 ==> COSQ 0
PRIO 4 ==> COSQ 0
PRIO 5 ==> COSQ 0
PRIO 6 ==> COSQ 0
PRIO 7 ==> COSQ 0
PRIO 8 ==> COSQ 0
PRIO 9 ==> COSQ 0
PRIO 10 ==> COSQ 0
PRIO 11 ==> COSQ 0
PRIO 12 ==> COSQ 0
PRIO 13 ==> COSQ 0
PRIO 14 ==> COSQ 0
PRIO 15 ==> COSQ 0
BCM.0> cos weight
Current settings:
W0=0
W1=0
W2=0
W3=0
W4=0
W5=0
W6=0
W7=0
BCM.0> cos weight W0=1 W1=2 W2=3 W3=4 W4=5 W5=6 W6=7 W7=8
BCM.0> cos port show PortBitMap=ge9
Port ge9 COS configuration:
------------------------------
Config (max queues): 1
Schedule mode: weighted round-robin
Weighting (in packets):
COSQ 0 = 1 packets
Priority to queue mappings:
PRIO 0 ==> COSQ 0
PRIO 1 ==> COSQ 0
PRIO 2 ==> COSQ 0
PRIO 3 ==> COSQ 0
PRIO 4 ==> COSQ 0
PRIO 5 ==> COSQ 0
PRIO 6 ==> COSQ 0
PRIO 7 ==> COSQ 0
PRIO 8 ==> COSQ 0
PRIO 9 ==> COSQ 0
PRIO 10 ==> COSQ 0
PRIO 11 ==> COSQ 0
PRIO 12 ==> COSQ 0
PRIO 13 ==> COSQ 0
PRIO 14 ==> COSQ 0
PRIO 15 ==> COSQ 0
Cos頻寬
BCM.0> cos bandwidth_show
COSQ bandwith configuration:
port | q | KbpsMin | KbpsMax | Flags
-----+---+----------+----------+-------
ge0 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
ge1 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
ge2 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
ge3 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
ge4 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
ge5 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
ge6 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
ge7 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
ge8 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
ge9 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
ge10 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
ge11 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
ge12 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
ge13 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
ge14 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
ge15 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
ge16 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
ge17 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
ge18 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
ge19 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
ge20 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
ge21 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
ge22 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
ge23 | 0 | 0 | 0 | 0
-----+---+----------+----------+-------
hg0 | 0 | 0 | 0 | 0
hg0 | 8 | 0 | 0 | 0
-----+---+----------+----------+-------
hg1 | 0 | 0 | 0 | 0
hg1 | 8 | 0 | 0 | 0
-----+---+----------+----------+-------
hg2 | 0 | 0 | 0 | 0
hg2 | 8 | 0 | 0 | 0
-----+---+----------+----------+-------
hg3 | 0 | 0 | 0 | 0
hg3 | 8 | 0 | 0 | 0
Dtag 修改 show
BCM.0> dtag
port 0:ge0 double tag mode none (disabled), tpid 0x8100
port 0:ge1 double tag mode none (disabled), tpid 0x8100
port 0:ge2 double tag mode none (disabled), tpid 0x8100
port 0:ge3 double tag mode none (disabled), tpid 0x8100
port 0:ge4 double tag mode none (disabled), tpid 0x8100
port 0:ge5 double tag mode none (disabled), tpid 0x8100
port 0:ge6 double tag mode none (disabled), tpid 0x8100
port 0:ge7 double tag mode none (disabled), tpid 0x8100
port 0:ge8 double tag mode none (disabled), tpid 0x8100
port 0:ge9 double tag mode external (customer), tpid 0x8100
port 0:ge10 double tag mode internal (service provider), tpid 0x8100
port 0:ge11 double tag mode none (disabled), tpid 0x8100
port 0:ge12 double tag mode none (disabled), tpid 0x8100
Fp 疑點
這兩個action是什麼意思?
使用ACL 紅黃包統計
BCM.0> fp qset add srcmac
BCM_FIELD_QSET_ADD(SrcMac) okay
BCM.0> fp group create 0 0
BCM.0> fp entry create 0 10
BCM.0> fp qual 10 srcmac 0x1122 0xffff
BCM.0> fp policer create polid=1 mode=Committed cbs=0x80 cir=0x40 colorblind=1
BCM.0> fp policer attach entry=10 level=0 polid=1
BCM.0> fp action add 10 gpdropprecedence 1
BCM.0> fp action add 10 rpdropprecedence 2
BCM.0> fp action add 10 newtc 3 0
FP(unit 0) Error: bcm_field_action_add() failed: Feature unavailable【沒執行成功,好像也沒影響到最終功能 2014】.11.6
BCM.0> fp stat create group=0 type0=GreenPackets type1=RedPackets
Stat created with id: 1
BCM.0> fp stat attach entry=10 StatId=1
BCM.0> fp entry install 10
BCM.0> fp stat get statid=1 type=greenpackets
The value is: 0x00
BCM.0> fp stat get statid=1 type=RedPackets
The value is: 0x00
之