Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 intrefacesVlans and bonds will require the actual Netplan .yaml files to be edited. +Multiple interfacesvlans and bonds will require the actual Netplan .yaml files to be edited. 
  
-The configuration files is kept in etc/netplan+The configuration files is kept in etc/netplan and logged in as pixi-admin using the terminal.
  
 +To see files the yaml:
 +
 +<code> ls /etc/netplan/ </code>
 +To edit a file:
 +<code> sudo nano /etc/netplan/[yourfile.yaml]</code>
 +
 +            
 +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.
 +
 +<code> 
 +network:
 +  version: 2
 +  renderer: networkd
 +  ethernets:
 +    enp3s0:
 +      dhcp4: true
 +            </code>
 +                   
 + :!: The name //enp3s0// shown above may vary with your hardware. See available network interfaces on your computer using the //ifconfig// command line program.
 +
 +Please have a look at more advanced examles from the [[https://netplan.io/examples|Netplan website.]]
 +     
 +
 +To apply a new setting with automatic rollback:
 +
 +<code> sudo netplan try </code>
 +     
 +To apply a new setting:
 +
 +<code> sudo netplan apply </code>
 +     
 +To get some debug information:
 +
 + <code> sudo netplan --debug try </code>
 +       
 +