Kali and Metasploitable2 network configuration

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

  1.  
    Auto  eth0 # boot automatically activated
  2.  
    iface  eth0  INTE  static # static IP
  3.  
    192 address .168 .1 .68 # native IP
  4.  
    255 Netmask .255 .255 .0 # Subnet Mask
  5.  
    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

  1.  
    Auto  eth0 # boot automatically activated
  2.  
    iface  eth0  INTE  static # static IP
  3.  
    192 address .168 .1 .62 # native IP
  4.  
    255 Netmask .255 .255 .0 # Subnet Mask
  5.  
    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 []


     
    5977821-3190cb51bd5a10b7.png
    Pictures .png

Guess you like

Origin www.cnblogs.com/despotic/p/11263134.html