AI, ML, Development + Cisco Learning Blog Learning about Machine Learning, Artificial Intelligence, related devlopment topics and formerly Routing and Switching, Datacenter, Security and other topics, CCIE #23664, Frank Wagner

18. Januar 2007

dynagen tuning / idlepc values

Filed under: dynamips — ocsic @ 16:34

I had to adjust the idlepc values for dynamips.

This is how you do it.

First try to figure out, if there are some presets in the dynagen.net ini file for all routers or for single routers. If there are preconfigured values, these values are likely not to match your current system.

Uncomment them and calculted your own.

This can be done by starting dynagen:

fu@lap:~/internetworkexpert> dynagen router-config.net

Reading configuration file…

Network successfully started

Dynagen management console for Dynamips

=> start R1
100-C3600 ‚R1‘ started
=> idlepc get R1
Please wait while gathering statistics…
Select the values that match your system best.

Starting „xosview“ for example, gives you an impression on how the improvement will be.

I adjusted each router one by one. Improvment was for me by falling from 100% cpu usage to about 20% for one router.
When adjusted the new value should be saved with „idlepc save R1“, then it’s stored in the config file.

I can start all 13 instances with 2 GB Ram. Things take a while on my 1.6 Mhz mobile processor, but they will start up. I haven’t done testing complex labs until now. But this will follow in a few days.

dynamips / dynagen IE v4 switch setup

Filed under: dynamips — ocsic @ 15:35

I have done some documenting the new switch layout someone posted on groupstudy.

Switch topology
These are the crossover connections for the four switches.

Here is the corresponding dynagen configfile:

###############################################################################
#
# Internetwork Expert Routing & Switching topology mappings for dynamips/dynagen
# by: Brian McGahan, CCIE #8593
# bmcgahan@internetworkexpert.com
#
# For more information:
# Dynamips: http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator
# Dynagen: http://dyna-gen.sourceforge.net/
# Hackis Forum: http://hacki.at/7200emu/index.php
# Internetwork Expert’s Forum: http://forum.internetworkexpert.com
#
###############################################################################

##################################################
#
# Define global router parameters for instance 1
#
##################################################

autostart = False
[localhost:7200]

workingdir = /home/frank/internetworkexpert/working

ghostios = true

[[3640]]
#
# Specify 3640 IOS image on Windows here:
#image = C:\Program Files\Dynamips\images\c3640-jk9o3s-mz.123-14.T7.extracted.bin
image = /opt/dyna/image
#
# Specify 3640 IOS image on Linux here:
# image = /ios/c3640-jk9o3s-mz.123-14.T7.extracted.bin
#
ram = 128
disk0 = 0
disk1 = 0
# Choose an idlepc value from the below
# idlepc = 0x60530870
# idlepc = 0x60530890
# idlepc = 0x60530a58
# idlepc = 0x60530abc
# idlepc = 0x605310c4
# idlepc = 0x605e92e8
# idlepc = 0x605e9364
# idlepc = 0x60531394
# idlepc = 0x605313d0
# idlepc = 0x605313ec
mmap = True

###########################
#
# Define router instances
#
###########################

[[Router R1]]
model = 3640
autostart = False
slot0 = NM-1FE-TX
slot1 = NM-4T
F0/0 = SW1 F1/1
S1/0 = FRSW 1
cnfg = /home/frank/internetworkexpert/initial.configs/R1.initial.config.txt
idlepc = 0x6042a3ac

[[Router R2]]
model = 3640
autostart = False
slot0 = NM-1FE-TX
slot1 = NM-4T
F0/0 = SW1 F1/2
S1/0 = FRSW 2
cnfg = /home/frank/internetworkexpert/initial.configs/R2.initial.config.txt
idlepc = 0x6042a3ac

[[Router R3]]
model = 3640
autostart = False
slot0 = NM-4E
slot1 = NM-4T
S1/0 = FRSW 3
S1/1 = FRSW 13
S1/2 = R1 S1/1
S1/3 = R2 S1/1
E0/0 = SW1 F1/3
E0/1 = SW3 F1/3
cnfg = /home/frank/internetworkexpert/initial.configs/R3.initial.config.txt
idlepc = 0x6042a3ac

[[Router R4]]
model = 3640
autostart = False
slot0 = NM-4E
slot1 = NM-4T
E0/0 = SW2 F1/4
E0/1 = SW4 F1/4
S1/0 = FRSW 4
S1/1 = R5 S1/1
cnfg = /home/frank/internetworkexpert/initial.configs/R4.initial.config.txt
idlepc = 0x605570dc

[[Router R5]]
model = 3640
autostart = False
slot0 = NM-4E
slot1 = NM-4T
E0/0 = SW1 F1/5
E0/1 = SW3 F1/5
S1/0 = FRSW 5

cnfg = /home/frank/internetworkexpert/initial.configs/R4.initial.config.txt
idlepc = 0x60555cc0

[[Router R6]]
model = 3640
autostart = False
slot0 = NM-4E
slot1 = NM-4T
E0/0 = SW2 F1/6
E0/1 = SW4 F1/6
S1/0 = FRSW 6
cnfg = /home/frank/internetworkexpert/initial.configs/R5.initial.config.txt         idlepc = 0x60555efc          [[Router SW1]]         model = 3640         autostart = False         slot1 = NM-16ESW         slot2 = NM-16ESW         F2/1 = SW2 F2/1         F2/2 = SW2 F2/2         F2/3 = SW2 F2/3         F2/4 = SW3 F2/1         F2/5 = SW3 F2/2         F2/6 = SW3 F2/3         F2/7 = SW4 F2/1         F2/8 = SW4 F2/2         F2/9 = SW4 F2/3         cnfg = /home/frank/internetworkexpert/initial.configs/R6.initial.config.txt         idlepc = 0x60555efc   ################################################## # # Define global router parameters for instance 2 # ##################################################  [localhost:7201]    # Talk to the 2nd dynamips process on port 7201     udp = 11000    # Change the base udp port to 11000 (the default is 10000)           workingdir = /home/frank/internetworkexpert/working          [[3640]]         #         # Specify 3640 IOS image on Windows here:         #image = C:Program FilesDynamipsimagesc3640-jk9o3s-mz.123-14.T7.extracted.bin         image = /opt/dyna/image         #         # Specify 3640 IOS image on Linux here:         # image = /ios/c3640-jk9o3s-mz.123-14.T7.extracted.bin         #         ram = 128         disk0 = 0         disk1 = 0         # Choose an idlepc value from the below         # idlepc = 0x60530870         # idlepc = 0x60530890         # idlepc = 0x60530a58         # idlepc = 0x60530abc         # idlepc = 0x605310c4         # idlepc = 0x605e92e8         # idlepc = 0x605e9364         # idlepc = 0x60531394         # idlepc = 0x605313d0         # idlepc = 0x605313ec         mmap = True               ###########################     #     # Define router instances     #     ###########################          [[Router SW2]]         model = 3640         console = 2007         autostart = False         slot1 = NM-16ESW         slot2 = NM-16ESW         F2/4 = SW3 F2/4         F2/5 = SW3 F2/5         F2/6 = SW3 F2/6         F2/7 = SW4 F2/4         F2/8 = SW4 F2/5         F2/9 = SW4 F2/6         cnfg = /home/frank/internetworkexpert/initial.configs/SW2.initial.config.txt         idlepc = 0x60555cc0          [[Router SW3]]         model = 3640         console = 2011         autostart = False         slot1 = NM-16ESW         slot2 = NM-16ESW         F2/7 = SW4 F2/7         F2/8 = SW4 F2/8         F2/9 = SW4 F2/9         cnfg = /home/frank/internetworkexpert/initial.configs/SW3.initial.config.txt         idlepc = 0x60555c98          [[Router SW4]]         model = 3640         console = 2012         autostart = False         slot1 = NM-16ESW         slot2 = NM-16ESW         cnfg = /home/frank/internetworkexpert/initial.configs/SW4.initial.config.txt         idlepc = 0x60555e8c               [[Router BB1]]         model = 3640         console = 2008         autostart = False         slot1 = NM-4T         S1/0 = BB3 S1/0         S1/1 = FRSW 21         cnfg = /home/frank/internetworkexpert/initial.configs/BB1.initial.config.txt         idlepc = 0x60521bc8          [[Router BB2]]         model = 3640         console = 2009         autostart = False         slot0 = NM-4E         E0/0 = SW2 F1/10         cnfg = /home/frank/internetworkexpert/initial.configs/BB2.initial.config.txt         idlepc = 0x60521bc8          [[Router BB3]]         model = 3640         console = 2010         autostart = False         slot0 = NM-4E         slot1 = NM-4T         E0/0 = SW1 F1/10         cnfg = /home/frank/internetworkexpert/initial.configs/BB3.initial.config.txt         idlepc = 0x605568e8          #    [[Router TermServ]]     #        model = 3640     #        console = 2012     #        autostart = False     #     # Specify your local host's loopback here from the network device list     # Too add a loopback in windows:     # http://support.microsoft.com/kb/839013     #     # E0/0 = NIO_gen_eth:DeviceNPF_{4065B11C-2A6C-4FD2-8204-A12A9A8328A4}     #        cnfg = /home/frank/internetworkexpert/initial.configs/TermServ.initial.config.txt
[[FRSW FRSW]]
# R1 to FRSW
1:102 = 2:201
1:103 = 3:301
1:113 = 13:311
1:104 = 4:401
1:105 = 5:501
# R2 to FRSW
2:203 = 3:302
2:213 = 13:312
2:204 = 4:402
2:205 = 5:502
# R3 to FRSW
3:304 = 4:403
3:305 = 5:503
13:314 = 4:413
13:315 = 5:513
# R4 to FRSW
4:405 = 5:504
# R6 to FRSW
6:51 = 21:51
6:100 = 21:100
6:101 = 21:101
6:201 = 21:201
6:301 = 21:301
6:401 = 21:401
	
« Newer Posts

Powered by WordPress