Hello everyone,

I am using Linux XSI 4.9.0-kali4-amd64 #1 SMP Debian 4.9.30-1kali1 (2017-06-06) x86_64 GNU/
I read so many threads about how to change mac-adress.

the thing I am actually want to have a random mac adress every time I boot my Virtual machine
notice the connection is Bridged adapter
Promiscuous Mode set to ALL (FYI)

I made a macro for this saved in /etc/init.d/macc.sh
my code:
Code:
#!/bin/bash
ifconfig eth0 down
macchanger -r eth0
ifconfig eth0 up
The mac is changed though the network it's just saying connecting.

then I tested instead in console

Code:
ifconfig eth0 down
macchanger -r eth0
ifconfig eth0 up
also tested afterwards
sudo service network-manager stop, before I change the mac adress, then turn on the service again
sudo service network-manager start
also tested following command as well sudo service network-manager restart
still doesn't able to visit for instance www.google.se afterwards (network says connecting).

Though the MAC-adress is changed.
if I revert back the mac-adress by use macchanger eth0 -p
the network is working again.


Could someone help me out?

Thank you in advance


but if I run macchanger