How ot do Kali Linux network configuration

How to do Kali Linux network configuration & Settings

Basics Penetration Testing

Hello and welcome on my blog, there Vijay Kumar, 

This article about “Kali Linux network configuration and settings” it will cover all about network configuration of LAN and Wireless LAN adapter, assign IP manually and by dHCP server as well.

Kali Linux Network Configuration for Ethernet Connection

Network interfaces (LAN adapter, wireless adapter, usb adapter, fast Ethernet) are responsible to connect and make communication between two or more computers in a network. If network card is not configured properly, then you are out of network and configuration is important for network security. Network should have proper IP Address, subnet mask, Default gateway, domain name server etc.

So configure network and get into the network. but most important question:

How do you check Kali Linux network configuration?

There are different methods for windows and Linux operating systems. Here we are discussing about kali linux, I will explain tasks used in Linux. Following command is used to check the status of the networking cards in Kali Linux:


#ifconfig –a

Using The Command Line To Configure Network Interface In Kali Linux _image1

ifconfig command sow assigned IP address, MAC, Netmask, for IPv4. you can run this command as normal user and sudo user.

Enable/Disable network interface cards

Ifconfig command using the up option can start network interface and stopped using the down option. Following syntax is used

#ifconfig eth0 down

#ifconfig eth0 up

Using The Command Line To Configure Network Interface In Kali Linux _image2

Using The Command Line To Configure Network Interface In Kali Linux _image3

Assign IP Address for network (eth0 or wlan0)

Eth0 is the number of wired network interface card. if you want to assign ip address for wireless adapter replace eth0 by wlan0. The current configuration of this adapter can be changed by using following command and this command will assign new ip address for your computer interface

#ifconfig eth0

Kali Linux network configuration with IP address and Netmask

Netmask is used to indentify the network address. It can be configured by using given command. This will set the ip address and set the subnet mask

#ifconfig eth0 netmask

Using The Command Line To Configure Network Interface In Kali Linux _image4

Add default gateway

Default gateway is added or changed, by using following command. It will set the default gateway

#route add default gw

Using The Command Line To Configure Network Interface In Kali Linux _image5

Add dns-namesevers

In Linux Domain Name Server or DNS can be set or modifying the resolv.conf  in the /etc directory. It can be changed by editing this file. add the following sytex in terminal

#echo nameserver > /etc/resolv.conf

This command will remove the current nameserver and set It can be added alternate nameserver by using following syntax

#echo nameserver >> /etc/resolv.conf

Kali Linux network configuration from DHCP 

DHCP services is one of the easiest ways to configure a Ethernet. Free DHCP server provides all required configuration setting for network card. Use the following method:

#leafpad /etc/networking/interfaces

make these entries

auto eth0

iface eth0 inet static

address {ip_Address}

netmask {netmask}

gateway {Default_gateway_IP_Address}

Save the file and exit to complete modification. It is required to take down network and again bring up Ethernet interfaces to applying this configuration.

Use following command to configure network adapter
#dhclient eth0

This will configure the network adapter using the settings provided by the DHCP Server.


Vijay Kumar

Ethical Hacking & Penetration Testing Trainer, For more detail view My Profile

14 thoughts on “How to do Kali Linux network configuration & Settings

  1. I’m really enjoying the theme/design of your web site. Do you ever run into any internet browser compatibility issues? A number of my blog audience have complained about my site not working correctly in Explorer but looks great in Firefox. Do you have any suggestions to help fix this issue?

  2. Am upgrade my kali Linux but
    Open network connection
    (The system network service are not compatible with this version)
    Hiw to fix this problem

  3. My kali linux is not accepting the command “ifconfig”. It is showing “bash: ifconfig: command not found” Please help me out from this problem.

  4. sir, i am unable to access the Internet, though it shows m conneted to wifi.. tried all the steps above but problem persists.

    1. If you are connected to internet and not able to access to internet, IT is happened when your name server is not configured proper. Please make sure you have configure nameserver properly

      1. sir i have exactly done that was instructed by you i checked nameserver several times.. its correct but still facing the issue.. plzz help

Leave a Reply

Your email address will not be published. Required fields are marked *