Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mac_eth0=$(ifconfig eth0 | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}')
- mac_wlan0=$(ifconfig wlan0 | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}')
- ifconfig eth0 down
- ifconfig wlan0 down
- ifconfig eth0 hw ether $mac_wlan0
- ifconfig eth0 up
- ifconfig wlan0 hw ether $mac_eth0
- ifconfig wlan0 up
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement