FW: 7200 router emulator

From: Henk de Tombe (henk.de.tombe@qi.nl)
Date: Fri Jan 27 2006 - 06:57:26 GMT-3


Hi,

My Email didn't reach the group. Just wanted to post some more tips about
the emulator,

Regards,
Henk

-----Oorspronkelijk bericht-----
Van: Henk de Tombe
Verzonden: donderdag 26 januari 2006 06:59
Aan: 'Ridney Laudiano'; Henk de Tombe; ccielab@groupstudy.com
Onderwerp: RE: 7200 router emulator

Hi,

Some people have trouble to get the routers communicating with each other.
I've seen this at my pc also:

- Start the routers up sequentially, not parallel.

- If you start one up, check with netstat -na (windows) if you see a mapping
to 0.0.0.0:100001 or whatever UDP port number you use. If you start your
second router check for another mapping to the other UDP port, e.g. 10002.
Sometimes the UDP portnumber is not mapped correctly. If you don't see a
"mapping", use other ports, that helped for me.

- After the routers are booted, and you've configured ip addresses it takes
some time before you can ping your neighbor. You can check the CDP table if
you've got CDP neighbors on both sides. If you've got CDP neighbors on both
sides the UDP ports are mapped ok, and sending ICMP packets should be fine.

- I've been playing around with the -r (allocate RAM) to see what happen.
128 MB will start up but works slow, the default 256 MB is ok, but
allocating 384 MB of RAM seem to work better when the routers are booted

Regards,
Henk

-----Oorspronkelijk bericht-----
Van: Ridney Laudiano [mailto:ridneylaudiano@gmail.com]
Verzonden: woensdag 25 januari 2006 15:43
Aan: Henk de Tombe; ccielab@groupstudy.com
Onderwerp: Re: 7200 router emulator

Henk, how did you make the two routers communicate? I tried to play with it
but i couldn't ping the ethernet interfaces even with ip addresses only
configured on them.

dynamips -t npe-400 -p 0:C7200-IO-FE:udp:111:127.0.0.1:222 C7200-IK.bin
dynamips -t npe-400 -p 0:C7200-IO-FE:udp:222:127.0.0.1:111 C7200-IK.bin

Thanks for sharing this information. Great program :)

Regards,

Ridney

On 1/24/06, Henk de Tombe <henk.de.tombe@qi.nl> wrote:
> Hi Group,
>
> I've found something that might be interesting for you.
> http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator
>
> From this site you can download an emulator for booting a 7200 IOS. If
> you boot two IOS images from two emulators you can setup some
> communicating between these routers. See the output below:
>
>
> Rack1R2#sh ver
> Cisco IOS Software, 7200 Software (C7200-JK9O3S-M), Version 12.4(5a),
> RELEASE SO FTWARE (fc3) Technical Support:
> http://www.cisco.com/techsupport Copyright (c) 1986-2006 by Cisco
> Systems, Inc.
> Compiled Sat 14-Jan-06 00:25 by alnguyen
>
> ROM: ROMMON Emulation Microcode
> BOOTLDR: ROMMON
> Rack1R2 uptime is 0 minutes
> System returned to ROM by unknown reload cause - suspect
> boot_data[BOOT_COUNT] 0 x0, BOOT_COUNT 0, BOOTDATA 19 System image
> file is "tftp://255.255.255.255/unknown"
>
> [output removed]
>
> Booting the router:
> C:\Temp\cygwin>dynamips -t npe-400 -r 128 -p
> 0:C7200-IO-FE:udp:10001:127.0.0.1:10002 c7200-jk9o3s-mz.124-5a.bin
> Cisco 7200 Simulation Platform (version 0.2.3a-x86) Copyright (c)
> 2005,2006 Christophe Fillot.
>
> Virtual RAM size set to 128 MB.
> IOS image file: c7200-jk9o3s-mz.124-5a.bin
>
> C7200: Warning, no MAC address set.
>
> CPU0 Device list:
> ram : 0x000000000000 (0x08000000)
> rom : 0x00001fc00000 (0x00400000)
> remote_ctrl : 0x000011000000 (0x00001000)
> bootflash : 0x00001a000000 (0x00800000)
> nvram : 0x00001e000000 (0x00020000)
> zero : 0x00001f000000 (0x00c00000)
> mp_fpga : 0x00001e800000 (0x00040000)
> io_fpga : 0x00001e840000 (0x00001000)
> pci_io : 0x000100000000 (0x00200000)
> gt64120 : 0x000014000000 (0x00001000)
> C7200-IO-FE(0) : 0x000048000000 (0x00800000)
>
> PCI Bus "MB0/MB1" Device list:
> clpd6729 : ID 1013:1100, Bus 2, Dev. 16, Func. 0
> C7200-IO-FE(0) : ID 1011:0009, Bus 1, Dev. 0, Func. 0, IRQ: 2
> dec21150 : ID 1011:0023, Bus 0, Dev. 9, Func. 0
> dec21150 : ID 1011:0023, Bus 0, Dev. 8, Func. 0
> dec21150 : ID 1011:0023, Bus 0, Dev. 7, Func. 0
> dec21050 : ID 1011:0001, Bus 0, Dev. 1, Func. 0
> gt64120 : ID 11ab:4620, Bus 0, Dev. 0, Func. 0
>
> PCI Bus "MB2" Device list:
> dec21150 : ID 1011:0023, Bus 0, Dev. 9, Func. 0
> dec21150 : ID 1011:0023, Bus 0, Dev. 8, Func. 0
> dec21150 : ID 1011:0023, Bus 0, Dev. 7, Func. 0
>
> Loading ELF file 'c7200-jk9o3s-mz.124-5a.bin'...
> * Adding section at virtual address 0x80008000 ELF entry point:
> 0x80008000
>
> Starting simulation (CPU0 PC=0xffffffffbfc00000), JIT is enabled.
> Cisco 7200 (Predator) ROMMON emulation microcode.
>
> Launching IOS image at 0x80008000...
> Self decompressing the image :
> #################################################
> ######################################################################
> ######
> ####
> ######################################################################
> ######
> ####
> ######################################################################
> ######
> ####
> ################################## [OK]
>
>
> To see if it really emulates an IOS image I configured some basic
> features between between the two routers. See the output below:
>
> Rack1R1#sh ip ospf neigh
>
> Neighbor ID Pri State Dead Time Address
Interface
> 172.16.2.2 1 FULL/DR 00:00:29 194.151.50.2
> FastEthernet0/
> 0
> Rack1R1#sh ip ro
> Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
> D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
> N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
> E1 - OSPF external type 1, E2 - OSPF external type 2
> i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS
level-2
> ia - IS-IS inter area, * - candidate default, U - per-user
> static route
> o - ODR, P - periodic downloaded static route
>
> Gateway of last resort is 194.151.50.2 to network 0.0.0.0
>
> 172.16.0.0/24 is subnetted, 1 subnets
> C 172.16.1.0 is directly connected, Loopback1
> 150.1.0.0/16 is variably subnetted, 2 subnets, 2 masks
> C 150.1.1.0/24 is directly connected, Loopback0
> O 150.1.2.2/32 [110/2] via 194.151.50.2, 00:01:15, FastEthernet0/0
> C 194.151.50.0/24 is directly connected, FastEthernet0/0
> S* 0.0.0.0/0 [1/0] via 194.151.50.2
>
>
>
> Rack1R1#sh crypto is sa
> dst src state conn-id slot status
> 194.151.50.2 194.151.50.1 QM_IDLE 1 0 ACTIVE
>
> Rack1R1#sh ip bgp summ
> BGP router identifier 150.1.1.1, local AS number 65512 BGP table
> version is 1, main routing table version 1
>
> Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down
> State/PfxRcd
>
> 150.1.2.2 4 65520 4 4 1 0 0 00:00:59
0
>
>
>
> Rack1R1#ping 224.222.222.222
>
> Type escape sequence to abort.
> Sending 1, 100-byte ICMP Echos to 224.222.222.222, timeout is 2 seconds:
>
> Reply to request 0 from 194.151.50.2, 1 ms
>
>
>
> Rack1R1#sh ip pim rp map
> PIM Group-to-RP Mappings
>
> Group(s) 224.0.0.0/4
> RP 150.1.2.2 (?), v2v1
> Info source: 150.1.2.2 (?), elected via Auto-RP
> Uptime: 00:00:31, expires: 00:02:23
>
>
> Rack1R1#sh run
> Building configuration...
>
> Current configuration : 1663 bytes
> !
> version 12.4
> service timestamps debug datetime msec service timestamps log datetime
> msec no service password-encryption !
> hostname Rack1R1
> !
> boot-start-marker
> boot-end-marker
> !
> !
> no aaa new-model
> !
> resource policy
> !
> !
> !
> ip cef
> no ip domain lookup
> no ip dhcp use vrf connected
> !
> ip dhcp pool Rack1R1
> network 192.168.1.0 255.255.255.0
> default-router 192.168.1.1
> !
> !
> ip multicast-routing
> !
> !
> !
> !
> !
> !
> !
> !
> !
> !
> !
> !
> !
> !
> !
> !
> !
> !
> crypto isakmp policy 1
> hash md5
> authentication pre-share
> crypto isakmp key hdt address 194.151.50.2 !
> !
> crypto ipsec transform-set ipsec esp-3des esp-md5-hmac !
> crypto map ipsec 1 ipsec-isakmp
> set peer 194.151.50.2
> set transform-set ipsec
> match address 100
> !
> !
> !
> !
> interface Loopback0
> ip address 150.1.1.1 255.255.255.0
> !
> interface Loopback1
> ip address 172.16.1.1 255.255.255.0
> !
> interface FastEthernet0/0
> ip address 194.151.50.1 255.255.255.0 ip pim sparse-mode no ip
> route-cache cef no ip route-cache duplex half crypto map ipsec !
> router ospf 1
> log-adjacency-changes
> network 150.1.1.1 0.0.0.0 area 0
> network 194.151.50.1 0.0.0.0 area 0
> !
> router bgp 65512
> no synchronization
> bgp router-id 150.1.1.1
> bgp log-neighbor-changes
> neighbor 150.1.2.2 remote-as 65520
> neighbor 150.1.2.2 ebgp-multihop 255
> neighbor 150.1.2.2 update-source Loopback0 no auto-summary !
> ip route 0.0.0.0 0.0.0.0 194.151.50.2
> !
> no ip http server
> no ip http secure-server
> !
> ip pim autorp listener
> !
> access-list 100 permit ip 172.16.1.0 0.0.0.255 172.16.2.0 0.0.0.255
> access-list 100 deny ip any any
> !
> !
> !
> !
> control-plane
> !
> !
> !
> !
> !
> !
> gatekeeper
> shutdown
> !
> !
> line con 0
> stopbits 1
> line aux 0
> stopbits 1
> line vty 0 4
> login
>
>
> The syntax I use is:
> dynamips -t npe-200 -p 0:C7200-IO-FE:udp:10002:127.0.0.1:10001
> c7200-jk9o3s-mz.124-5a.bin
> dynamips -t npe-400 -p 0:C7200-IO-FE:udp:10001:127.0.0.1:10002
> c7200-jk9o3s-mz.124-5a.bin
>
> With matching source and destination UDP ports the Interfaces can
> communicatie via the loopback interface of your PC. If you use windows
> please make sure to start every "7200" router from a different directory.
>
> I think that this emulator can be a great help for our study to become
> a CCIE.
>
> Regards,
> Henk
>
> ______________________________________________________________________
> _ Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Wed Feb 01 2006 - 07:45:50 GMT-3