How to config IP Address in Kali Linux

1. #vi /etc/network/interfaces

auto eth0
iface eth0 inet static
address 192.168.1.61
netmask 255.255.255.0
gateway 192.168.1.100

esc - :wq!

2. #vi /etc/resolv.conf

nameserver 8.8.8.8

esc - :wq!

3.  #/etc/init.d/networking restart  or #service networking restart


Another way

1. #ifconfig
      verify which interface going to config
2. #ifconfig eth0 192.168.1.157/24 up
 
     #mtr 8.8.8.8
    #netstat -rn
 
    #route add default gw 192.168.1.100
    #mtr 8.8.8.8



Post a Comment

0 Comments