From Fedora Project Wiki
Description
This test case ensures that networkctl
can effectively list and retrieve details of all network links available on the system.
Setup
Ensure that systemd
and systemd-networkd
are installed and running on your Fedora system.
How to test
- Open a terminal.
- Execute the command
networkctl
to list all network links. - Identify a link from the list, for example "eth0".
- Now, execute the command
networkctl status eth0
to retrieve details about the "eth0" link.
Expected Results
- The command
networkctl
returns a table that shows one row for each link on the system, listing link index, its type, operational state, and where it got its address from. - The "eth0" link (or the one you selected) should be among the links listed.
- The
networkctl status eth0
command should return detailed information about the link including its type, state, path, driver, vendor, and more.
Optional
Optionally, use networkctl
to explore the state of other network links or to understand how links change state when you modify network configurations.