network issue after using macchanger. no internet, no ipv4
I used macchanger
with these commands:
sudo ifconfig eth0 down
sudo macchanger -r eth0
sudo ifconfig eth0 up
I am using it with virtualbox on a local network, I've never had issue with that before, however now once I do that I lose internet.
the issue goes away when I reboot the machine as the MAC address reset to default. tried to reboot the router also, and my Linux works perfectly fine until I reset its MAC address.
ifconfig
shows no ipv4 for eth0
, restarting network-manager does not help. either.
Troubleshooting done without success :
Tried different hardware: computer, router and fresh install of virtualbox and Kali.
Tried to use the older version of virtualbox.
service network-manager restart
, macchanger -e -r
, dhclient eth0
.
Changed /etc/network/interfaces for eth0 with dhcp then for oreth0 static.
Tried different network settings on virtualbox.
Checked the firewall disabled local and gateway.
Reinstalled network-manager.
ping 8.8.8.8 return " this site can't be reached".
Try to edit directly on network-manager
:
Right click on
Network-Manager -> Edit Connections -> Choose the adapter "wifi or wired" -> ...
...then edit the MAC ADDRESS of the adapter selected.
If it worked, please feedback to us.