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 10:01]
gcooper
networking:linux:static_ip_addr [2022/04/28 08:35]
gcooper
Line 47: Line 47:
 </file> </file>
  
-==== Ubuntu 20.04 (bonded) ====+==== Ubuntu 18/20/22 (LACP Bond) ====
  
 <file> <file>
 network: network:
 +  version: 2
 +  ethernets:
 +    enp0s8:
 +      dhcp4: no
 +    enp0s9:
 +      dhcp4: no
   bonds:   bonds:
     bond0:     bond0:
-      interfaces: +      interfaces: [enp0s8enp0s9]
-      - 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: [internaldomainexternaldomain+        search: [internal.domaindomain
-                addresses: [10.1.1.20, 10.1.1.21]+        addresses: [10.1.1.20, 10.1.1.21]
       parameters:       parameters:
-        mode: balance-rr +        mode: 802.3ad 
-  ethernets+        transmit-hash-policylayer3+4 
-    enp0s8: {} +        mii-monitor-interval1
-    enp0s9: {} +
-  version2+
 </file> </file>
  
-==== Ubuntu 18.04 ====+==== Ubuntu 18/20/22 (Static) ====
  
 <file> <file>
Line 75: 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 84: 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