2020年9月13日 星期日

how to setup kali ip & dns

reference  from https://www.itread01.com/content/1541031003.html 

os system

root@kali:/etc# lsb_release -a
No LSB modules are available.
Distributor ID: Kali
Description:    Kali GNU/Linux Rolling
Release:        2020.3
Codename:       kali-rolling
 

==============

set kali ip

vi /etc/network/interfaces

=======

root@kali:/etc/network# cat interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.2.222/24
gateway 192.168.2.254
 

======

set kali dns

vi /etc/resolv.conf

root@kali:/etc# cat resolv.conf
# Generated by NetworkManager
nameserver 192.168.1.1
nameserver 8.8.8.8
nameserver 168.95.1.1

 



沒有留言:

張貼留言