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;
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