cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1919
Views
6
Helpful
7
Replies

How to Configure Servers/desktops in CML

adamle001
Level 1
Level 1

Can someone please explain how to configure Servers and desktops in CML. I am unable to configure network parameters for these nodes, i.e. Static IP address and mask, DFGWY, etc... I keep getting permission denied. I've also tried the Alpine setup-interfaces utility which just throws up an error after I complete the setup stating the file already exists. An example of how to configure the network settings would be great!

7 Replies 7

adamle001
Level 1
Level 1

ok I figured it out I think.

 

at the Linux command line type:

 

sudo ifconfig eth0 x.x.x.x netmask x.x.x.x

 

sudo route add default gw x.x.x.x eth0

 

I'm obviously a linux newbie. Apologies if this was obvious.

Super helpful. Thanks a lot!

How do you save the configs on the desktop?  I do that, but when I restart the lab the ip, gateway, hostname all disappear.  I know you can wipe and add the config prior to starting, but what if you already did the commands above?  I know the cisco equipment you can do copy run start, but that doesn't work for the desktop.  

Jesus Illescas
Cisco Employee
Cisco Employee

@CRay A sounds like you need to save the configuration changes to the CML lab. See https://developer.cisco.com/docs/modeling-labs/node-configuration-files/

You can extract the config https://developer.cisco.com/docs/modeling-labs/extracting-configurations/ which is handy for network devices, but not sure for a linux host.

In the end, what matters is that you save your changes on the CML lab. And since you are using the sandbox, download the CML lab you are working on to your computer given the sandbox will be wiped after your reservations is over.

 

 

 

CRay A
Level 1
Level 1

Thanks so much for replying!  So I guess I have to extract the configs, and download it on my personal computer?  And then add the lab again into the Dashboard upon logging in? 

Jesus Illescas
Cisco Employee
Cisco Employee

Yes, you need to extract the configs and save then to the CML lab. Before your reservation ends, you need to download the CML lab to your personal computer. Probably is good to do this often, just in case.
You will need to add your lab to CML when you start a new reservation, since every instance of the CML sandbox is a new one and there is no persistent between reservations.

 

Ah, gotcha, thanks so much!