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.
nmcli connection modify office ipv4.method manualIncorrect. manual selects fixed settings.
nmcli connection modify office ipv4.method sharedIncorrect. shared is for connection sharing.
nmcli connection modify office ipv4.method autoCorrect. 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
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.