Académique Documents
Professionnel Documents
Culture Documents
Cisco 2600 Router Mikrotik RouterBOARD 951G-2HnD Cisco Cata !st 2950 series s"itc#
August$ 201%
I. Configuration of the devices.................................................................................... 2 II. Configuration Log for the devices.........................................................................13 III. Applications Used................................................................................................ 19 REFERE CE!............................................................................................................. 2"
&a' e of Contents
Procedure: !" Connect Cisco #$%% router to PC via console &ort wit' serial cable or USB to serial cable" #" (&en Tera Term )" Connect usin* Serial Port (C(+ &ort w'ic' is available)
," Turn on t'e Cisco #$%% Router -" T'e router will start to boot (Sa s Self.decom&ressin* t'e ima*e/"") $" Send break to t'e router normal bootin* &rocess" T'e scenario will be like as s'own in t'e fi*ure below" 0n Tera Term boot &rocess can be sent break b *oin* to +enu11Control11Send Break"
2" T'e main idea about resettin* t'e router is based on c'an*in* t'e bootu& sequence" Confi*uration re*ister value can affect t'e bootu& sequence" T'e default confi*uration re*ister value is: %3#!%# (%%!%%%%!%%%%%%!%)" default value of confi*uration re*ister is c'an*ed to T'is %3#!,#
(%%!%%%%!%!%%%%!%)" T'is c'an*e i*nores t'e 45R6+ contents b alterin* t'e si3t' bit in confi*uration re*ister" B i*norin* t'e 45R6+ contents we can access t'e router b b &assin* t'e &assword and t'en set t'e &assword of our own" 0t is s'own below after we 'ave send break to t'e normal bootin* &rocess:
Self decompressing the image : ############# monitor: command "boot" aborted due to user interrupt rommon 1 > rommon 1 > confreg 0x2142
rommon 2 > reset System Bootstrap !ersion 12"#$%r&'% ()*)+S) S,-'.+() $fc1& /isco 1%41 $re0ision 1"0& 2ith 1143%%4513#%44 bytes of memory" Self decompressing the image : ########################################################################## 6,47
and finall
confi*uration dialo*7 8it 9no: and t'en we can continue to enter our own
;ress ()'<(= to get started> (outer>en (outer#config t )nter configuration commands one per line" )nd 2ith /='*5?" (outer$config&#enable secret cisco (outer$config&#line con 0 (outer$config8line&#pass2ord cisco (outer$config8line&#login (outer$config8line&#exit
4ow t'e boot sequence 'as to be set to t'e default so t'at router boots normall "
(outer$config&#config8register 0x2102
)ii
Configuring t#e Cisco 2600 router Confi*urin* t'e router is an eas task" We confi*ure wit' ;a%<% 0P address of
!=#"!$>"#%"#! and ;a%<! 0P address of !=#"!$>"$%"! wit' a static route and 46T
@SASBrouter#config t )nter configuration commands one per line" )nd 2ith /='*5?" @SASBrouter$config&#int f050 @SASBrouter$config8if&#ip address 1C2"13%"20"21 211"211"211"0 @SASBrouter$config8if&#no shut @SASBrouter$config8if&#exit @SASBrouter$config&#int f051 @SASBrouter$config8if&#ip address 1C2"13%"30"1 211"211"211"0 @SASBrouter$config8if&#no shut D*@=4818/E+=F)9: @nterface -ast)thernet051 changed state to up @SASBrouter$config8if&#exit @SASBrouter$config&#exit
T'is confi*ures t'e 0P address for t'e router" )iii Configuring static route and static +A& for Cisco 2600 router
,igure 1 Considerin* t'e ;i*ure !? static route and 46T can be set for Cisco #$%% router" Static Route Confi*uration: 0t is done b &rovidin* t'e network and its mask and t'e ne3t 'o& to route to" 8ere it is confi*ured suc' t'at &ackets from an network are 'o&&ed to !=#"!$>"#%"! *atewa "
Static 46T confi*uration: 0t is done b indicatin* t'e inside and outside network" 8ere t'e outside network is !=#"!$>"#%"% network and inside network is !=#"!$>"$%"% network T'e com&lete confi*uration for static route and static 46T is s'own below:
(outer# (outer#config t )nter configuration commands one per line" )nd 2ith /='*5?" (outer$config&#ip route 0"0"0"0 0"0"0"0 1C2"13%"20"1 (outer$config&#access8list 1 permit 1C2"13%"30"0 0"0"0"211 (outer$config&#ip nat inside source list 1 interface fa050 o0erload (outer$config&#int fa050 (outer$config8if&#ip nat outside (outer$config8if&#int fa051
)i*
Configuring Cisco 2600 Router for DHC;or a &rivate network (!=#"!$>"!"%) connected to ;a%<! of t'e router? @8CP can be done wit' followin* confi*uration" 8ere !=#"!$>"!"! is t'e 0P address of ;a%<! &ort of router"
(outer#config t )nter configuration commands one per line" )nd 2ith /='*5?" (outer$config&#int fa051 (outer$config8if&#ip address 1C2"13%"1"1 211"211"211"0 (outer$config8if&#no shut D*@=4818/E+=F)9: @nterface -ast)thernet051 changed state to up (outer$config8if&#ip dhcp excluded8address 1C2"13%"1"1 1C2"13%"1"211 (outer$config&#ip dhcp pool 9E/;B;,,* (outer$dhcp8config&#net2orG 1C2"13%"1"0 211"211"211"0 (outer$dhcp8config&#default8router 1C2"13%"1"1 (outer$dhcp8config&#exit
)*
Configuration of Mikrotik RouterBOARD 951G- 2HnD +ikrotik Router Board was confi*ured wit' followin* lo*in &arameters" Username: admin Password : facult A!#) T'e first t'in* is to connect to t'e Router via Winbo3 a&&lication t'rou*' t'e Bt'ernet cable" T'e cable can be connected to Bt'ernet &ort # t'rou*' -" @ue to t'e firewall installed at Bt'ernet &ort ! we cannot connect usin* &ort !"
&
6fter we are connected we can set u& t'e interfaces and confi*ure ever t'in*" T'e environment looks like as s'own in ;i*ure -"
T'ere are - Bt'ernet interfaces" Bt'ernet ! t'rou*' - and a wireless interface WC64!" Bt'ernet ! is connected to 0nternet enabled network (8ere it is connected to ;a%<! of Cisco #$%% router) and Bt'ernet # is connected to Cisco Catal st #=-% switc'" We start b creatin* a Brid*e between WC64! and Bt'ernet #" 0P addressin* is confi*ured b *oin* to: 0P 116ddress"
'
Confi*uration of (&ertainin* to ;i*ure )) was done as follows: ;or Brid*e 0nterface : 6ddress : !=#"!$>"-%"!<#, ;or Bt'ernet ! : 6ddress : !=#"!$>"$%"#<#, Static Route was defined b *oin* to : 0P11Route Route was confi*ured as : %"%"%"% <% via !=#"!$>"$%"! @4S: !!$"=%"#)=", @C8P: Confi*ured for brid*ed interface of WC64! and Bt'ernet #" 8ots&ot is created b *oin* to 0P118ots&ot and t'en &erformin* 8ots&ot setu&" T'is creates a new 'ots&ot 0P &ool" 6 new 'ots&ot &rofile can be created for t'is &ool (we created !+B&s &rofile)" 6fter &rofile creation? we can create users for t'at &rofile" +ikrotik offers a wide variet of confi*uration for 'ots&ot all of w'ic' cannot be s'own 'ere" 6 *ood video tutorial s'owin* all t'e required information about accessin*? confi*urin* and creatin* 8ots&ot in +ikrotik router can be found in D!E and D#E" )*i Configuring Mikrotik Router for ' ocking certain sites
Sites can be blocked for access b creatin* a rule in Web Pro3 as follows: 0n WinBo3 FU0? Fo to 0P 11 Web Pro3 11 Web Pro3 Settin*s 11 Click on Bnabled 11Port >%>% 11 6&&l 116ccess 0n 6ccess window: Bnter t'e website t'at is to be blocked in @st" 8ost " i"e " @st" 8ost : www" outube"com ? 6ctionGden 11 6nd t'en 6&&l
;or t'is to work &ro&erl ? a trans&arent ;irewall settin*s 'as to be created" T'is is done b *oin* to 0P11;irewall11Click on t'e 46T tab 11 T'en 4ew 46T RUCB 110n Feneral T6B? select
9
C'ain to be : dsnat 11 Protocol : $Dtc&E 11 @st" Port: >% 11 Click on 6ction T6B11 Select 6ction : dsnat 11 To 6ddresses: Bnter network address of our network11 To Ports: >%>% 11 T'en Click (H" )*ii B ocking &orrent sites using Mikrotik Router
Fo to 0P11 ;irewall11Ca er 2 Protocols11 Click on 4ew Rule11 Put an name (e*" Torrent block ) 11 T'en &astin* followin* site names under RBFBIP and t'e click 6PPCJ
K"L(*etMFBT)"N(torrentMt'e&irateba Miso'untMentertaneMdemonoidMbtOunkieMmininovaMfli3flu3MtorrentPMvertorM'))tM btsceneMbitunit Mbitto3icMt'underb tesMentertaneMPooPleMvcdqMbitnovaMbitsou&Mme*anovaMfulldlsMbtbotMfli3flu3Mseed&eerM feno& M*&irateMcommonbits)"LQ
4ow *o to 6dvanced Tab on ;irewall rule and t'en on Ca er 2 &rotocol select t'e name Oust created? 'ere Torrent block" T'en select action in action tab to Rdro&S" T'en click on ;irewall 11 Ca er 2 &rotocol11 4ew Rule and &ut a new name suc' as Rtorrent.dnsS and t'en on RBFBIP add t'e followin* contents:
K"N(torrentMt'e&irateba Miso'untMentertaneMdemonoidMbtOunkieMmininovaMfli3flu3MtorrentPMvertorM'))tMbtsceneMbitunit M bitto3icMt'underb tesMentertaneMPooPleMvcdqMbitnovaMbitsou&Mme*anovaMfulldlsMbtbotMfli3flu3Mseed&eerMfeno& M*&irateM commonbits)"LQ
1"
T'en Foto ;ilter Rules116dd new Rule11Set C'ain : forward11Protocol:!2Dud&E? @st Port:-)" T'en in 6dvanced tab set t'e Ca er 2 &rotocol to our filter rule (torrent.dns)" T'en ;inall click on 6ction and select Rdro&S )*iii Resetting Mikrotik RouterBOARD 951G- 2HnD
Resettin* +ikrotik RouterB(6R@ =-!F. #8n@ can be done in case we wis' to return t'e device to its ori*inal confi*uration" T'is is done b usin* t'e RBSBT button located to t'e left of t'e Bt'ernet &orts" To reset follow t'e followin* ste&s: Power (ff t'e device Press t'e Reset button wit' a s'ar& obOect Connect t'e &ower cable Remove t'e &ower cable as soon as t'e CB@ stats flas'in*"
-oint to 'e noted ..../ 0f t'e Rest button is 'old lon*er t'en t'e flas'in* CB@ turns off t'en Routerboard looks for 4etinstall Servers
)i0
Configuring Cisco Cata !st 2950 series s"itc# Confi*uration starrin* from settin* of Password to creation of 5C64 and assi*nin* of 0P address is s'own 'ere:
;ress ()'<(= to get started> S2itch>en S2itch#config t )nter configuration commands one per line" )nd 2ith /='*5?" S2itch$config&#enable secret cisco S2itch$config&#line con 0 S2itch$config8line&#pass2ord cisco S2itch$config8line&#login
11
S2itch$config8line&#exit
T'e above sets t'e lo*in and enable &assword for t'e switc'" 4ow follows t'e creation of 5C64 == and 5C64 !%%"
S2itch$config&#interface range fastethernet 051810 S2itch$config8if8range&#s2itchport mode access S2itch$config8if8range&#s2itchport access 0lan CC D +ccess !*+= does not exist" /reating 0lan CC S2itch$config8if8range&#exit S2itch$config&#interface range fastethernet 0511824 S2itch$config8if8range&#s2itchport mode access S2itch$config8if8range&#s2itchport access 0lan 100 D +ccess !*+= does not exist" /reating 0lan 100 S2itch$config8if8range&#exit
4ow follows t'e assi*nin* of 0P address to 5C64 == for remote mana*ement of switc'"
S2itch$config&#int 0lan CC D*@=4818/E+=F)9: @nterface !lanCC changed state to up S2itch$config8if&#ip address 1C2"13%"10"11 211"211"211"0 S2itch$config8if&#no shut S2itch$config8if&#exit
)0
Adding 1ecurit! to Cisco Cata !st 2950 series s"itc# Cisco Catal st #=-% switc' was confi*ured for &ort.securit suc' t'at ;astet'ernet &ort f%<# acce&ts onl a sin*le end device wit' a s&ecific +6C address onl " 6nd all ot'er &orts were s'ut down"
S2itch#config t )nter configuration commands one per line" )nd 2ith /='*5?" S2itch$config&#int f052 S2itch$config8if&#s2itchport mode access S2itch$config8if&#s2itchport port8security S2itch$config8if&#s2itchport port8security maximum 1 S2itch$config8if&#s2itchport port8security mac8address 0021"H0fe"331a
12
S2itch$config8if&#exit
1#
> interface -ast)thernet050 ip address 1C2"13%"20"21 211"211"211"0 ip nat outside duplex auto speed auto > interface Serial050 no ip address shutdo2n > interface -ast)thernet051 ip address 1C2"13%"30"1 211"211"211"0 ip nat inside duplex auto speed auto > ip nat inside source list 101 interface -ast)thernet050 o0erload ip classless ip route 0"0"0"0 0"0"0"0 1C2"13%"20"1 no ip http ser0er > access8list 101 permit ip 1C2"13%"30"0 0"0"0"211 any > line con 0 pass2ord cisco login line aux 0 line 0ty 0 4 login > > > )nd
1%
s2itchport access 0lan CC > interface -ast)thernet054 s2itchport access 0lan CC > interface -ast)thernet051 s2itchport access 0lan CC > interface -ast)thernet053 s2itchport access 0lan CC > interface -ast)thernet05H s2itchport access 0lan CC > interface -ast)thernet05% s2itchport access 0lan CC > interface -ast)thernet05C s2itchport access 0lan CC > interface -ast)thernet0510 s2itchport access 0lan CC > interface -ast)thernet0511 s2itchport access 0lan 100 > interface -ast)thernet0512 s2itchport access 0lan 100 > interface -ast)thernet051# s2itchport access 0lan 100 > interface -ast)thernet0514 s2itchport access 0lan 100 > interface -ast)thernet0511 s2itchport access 0lan 100
1&
s2itchport mode access > interface -ast)thernet0513 s2itchport access 0lan 100 s2itchport mode access > interface -ast)thernet051H s2itchport access 0lan 100 s2itchport mode access > interface -ast)thernet051% s2itchport access 0lan 100 s2itchport mode access > interface -ast)thernet051C s2itchport access 0lan 100 s2itchport mode access > interface -ast)thernet0520 s2itchport access 0lan 100 s2itchport mode access > interface -ast)thernet0521 s2itchport access 0lan 100 s2itchport mode access > interface -ast)thernet0522 s2itchport access 0lan 100 s2itchport mode access > interface -ast)thernet052# s2itchport access 0lan 100 s2itchport mode access > interface -ast)thernet0524 s2itchport access 0lan 100 s2itchport mode access
1'
> interface !lan1 ip address 1C2"13%"30"10 211"211"211"0 no ip route8cache shutdo2n > interface !lanCC ip address 1C2"13%"10"11 211"211"211"0 no ip route8cache > interface !lan100 no ip address no ip route8cache shutdo2n > ip http ser0er > line con 0 pass2ord cisco login line 0ty 0 4 pass2ord cisco login line 0ty 1 11 pass2ord cisco login > >end
-) Iirrus Wi.;i 0ns&ector: Wi.;i detection and si*nal anal Pin* tool"
R5,5R5+C51
!" AiGrotiG Eotspot MuicG Setup Fuide in <rdu 'tt&:<<www" outube"com<watc'7vGTATBa@rqR5B #" AiGrotiG (outer +ccess ;oint Basic 0SP Su&&lies? JouTube 5ideo? 6deel 6'med? JouTube 5ideo
'tt&:<<www" outube"com<watc'7vGul@efmf!ces )" Eo2 to configure AiGrotiG (outer to BlocG .ebsite JouTube 5ideo?
2"
'tt&:<<www" outube"com<watc'7vGqtrv.cH(#T* ," Eo2 to Setup Lour ,2n Eotspot 2ith A@4(,'@4 routers 8ots&ots stem"com?
'tt&:<<www"'ots&ots stem"com<en<'ots&ot<installA*uideAmikrotik"'tml -" /isco @,S S2itch Security /onfiguration Fuide 6" BorPa? @"@uester'aus? C"
FrabcP nski? U" Uo'nson? R" Hell ? T"+iller? 4ational Securit 6*enc $" @nformation System Aanagement Section $@SAS& 4athmandu <ni0ersity -act Sheet
21