LinuxShellSite
COMMAND/TOOLDESCRIPTION
netplan generateGenerates the configuration files for the network renderer based on the YAML files in /etc/netplan/.
netplan applyApplies the current Netplan configuration by loading the generated configuration files and configuring the network interfaces accordingly.
netplan tryTests the new Netplan configuration temporarily and waits for confirmation from the user. If no confirmation is made, the previous configuration is restored. Useful to avoid configuration errors.
Netplan InfoDisplays information about the current Netplan version and supported renderers.
Netplan HelpDisplays the help page with an overview of all available Netplan commands and options.
IP ADisplays the current network interfaces and their configuration. Useful to check the status after using Netplan.
IP RouteDisplays the current routing tables, useful for ensuring that routes are set correctly after a Netplan configuration.
journalctl -u systemd-networkdDisplays the log entries of the systemd-networkd service. Useful for debugging network problems after using Netplan.
systemctl restart systemd-networkdRestarts the systemd-networkd service. May be required to apply changes to the network configuration without rebooting the entire system.
nmcliCommand line tool for NetworkManager. Can be used to check the status of network interfaces or to make specific settings when using NetworkManager as a renderer.
networkctlDisplays the status of the network interfaces and allows them to be managed, especially when systemd-networkd is used as a renderer.
ethtoolDisplays detailed information about network interfaces and allows them to be configured. Useful for checking or changing hardware properties.
pingTests the reachability of a host on the network. Helpful to check the functionality of the network configuration.
TracerouteShows the path that packets take to a destination host. Useful for diagnosing network problems.
digPerforms DNS queries. Helpful to make sure the DNS configuration is correct.
ResolvectlDisplays the current DNS resolver status and allows you to manage DNS settings, especially in systems with systemd-resolved.
ifup / ifdownEnables or disables network interfaces. Can be useful in certain scenarios, although Netplan has largely replaced these features.
dhclientRequests an IP address from a DHCP server. Can be used to diagnose DHCP problems.
ssDisplays current network connections. Useful for monitoring network traffic.
tcpdumpIntercepts and displays network packets, useful for in-depth network diagnostics.
systemctl status systemd-networkdDisplays the current status of the systemd-networkd service. Useful for ensuring that the service is running properly.
systemctl status NetworkManagerDisplays the current state of the NetworkManager service. Useful when using NetworkManager as a renderer.
netstatDisplays network connections, routing tables, and other network statistics.
hostnamectlDisplays the current hostname and allows you to change it. May be relevant because the hostname is part of the network configuration.
ip link set dev up/downEnables or disables a specific network interface. Useful for manually controlling interfaces.
ip addr add/del dev Adds or removes an IP address from an interface. Can be used to change IP addresses without rebooting the interface.
BridgeDisplays information about network bridges and allows them to be configured. Relevant when bridge interfaces are configured in Netplan.
VLANDisplays information about VLANs and allows them to be configured. Useful when VLANs are used in network configuration.
IP NetnsManage network namespaces. Can be relevant in complex network configurations.