Activate the saved NetworkManager profile named office.
Do not create a new profile.
Which command is appropriate?
nmcli connection up ID activates a saved profile. The ID can be a name, UUID, or other accepted identifier.
Detailed explanation
nmcli device status officeIncorrect. device status only displays device state.
nmcli connection up officeCorrect. It activates the saved office profile.
nmcli connection add officeIncorrect. connection add creates a new profile and needs more configuration.
nmcli connection show officeIncorrect. connection show only displays the profile.
Try it yourself
An example you can run in a temporary verification environment.
nmcli connection help 2>/dev/null | sed -n '1,8p' || printf '%s
' 'nmcli is not installed'Expected result
connectionのshow、up、downなどの操作概要、または未導入メッセージKey points
- connection up activates
- show only inspects
- add creates a profile
Notes
- Environment: NetworkManager nmcli help / 状態変更なし
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Network interface
A host attachment whose link state and addresses can be managed.
Connection profile
Saved settings used to activate a persistent network connection.
Routing table
Rules that select the next hop for each destination network.