02-08-2025 07:20 AM
Hello friends,
I recently started using the Cisco CML (Free) version. My main question is when i build a network topolgy with Ubuntu VMs, how can i preserve the configuration on Ubuntu Vms after they are restarted? ex. IPs, Default gateway etc. I notice when i restart the VM in CML it looses all its configuration.
For Cisco switches and routers there is a setting to prefetch the configuration which helps me save the cisco configs, but for Ubuntu VM "prefetch" is grayed out. Not sure if this is limitation of free tier CML or i am missing something.
Thank you for your help.
Nermin
Solved! Go to Solution.
02-08-2025 02:21 PM - edited 02-08-2025 02:26 PM
How are you changing the Ubuntu node's network configuration? Are you creating a yaml netplan file named with a sequence number (00-99) higher than other netplan files? If not, your new configs are possibly being overwritten by the higher order files.
02-08-2025 02:21 PM - edited 02-08-2025 02:26 PM
How are you changing the Ubuntu node's network configuration? Are you creating a yaml netplan file named with a sequence number (00-99) higher than other netplan files? If not, your new configs are possibly being overwritten by the higher order files.
02-08-2025 07:15 PM - edited 02-08-2025 08:12 PM
I was simply configuring the ip/gateway with "ip address" command. I was not aware of the netplan configuration from your post, so i did a little research and found a documentation how netplan is setup.
I then ended up adding it to the yaml configuration of the VM started it and it preserved the IP and gatway IP. I can now restart and it will preserver the configuraiton.
Thank you for your help the netplan was the keyword that i was not aware i needed to setup.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide