10GKR口测试

10GKR口测试
1、上传文件到/home/admin/
2、把配置文件放到指定的路径
cp all_breakout_port_config.ini /usr/share/sonic/device/x86_64-baidu-r0/BS400W0/all_breakout_port_config.ini
cp breakout_port_info.json /usr/share/sonic/device/x86_64-baidu-r0/BS400W0/breakout_port_info.json
reboot
3、10GKR端口配置
①:加载内核模块(如果已加载此步可省略;查询模块是否加载ps -ef | grep -iaE switch_ixgbe)
insmod switch_ixgbe.ko

②:
bcmsh

cint

bcm_port_speed_ability_t ability;
int rv = 0;

ability.speed = 10000;
ability.resolved_num_lanes = 1;
ability.fec_type = bcmPortPhyFecNone;
ability.medium = BCM_PORT_MEDIUM_BACKPLANE;
ability.pause = bcmPortPhyPauseNone;
ability.channel = bcmPortPhyChannelLong;
ability.an_mode = bcmPortAnModeCL73;
ability.link_training = 0;

rv = bcm_port_autoneg_ability_advert_set(0, 50, 1, &ability);
rv = bcm_port_autoneg_ability_advert_set(0, 152, 1, &ability);

exit;

port xe en=1
port xe an=1

4、系统下配置查询
ifconfig eth1 up
ifconfig eth2 up

ethtool eth1
ethtool eth2
5、设置rx tx
ethtool -g ethX
ethtool -G ethX rx 4096 tx 4096
6、给脚本赋予可执行权限,执行测试脚本
./setup_iperftest_2x10GKR_OCM.sh

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值