Docstoc

Microsoft PowerPoint - Dynamips

Document Sample
Microsoft PowerPoint - Dynamips Powered By Docstoc
					Dynamips
         What is Dynamips?
• IOS virtualization software
  – Similar to Virtual PC and VMWare which is
    virtualization software for Windows/Linux
• Emulates router hardware
  – Not a router “simulator”
• Allows booting of actual IOS image
  – Supports all features native to IOS
 What do I need to run Dynamips?
• Windows / Mac / Linux PC
• Dynamips “hypervisor”
• Dynagen
  – Dynamips is included in Dynagen installer
    package
• IOS images
• Terminal emulation software
  – Putty / SecureCRT
Official Dynagen Website
Dynagen Package Download
Winpcap Official Website
Winpcap Download
      Installation of Dynagen
• Install Winpcap
• The Windows Installer Package of
  Dynagen contains:
  – Dynamips package
  – Dynagen package
Winpcap installation
Winpcap Installation
 Installation of Dynagen
Windows Installer Package
 Installation of Dynagen
Windows Installer Package
      Desktop icons
after Dynagen Installation
                    Network File
• Dynagen uses a single “network file” to describe
  the configuration of all the routers, switches, and
  interconnections between them.
                             Note:
                             Dynagen and Dyanamips can be run
                             on the same or different machines.

                             Network file
                                                    Running
                           run by Dynagen           Dynamips
     Network File
     …..
     …….
     ……..
                                                    Running
                                                    Dynamips
     Network File: Comments
• Any line prefaced with a “#” is a comment.
  It is ignored by dynagen
• Example:

 # Lab N3 Setup on Dynamips/Dynagen
             Network File:
      Location of Dynamips Host
• The first section specifies the host that dynamips
  is running on
• Example 1: Dynamips running on local machine
  with default TCP port 7200
    [localhost]


• Example 2: Dynamips running on remote host
  192.168.100.100 using port 7201
    [192.168.100.100:7201]
                Network File:
            Location of IOS Image
• The image keyword is used to specify the
  location of the IOS firmware to be run by
  Dynamips
• Note that the image is located at the Emulator
  host, NOT on the host running Dynagen.
• Example:
  image = D:\MyDir\Dynamips\images\c3640-telco-mz.124-13.image
  # On Linux / Unix use forward slashes:
  # image = /opt/images/c3640-telco-mz.124-13.image
              Router Instances
• Each virtual router instances is named by the
  ROUTER keyword
• The instance name will be shown on
  management console
• Example:


  [[ROUTER R1]]
  …..

  [[ROUTER R2]]
  …..
                 Example-1.net
[localhost:7201]
workingdir = D:\MyDir\Dynamips\Example-1\

[[3640]]
image = D:\MyDir\Dynamips\images\c3640-telco-mz.124-13.image
ram = 96

[[ROUTER R1]]
console = 2001
model = 3640
f0/0 = R2 f0/0
f1/0 = R2 f1/0

[[ROUTER R2]]
console = 2002
model = 3640
                   Example-2.net
[localhost:7201]
workingdir = D:\MyDir\Dynamips\Example-2\

[[3640]]
image = D:\MyDir\Dynamips\images\c3640-telco-mz.124-13.image
ram = 96

[[ROUTER R1]]
console = 2001
model = 3640
f0/0 = LAN 1
f1/0 = LAN 2

[[ROUTER R2]]
console = 2002
model = 3640
f0/0 = LAN 1
f1/0 = LAN 2
                    Example-3.net
[localhost:7201]
workingdir = D:\MyDir\Dynamips\Example-3\

[[3640]]
image = D:\MyDir\Dynamips\images\c3640-telco-mz.124-13.image
ram = 96

[[ETHSW SW]]
1 = access 1
2 = access 2
3 = access 1
4 = access 2

[[ROUTER R1]]
console = 2001
model = 3640
f0/0 = SW 1
f1/0 = SW 2

[[ROUTER R2]]
console = 2002
model = 3640
f0/0 = SW 3
f1/0 = SW 4
                  Example-4.net
[localhost:7201]
workingdir = D:\MyDir\Dynamips\Example-4\

[[3640]]
image = D:\MyDir\Dynamips\images\c3640-telco-mz.124-13.image
ram = 96

[[FRSW FR]]
1:102 = 2:201

[[ROUTER R1]]
console = 2001
model = 3640
S0/0 = FR 1

[[ROUTER R2]]
console = 2002
model = 3640
S0/0 = FR 2
       Running a Lab: Step 1
1. Startup Dynamips Server
   Execute: MyDir\Dynamips\0DynamipsServer0.bat
   The script startup dynamips server at port 7201
       Running a Lab: Step 2
2. Open the .net file using Dynagen
Run .net file by dynagen
      Dynamips has high CPU loading




•   Dynamips does not know when the virtual router instance is idle and when it is
    performing useful work.
•   The “idlepc” command analyze a running virtual router instance to determine the
    code that represent an idle loop in IOS.
•   Once applied, Dynamips emulator can be freed for other router instance when it
    is in the idle loop.
•   This signifcantly reduce the CPU consumption.
Idlepc value
• After restart the dynagen, the CPU loading for dynamips
  is reduced a lot…
• Start R2 in management console
• Type “?” in management console to view the available
  commands
• Type “list” to verify the status of each router instance
          Basic Router Configuration
    • Configure R1 & R2 as shown below
    • Issue PING at R2 to test for the connectivity

                                                 R2 Terminal




R1 Terminal
                 MyDir.zip
• In each lab., a file called “MyDir.zip” has
  been provided. The file provides the
  necessary files to run the Router
  Emulation
• It also come with NVRAM files which
  contains the preconfigured setting.

				
DOCUMENT INFO