掌握交换机管理:从端口操作到日志收集全攻略

  • 白盒up状态:
    • show interfaces status
  • 查询丢包:
    • show interfaces counters |grep U
  • 关闭端口:
    • config interface shutdown Ethernet
  • 打开端口:
    • config interface startup Ethernet
  • 清除计数:
    • clear counters
  • 设置FEC模式状态:
    • config interface fec Ethernet 端口号 rs/none
  • 创建 Vlan:
    • config vlan add 100 /config vlan member add 100 Ethernet 端口号-u
  • 删除 Vlan:
    • config vlan del 100 /config vlan member del 100 Ethernet 端口号 -u
  • 复位重启光模块:
    • config interfacetransceiver reset
  • 查询版本信息:
    • show version
  • 查询固件版本信息:
    • show platform firmwarestatus/updates
  • 接口 IP地址信息:
    • show ip interfaces
  • 查看设备告警信息:
    • show alarm info
  • 一键收集日志:
    • collect-diagnostic
  • 收集一天内的日志信息:
    • collect-diagnostic alln1
  • 即时打印syslog日志:
    • tail-f /var/log/syslog
  • 黑盒交换机测试常用命令:
    • 清除计数:
      • reset interface counters
    • 查询端口状态:
      • display interface brief
    • 查询丢包数据:
      • display interface counters errors
    • 查询流量数据:
      • display interface counters
    • 查询交换机型号:
      • display device
    • 查询交换机版本信总:
      • display version
    • 重启光模块:
      • 进入对应端口interface100GE1/0/1>restart.
    • 查询端口光模块详细信忠:
      • display interface transceiver verbose
    • 设置FEC模式状态:
      • interface“100GE1/11”"fecmode rs/none”
    • 关闭端口:
      • interface端口号shutdown/commit
    • 打开端口:
      • interface端口号undo shutdown/commit
    • 查询Vlan:
      • display vlan
  • OS下常用命令
    • 关闭防火墙
      • systemctl disable firewalld.service
      • systemctl stop firewalld.service
    • 重启网络
      • systemctl restart network
    • 网卡网口配置IP :
      • ifc0nig端口10.10.10.3/24UP
    • dmesg查看丢包:
      • dmesg |grep-i error
      • ethtool -S eno2 grep-i err
      • ethtool -S enol grep -i err
    • 导出dmesg信息:
      • ethtool -S XXX >ethtool.txt
    • lpef打流杀掉进程:
      • ps -ef |grep -i iperf
      • kill-917687
    • 系统监控打流数据:
      • sar -n DEV 2
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值