获取MAC地址

命令功能

获取MAC地址。

命令格式

dpu_tool -i cfg/mac/$type

入参说明

参数

参数说明

取值

$type

网卡MAC地址。

  • 0:网络板MAC。
  • 1:计算板MAC。

出参说明

项目

描述

physical port: xx

PF/VF: xx

MAC: xx-xx-xx-xx-xx-xx

设备端口信息和MAC地址。

使用指南

SP923H-VL卡无需加$type,SP923H-VL卡不加$type默认为查询网络板。

使用实例

获取MAC地址。
1
2
3
4
5
6
7
dpu_tool -i cfg/mac
physical port: 0
PF/VF: 1d
MAC: xx-xx-xx-xx-xx-xx
physical port: 1
PF/VF: 1e
MAC: xx-xx-xx-xx-xx-xx