It is currently Tue Feb 07, 2012 5:31 pm


All times are UTC




Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Please, add npe-g2 to gns3!
PostPosted: Sun May 30, 2010 5:14 am 
Dear Mr Jeremy,

Could you please add npe-g2? Will this feature be added in the next release?
I've tried adding it mannually to the .net file to no avail.

Thank you very much.






Top
  
 
 Post subject: Re: Please, add npe-g2 to gns3!
PostPosted: Sun May 30, 2010 6:40 am 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 798
Hi,

Unfortunately this doesn't work in Dynamips:

Code:
$ ./dynamips
Cisco Router Simulation Platform (version 0.2.8-RC2-x86)
Copyright (c) 2005-2007 Christophe Fillot.
Build date: Nov 11 2007 11:11:35

Please specify an IOS image filename
Usage: ./dynamips [options] <ios_image>

Available options:
  -H [<ip_address>:]<tcp_port> : Run in hypervisor mode

  -P <platform>      : Platform to emulate (7200, 3600, 2691, 3725, 3745, 2600 or 1700) (default: 7200)

  -l <log_file>      : Set logging file (default is dynamips_log.txt)
  -j                 : Disable the JIT compiler, very slow
  --exec-area <size> : Set the exec area size (default: 64 Mb)
  --idle-pc <pc>     : Set the idle PC (default: disabled)
  --timer-itv <val>  : Timer IRQ interval check (default: 1000)

  -i <instance>      : Set instance ID
  -r <ram_size>      : Set the virtual RAM size (default: 256 Mb)
  -o <rom_size>      : Set the virtual ROM size (default: 4 Mb)
  -n <nvram_size>    : Set the NVRAM size (default: 128 Kb)
  -c <conf_reg>      : Set the configuration register (default: 0x2102)
  -m <mac_addr>      : Set the MAC address of the chassis
                       (default: automatically generated)
  -C <cfg_file>      : Import an IOS configuration file into NVRAM
  -X                 : Do not use a file to simulate RAM (faster)
  -G <ghost_file>    : Use a ghost file to simulate RAM
  -g <ghost_file>    : Generate a ghost RAM file
  --sparse-mem       : Use sparse memory
  -R <rom_file>      : Load an alternate ROM (default: embedded)
  -k <clock_div>     : Set the clock divisor (default: 4)

  -T <port>          : Console is on TCP <port>
  -U <si_desc>       : Console in on serial interface <si_desc>
                       (default is on the terminal)

  -A <port>          : AUX is on TCP <port>
  -B <si_desc>       : AUX is on serial interface <si_desc>
                       (default is no AUX port)

  --disk0 <size>     : Set PCMCIA ATA disk0: size (default: 64 Mb)
  --disk1 <size>     : Set PCMCIA ATA disk1: size (default: 0 Mb)

  -t <npe_type>      : Select NPE type (default: "npe-200")
  -M <midplane>      : Select Midplane ("std" or "vxr")
  -p <pa_desc>       : Define a Port Adapter
  -s <pa_nio>        : Bind a Network IO interface to a Port Adapter

  -a <cfg_file>      : Virtual ATM switch configuration file
  -f <cfg_file>      : Virtual Frame-Relay switch configuration file
  -E <cfg_file>      : Virtual Ethernet switch configuration file
  -b <cfg_file>      : Virtual bridge configuration file
  -e                 : Show network device list of the host machine

<si_desc> format:
   "device{:baudrate{:databits{:parity{:stopbits{:hwflow}}}}}}"

<pa_desc> format:
   "slot:sub_slot:pa_driver"

<pa_nio> format:
   "slot:port:netio_type{:netio_parameters}"

Available C7200 NPE drivers:
  * npe-100
  * npe-150
  * npe-175
  * npe-200
  * npe-225
  * npe-300
  * npe-400
  * npe-g1 (NOT WORKING)
  * npe-g2 (NOT WORKING)

Available C7200 Port Adapter (PA) drivers:
  * C7200-IO-FE
  * C7200-IO-2FE (NOT WORKING)
  * C7200-IO-GE-E (NOT WORKING)
  * PA-FE-TX
  * PA-2FE-TX (NOT WORKING)
  * PA-GE (NOT WORKING)
  * PA-4E
  * PA-8E
  * PA-4T+
  * PA-8T
  * PA-A1
  * PA-POS-OC3
  * PA-4B (NOT WORKING)
  * PA-MC-8TE1 (NOT WORKING)

Available NETIO types:
  * unix       : UNIX local sockets
  * vde        : Virtual Distributed Ethernet / UML switch
  * tap        : Linux/FreeBSD TAP device
  * udp        : UDP sockets
  * tcp_cli    : TCP client
  * tcp_ser    : TCP server
  * gen_eth    : Generic Ethernet device (PCAP)
  * fifo       : FIFO (intra-hypervisor)
  * null       : Null device

_________________
Jeremy
GNS3 Staff


Top
 Profile  
 
 Post subject: Re: Please, add npe-g2 to gns3!
PostPosted: Sun May 30, 2010 1:38 pm 
I did see and read that line "npe-g2 (NOT WORKING)" on the dynagen homepage. But I did a test-run with c7200p-adventerprisek9-mz.124-4.XD9.bin outside gns3 and here's the result:

First of all, I unziped the bin file and get this BIN file of C7200P-A.BIN.

My net file:

Quote:
[localhost]

[[7200]]

image = /media/Disk2Part3/linuxsoftware/Dynamips/CisOS/c72xx/C7200P-A.BIN
npe = npe-g2
ram = 256
[[router R1]]
s1/0 = R2 s1/0
[[router R2]]


I then ran dynamips:

Quote:
64:~$ /media/Disk2Part3/linuxsoftware/Dynamips/dynamips-0.2.8-RC2-amd64.bin -H /media/Disk2Part3/linuxsoftware/Dynamips/CisOS/c72xx/C7200P-A.BIN
Cisco Router Simulation Platform (version 0.2.8-RC2-amd64)
Copyright (c) 2005-2007 Christophe Fillot.
Build date: Oct 14 2007 10:46:52

ILT: loaded table "mips64j" from cache.
ILT: loaded table "mips64e" from cache.
ILT: loaded table "ppc32j" from cache.
ILT: loaded table "ppc32e" from cache.
Hypervisor TCP control server started (port 7200).
Shutdown in progress...
Shutdown completed.
CPU0: carved JIT exec zone of 64 Mb into 2048 pages of 32 Kb.
C7200 instance 'R1' (id 0):
VM Status : 0
RAM size : 256 Mb
IOMEM size : 0 Mb
NVRAM size : 2048 Kb
NPE model : npe-g2
Midplane : vxr
IOS image : /media/Disk2Part3/linuxsoftware/Dynamips/CisOS/c72xx/C7200P-A.BIN

Loading ELF file '/media/Disk2Part3/linuxsoftware/Dynamips/CisOS/c72xx/C7200P-A.BIN'...
ELF entry point: 0xa000

C7200P 'R1': starting simulation (CPU0 IA=0xfff00100), JIT enabled.
CPU0: carved JIT exec zone of 64 Mb into 2048 pages of 32 Kb.
C7200 instance 'R2' (id 1):
VM Status : 0
RAM size : 256 Mb
IOMEM size : 0 Mb
NVRAM size : 2048 Kb
NPE model : npe-g2
Midplane : vxr
IOS image : /media/Disk2Part3/linuxsoftware/Dynamips/CisOS/c72xx/C7200P-A.BIN

Loading ELF file '/media/Disk2Part3/linuxsoftware/Dynamips/CisOS/c72xx/C7200P-A.BIN'...
ELF entry point: 0xa000

C7200P 'R2': starting simulation (CPU0 IA=0xfff00100), JIT enabled.


Then I ran dynagen:

Quote:
/media/Disk2Part3/linuxsoftware/Dynamips/dynagen-0.11.0/dynagen /media/Disk2Part3/linuxsoftware/Dynamips/Lab/simple2.net
Reading configuration file...

*** Warning: Starting R1 with no idle-pc value
*** Warning: Starting R2 with no idle-pc value
Network successfully loaded

Dynagen management console for Dynamips and Pemuwrapper 0.11.0
Copyright (c) 2005-2007 Greg Anuzelli, contributions Pavel Skovajsa

=> console R1
=>


I cannot copy the output on the console because it was on xterm. But you can run it. People on the 7200hacki forum had run these kinds of ioses with npe-g2.

I did configure the two routers as per the above simple net file and pings from either router were successful.

Thanks so much.


Top
  
 
 Post subject: Re: Please, add npe-g2 to gns3!
PostPosted: Sun May 30, 2010 5:27 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 798
Hi,

If you say it works, then I can add it in GNS3. I never tested it myself, when I see npe-g2 (NOT WORKING), I assumed that ... well it doesn't work ;)

Thanks,

_________________
Jeremy
GNS3 Staff


Top
 Profile  
 
 Post subject: Re: Please, add npe-g2 to gns3!
PostPosted: Sun May 30, 2010 5:31 pm 
Offline

Joined: Mon Nov 10, 2008 10:31 am
Posts: 441
Location: Slovakia
Hi,
yes, support for 7200 NPE-G2 was introduced in Dynamips 0.2.7-RC1 version. Please read more:
Quote:
http://www.ipflow.utc.fr/blog/


According to blog:
Quote:
Cisco 7200 NPE-G2: basically working (excepted integrated GigabitEthernet ports), but not recommended for common use (a lot of bugs remain)


If NPE-G2 would be implemented in GNS3 I recommended to show warning message about possible bugs and a need of using unpacked 7200p IOS.

Quote:
http://www.gns3.net/phpBB/post3726.html?hilit=7200p#p3726


Cheers,

_________________
Brezular

http://brezular.wordpress.com


Top
 Profile  
 
 Post subject: Re: Please, add npe-g2 to gns3!
PostPosted: Sun May 30, 2010 5:35 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 798
Thanks for this information and idea :)

_________________
Jeremy
GNS3 Staff


Top
 Profile  
 
 Post subject: Re: Please, add npe-g2 to gns3!
PostPosted: Sun May 30, 2010 9:08 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 798
I added npe-g2 to GNS3. You can test it by downloading the dev version on code.gns3.net

_________________
Jeremy
GNS3 Staff


Top
 Profile  
 
 Post subject: Re: Please, add npe-g2 to gns3!
PostPosted: Mon May 31, 2010 11:55 am 
So many thanks Jeremy! I'll download and test it right away.


Top
  
 
 Post subject: Re: Please, add npe-g2 to gns3!
PostPosted: Mon May 31, 2010 12:19 pm 
Sadly, this new feature is not working, Jeremy. Everything is configured correctly but when you console to the router, it will run madly as though in a loop, which is exactly as when you are running the IOS unpacked.

Thank you for your quick action and hope this bug will be ironed out soon.

Best regards,


Top
  
 
 Post subject: Re: Please, add npe-g2 to gns3!
PostPosted: Mon May 31, 2010 12:46 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 798
Hi,

I've just run it.

Code:
Router>show version
Cisco IOS Software, 7200 Software (C7200P-ADVENTERPRISEK9-M), Version 12.4(4)XD11, RELEASE SOFTWARE (fc4)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2008 by Cisco Systems, Inc.
Compiled Fri 03-Oct-08 15:52 by ccai

ROM: ROMMON Emulation Microcode
BOOTLDR: 7200 Software (C7200P-ADVENTERPRISEK9-M), Version 12.4(4)XD11, RELEASE SOFTWARE (fc4)

Router uptime is 0 minutes
System returned to ROM by unknown reload cause - suspect boot_data[BOOT_COUNT] 0x0, BOOT_COUNT 0, BOOTDATA 19
System image file is "tftp://255.255.255.255/unknown"


This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
[email protected]

Cisco 7206VXR (NPE-G2) processor (revision B) with 983040K/65536K bytes of memory.
Processor board ID 4294967295
MPC7448 CPU at 1916Mhz, Implementation 0, Rev 2.1
6 slot VXR midplane, Version 2.1

Last reset from power-on

PCI bus mb1 (Slots 1, 3 and 5) has a capacity of 600 bandwidth points.
Current configuration on bus mb1 has a total of 0 bandwidth points.
This configuration is within the PCI bus capacity and is supported.

PCI bus mb2 (Slots 2, 4 and 6) has a capacity of 600 bandwidth points.
Current configuration on bus mb2 has a total of 0 bandwidth points.
This configuration is within the PCI bus capacity and is supported.
         
Please refer to the following document "Cisco 7200 Series Port Adaptor
Hardware Configuration Guidelines" on Cisco.com <http://www.cisco.com>
for c7200 bandwidth points oversubscription and usage guidelines.


1 FastEthernet interface
3 Gigabit Ethernet interfaces
2045K bytes of NVRAM.

Configuration register is 0x2142


I downloaded the same version as you. Extracted it.

Code:
unzip -p c7200p-adventerprisek9-mz.124-4.XD11.bin > ../Documents/IOS/c7200p-adventerprisek9-mz.124-4.XD11.bin.extracted


Registered this image in GNS3 with 1024 MB of RAM (I clicked on "check for minimum RAM requirement" to know how much).

Dropped a c7200 router, started it and voilà, no crash!

However I noticed a bug when selecting a NPE (slot 0 is already occupied), I'll fix this soon.

Hope this helps.





_________________
Jeremy
GNS3 Staff


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO