Skip to content

Instantly share code, notes, and snippets.

@zxp
Created August 29, 2017 11:57
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save zxp/7e345195c15bfdf41ed21bf61042e3dc to your computer and use it in GitHub Desktop.
Save zxp/7e345195c15bfdf41ed21bf61042e3dc to your computer and use it in GitHub Desktop.
修改网卡MAC地址然后运行dhclient获取IP地址 /etc/network/interfaces
auto eth1
iface eth1 inet manual
hwaddress 54:93:59:**:**:**
pre-up ip l set eth1 address 54:93:59:**:**:**
post-up dhclient -nw eth1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment