Deleting/Adding Static IP Addresses There are two ways to set the IP address: 1) With the 'netplan' configuration. This

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Deleting/Adding Static IP Addresses There are two ways to set the IP address: 1) With the 'netplan' configuration. This

Post by answerhappygod »

Deleting Adding Static Ip Addresses There Are Two Ways To Set The Ip Address 1 With The Netplan Configuration This 1
Deleting Adding Static Ip Addresses There Are Two Ways To Set The Ip Address 1 With The Netplan Configuration This 1 (79.5 KiB) Viewed 79 times
Deleting/Adding Static IP Addresses There are two ways to set the IP address: 1) With the 'netplan' configuration. This method is easy and persistent (meaning, after a reboot, the static address will be retained). It uses YAML files ("Yet Another Markup Language' - we won't learn this language in this course, we'll just use provided files). 2) With the 'ip' command. This method is temporary - the address is not retained in a reboot, but reverts back to the address specified by netplan. Note: Due to settings in the FAST private cloud, if we change the Desktop's IP address, we can no longer access it with an SSH Client or the 'nomachine' client. So the 'vcenter' site with a browser must be used. 1) STEPS using netplan 5.1.1 On Desktop, go to /etc/netplan. 5.1.2 List the files there. You likely have two: 01-network-manager- all.yaml and 99-netcfg-vmware.yaml The '01...' file is not used now - we'll ignore it. The '99... file is setting the address now. by Vare customization engine. 5.1.3 Make a backup copy of the '99... filetp:/etc/netplans c k '99-netcfg-vmware.yaml.bak'. View the file. I shown here. The red marks show: the interfa used and the address is statically set to '... 1 5.1.4 Edit this file and set the address to 192 5.1.5 Reboot to make the VM recognize the sudo init 6 networkd ethernets 160: dhcp4: no dhcps: no addresses: 192.168.10.13/24 gateway4: 192.168.18.1 nserver: addresses: 142.55.100.25 142.55.44.25 desktop:/etc/netplan (recall runlevel 6 is for reboot- the reboot command also works) 5.1.6 After the VM reboots, use 'ip' to verify it has the new address. Put a screenshot here showing its output: 5.1.7 Verify Desktop can ping Server01 and vice-versa.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply