Return NetworkManager's office profile to automatic IPv4 configuration such as DHCP.
The central setting should switch away from fixed addressing.
Which setting is appropriate?
ipv4.method auto enables automatic IPv4 configuration. Remove obsolete static address properties when they are no longer needed.
Detailed explanation
nmcli connection modify office ipv4.method disabledIncorrect. disabled turns IPv4 off for the profile.
Incorrect. disabled turns IPv4 off for the profile.
nmcli connection modify office ipv4.method manualIncorrect. manual selects fixed settings.
Incorrect. manual selects fixed settings.
nmcli connection modify office ipv4.method sharedIncorrect. shared is for connection sharing.
Incorrect. shared is for connection sharing.
nmcli connection modify office ipv4.method autoCorrect. auto selects automatic IPv4 configuration.
Correct. auto selects automatic IPv4 configuration.
Try it yourself
An example you can run in a temporary verification environment.
nmcli --offline connection add type ethernet con-name sample ipv4.method auto 2>/dev/null | grep -m1 'method=auto' || printf '%s
' 'offline mode is not available'Expected result
ipv4 methodがautoである設定、またはoffline mode未対応メッセージKey points
- auto means automatic
- manual means static
- disabled turns IPv4 off
Notes
- Environment: NetworkManager nmcli offline / 実接続変更なし
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.