Advertisement
Guest User

Untitled

a guest
Jul 25th, 2014
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. mac_eth0=$(ifconfig eth0 | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}')
  2. mac_wlan0=$(ifconfig wlan0 | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}')
  3. ifconfig eth0 down
  4. ifconfig wlan0 down
  5. ifconfig eth0 hw ether $mac_wlan0
  6. ifconfig eth0 up
  7. ifconfig wlan0 hw ether $mac_eth0
  8. ifconfig wlan0 up
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement