Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
blocks:server:advanced_server_configuration:advanced_network_configuration [2019-10-25 14:00]
mattias
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 intrefaces, vlans and bonds will require the actual Netplan .yaml files to be edited. +Multiple interfaces, vlans and bonds will require the actual Netplan .yaml files to be edited. 
  
-The configuration files is kept in etc/netplan and logged in as administrator+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>  <code> 
 network: network:
-    ethernets: +  version: 2 
-        eno1+  renderer: networkd 
-            dhcp4: true</code> +  ethernets: 
-             +    enp3s0
-This incredibly simple configuration tells the system that the eth0 device is to be brought up using DHCP4. Netplan also supports DHCPv6, as well as static IPs, setting routes, etc+      dhcp4: true 
-             +            </code> 
-             +                    
-      [[https://netplan.io/examples|External Link]]+ :!: 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> 
 +