Setting MACADDR with nmcli
- From: Robert Moskowitz <rgm htt-consult com>
- To: networkmanager-list gnome org
- Subject: Setting MACADDR with nmcli
- Date: Tue, 7 Aug 2018 08:43:15 -0400
I hope this is the right list for nmcli.
I want to set MACADDR in ifcfg-eth0
I thought it was:
nmcli con mod eth0 mac "02:67:15:00:81:0B"
but this sets HWADDR, which has a totally different use. I could then
change HWADDR to MACADDR with:
sed -i -e "s/HWADDR/MACADDR/w /dev/stdout"
/etc/sysconfig/network-scripts/ifcfg-eth0
But that is a hack. It would be nice to be able to directly set
MACADDR, but I cannot find any documentation that states how to do this.
thanks
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]