This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tsg-tsg-os-buildimage/ansible/roles/patches-9000-NPB/files/patch/set-eth_pf_smbio-macaddr.sh

11 lines
304 B
Bash

#!/bin/sh
NIC_NAME="eth_pf_smbio"
echo -------------------- set $NIC_NAME macaddr --------------------
output=$(ipmitool picmg addrinfo)
echo $output
substr=${output:21:2}
echo deviceid:$substr
macaddr='90:00:00:91:40:'$substr
echo $NIC_NAME macaddr:$macaddr
ip link set dev $NIC_NAME address $macaddr