Kali Network configuration under Linux

Source: Internet
Author: User

Recently took the Kali to play on the virtual machine, need to configure the network card static IP address, through the graphical interface configuration, found that the/etc/network/interfaces inside does not show the IP address, also can not find where, after consulting data to determine the location;

    1. System version

[email protected]:~# cat /etc/network/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 interfaceauto  loiface lo inet loopback[email protected]:~# uname -aLinux kali  4.9.0-kali4-amd64  #1  SMP Debian 4.9.25-1kali1  (2017-05-04)  x86_64 gnu/linux [Email protected]:~# more /etc/os-release pretty_name= "Kali gnu/linux rolling" Name= "Kali gnu/linux" id=kaliversion= "2017.1" version_id= "2017.1" id_like=debianansi_color= "1;31" HOME_URL= " http://www.kali.org/"support_url=" http://forums.kali.org/"bug_report_url=" http://bugs.kali.org/"

2. Think of the new version of Linux has NetworkManager tools to manage network configuration information, so find the/etc/networkmanager/system-connections directory below, found a file, By looking at this file, you find the configuration information for the network address, as follows:

[email protected]:/etc/networkmanager/system-connections# pwd/etc/networkmanager/system-connections[ Email protected]:/etc/networkmanager/system-connections# ll Total dosage  4.0k-rw------- 1 root  root 315 5 Month    9 12:45 Wired connection 1[email  protected]:/etc/networkmanager/system-connections# cat wired\ connection\ 1 [ connection]id=wired connection 1uuid=f33717da-334a-4c31-b0be-bbba3a9606c7type=ethernetpermissions= timestamp=1494305073[ethernet]mac-address-blacklist=[ipv4]address1=192.168.20.222/24,192.168.20.254dns=8.8.8.8 ;d ns-search=method=manual[ipv6]addr-gen-mode=eui64dns-search=ip6-privacy=2method=auto[email protected]:/ Etc/networkmanager/system-connections# ll Total dosage  4.0k-rw------- 1 root root 315  5 Month    9 12:45 wired connection 1[email protected]:/etc/ networkmanager/system-connections#

3. Through the Systemctl disable Networkmanager.service service after the restart, found that the IP address is not loaded, the network does not take effect, indicating that the IP of the network is currently controlled by the NetworkManager

[Email protected]:/etc/networkmanager/system-connections# systemctl Disable networkmanager.serviceremoved/etc/ systemd/system/multi-user.target.wants/networkmanager.service.removed/etc/systemd/system/ Dbus-org.freedesktop.nm-dispatcher.service. [Email protected]:/etc/networkmanager/system-connections#

4. The current role of NetworkManager and/etc/network/networking I have not yet been compared.


Kali Network configuration under Linux

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.