Do you happen to have NetworkManager ? I think it's default on Ubuntu and that might be your problem.
If you have it, nmcli connection set <device> down
would turn off your device. I believe you can also change your mac address with it, but I don't have the manual with me right now.
Edit: NetworkManager can do randomised mac address Arch wiki link