Netplan + Networkd

Switch from NetworkManager to Netplan + Networkd on Kali Linux.

Install

N/ABASH
sudo apt install netplan.io
sudo apt purge network-manager
sudo apt purge ifupdown
sudo vim /etc/netplan/01-netcfg.yaml
sudo systemctl enable systemd-networkd
systemctl start systemd-networkd
sudo netplan apply
reboot

Configuration

/etc/netplan/01-netcfg.yamlYAML
network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      dhcp4: true
    eth1:
      dhcp4: false
      dhcp6: false
      addresses:
        - 192.168.1.111/24
      routes:
        - to: default
          via: 192.168.1.1
      nameservers:
        addresses: [192.168.1.1, 8.8.4.4]

⚠ Warning — YAML indentation must be exact. Any inconsistency causes: Invalid YAML at /etc/netplan/01-netcfg.yaml:4:14: Invalid YAML: inconsistent indentation

Disclaimer

All content published on exploit.se is intended strictly for educational and informational purposes. Research is conducted responsibly under coordinated disclosure principles.

Techniques, tools, and writeups shared on this site are meant to advance the security community's understanding of vulnerabilities and defences. They are not intended to encourage or enable unauthorised access to any system.

The author bears no responsibility for any misuse of information presented here.

Cookie Settings

This site does not use cookies, analytics, or any third-party tracking technologies.

No personal data is collected. No fingerprinting. No ads. You are not the product.


 ██╗ ██████╗ ███████╗██╗███████╗███╗   ██╗██████╗
 ██║██╔═══██╗██╔════╝██║██╔════╝████╗  ██║██╔══██╗
 ██║██║   ██║█████╗  ██║█████╗  ██╔██╗ ██║██║  ██║
 ██║██║   ██║██╔══╝  ██║██╔══╝  ██║╚██╗██║██║  ██║
 ██║╚██████╔╝██║     ██║███████╗██║ ╚████║██████╔╝
 ╚═╝ ╚═════╝ ╚═╝     ╚═╝╚══════╝╚═╝  ╚═══╝╚═════╝
You found me.
↑↑↓↓←→←→ B A  ·  click to close