Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

1- static IP address

2- dhcp IP address


1- static ip addr and dns

1- set IP@
2- restart
3- set resolv.conf

Static IP@:

root@kali:~# vi /etc/network/interfaces
auto enp0s8
iface enp0s8 inet static
address 192.168.221.190
netmask 255.255.255.0
gateway 192.168.221.1
dns-nameservers 8.8.8.8


sudo /etc/init.d/networking restart

systemctl  restart networking ??

2- dhcp IP address

root@kali:~# vi /etc/network/interfaces
auto enp0s8
iface enp0s8 inet dhcp


sudo /etc/init.d/networking restart



  • No labels