Changed the Name of a Dynamips router

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Post Reply
jcoeder
Posts: 1
Joined: Thu May 17, 2018 3:56 am

Changed the Name of a Dynamips router

Post by jcoeder » Sat Oct 20, 2018 12:28 am

In the UI I powered off the host and changed the name of a Cisco 3725 I had running. When I booted. I had no configuration.

I am not sure if this is a Dynamips or Eve-NG thing yet but here is why this happens. The name before was '3725' the name now is '172-31-33-250'

Here were my files before the name change:

Code: Select all

root@eve-ng:/opt/unetlab/tmp/0/03d29df2-cb51-4128-9d5d-60f27d31d8e7/6# ls -la
-rwx------ 1 root unl   4194304 Oct 19 20:05 c3725_3725_rom
-rw------- 1 root unl 134217728 Oct 17 21:51 c3725_3725_slot0
-rw------- 1 root unl 134217728 Oct 17 21:51 c3725_3725_slot1
-rwx------ 1 root unl     28672 Oct 17 21:51 c3725_3725_ssa
-rw-rw-r-- 1 root unl         0 Oct 19 20:11 c3725_default_lock
-rw-rw-r-- 1 root unl     13929 Oct 19 20:15 c3725_default_log.txt
-rw-rw-r-- 1 root unl        58 Oct 19 20:12 c3725_default_rommon_vars
-rw-rw-r-- 1 root unl         0 Oct 19 20:11 dynamips.txt
-rw-rw-r-- 1 root unl    540740 Oct 17 21:51 ilt_2014032722_mips64e
-rw-rw-r-- 1 root unl    540740 Oct 17 21:51 ilt_2014032722_mips64j
-rw-rw-r-- 1 root unl    562604 Oct 17 21:51 ilt_2014032722_ppc32e
-rw-rw-r-- 1 root unl    543616 Oct 17 21:51 ilt_2014032722_ppc32j
-rw-rw-r-- 1 root unl         0 Oct 19 20:11 .prepared
-rw-rw-r-- 1 root unl         0 Oct 19 20:11 wrapper.txt

Here are my files after the name change:

Code: Select all

root@eve-ng:/opt/unetlab/tmp/0/03d29df2-cb51-4128-9d5d-60f27d31d8e7/6# ls -la
-rwx------ 1 root unl   4194304 Oct 19 20:15 c3725_172-31-33-250_rom
-rw------- 1 root unl 134217728 Oct 19 20:11 c3725_172-31-33-250_slot0
-rw------- 1 root unl 134217728 Oct 19 20:11 c3725_172-31-33-250_slot1
-rwx------ 1 root unl     28672 Oct 19 20:11 c3725_172-31-33-250_ssa
-rwx------ 1 root unl   4194304 Oct 19 20:05 c3725_3725_rom
-rw------- 1 root unl 134217728 Oct 17 21:51 c3725_3725_slot0
-rw------- 1 root unl 134217728 Oct 17 21:51 c3725_3725_slot1
-rwx------ 1 root unl     28672 Oct 17 21:51 c3725_3725_ssa
-rw-rw-r-- 1 root unl         0 Oct 19 20:11 c3725_default_lock
-rw-rw-r-- 1 root unl     13929 Oct 19 20:15 c3725_default_log.txt
-rw-rw-r-- 1 root unl        58 Oct 19 20:12 c3725_default_rommon_vars
-rw-rw-r-- 1 root unl         0 Oct 19 20:11 dynamips.txt
-rw-rw-r-- 1 root unl    540740 Oct 17 21:51 ilt_2014032722_mips64e
-rw-rw-r-- 1 root unl    540740 Oct 17 21:51 ilt_2014032722_mips64j
-rw-rw-r-- 1 root unl    562604 Oct 17 21:51 ilt_2014032722_ppc32e
-rw-rw-r-- 1 root unl    543616 Oct 17 21:51 ilt_2014032722_ppc32j
-rw-rw-r-- 1 root unl         0 Oct 19 20:11 .prepared
-rw-rw-r-- 1 root unl         0 Oct 19 20:11 wrapper.txt
You can see how additional files were added for the new device name. '3725' vs '172-31-33-250'

Not sure which files are used for what so I cannot tell you how to rename them to get your config back, but play with it and I'm sure you can figure it out!

Just sharing some information.

Edit: It's a dynamips specific thing. Still not sure if its dynamips or eve-ng that causes the issue though.

Uldis (UD)
Posts: 5067
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: Changed the Name of a Dynamips router

Post by Uldis (UD) » Sat Oct 20, 2018 9:25 am

Dynamips has such issue that bind running cfg and NVRAM to router name.
Advice: name dynamips devices immediately after you add it on topology before first start.
Now, if you run router and did cfg change, and after change routername, nvram has changed in the name so your saved stuff left in previous name.

Solution..
After you had configured and did wr on router use export cfg.
then you can rename router as you like.
Wipe node and start, you router will boot from exported cfg..

http://www.eve-ng.net/documentation/how ... figuations

check this one.

Uldis

Post Reply