4
IP Address Configuration in Kali Linux Kali is built on Debian platform, in our configuration guide we are going to cover IP address configuration in Kali Linux . IP address configuration in Kali Linux – Steps 1. IP address configuration in kali linux Static and Dynamic. 2. Virtual Interface and Virtual IP configuration configuration in Kali Linux. 3. How to change hostname and how to add route in Kali Linux 1. IP address configuration in Kali Linux (Static and Dynamic). IP address configuration in Kali Linux , there are two methods (static / dynamic) By default Kali Linux uses DHCP settings , The network configuration file locates in /etc/network/interface. firstly you need to check out how many network card installed in box by issuing below command. #ifconfig -a Below parameter require for dynamic IP from DHCP server #vi /etc/network/interface auto eth0 allow-hotplug eth0 # detect link iface eth0 inet dhcp # using DHCP method Save & Exit! Use below command to restart network service to reflect the changes made in 7

Ip Configuration Kali Linux

Embed Size (px)

DESCRIPTION

configuración de Ip en Kali Linux

Citation preview

IP Address Configuration in Kali LinuxKali is built on Debian platform, in our configuration guide we are going to cover IP address configuration in Kali Linux .IP address configuration in Kali Linux Steps1. IP address configuration in kali linux Static and Dynamic.2. Virtual Interface and Virtual IP configuration configuration in Kali Linux.3. How to change hostname and how to add route in Kali Linux1. IP address configuration in Kali Linux (Static and Dynamic).IP address configuration in Kali Linux , there are two methods (static / dynamic) By default Kali Linux uses DHCP settings , The network configuration file locates in /etc/network/interface.firstly you need to check out how many network card installed in box by issuing below command.#ifconfig -aBelow parameter require for dynamic IP from DHCP server#vi /etc/network/interfaceauto eth0allow-hotplug eth0 # detect linkiface eth0 inet dhcp # using DHCP methodSave & Exit!Use below command to restart network service to reflect the changes made in#/etc/init.d/networking restartor#service networking restartBelow parameter require for loopback address, its default (127.0.0.1).auto loiface lo inet loopbackBelow parameter require for static IP configuration , we assume that only one network card installed, if you have more than one you can use different IP to each of the network card. the label for network cards will be like eth0 ,eth1#vi /etc/network/interfaceauto eth0 #interface nameallow-hotplug eth0 #link detectioniface eth0 inet static # define IPV4 the ip using static methodaddress 192.168.0.252 # IP addressnetmask 255.255.254.0 # subnet maskgateway 192.168.0.253 # gateway (router)Save & Exit!Use below command to restart network service to reflect the changes made in#/etc/init.d/networking restartor#service networking restartBelow parameter require for IPV6iface eth0 inet6 staticaddress fe80::c0a8:fcnetmask fe80::c0a8:0gateway fe80:0:0:0:0:0:c0a8:feUse below command to set networking service on at boot .# update-rc.d networking enableUse below configuration file to add name servers , you must have this settings in order to communication external network through host name like www.google.com, something.com , mail.yahoo.com.Append following file to add name server details.# vi /etc/resolv.confnameserver 192.168.0.33 #internal DNS servernameserver 8.8.8.8 #public DNS serverSave & Exit.Verify dns settings are working properly , use below useful commands .#dig google.com#host google.com#get www.google.comChange the interface status , bring it UP / Down#ifconfig eth0 down#ifocnfig eth0 up2. Virtual Interface and Virtual IP configuration configuration inKaliLinux.Virtual IP, assigning multiple IP to an interface.Create a virtual interface and assign an IP address within the network or other network. A virtual interface can have IP address of different network than physical interface.You can create any number of virtual interface and each one can have IP of same network / other network.#ifconfig eth0:1 192.168.200.1 netmask 255.255.255.0 upNote : eth0:1 (eth0 is physical , :1 is virtual interface identifier number)Example :eth0:1eth0:2eth0:3 .#vi /etc/network/interface# physical interface settingsauto eth0 #interface nameallow-hotplug eth0 #link detectioniface eth0 inet static # define IPV4 the ip using static methodaddress 192.168.0.25 # IP addressnetmask 255.255.255.0 # subnet maskgateway 192.168.0.1 # gateway (router)#virtual interface settingsauto eth0:1allow-hotplug eth0 #link detectioniface eth0 inet static # define IPV4 the ip using static methodaddress 192.168.0.26 # IP addressnetmask 255.255.255.0 # subnet maskauto eth0:2allow-hotplug eth0 #link detectioniface eth0 inet static # define IPV4 the ip using static methodaddress 192.168.0.27 # IP addressnetmask 255.255.255.0 # subnet maskauto eth0:3allow-hotplug eth0 #link detectioniface eth0 inet static # define IPV4 the ip using static methodaddress 192.168.0.26 # IP addressnetmask 255.255.255.0 # subnet maskSave & Exit!Use below command to restart network service to reflect the changes made in#/etc/init.d/networking restartor#service networking restart3. How to change hostname and how to add route in Kali Linuxuse below configuration file to change hostname#vi /etc/hostname#invoke-rc.d hostname.sh startreconnect the ssh session to verify hostname status.IP Address Configuration in Kali Linux covered following topics.IP address configuration (Static and Dynamic) in Kali LinuxVirtual IP and Virtual interface configuration in Kali LinuxHow to change hostname in Kali Linux

7