1. Home
  2. Knowledgebase
  3. Wanos Central Manager
  4. Static IP on WCM

Static IP on WCM

The WCM uses Netplan to set a static IP

Note:

Make a backup of the yaml file before editing.

 

Edit the yaml file and follow the template below. Administrator privilege is required to edit this file.

sudo vi /etc/netplan/50-cloud-init.yaml

 

network:
 version: 2
 ethernets:
  eth0:
  dhcp4: false
  dhcp6: false
  addresses: [STATIC IP ADDRESS]
  gateway4: GATEWAY IP
  nameservers:
   addresses: [DNS IP]

 

Sample Configuration (replace addresses, gateway4 and nameserver addresses with the appropriate IPs used in your environment)

network:
 version: 2
 ethernets:
  eth0:
  dhcp4: false
  dhcp6: false
  addresses: [192.168.1.201]
  gateway4: 192.168.1.1
  nameservers:
   addresses: [8.8.8.8]

 

Write and Quit the editor by hitting <ESC> then press and hold <SHIFT> and type :wq!

 

Apply the changes by running this command:

sudo netplan apply

 




Was this article helpful to you? Yes No

How can we help?