Kali and Metasploitable2 network configuration
Original link:
https://blog.csdn.net/Aligecuo/article/details/80601416
1.Kali Network Configuration
1.1 Configuring the network card
Modify / etc / network / interfaces
-
Auto eth0 # boot automatically activated
-
iface eth0 INTE static # static IP
-
192 address .168 .1 .68 # native IP
-
255 Netmask .255 .255 .0 # Subnet Mask
-
192 Gateway .168 .1 .1 Gateway #
1.2 Set DNS, modify /etc/resolv.conf
nameserver 192.168.1.1
1.3 After configuration is complete, restart the network card
systemctl restart NetworkManager.service
2.Metasploitable2 network configuration
2.1 modify the permissions of problems interfaces
sudo chmod 777 /etc/network/interfaces
Modify / etc / network / interfaces
-
Auto eth0 # boot automatically activated
-
iface eth0 INTE static # static IP
-
192 address .168 .1 .62 # native IP
-
255 Netmask .255 .255 .0 # Subnet Mask
-
192 Gateway .168 .1 .1 Gateway #
2.2 modify resolv.conf rights
sudo chmod 777 /etc/resolv.conf
Set DNS, modify /etc/resolv.conf
nameserver 192.168.1.1
2.3 configuration is complete, restart the network card
sudo systemctl restart NetworkManager.service
If you are still unable to interconnect two machines, two machines to see whether network connectivity options are [bridge]
-
Select machine [ctrl + D], select the network connection to the bridge []