PG1X

My Knowledge Base

User Tools

Site Tools


tech:server:linux:ubuntu:networking:networking

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tech:server:linux:ubuntu:networking:networking [2019/07/18 22:21]
wnoguchi
tech:server:linux:ubuntu:networking:networking [2019/08/13 10:16] (current)
wnoguchi
Line 20: Line 20:
 ===== Ubuntu 18.04 Bionic ===== ===== Ubuntu 18.04 Bionic =====
  
-Using Netplan. YAML based networking configuration.+  - [[.:​netplan:​netplan]]
  
-  - [[https://​netplan.io/​|netplan.io]] +===== Ubuntu 18.04 or later DNS =====
-  - [[https://​netplan.io/​examples|Examples | netplan.io]] +
- +
-==== Memo ==== +
- +
-  * ''/​etc/​cloud/​cloud.cfg.d/​50-curtin-networking.cfg''​ +
-  * ''/​etc/​netplan/​50-cloud-init.yaml''​ +
-  * ''/​etc/​netplan/​01-netcfg.yaml''​ +
-  * ''/​etc/​netplan/​01-network-manager-all.yaml''​ +
- +
-original  +
- +
-<file yaml /​etc/​netplan/​50-cloud-init.yaml>​ +
-network: +
-  ethernets:​ +
-    ens33: +
-      addresses: [] +
-      dhcp4: true +
-      optional: true +
-  version: 2 +
-</​file>​ +
- +
-==== Static IP ==== +
- +
-This networking renderer assume ''​systemd-networkd''​. +
- +
-<​code>​ +
-sudo mv /​etc/​netplan/​50-cloud-init.yaml /​etc/​netplan/​01-netcfg.yaml +
-sudo vim /​etc/​netplan/​01-netcfg.yaml +
-</​code>​ +
- +
-<file yaml /​etc/​netplan/​01-netcfg.yaml>​ +
-network: +
- ​version:​ 2 +
- ​renderer:​ networkd +
- ​ethernets:​ +
-   ​ens33:​ +
-     ​dhcp4:​ no +
-     ​dhcp6:​ no +
-     ​addresses:​ [ 172.16.2.222/​24 ] +
-     ​gateway4:​ 172.16.2.1 +
-     ​nameservers:​ +
-       ​addresses:​ [ 8.8.8.8, 8.8.4.4, 1.1.1.1 ] +
-     # Static Route If you need +
-     ​routes:​ +
-       - to: 172.16.255.1/​32 +
-         via: 172.16.2.1 +
-         ​metric:​ 0 +
-</​file>​ +
- +
-<​code>​ +
-sudo netplan apply +
-</​code>​+
  
 Check ''​systemd-resolved''​ naming service. Check ''​systemd-resolved''​ naming service.
Line 119: Line 67:
                       1.1.1.1                       1.1.1.1
 </​code>​ </​code>​
- 
-  - [[https://​websiteforstudents.com/​configure-static-ip-addresses-on-ubuntu-18-04-beta/​|Configure Static IP Addresses on Ubuntu 18.04 LTS Server | Website for Students]] 
-  - [[https://​askubuntu.com/​questions/​1036266/​what-is-the-most-authoritative-file-process-for-managing-ip-addresses-on-an-18-0|networking - What is the most authoritative file/​process for managing IP addresses on an 18.04 server? - Ask Ubuntu]] 
  
tech/server/linux/ubuntu/networking/networking.txt · Last modified: 2019/08/13 10:16 by wnoguchi