Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env/ python
- import subprocess
- subprocess.call("ifconfig eth0 down", shell=True)
- subprocess.call("ifconfig eth0 hw ether 00:11:22:33:44:66", shell=True)
- subprocess.call("ifconfig eth0 up", shell=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement