Difference between revisions of "/usr/share/doc/netplan/examples/static.yaml"

From wikieduonline
Jump to navigation Jump to search
(Created page with " cat static.yaml network: version: 2 renderer: networkd ethernets: enp3s0: addresses: - 10.10.10.2/24 gateway4: 10.10.10.1 names...")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
+
{{lc}}
 +
[[/usr/share/doc/netplan/examples/]]static.yaml
  
 
  cat static.yaml
 
  cat static.yaml
Line 15: Line 16:
  
  
 +
== 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
 +
 +
== Related ==
 +
* https://netplan.io/examples/
  
 
== See also ==
 
== See also ==

Latest revision as of 19:29, 4 June 2022

/usr/share/doc/netplan/examples/static.yaml
cat static.yaml
network:
  version: 2
  renderer: networkd
  ethernets:
    enp3s0:
      addresses:
        - 10.10.10.2/24
      gateway4: 10.10.10.1
      nameservers:
        search: [mydomain, otherdomain]
        addresses: [10.10.10.1, 1.1.1.1]


Static IP configuration[edit]

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

Related[edit]

See also[edit]

Advertising: