Network Configuration after Kali Linux installation is complete

Source: Internet
Author: User
Tags nameserver kali linux

As a newbie to Kali Linux, I found a lot of information on blogs in various forums. It took me one day to configure the wired campus network. To prevent forgetting, so I wrote this blog.
 
After installing kali, first determine whether you are a DHCP or static IP address. DHCP is a protocol used to dynamically allocate IP addresses to large networks. Most small and medium networks (such as campus networks and home networks) use the network administrator's Manual allocation of static IP addresses to determine IP addresses. Next, we will take the static IP address of the campus network as an example to describe the configuration process.

Kali Linux installation series:

  1. Install Kali Linux with a Live USB flash disk
  2. Install Kali Linux on Hard Disk
  3. Encrypted installation of Kli Linux
  4. Installation of Kali and Windows dual-boot in Kali Linux
  5. Download Kali Linux
     
    1. Find the interfaces file under/etc/network in the file system. After opening it, you can see that eth0 is dhcp and change it to the following format:
     
    # This file describes the network interfaces available on your system
    # And how to activate them. For more information, see interfaces (5 ).
     
    # The loopback network interface
    Auto lo
    Iface lo inet loopback
     
    Auto eth0
    Iface eth0 inet static // configure eth0 to use the default static address
    Address 192.168.77.htm // set the IP address of eth0
    Netmask 255.255.255.0 // configure the subnet mask of eth0
    Gateway 192.168.77.254 // configure the default gateway of the current host


There are many other settings in the "interfaces" file. To learn more, you can use the man command to query the manual page of the "interfaces" file.
# Man interfaces
 
Eth0 indicates the local Ethernet Card 1. Similarly, eth1 indicates the local Ethernet Card 2. Generally, one computer has only one eth0. The NIC device name/dev/eth0 corresponds to the hardware MAC address 52: 54: AB: DD: 6F: 61, and the MAC address is set by the manufacturer, the unique address of each ENI.
 
In linux, if ifconfig is used, eth0 is displayed, and eth0: 1 may be displayed. Eth0: 1 refers to the eth0 sub ip Storage file, the sub ip Storage file format is ifcfg-eth0: X, X is any positive integer (including 0)
The specific function is to implement multiple ip addresses for a single Nic, similar to windows Multi-ip addresses.


Ii. Configure DNS
Use the file "/etc/resovl. conf. You can use the "nameserver" configuration item to set the IP address of the DNS server; "resolv. conf files can be used at most
"Nameserver" specifies three DNS servers in sequence. Once the previous DNS server fails, the system will automatically use the subsequent DNS server.
For "resolv. the change to "nameserver" in the conf file takes effect immediately, that is, as long as the "resolv. conf file modifications are saved. The next time the system needs to resolve the domain name, it will be specified according to the file
DNS Server IP address for domain name resolution.
The format in resolv. conf is as follows:

Domain
Nameserver 10.10.10.10
Nameserver 102.54.16.2


3. Restart the network
Save the preceding steps and restart the network in the terminal. The command is as follows:/etc/init. d/networking restart
After that, open the browser to download and log on to the client on the Intranet! Hope to help you! If you have any mistakes, please correct them!

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.