Set static/DHCP IP address in ubuntu 17.10 server OS.
If you can not set static IP during or after ubuntu 17.10 installation, follow the steps below.
- We first learn interface object name;
Or
For object name example > enp0s3
2. Open the configuration file;
edit;
it is important to empty and tab in .yaml files!!!
3. update network configuration with netplan;
if we only want dhcp server;
edit .yaml file;
1
2
3
4
5
6
7
|
network:
version: 2
renderer: networkd
ethernets:
enp0s3: #object name
dhcp4: yes # dhcp v4 enable
dhcp6: yes # dhcp v6 enable (if you want)
|
if you encounter an error, for details;
No comments:
Post a Comment