Difference between revisions of "Netplan examples"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
  
 
  [[/usr/share/]]doc/netplan/examples/
 
  [[/usr/share/]]doc/netplan/examples/
<pre>
+
 
bonding.yaml
+
bonding.yaml
bonding_router.yaml
+
bonding_router.yaml
bridge.yaml
+
bridge.yaml
bridge_vlan.yaml
+
bridge_vlan.yaml
dhcp.yaml
+
dhcp.yaml
dhcp_wired8021x.yaml
+
dhcp_wired8021x.yaml
direct_connect_gateway.yaml
+
direct_connect_gateway.yaml
direct_connect_gateway_ipv6.yaml
+
direct_connect_gateway_ipv6.yaml
ipv6_tunnel.yaml
+
ipv6_tunnel.yaml
loopback_interface.yaml
+
loopback_interface.yaml
modem.yaml
+
modem.yaml
network_manager.yaml
+
network_manager.yaml
openvswitch.yaml
+
openvswitch.yaml
route_metric.yaml
+
route_metric.yaml
source_routing.yaml
+
source_routing.yaml
sriov.yaml
+
sriov.yaml
sriov_vlan.yaml
+
sriov_vlan.yaml
static.yaml
+
static.yaml
static_multiaddress.yaml
+
static_multiaddress.yaml
static_singlenic_multiip_multigateway.yaml
+
static_singlenic_multiip_multigateway.yaml
vlan.yaml
+
vlan.yaml
windows_dhcp_server.yaml
+
windows_dhcp_server.yaml
wireguard.yaml
+
wireguard.yaml
wireless.yaml
+
wireless.yaml
wpa_enterprise.yaml
+
wpa_enterprise.yaml
</pre>
+
 
  
 
== Static [[IP]] configuration ==
 
== Static [[IP]] configuration ==

Revision as of 06:58, 10 March 2021

Netplan examples, https://netplan.io/examples

/usr/share/doc/netplan/examples/
bonding.yaml
bonding_router.yaml
bridge.yaml
bridge_vlan.yaml
dhcp.yaml
dhcp_wired8021x.yaml
direct_connect_gateway.yaml
direct_connect_gateway_ipv6.yaml
ipv6_tunnel.yaml
loopback_interface.yaml
modem.yaml
network_manager.yaml
openvswitch.yaml
route_metric.yaml
source_routing.yaml
sriov.yaml
sriov_vlan.yaml
static.yaml
static_multiaddress.yaml
static_singlenic_multiip_multigateway.yaml
vlan.yaml
windows_dhcp_server.yaml
wireguard.yaml
wireless.yaml
wpa_enterprise.yaml


Static IP configuration

network:
  renderer: networkd
  ethernets:
    eno1:
      addresses:
         - 10.10.10.xx/24
      gateway4: 10.10.xx.1
      nameservers:
        search: your_domain.com
        addresses: [8.8.8.8], 1.1.1.1]
  version: 2


DHCP configuration

Minimal configuration file:

network:
    ethernets:
        eno0:
            dhcp4: true


network:
    ethernets:
        eth0:
            dhcp4: true
            match:
                macaddress: dc:a6:32:2c:9f:33
            set-name: eth0
    version: 2


See also

Advertising: