NetworkManager

From wiki
Revision as of 15:26, 16 June 2024 by Hdridder (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

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