Skip to content

Instantly share code, notes, and snippets.

@jcpowermac
Last active January 1, 2016 20:59
Show Gist options
  • Select an option

  • Save jcpowermac/8200964 to your computer and use it in GitHub Desktop.

Select an option

Save jcpowermac/8200964 to your computer and use it in GitHub Desktop.
MAC=`ip link | grep "link/ether" | awk '{print $2}'`
echo "HWADDR=$MAC" >> /etc/sysconfig/network-scripts/ifcfg-ens192
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment