NetworkManager: Difference between revisions

From wiki
Jump to navigation Jump to search
Created page with "Category:Linux/Unix Category:Networking I prefer using old style network configuration as described in Networking. However some distributions come with NetworkMana..."
 
mNo edit summary
Line 1: Line 1:
[[Category:Linux/Unix]]
[[Category:Linux/Unix]]
[[Category:Networking]]
[[Category:Networking]]
I prefer using old style network configuration as described in [[Networking]]. However some distributions come with NetworkManager that provides a working standard configuration. Here some tricks to do non-standard things with it.
I prefer using old style network configuration as described in [[Networking#Interfaces]]. However some distributions come with NetworkManager that provides a working standard configuration. Here some tricks to do non-standard things with it.


Configuration is stored in /etc/NetworkManager/system-connections/ in a file per connection.
Configuration is stored in /etc/NetworkManager/system-connections/ in a file per connection.

Revision as of 15:27, 16 June 2024

I prefer using old style network configuration as described in Networking#Interfaces. However some distributions come with NetworkManager that provides a working standard configuration. Here some tricks to do non-standard things with it.

Configuration is stored in /etc/NetworkManager/system-connections/ in a file per connection.

To specify addresses use below. In the ipv6 section put auto to have the full SLAAC configurationon the interfaces to. With manual only the addresses specified and the routes provided my Route Advertisement are configured.

[ipv4]
address1=<CIDR>, <gateway>
dns=<DNSserverIP>;
dns-search=<search domain>;
method=manual

[ipv6]
addr-gen-mode=default
address1=<CIDR>,<gateway>
dns=<DNSserverIP>;
dns-search=<serach domain>;
method=auto