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

bcm cmd的更多相关文章

  1. 让 windows 下的命令行程序 cmd.exe 用起来更顺手

    在 Windows 下使用 Larave 框架做开发,从 Composer 到 artisan 总是避免不了和 cmd.exe 打交道,系统默认的命令行界面却是不怎么好看,且每行显示的字符数是做了限制 ...

  2. cmd窗口编码设置

    问题描述:不知道误操作了什么,导致cmd窗口的鼠标显示位置出现错位,如下: 现在要将鼠标位置调整回来. 使用工具:cmd. 操作步骤: 1.查看cmd属性可以看到 可以看到是UTF-8编码格式的,我们 ...

  3. Windows cmd 长时间不输出新内容 直到按下ctrl + c 取消或者回车的解决办法

    换了一台新电脑, 在使用 ant 拷贝大量文件的时候 cmd 窗口过了很久没有继续输出新的内容,远远超过平时的耗时, 以为已经卡死 按下 ctrl + c 取消, 这时并没有取消, 而是输出了新内容, ...

  4. 创建maven项目(cmd 命令)

    2016五月 22 原 创建maven项目(cmd 命令) 分类:maven (994) (0) 1.普通方式创建 1)进入cmd窗口执行 mvn archetype:generate 2) 光标停止 ...

  5. js模块定义——支持CMD&AMD&直接加载

    /* animate */ //直接加载 (function() { var animate = {} //balabala window.animate = animate; })(); //AMD ...

  6. 不显示cmd窗口运行jar包

    今天,打开导出的jar包,发现并不能运行,查看jar包中的META-INF文件夹下的MANIFEST.MF文件,发现MANIFEST.MF中并没有Main-Class,于是,就手动添加相应的信息,本项 ...

  7. 执行插入语句,object val = cmd.ExecuteScalar() val = null

    在写接口的过程中遇到错误:空对象不能转换为值类型 因为我们使用的是petapoco,经过调试后发现是 object val = cmd.ExecuteScalar() 这一句造成的报错, val = ...

  8. Linux Cmd Tool 系列之—alias

    The alias cmd list your current aliases. For example : alias Use alias to shorten a long cmd in curr ...

  9. 使用cmd打开java文件,报错:“错误,编码GBK的不可映射字符”

    今天使用EditPlus写了一个小程序,用cmd运行时报错--"错误,编码GBK的不可映射字符". 处理办法是用EditPlus另存为时,把编码格式由UTF-8改为ANSI. 然后 ...

随机推荐

  1. 如何在一个网站或者页面写js

    如何在一个网站或者页面写js: 1. JS的分层(功能):jquery(tools)  组件(ui)  应用(app).mvc(backboneJS) 2. JS的规划(管理):避免全局变量和方法(命 ...

  2. Definition of success-成功的定义

    "My definition of success is doing what you love. I fell many people do things because they fee ...

  3. pm2使用

    简单教程 首先需要安装pm2: npm install -g pm2 运行: pm2 start app.js 初次安装并运行,会有一个高大上的界面: 高大上的界面 直接我们介绍过forever,那么 ...

  4. ASP.NET SignalR 与 LayIM2.0 配合轻松实现Web聊天室(十二) 代码重构使用反射工厂解耦(一)缓存切换

    前言 上一篇中,我们用了反射工厂来解除BLL和UI层耦合的问题.当然那是最简单的解决方法,再复杂一点的程序可能思路相同,但是在编程细节中需要考虑的就更多了,比如今天我在重构过程中遇到的问题.也是接下来 ...

  5. cookie禁用了,session还能用吗?

    Cookie与 Session,一般认为是两个独立的东西,Session采用的是在服务器端保持状态的方案,而Cookie采用的是在客户端保持状态的方案.但为什么禁用Cookie就不能得到Session ...

  6. 【学】React的学习之旅3 - 添加事件(onClick)

    button除了用<input type="button">之外,还可以直接用<button></button>来创建,而2个标签的中间的内容就 ...

  7. Async Programming - 1 async-await 糖的本质(2)

    上一篇讲了这么多,其实说的就是一个事,return会被编译器重写成SetResult,所以如果我们的异步函数返回的是一个Task<int>,代码就要改成这样: using System; ...

  8. 【javascript 面试笔试】1、几道笔试题

    今天想起来几道javascript的面试题,大家做做看看,有别的思路可以在下面写出来,大家交流一下 (1) 将多维数组转化成一个一位数组,例如[1,[2,3],[4,5,[6,7]]]转化成[1,2, ...

  9. Linux shell相关

    1 一些常见的问题及解决方法 <1> ssh登录不显示用户名跟路径 可能原因: ssh登录的用户没有配置shell 对应解决方案:在/etc/passwd文件对应用户那一行末尾添加/bin ...

  10. 将dataGridView数据转成DataTable

    如已绑定过数据源: DataTable dt = (dataGridView1.DataSource as DataTable) 如未绑定过数据源: public DataTable GetDgvTo ...