Difference between revisions of "Netplan examples"
Jump to navigation
Jump to search
Line 48: | Line 48: | ||
== [[DHCP]] configuration == | == [[DHCP]] configuration == | ||
Minimal configuration file: | Minimal configuration file: | ||
− | + | ||
− | network: | + | network: |
− | + | ethernets: | |
− | + | [[eno0]]: | |
− | + | dhcp4: true | |
− | |||
Line 66: | Line 65: | ||
version: 2 | version: 2 | ||
</pre> | </pre> | ||
− | |||
− | |||
== See also == | == See also == |
Revision as of 10:05, 6 May 2021
Netplan examples, https://netplan.io/examples
/usr/share/doc/netplan/examples/
Check static.yaml
for a simple example.
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: