mÔ phỎng mẠng bẰng phẦn mỀm cisco iou

Upload: huy-cao

Post on 18-Oct-2015

289 views

Category:

Documents


5 download

TRANSCRIPT

M PHNG MNG BNG PHN MM CISCO IOU - PHN 1Bi vit ny dnh cho cc bn sinh vin ngnh K thut mngTc gi:ng Ngc Cngn v: B mn K thut mng Khoa CNTT i hc Duy TnGii thiuu tin cc bn hy xem qua s mng sau:

Vi s mng nh th ny th cc bn s dng phn mm g m phng? Cu tr li u tin chc l Cisco Packet Tracer, nhng cc bn hy lu , vi Packet tracer th thit b chy trn IOS o, v b gii hn rt nhiu tnh nng. Thng ngi ta s khng chn Cisco Packet tracer. V cu tr li th 2 l GNS3. Vi GNS3 th chng ta hon ton c th m phng Lab ny nhng ... chng ta cn mt my tnh c cu hnhcc khnghoc l nhiu my tnh gp li. Cn cu tr li th 3 l Cisco IOU. Vi Cisco IOU th chng ta hon ton c th khc phc c cc nhc im ca GNS3 v Cisco Packet tracer.Tuy Cisco IOU c nhiu u im nh vy nhng n vn tn ti mt s nhc im sau:+Rt kh s dngcho nhng ai mi bt u.+ Cn phi bit s dng Linux Debian+ Cng cn nhiu tnh nng khng c h tr trn Cisco IOUo Not supported/working on iou-web: Trunking over Clougo Not supported/working on Layer 3 IOU (Solaris): VTP version 2 (VTP version 1 works)o Not supported/working on Layer 2 IOU (Solaris): VTP version 2 (VTP version 1 works)o ...Phn 1. Kt ni vo my o Cisco IOU & Remote Access vo cc thit b nh Router, Switch1. Download fileCisco_IOU_Rack_VM_by_flyxj.rarv my.Link:http://www.ulozto.net/xFmJqid/cisco-iou-rack-vm-by-flyxj-rar2. Gii nn file trn:

3. S dng VMWare m my o ny:

Sau khi khi ng my o Cisco IOU, dng usernamerootv password mc nh lflyxj.cn ng nhp.

Chng ta nn thay i password ca user root bng cu lnh sau:[...]# echo password moi | passwd root --stdin4. Thng tin v cu hnh Card mng trn my o Cisco IOUeth0: 192.168.80.160eth1: 10.10.10.160eth2: 192.168.20.160

Vy trn my Windows chng ta s cu hnh card mng VMWare 1 c a ch IP trng lp mng vi eth1.

5. Dng phn mm Private Shell ng nhp vo my o Cisco IOUTrc khi ng nhp chng ta nn kim tra kt ni gia my Windows & my o Cisco IOU m bo kt ni thng sut.

6. Bc tip theo l s dng lnhls xem ni dung ca th mc/root/v dng lnh cd chuyn vo th mc/root/LAB. Cc bn ch trn Linux thfilename & foldernamec phn bitHOA-thng.

Lu cc file mu xanh l chui non cng chnh l cc lnh c dng trong Linux Shell.7. Bt cc thit b trong LAB ln nh sau:Hy quan st topology trc khi enable thit b.root@flyxj:~/LAB# show

By gi chng ta th Enable Router R1 bng lnh:root@flyxj:~/LAB# R1Ch khong 20 giy v quan st li topologyroot@flyxj:~/LAB# show

Chng ta thy Router R01 chuyn qua mu xanh ngha l chy.8. Bc tip theo l s dng Private Shell, dng giao thc Telnet login vo Router R1Trc ht chng ta quan st file/root/LAB/R1bng lnh sau:root@flyxj:~/LAB# cat /root/LAB/R1../wrapper-linux -m ../i86bi_linux-adventerprisek9-ms-p 2001-- 1 > /dev/null 2>&1 &root@flyxj:~/LAB# y chng ta lu thng s -p 2001, y chnh l port ch c s dng kt ni t xa vo Router R1.Chng ta s Telnet vo Router R1 qua cng 2001.

Kt qu:

Nh vy l kt ni thnh cng!M PHNG MNG BNG PHN MM CISCO IOU - PHN 1Bi vit ny dnh cho cc bn sinh vin ngnh K thut mngTc gi:ng Ngc Cngn v: B mn K thut mng Khoa CNTT i hc Duy TnGii thiuu tin cc bn hy xem qua s mng sau:

Vi s mng nh th ny th cc bn s dng phn mm g m phng? Cu tr li u tin chc l Cisco Packet Tracer, nhng cc bn hy lu , vi Packet tracer th thit b chy trn IOS o, v b gii hn rt nhiu tnh nng. Thng ngi ta s khng chn Cisco Packet tracer. V cu tr li th 2 l GNS3. Vi GNS3 th chng ta hon ton c th m phng Lab ny nhng ... chng ta cn mt my tnh c cu hnhcc khnghoc l nhiu my tnh gp li. Cn cu tr li th 3 l Cisco IOU. Vi Cisco IOU th chng ta hon ton c th khc phc c cc nhc im ca GNS3 v Cisco Packet tracer.Tuy Cisco IOU c nhiu u im nh vy nhng n vn tn ti mt s nhc im sau:+Rt kh s dngcho nhng ai mi bt u.+ Cn phi bit s dng Linux Debian+ Cng cn nhiu tnh nng khng c h tr trn Cisco IOUo Not supported/working on iou-web: Trunking over Clougo Not supported/working on Layer 3 IOU (Solaris): VTP version 2 (VTP version 1 works)o Not supported/working on Layer 2 IOU (Solaris): VTP version 2 (VTP version 1 works)o ...Phn 1. Kt ni vo my o Cisco IOU & Remote Access vo cc thit b nh Router, Switch1. Download fileCisco_IOU_Rack_VM_by_flyxj.rarv my.Link:http://www.ulozto.net/xFmJqid/cisco-iou-rack-vm-by-flyxj-rar2. Gii nn file trn:

3. S dng VMWare m my o ny:

Sau khi khi ng my o Cisco IOU, dng usernamerootv password mc nh lflyxj.cn ng nhp.

Chng ta nn thay i password ca user root bng cu lnh sau:[...]# echo password moi | passwd root --stdin4. Thng tin v cu hnh Card mng trn my o Cisco IOUeth0: 192.168.80.160eth1: 10.10.10.160eth2: 192.168.20.160

Vy trn my Windows chng ta s cu hnh card mng VMWare 1 c a ch IP trng lp mng vi eth1.

5. Dng phn mm Private Shell ng nhp vo my o Cisco IOUTrc khi ng nhp chng ta nn kim tra kt ni gia my Windows & my o Cisco IOU m bo kt ni thng sut.

6. Bc tip theo l s dng lnhls xem ni dung ca th mc/root/v dng lnh cd chuyn vo th mc/root/LAB. Cc bn ch trn Linux thfilename & foldernamec phn bitHOA-thng.

Lu cc file mu xanh l chui non cng chnh l cc lnh c dng trong Linux Shell.7. Bt cc thit b trong LAB ln nh sau:Hy quan st topology trc khi enable thit b.root@flyxj:~/LAB# show

By gi chng ta th Enable Router R1 bng lnh:root@flyxj:~/LAB# R1Ch khong 20 giy v quan st li topologyroot@flyxj:~/LAB# show

Chng ta thy Router R01 chuyn qua mu xanh ngha l chy.8. Bc tip theo l s dng Private Shell, dng giao thc Telnet login vo Router R1Trc ht chng ta quan st file/root/LAB/R1bng lnh sau:root@flyxj:~/LAB# cat /root/LAB/R1../wrapper-linux -m ../i86bi_linux-adventerprisek9-ms-p 2001-- 1 > /dev/null 2>&1 &root@flyxj:~/LAB# y chng ta lu thng s -p 2001, y chnh l port ch c s dng kt ni t xa vo Router R1.Chng ta s Telnet vo Router R1 qua cng 2001.

Kt qu:

Nh vy l kt ni thnh cng!

M PHNG MNG BNG PHN MM CISCO IOU - PHN 2Phn 2. To cc topology theo yu cu ca ngi dng1. Chng ta s i phn tch topology mc nhroot@flyxj:~/LAB# show

Chng ta hy quan st topology trn tht k v so snh cc kt ni trong topology ny vi cc dng trong file/root/LAB/NETMAProot@flyxj:~/LAB# cat NETMAP1:0/0 2:0/01:1/0 7:1/01:0/2 6:0/21:1/2 2:1/22:1/1 6:1/12:0/1 3:0/12:1/0 8:1/02:2/1 7:2/12:2/0 7:2/02:2/3 3:2/33:1/1 7:1/13:0/2 8:0/24:0/1 5:0/14:0/2 9:0/24:1/0 10:1/05:1/1 9:1/15:0/2 10:0/26:0/0 7:0/06:3/0 7:3/07:0/1 8:0/17:3/2 8:3/29:0/1 10:0/13:0/0 4:0/08:0/0 9:0/01:1/3 2:1/3 3:1/3 1023:16:1/3 7:1/3 8:1/3 1023:2root@flyxj:~/LAB#Quan st cc Interfaces trn Router R1 & R2R1#show ip interface briefInterface IP-Address OK? Method Status ProtocolEthernet0/0 unassigned YES NVRAM administratively down downEthernet0/1 unassigned YES NVRAM administratively down downEthernet0/2 unassigned YES NVRAM administratively down downEthernet0/3 unassigned YES NVRAM administratively down downEthernet1/0 unassigned YES NVRAM administratively down downEthernet1/1 unassigned YES NVRAM administratively down downEthernet1/2 unassigned YES NVRAM administratively down downEthernet1/3 unassigned YES NVRAM administratively down downSerial2/0 unassigned YES NVRAM administratively down downSerial2/1 unassigned YES NVRAM administratively down downSerial2/2 unassigned YES NVRAM administratively down downSerial2/3 unassigned YES NVRAM administratively down downSerial3/0 unassigned YES NVRAM administratively down downSerial3/1 unassigned YES NVRAM administratively down downSerial3/2 unassigned YES NVRAM administratively down downSerial3/3 unassigned YES NVRAM administratively down downR1#R2#show ip interface briefInterface IP-Address OK? Method Status ProtocolEthernet0/0unassigned YES NVRAM administratively down downEthernet0/1 unassigned YES NVRAM administratively down downEthernet0/2 unassigned YES NVRAM administratively down downEthernet0/3 unassigned YES NVRAM administratively down downEthernet1/0 unassigned YES NVRAM administratively down downEthernet1/1 unassigned YES NVRAM administratively down downEthernet1/2 unassigned YES NVRAM administratively down downEthernet1/3 unassigned YES NVRAM administratively down downSerial2/0 unassigned YES NVRAM administratively down downSerial2/1 unassigned YES NVRAM administratively down downSerial2/2 unassigned YES NVRAM administratively down downSerial2/3 unassigned YES NVRAM administratively down downSerial3/0 unassigned YES NVRAM administratively down downSerial3/1 unassigned YES NVRAM administratively down downSerial3/2 unassigned YES NVRAM administratively down downSerial3/3 unassigned YES NVRAM administratively down downR2#V d: Trong file NETMAP c dng

2. Lab 1: R01(e0/0)(e0/0)R02

Hnh ny mn bn GNS3 m t s dng ha cho sinh ng.Cu hnh Router R1:R1>enableR1#conf tR1(config)#interface e0/0R1(config-if)#no shutdownR1(config-if)#ip address 10.1.1.1 255.0.0.0R1(config-if)#endR1#writeR1#Cu hnh Router R2:R2>enableR2#conf tR2(config)#interface e0/0R2(config-if)#no shutdownR2(config-if)#ip address 10.2.2.2 255.0.0.0R2(config-if)#endR2#writeR2#ping 10.1.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds: .!!!!Success rate is 80 percent (4/5), round-trip min/avg/max = 1/2/4 msR2#3. Lu Lab Nh lu cu hnh vo NVRAM ca tt c cc thit bTen_thiet_bi# copy running-config startup-configHocTen_thiet_bi# write Shutdown my o Cisco IOU tit kim khng gian lu tr (C th khng cn Shutdown nu khng gian lu tr ln).root@flyxj:~/LAB# init 0S dng chc nng Snapshot trn VMWare backup my o Cisco IOU. Ln sau, nu mun ly li Lab va lm th chng ta cng s dng chc nng ny.

Nu mun Restore Snapshot th:

4. Test cng sut (10 thit b)Cu hnh my tnh tht:

u tin chng ta bt tt c cc thit b ln.root@flyxj:~/LAB# ROUTERroot@flyxj:~/LAB# SWITCHroot@flyxj:~/LAB# BRCh khong 30 giy cho cc thit b khi ng xong. Chng ta s i kim tra trng thi ca CPU & RAM trn my tnh tht. Cc bn hy lu tng s lng Router & Switch ca chng ta l 10. Nu vi s lng ny, m chng ta dng GNS3 th mt my tnh c cu hnh RAM=2GB s khng kham ni.

5. Test cng sut s dng 5 thit b trn GNS3

Hy quan st tc x l ca CPU.