brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: netplan status shows what an interface really has right now

Netplan
~/tips/tip-netplan-status-live-state

netplan status

Prints the live network state of the interfaces and can compare it with your YAML.

After editing the YAML I want to see the live addresses and routes, not just the file.

netplan status
netplan status --all
netplan status --diff

netplan status queries the current network configuration and prints it in a readable form. It relies on systemd-networkd as its data source and tries to start it if it is not masked. --all includes inactive interface data, and --diff compares the running system with your YAML definitions. Name an interface to limit the output, and add -f json for machine-readable output. The command needs a netplan version that includes it, so check netplan status --help on older systems.

Further reading: netplan status

More Netplan tips – to: 192.168.3.0/24 hidden: true lacp-rate: fast link-local: [] wakeonlan: true All Netplan tips (21) All topics

Link