Set up static ip address for Ubuntu server
Just installed Ubuntu server edition on my VMware, so I figured I need to access this VM using ssh, then I better set up the static ip address for this server. So I tried to ask ChatGPT, did not work out very well. Then googled this post and it helped me a lot:
1 | # Using ip addr show to see the NIC, mine is eth33 |
After editing the file, apply the changes, using this command
1 | sudo netplan apply |
In my case, there were some warnings popped out, but it did not matter.
Then verify the ip address:
1 | ip addr show ens33 |
- Title: Set up static ip address for Ubuntu server
- Author: StoneHoo
- Created at : 2024-01-12 21:18:33
- Updated at : 2024-11-06 19:20:06
- Link: https://www.ozak.ca/2024/01/12/Set-up-static-ip-address-for-Ubuntu-server/
- License: This work is licensed under CC BY-NC-SA 4.0.
Comments