Solve the Kali network no connection

For the problem that Kali cannot connect to the Internet, first execute

ifconfig -a

Check whether eth0 exists, as shown in the figure, eth0 exists, but there is no network, so the network card is not started.

 Let's solve it like this:

implement

sudo vim /etc/network/interfaces

Modify the interfaces file. Add the following commands to the last two lines: 

auto eth0
iface eth0 inet dhcp

Then save it (vim related commands~). 

Then execute the last command

sudo systemctl restart networking

The network connection can be restored without restarting the system.

The effect is as shown in the figure:

 

Guess you like

Origin blog.csdn.net/Sbs5218/article/details/127216331