User Tools

Site Tools


networking:linux:static_ip_addr

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
Next revision Both sides next revision
networking:linux:static_ip_addr [2021/08/20 12:43]
gcooper
networking:linux:static_ip_addr [2022/04/28 08:35]
gcooper
Line 47: Line 47:
 </file> </file>
  
-==== Ubuntu 18/20 (LACP Bond) ====+==== Ubuntu 18/20/22 (LACP Bond) ====
  
 <file> <file>
Line 61: Line 61:
       interfaces: [enp0s8, enp0s9]       interfaces: [enp0s8, enp0s9]
       addresses: [10.1.1.19/24]       addresses: [10.1.1.19/24]
-      gateway4: 10.1.1.1+      routes: 
 +        - to: default 
 +          via: 10.1.1.1
       nameservers:       nameservers:
-                search: [internal.domain, domain] +        search: [internal.domain, domain] 
-                addresses: [10.1.1.20, 10.1.1.21]+        addresses: [10.1.1.20, 10.1.1.21]
       parameters:       parameters:
         mode: 802.3ad         mode: 802.3ad
Line 71: Line 73:
 </file> </file>
  
-==== Ubuntu 18/20 ====+==== Ubuntu 18/20/22 (Static) ====
  
 <file> <file>
Line 77: Line 79:
 </file> </file>
  
-<note tip>To suppress (or define) the default IPv6 ''link-local'' address (''fe80::''), add this to the interface definition (same indentation as ''addresses: []''):+<note tip>To suppress (or define) the default IPv6 ''link-local'' address (''fe80::''), add this to the interface definition (same indentation as ''addresses:''):
  
 ''link-local: []'' ''link-local: []''
Line 86: Line 88:
 <file> <file>
 network: network:
-    ethernets: +  ethernets: 
-        eth0: +    eth0: 
-            addresses: [10.1.1.17/24] +      addresses: [10.1.1.17/24] 
-            gateway4: 10.1.1.1 +      routes: 
-            nameservers: +        - to: 0.0.0.0/0 
-              addresses: [10.1.1.20,10.1.1.21] +          via: 10.0.0.1 
-        eth1: +      nameservers: 
-            addresses: [10.1.9.17/24] +        addresses: [10.1.1.20,10.1.1.21] 
-            mtu: 9000 +    eth1: 
-    version: 2+      addresses: [10.1.9.17/24] 
 +        mtu: 9000 
 +version: 2
 </file> </file>
  
networking/linux/static_ip_addr.txt · Last modified: 2023/05/02 14:34 by gcooper