Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
blocks:server:advanced_server_configuration:advanced_network_configuration [2019-10-25 13:46] mattias created |
blocks:server:advanced_server_configuration:advanced_network_configuration [2019-10-25 15:27] (current) admin Note on interface name variability |
||
---|---|---|---|
Line 3: | Line 3: | ||
In recent builds Ubuntu uses Netplan to configure the network settings. In a basic setup it is possible to use Webmin to do this. However due to some open bugs in Webmin this will not work very well in more complex setups. | In recent builds Ubuntu uses Netplan to configure the network settings. In a basic setup it is possible to use Webmin to do this. However due to some open bugs in Webmin this will not work very well in more complex setups. | ||
- | Multiple | + | Multiple |
- | The configuration files is kept in etc/netplan | + | The configuration files is kept in etc/ |
+ | To see files the yaml: | ||
+ | |||
+ | < | ||
+ | To edit a file: | ||
+ | < | ||
+ | |||
+ | | ||
+ | This incredibly simple configuration tells the system that the enp3s0 device is to be brought up using DHCP4. Netplan also supports DHCPv6, as well as static IPs, setting routes, etc. | ||
+ | |||
+ | < | ||
+ | network: | ||
+ | version: 2 | ||
+ | renderer: networkd | ||
+ | ethernets: | ||
+ | enp3s0: | ||
+ | dhcp4: true | ||
+ | </ | ||
+ | |||
+ | :!: The name //enp3s0// shown above may vary with your hardware. See available network interfaces on your computer using the // | ||
+ | |||
+ | Please have a look at more advanced examles from the [[https:// | ||
+ | |||
+ | |||
+ | To apply a new setting with automatic rollback: | ||
+ | |||
+ | < | ||
+ | |||
+ | To apply a new setting: | ||
+ | |||
+ | < | ||
+ | |||
+ | To get some debug information: | ||
+ | |||
+ | < | ||
+ | |||
+ |