bcm cmd

BCM.1> port ge en=0 ;Disable all GbE
BCM.1> tx 2 pbm=ge2,fe7 ;Transmit 2 packets out of both port ge2 and fe7
BCM.1> ps 0xf ;Show status of first 4 ports (ge0-ge3 or fe0-fe3 etc.)
BCM.1> vlan create 97 pbm=ge2-ge5 ;create VLAN 97 with member ports ge2–ge5
BCM.1> vlan add 73 pbm=xe,hg ;Add all xe and hg ports to vlan 73
BCM.1>
BCM.1> vlan create 85 pbm=ge5,hg1,cpu,xe0 ubm=ge9,xe1,hg0
BCM.2> port 0xff an=1
BCM.0> log file=/tmp/<logfilename>
BCM.0> log [on/off] ;To turn logging on/off
BCM.0> ps ge3
BCM.0> port ge3
BCM.1> port 4 ph= [Master | Slave | Auto]
BCM.1> show c ge1
BCM.0> combo ge23
To transmit 10 IEEE frames of 100-byte length with the specified source and destination MAC addresses out of ge0:
BCM.0> hm ieee ;Set the required header mode before tx
BCM.0> tx 10 pbm=ge0 length=100 sm=0x001122334455 dm=0xffffffffffff
To transmit 100 more of these frames:
BCM.0> tx 100 pbm=ge0
To transmit hex data from the file as an Ethernet frame 10 times from ge0 (CRC is appended automatically):
BCM.0> tx 10 pbm=ge0 file=pkt.hex
To start the packet watcher dumping all packets with decoded fields and log the last 5 packets:
BCM.1> PacketWatcher log 5 report +dec start
Reporting options of the packet watcher can be changed on the fly. To turn off dumping raw hex data in the packet:
BCM.1> pw report -rawBCM.0> pw
BCM.0> pw
BCM.0> l mac
BCM.0> l mac_ctrl
BCM.0> G mac_ctrl.xe0 ……(1)
BCM.0> g raw mac_ctrl.xe3 ……(2)
BCM.0> g mac_ctrl ……(3)
BCM.0> g chg mac_ctrl.xe3 ……(4)
In the above code commands,
(1)—Get register and field value of MAC_CTRL register for port xe0.
(2)—Get only hex value of mac_ctrl for xe3.
(3)—Get register value of MAC_CTRL for all ports.
(4)—Get value of mac_ctrl register if it has changed from default. Only changed fields are displayed.
Listreg <—> LISTmem
Getreg <—> Dump
Setreg <—> Write, Insert
Modreg <—> MODify
BCM.0> list vlan
d vlan Dump all valid (VALID bit is 1) entries in VLAN table.
d all vlan Dumps entire VLAN table.
d chg vlan Shows all VLAN entries that have changed from their default contents.
d vlan 200 25 Dumps 25 entries of VLAN table starting with 200.
BCM.1> d chg l2x
BCM.0> show params
BCM.0> phy info
BCM.0> phy ge7 3
It is also helpful to remember that PHY registers 0 and 1 always hold the control and status for each port, respectively:
BCM.0> phy ge5 0 0x8000 ; bit-15 to reset ge5
BCM.0> phy ge5 0 0x0200 ; bit-9 to start autoneg
BCM.0> dump pcic
The SwitchControl command controls the switch behavior by manipulating numerous control variables. Typing sc displays
a list of all switch controls and their current value. Needed switch behavior can be obtained by modifying relevant switch
controls for a port bit map. For example, to change the action taken by the switch when the IGMP packet arrives at port ge4,
use switch controls IgmpPktDrop or IgmpPktToCpu.
BCM.0> sc pbm=ge4 IgmpPktToCpu=1

Driver properties can be changed and saved in NVRAM by using the BCM Diag Shell command config.
BCM.0> config add counter_thread_pri=40 ;add and set a new property
BCM.0> config phy_automedium_ge0.0=0 ;change an existing property
BCM.0> config save ;save changes in NVRAM
BCM.0> config delete <name>
BCM.0> *:link off
BCM.0> *:counter off
BCM.0> *:l2mode off

时间: 2024-11-05 12:27:39

bcm cmd的相关文章

windows下cmd命令行显示UTF8字符设置(CHCP命令)

在中文windows系统中,如果一个文本文件是utf-8编码的,那么在cmd.exe命令行窗口(所谓的dos窗口)中不能正确显示文件中的内容.在默认情况下,命令行窗口中使用的代码页是中文或者美国的,即编码是中文字符集或者西文字符集. 如果想正确显示UTF-8字符,可以按照以下步骤操作: 1.打开CMD.exe命令行窗口 2.通过 chcp命令改变代码页,UTF-8的代码页为65001 1 chcp 65001 执行该操作后,代码页就被变成UTF-8了.但是,在窗口中仍旧不能正确显示UTF-8字符

定制windows环境下cmd替代软件ConEmu

定制windows环境下cmd替代软件ConEmu 公认的是Windows环境下命令行界面太难用. 不管是cmd还是powershell都不顺手!!窗口宽度不能全屏,字体太难看还不能调整,窗口背景不能更换,永远的黑白配,最痛苦的是复制和粘贴.都不知道MS是怎么想的?搞个这么个反人类的东西出来,还万年不变,从Windows诞生到Windows7不论是桌面版还是服务器版都一样,到了windows8/windows10换成powershell一样的鸡肋. 在百度搜了一下,找到cmd的替代软件conem

cmd启动和停止tomcat

首先进入Tomcat安装目录下的bin目录 一. cmd命令启动Tomcat服务器: start.bat 补充:若这样启动了Tomcat服务器,此时再去eclipse里面在该服务器上运行javaweb项目,会报错(端口在使用,因为在eclipse上运行项目的时候会再次启动服务器),因此需要先关闭服务器后再去启动eclipse项目上的tomcat服务器 二.cmd命令停止Tomcat服务器: shutdown.bat

JNI之——在cmd命令行下编译执行C/C++源文件

转载请注明出处:http://blog.csdn.net/l1028386804/article/details/46604269 一直用java来敲代码,java配置好jre路径之后.在cmd下编译执行.非常方便. 刚好要给一个舍友改下C程序,想到可不能够像java一样在环境变量里配置好C的编译路径呢? 于是上网搜了一下,得到例如以下结果: 一.假设装有VC,那就简单了,由于VC带有C的编译器,能够将此路径设置进环境变量. Windows系统下编译连接源码方法: cl -GX test.c -

调用cmd命令行命令(借鉴)

留待以后观看 ---------------------------------------------------------------------------- public class IP_MAC_TypeHelper { /** * 控制台执行arp -a命令 * * @return * */ public static InputStream getInputStream() { Runtime rt = Runtime.getRuntime(); InputStream in =

浅析JS模块规范:AMD,CMD,CommonJS

随着JS模块化编程的发展,处理模块之间的依赖关系成为了维护的关键. 模块化 AMD,CMD,CommonJS是目前最常用的三种模块化书写规范. CommonJS CommonJS规范是诞生比较早的.NodeJS就采用了CommonJS.是这样加载模块: var clock = require('clock'); clock.start(); 这种写法适合服务端,因为在服务器读取模块都是在本地磁盘,加载速度很快.但是如果在客户端,加载模块的时候有可能出现"假死"状况.比如上面的例子中cl

常用的CMD

cmd                打开cmd命令窗口 notepad           打开一个新记事本 mstsc             启动远程桌面 calc              打开windows计算器 dcomcnfg          打开windwos组件服务 regedit           打开注册表编辑器 taskmgr           打开windows任务管理器 mspaint           打开windows画板 services.msc    

CMD杀进程 例如:杀8080端口的进程

首先:端口被占用的报错形式如下 说明8080端口被占用 解决方案一:查找pid,根据pid去任务管理器的进程中结束占用8080端口号的进程 1.首先按快捷键windows+R,在运行框里输入cmd,如图所示,进入黑色界面后,输入netstat -ano,查看端口. 2.找到8080端口,查看正在运行程序的pid,如图所示. 3.ctrl+alt+delete 打开任务管理器中的服务 4.找到相同的PID进程,点结束进程就可以了,这样8080端口就不会再被占用了. 方案二: 查看端口是否被占用 的

实验一 命令解释程序cmd的编写

#include<stdio.h>#include<stdlib.h>#include<string.h>#define N 30main(){ char str[N]; int i,j; char cmd[N][N] = {"dir","cd","md","rd","cls","date","time","ren&quo