1. Trang chủ
  2. » Giáo Dục - Đào Tạo

Introduction to dynamips

45 22 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 45
Dung lượng 1,52 MB

Nội dung

ƒ ƒ ƒ ƒ ƒ ƒ ƒ Free and d legal l l Cisco Router emulator l software Runs reall Cisco IOS software f images Developed by Christophe Fillot from France Originally i i ll emulated l d only l Cisco i 7200 router Now can also emulate 1700, 2600, 2600XM, 3600, 3700, and d 7200 series i routers Runs on Windows XP/2000, Linux X86/64 Runs on Intell and d AMD Studying for d f CCNA, CCDP, CCNP, CCIE Routing & Switching, CCIE Security, CCIE Service Provider d (useless ( l for f CCIE Voice and d CCIE Storage) ƒ Quickly i kl test Cisco i IOS features f for f customers ƒ Test Cisco IOS configurations before d l i in deploying i production d i (QoS, ( routing, i etc.)) ƒ More powerful f l than h Cisco’s internall IOU tooll (runs only on Sun SPARC and it’s not available l bl for f public bl use)) ƒ Current version of DYNAMIPS is 0.2.8-RC2 ƒ Dynamips i website: b i ƒ http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator ƒ Download Dynamips from Chris Chris’ss blog: http://www.ipflow.utc.fr/blog Supports 1710, 1720, 1721, 1750, 1751 and d 1760 ƒ Interface f Support ƒ ƒ Onboard interfaces (according to the router model) d l) ƒ WIC-1T, WIC-2T, WIC-1ENET Supports 2610, 2611, 2620, 2621, 2610XM, 2620XM, 2621XM, 2650XM, 2651XM, 2691 ƒ Interface f Support ƒ ƒ Onboard interfaces (according to the router ƒ ƒ ƒ ƒ model) d l) WIC-1T, WIC-2T NM-1E, NM-4E, NM-1FE-TX NM-16ESW NM-4T ƒ ƒ Supports 3620, 3640, 3660 Interface Support ƒ No onboard interfaces ƒ NM-1E, NM-4E, NM-1FE-TX ƒ NM-16ESW ƒ NM-4T ƒ ƒ Supports 3725 and d 3745 Interface Support ƒ Onboard interfaces (according to the router model) ƒ NM-1E, NM-4E, NM-1FE-TX ƒ NM-16ESW ƒ NM-4T ƒ Supports S t 7206 (VXR and d non-VXR) VXR) ƒ All NPEs including NPE-G1 and NPE-G2 ƒ Interface Support C7200-IO-FE, C7200-IO-2FE, PA-FE-TX, PA-2FE-TX C7200-IO-GE-E C7200 IO GE E and PA PA-GE GE PA-4E and PA-8E PA-A1 (basic ATM card, not all ATM features are supported) ƒ PA-4T+ and PA-8T ƒ PA-POS-OC3 PA POS OC3 (Packet over Sonet) ƒ ƒ ƒ ƒ ƒ ƒ Doesn’t emulate Catalyst l l switches h There are two solutions: ƒ DYNAGEN has built-in basic virtual Ethernet switch It is not configurable It supports VLANs, DOT1Q ttagging, i and d learning l i off MAC addresses dd ƒ Connect virtual router interface to the PC’s physical NIC NIC, then connect PC NIC to the real Cisco Catalyst switch ƒ ƒ Doesn’t emulate Cisco PIX/ASA l / There is a solution: ƒ PEMU Pix EMUlation ƒ QEMU ƒ It’s outside of this presentations’ scope, google it ƒ DYNAGEN developer is working on tying PEMU into DYNAGEN Soon you will be able to add PIX and ASA to the topology very easily ƒ ƒ ƒ ƒ ƒ ƒ ƒ Installll Dynamips/Dynagen / Download IOS image Download l d and d installll SecureCRT 6.0 Configure net as in Example Run Dynamips i Run net file Telnet l to R1 port 2000 and d R2 port 2001 Parameter P t which hi h helps h l Dynamips D i to t emulate virtual router’s idle CPU state ƒ Without it or with an incorrect value… value ƒ ƒ … your PC’s CPU will run at around 60-100% for just one router (dependant on how powerful your PC’s CPU is) ƒ With the correct value… ƒ … your PC’s CPU will run at 1-10% for just one router (dependant on how powerful your PC’s CPU is) ƒ This value is tied to the IOS image you are using (and obviously Router’s model) ƒ If you change IOS image release (even from 12.0.32S5 to 12 32S6) you need a new idlepc value 12.0.32S6), value ƒ This value is tied to the version of Dynamips ƒ If you change dynamips/dynagen version, version you might need to find a new good idlepc value for each IOS image Usually, it doesn’t change between RC released ƒ This value Thi l is i nott tied ti d to t the th PC you are using, i or how h much RAM you have, or what OS you are running ƒ You can copy the topology to another PC and/or OS, and be sure that your idlepc value is still good good ƒ How H to t find fi d it? ƒ Create a topology with one router running IOS image for which yyou are trying y g to find g good idlepc p value ▪ … or use existing multi-router topology, but disable autostart in the net file (autostart = false) ƒ Make sure net file doesn’t already y specify p y the idlepc p value (comment it out) ƒ Run topology and access Dynagen CLI ƒ In Dynagen CLI, CLI start one router, router if it’s not already started ƒ Watch your PC CPU, it should get up to 60-100% (use command d “top” in Linux)) ƒ How to find f d it? ƒ Make sure only one router is running ƒ Telnet to this router, and get to the Router’s console prompt where you can type commands (d ’t proceed (don’t d if th the router t hasn’t h ’t fi finished i h d booting) ƒ In I Dynagen D CLI CLI, run command: d ▪ idlepc get ƒ How to find f d it? ƒ You will get about 10 possible values that look like this: => idlepc get R1 Please wait while gathering statistics [ ] 1: 0x607f83d0 [70] 2: 0x607f8fc4 [41] 3: 0x607f8ffc [23] 4: 0x607f9000 [34] 5: 0x60712df4 [64] 6: 0x60712e88 [25] 7: 0x60712e98 [34] 8: 0x6089b8d4 [29] 9: 0x6089b8d8 [25] * 10: 0x607f5d10 [54] Potentially better idlepc values marked with "*" Enter the number of the idlepc value to apply [1-10] [1 10] or ENTER for no change: ƒ How to find it? ƒ You can potentially ignore values with *, because most ƒ ƒ ƒ ƒ other non-* values are good, too There’re h totall off about b 30 possible ibl idlepc idl values l for f each h IOS image Running “idlepc get R1” several times will result in a different, but similar list M t values Most l are “bad”, “b d” they th will ill result lt in i no change h off your PC CPU Other “good” idlepc values will result in your PC CPU utilization drop from around 60-100% 60 100% to 2-10% 10% There are some “super” idlepc values (not for all IOS images) that will result in a PC CPU utilization even lower than with “good” good idlepc value value ƒ How to find f d it? ƒ Apply one of the idlepc values from the list ƒ Watch your PC CPU Did it drop? By how much? ƒ Exit, and run topology again, run “idlepc get ” command again ƒ Repeat until you find good idlepc value ƒ Once you find it, copy paste it into net file ƒ Repeat for every IOS image you are using in your topology ƒ Try with T to t use IOS image i ith smallest ll t RAM requirements that has just enough features you need ƒ Don’t use 12.4T if you don’t need it (256RAM), try using 12 12.3 (128RAM) (128RAM), or 12.0S 12 0S (64RAM) (64RAM) ƒ If one router with good idlepc value is using 10% of CPU, then yyou can run maximum of 10 routers with that IOS image (but is better), until performance drastically hi d hinders ƒ In example, 1GB off I previous i l if you only l have h RAM, then your RAM will max out before you even get to 10 routers routers ƒ watch your RAM usage ▪ Windows: task manager, performance, physical memory available ▪ Linux: top ƒ Once there’s there s not enough RAM, RAM it will start using page file (linux: swap partition), and CPU utilization will start growing at faster rate Router CLI will become slow routing IGP and BGP sessions will start flapping slow, flapping After your CPU Aft you start t t a topology, t l utilization will be high ƒ Connect to every router and get to Router> prompt by hitting a few times ƒ Once you get a prompt on every router router, CPU utilization will drop ƒ Configure g “exec-timeout 0” under “line 0” to prevent consoles from timing out which will cause CPU to go back to 100% untilil you reconnect to every router ƒ ƒ You can use the base IOS config h following f ll b f for every router in your topology no ip domain-lookup hostname XXXX ! line exec-timeout 0 privilege level 15 logging synchronous ƒ You can run one topology on severall PCs l ƒ It’s a simple way to distribute processing if not enough RAM or CPU on one PC [192.168.0.1] # Windows XP PC [[7200]] image = \Program Files\Dynamips\images\c7200-ik9o3s-mz.122-15.T17.image ram = 96 [[ROUTER R1]] # Connect to s1/0 on R2 running on a different server s1/0 = R2 s1/0 [192.168.0.2] # Linux server workingdir = /home/user/labs/mytopology [[7200]] image = /opt/7200-images/c7200-ik9o3s-mz.122-15.T17.image ram = 96 [[ROUTER R2]] ƒ You can run multiple on one PC l l topologies l ƒ Start several dynamips hypervisor instances (7200, 7201, 7202, etc.) ƒ Configure a separate folder for each topology ▪ net file and nvram files can be the same in each folder ▪ only make the following change in every net file, X is the dynamips instance number: [localhost:720X] console = 2X00 udp = 1X000 ƒ You can connect Router interface or virtuall f Ethernet switch port to a NIC on a PC ƒ run Network device list.cmd to find NIC name NIO_gen_eth:\Device\NPF_GenericDialupAdapter Desciption: Adapter for generic dialup and VPN capture NIO_gen_eth:\Device\NPF_{8845110C-0C09-4157-98D5-109CA18D75E1} Name : Local Area Connection Desciption: NVIDIA nForce MCP Networking Adapter Driver [[ROUTER R1]] E1/0 = NIO_gen_eth:\Device\NPF_{8845110C-0C09-4157-98D5-109CA18D75E1} [[ [[ETHSW S1]] ]] = dot1q NIO_gen_eth:\Device\NPF_{8845110C-0C09-4157-98D5-109CA18D75E1} ... ƒ /dynamips /d –H 7200 & Launch DYNAGEN topology /dynagen labs/mytopology/topology.net ƒ If you are connected remotely to Linux and you want to close the session and continue running your topology,... C:Program Files Dynamips sample_labs Files Dynamips sample labs ƒ Each folder corresponds to a topology you want to run It contains: ▪ .net – Dynagen network file (your topology) ▪ The... PEMU into DYNAGEN Soon you will be able to add PIX and ASA to the topology very easily ƒ Doesn’t emulate Voice interfaces: l f ƒ No VICs ƒ No VWICs ƒ You could still connect real IP phones to the

Ngày đăng: 27/10/2019, 22:17

w