Dynamips Tutorial 11032010
Dynamips Tutorial 11032010
Tutorial
Daniel Pea
Channel SE Cisco Chile
[email protected]
Cisco Confidential
Agenda
Introduction: What are Dynamips and GNS3?
Part I: Getting Started with Dynamips/GNS3
Cisco Confidential
Cisco Confidential
autostart = False
[localhost:7200]
workingdir = C:\DOCUME~1\danpena\LOCALS~1\Temp
udp = 10000
Hypervisor #1
[[7200]]
image = C:\Program Files\GNS3\C7200-IK.BIN
idlepc = 0x608ab510
ghostios = True
[[FRSW FR2]]
2:103 = 3:102
Frame Relay
2:104 = 4:102
3:104 = 4:103
[[ROUTER R3]]
console = 2003
slot1 = PA-A1
a1/0 = ATM1 3
slot2 = PA-4T+
s2/0 = FR2 3
Router Template
Parameters
Router R3 Parameters
Switch
[localhost:7201]
workingdir = C:\DOCUME~1\danpena\LOCALS~1\Temp
udp = 10100
Hypervisor #2
Router Template
Parameters
Router R4 Parameters
[[7200]]
image = C:\Program Files\GNS3\C7200-IK.BIN
idlepc = 0x608ab510
ghostios = True
[[ROUTER R4]]
console = 2004
slot1 = PA-A1
a1/0 = ATM1 4
slot3 = PA-4T+
s3/0 = FR2 4
[[ATMSW ATM1]]
3:104 = 4:103
4:103 = 3:104
Cisco Confidential
(contd)
ATM Switch
5
GNS3 provides
GNS3
was developed
Jeremy Grossmann.
Cisco Confidential
primarily
by
6
Cisco Confidential
Cisco Confidential
Idle PC is a parameter that helps Dynamips to emulate virtual routers idle CPU
state. With an incorrect value your CPU will run at around 60-100% for just one
router. With the correct value your CPU will run at 1-10% for just one router.
This value is tied to the IOS image you are using. If you change IOS image
release, youll need a new Idle PC value.
If you change dynamips/dynagen version, you might also need to find a new
good Idle PC value for each IOS image.
Cisco Confidential
Right click on the router and select Idle PC from menu (see the picture). Choose an Idle
PC value and see if the CPU utilization is improved. If not, try again with another value.
Note that you can potentially ignore values with *, because most other non * values are
good too.
10
If one router with a good Idle PC value is using 10% of CPU, then you can run maximum
of 10 routers with that IOS image (but 9 is better), until performance drastically hinders.
After you start a topology, your CPU utilization will be high. Connect to every router and
get to Router> prompt by hitting <enter> a few times. Once you get a prompt on every
router, CPU utilization will drop.
Configure exec-timeout 0 0 under line con 0 to prevent consoles from timing out which
will cause CPU to go back to 100% until you reconnect to every router.
Cisco Confidential
11
Cisco Confidential
12
Resources
GNS3: http://www.gns3.net
GNS3s Wiki site: http://wiki.gns3.net
Dynamips: http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator
Dynamips Blog: http://www.ipflow.utc.fr/blog
Dynagen: http://dyna-gen.sourceforge.net
Virtual PC Sim: http://wiki.freecode.com.cn/doku.php?id=wiki:vpcs
Forum: http://7200emu.hacki.at/index.php
Tutorials: http://www.blindhog.net
Cisco Confidential
13
Cisco Confidential
Dynamips Tutorial
Cisco Confidential
Sub main
crt.window.caption =
crt.arguments(0)
End Sub
Cisco Confidential
16
Dynamips Tutorial
Cisco Confidential
Dynamips Tutorial
Cisco Confidential
Dynamips Tutorial
Cisco Confidential
Cisco Confidential
20
Dynamips Tutorial
Cisco Confidential
Dynamips Tutorial
Cisco Confidential
Cisco Confidential
23