Sie sind auf Seite 1von 25

Contents Sl No 1 2 Topics Cable Structure and symbols Command Line Interface (CLI) Static "outing Topology !

# ) $ & 1' 11 "IP and "IP %2 I("P *I(TP +SP, Telnet .ccess Control list (.CL) Net/or0 .ddress Translation (N.T) S/itc1ing Page No 2-2 -! #-$ &-1' 11-11 12-1 1! - 1) 1$-1$ 1& - 12' - 22 2 - 2)

Types of twisted pair Cables to be used to connect the Network Devices.

2ost 3 to 3 2ost

Cross +4er Cable

2ost 3to 3 "outer

Cross +4er Cable

2ost 3 to 3 S/itc1

Straig1t T1roug1 Cable

2ost 3 to 3 2ub

Straig1t T1roug1 Cable

S/itc1 3 to 3 "outer

Straig1t T1roug1 Cable

S/itc1 3to 3 S/itc1

Cross +4er Cable

S/itc1 3 to 3 2ub

Cross +4er Cable

"outer - to 3 "outer

Cross +4er Cable

"outer 3 to 3 2ub

Straig1t T1roug1 Cable

2ub 3 to 3 2ub

Cross +4er Cable Symbols used in this book

S/itc1

"outer

Serial connections

5eb Cloud

2ost

*t1ernet

Entering Command Line nterface


2

S/itc1 on t1e Net/or0 de4ices ("outer or S/itc1) P1ysically connect t1e Net/or0 6e4ices to t1e system t1roug1 console port7 Login to t1e /indo/s *nter to t1e 2yperterminal7 o o o o Programs .ccessories Communication 2yperterminal

8uit t1e initial configuration menu Press enter to get into t1e CLI7

No/ you are in Command Line Interface in user mode and t1is mode is prompted as "outer9 Type *nable or en to login to pri4ilege mode: enable mode7 "outer 9 en No/ type conf t (configure Terminal) to enter to t1e configuration ;ode7 "outer <conf t "outer (config) < No/ type interface e' :s' : fa'7' to enter to interface mode "outer (config)< int fa ':' "outer (config 3 if)< Type e=it to come bac0 one mode "outer (config 3 if)< e=it "outer (config )< Type end at any point of time to come to pri4ilege mode "oter (conf-if)< end "outer <

Setting user mode password


"outer (config )< line console' "outer (config 3 line)< pass/or0 cisco "outer (config 3 line)< login

Setting username and password for the user mode

"outer (config)<username cisco pass/ord cisco!"# "outer (config)< line console ' "outer (router-line)<login local

Change the $ost Name

"outer(config )< 1o .minno .minno(config)<

Encrypt all the password

"outer(config)< ser4ice pass/ord-encryption

Set password for the %rivilege mode

"outer(config)< enable pass/ord cisco!"# "outer(config)<enable secret cisco!"#

ST&T C '()T N*

'outer + Interface ,1:' ,':' 'outer ! Interface ,1:' ,':' Lab +b>ect Tas0 1 Configure Static rout on bot1 t1e routers 'outer+ "outer '(config)< int fa1:' "outer '(config 3 if )< ip add 2'7'7'71 2##7'7'7' "outer '(config 3 if )< no s1 "outer '(config 3 if)<int ':' "outer '(config 3 if)< ip add 1'7'7'71 2##7'7'7' "outer '(config 3 if)<no s1 'outer ! "outer 1(config)< int fa1:' "outer 1(config 3 if )< ip add 2'7'7'72 2##7'7'7' "outer 1(config 3 if )< no s1 "outer 1(config 3 if)<int ':' "outer 1(config 3 if)< ip add '7'7'71 2##7'7'7' "outer 1(config 3 if)<no s1 IP .ddress '7'7'71 2'7'7'72 Subnet ;as0 2##7'7'7' 2##7'7'7' IP .ddress 1'7'7'71 2'7'7'71 Subnet ;as0 2##7'7'7' 2##7'7'7'

"outer ' (config)< ip route '7'7'71 2##7'7'7' 2'7'7'72 "outer 1 (config)< ip route 1'7'7'71 2##7'7'7' 2'7'7'71

To check the static rout from 'outer+ type the following command on 'outer+. "outer'(config)<do s1 ip route Codes? C - connected@ S - static@ " - "IP@ ; - mobile@ A - A(P 6 - *I("P@ *B - *I("P e=ternal@ + - +SP,@ I. - +SP, inter area N1 - +SP, NSS. e=ternal type 1@ N2 - +SP, NSS. e=ternal type 2 *1 - +SP, e=ternal type 1@ *2 - +SP, e=ternal type 2 i - IS-IS@ L1 - IS-IS le4el-1@ L2 - IS-IS le4el-2@ ia - IS-IS inter area C - candidate default@ D - per-user static route@ o - +6" P - periodic do/nloaded static route (ate/ay of last resort is not set C C S 2'7'7'7':& is directly connected@ ,ast*t1ernet':' 1'7'7'7':& is directly connected@ ,ast*t1ernet1:' '7'7'7':& E1:'F 4ia 2'7'7'72

To check the static rout from 'outer! type the following command on 'outer!. "outer1(config)<do s1 ip route Codes? C - connected@ S - static@ " - "IP@ ; - mobile@ A - A(P 6 - *I("P@ *B - *I("P e=ternal@ + - +SP,@ I. - +SP, inter area N1 - +SP, NSS. e=ternal type 1@ N2 - +SP, NSS. e=ternal type 2 *1 - +SP, e=ternal type 1@ *2 - +SP, e=ternal type 2 i - IS-IS@ L1 - IS-IS le4el-1@ L2 - IS-IS le4el-2@ ia - IS-IS inter area C - candidate default@ D - per-user static route@ o - +6" P - periodic do/nloaded static route (ate/ay of last resort is not set C S C 2'7'7'7':& is directly connected@ ,ast*t1ernet':' 1'7'7'7':& E1:'F 4ia 2'7'7'71 '7'7'7':& is directly connected@ ,ast*t1ernet1:'

(ther commands to be checked "outer'(config)<do s1 ip int brief Interface ,ast*t1ernet':' ,ast*t1ernet1:' %irtual-.ccess1 IP-.ddress 2'7'7'71 1'7'7'71 unassigned +GH ;et1od I*S manual I*S manual I*S unset Status up up up Protocol up up up

"outer'(config)<s1 controllers fa':'

"oter'(config)< s1 int fa':'

' % , ' % -"

'outer ! Interface ,1:' ,':' 'outer " Interface ,1:' ,':' IP .ddress '7'7'71 2'7'7'72 Subnet ;as0 2##7'7'7' 2##7'7'7' IP .ddress 1'7'7'71 2'7'7'71 Subnet ;as0 2##7'7'7' 2##7'7'7'

'outer # Interface ,1:' ,':' IP .ddress !'7'7'71 '7'7'72 Subnet ;as0 2##7'7'7' 2##7'7'7'

Lab +b>ect Tas0 1 Configure "IP on bot1 t1e routers &

'outer + "outer1(config-if)<int fa':' "outer1(config-if)<ip add 2'7'7'71 2##7'7'7' "outer1(config-if)<no s1 "outer1(config-if)<int fa1:' "outer1(config-if)<ip add 1'7'7'71 2##7'7'7' "outer1(config-if)<no s1 "outer1(config-if)<router rip "outer1(config-router)<net/or0 1'7'7'7' "outer1(config-router)<net/or0 2'7'7'7' "outer1(config-router)<e=it

'outer ! "outer2(config)<int fa':' "outer2(config-if)<ip add 2'7'7'72 2##7'7'7' "outer2(config-if)<no s1 "outer2(config-if)<int fa1:' "outer2(config-if)<ip add '7'7'71 2##7'7'7' "outer2(config-if)<no s1 "outer2(config-if)<router rip "outer2(config-router)<net/or0 2'7'7'7' "outer2(config-router)<net/or0 '7'7'7' "outer2(config-router)<e=it "outer (config)<int fa':' "outer (config-if)<ip add '7'7'72 2##7'7'7' "outer (config-if)<no s1 "outer (config-if)<int fa1:' "outer (config-if)<ip add !'7'7'71 2##7'7'7' "outer (config-if)<no s1 "outer (config-if)<router rip "outer (config-router)<net/or0 !'7'7'7' "outer (config-router)<net/or0 '7'7'7' "outer (config-router)<e=it

To Check the rip "outer1<s1 ip route rip " 1'7'7'7':& E12':1F 4ia 2'7'7'71@ ''?''?2#@ ,ast*t1ernet':'

To check the ' % database "outer1<s1 ip rip database 1'7'7'7':& auto-summary 1'7'7'7':& E1F 4ia 2'7'7'71@ ''?''?'2@ ,ast*t1ernet':' 2'7'7'7':& auto-summary 2'7'7'7':& directly connected@ ,ast*t1ernet':' '7'7'7':& auto-summary '7'7'7':& directly connected@ ,ast*t1ernet1:'

Show the % 'outing "outer1<s1 ip route Codes? C - connected@ S - static@ " - "IP@ ; - mobile@ A - A(P 6 - *I("P@ *B - *I("P e=ternal@ + - +SP,@ I. - +SP, inter area N1 - +SP, NSS. e=ternal type 1@ N2 - +SP, NSS. e=ternal type 2 *1 - +SP, e=ternal type 1@ *2 - +SP, e=ternal type 2 i - IS-IS@ L1 - IS-IS le4el-1@ L2 - IS-IS le4el-2@ ia - IS-IS inter area C - candidate default@ D - per-user static route@ o - +6" -

P - periodic do/nloaded static route (ate/ay of last resort is not set C " C 2'7'7'7':& is directly connected@ ,ast*t1ernet':' 1'7'7'7':& E12':1F 4ia 2'7'7'71@ ''?''?2'@ ,ast*t1ernet':' '7'7'7':& is directly connected@ ,ast*t1ernet1:'

Configuring ' % -"


Lab +b>ect Tas0 1 Configure "IP on bot1 t1e routers 'outer + "outer'(config)<int fa':' "outer'(config-if)<ip add 2'7'7'71 2##7'7'7' "outer'(config-if)<no s1 "outer'(config-if)<int fa1:' "outer'(config-if)<ip add 1'7'7'71 2##7'7'7' "outer'(config-if)<no s1 "outer'(config)<router rip "outer'(config-router)<4er 2 "outer'(config-router)<net/or0 1'7'7'7' "outer'(config-router)<net/or0 2'7'7'7' "outer'(config-router)<e=it 'est of all commands are similar to ' % 'outer ! "outer1(config-if)<int fa':' "outer1(config-if)<ip add 2'7'7'72 2##7'7'7' "outer1(config-if)<no s1 "outer1(config-if)<int fa1:' "outer1(config-if)<ip add '7'7'71 2##7'7'7' "outer1(config-if)<no s1 "outer1(config)<router rip "outer1(config-router)<4er 2 "outer1(config-router)<net/or0 2'7'7'7' "outer1(config-router)<net/or0 '7'7'7' "outer1(config-router)<e=it

*'%
Lab +b>ect Tas0 1 Configure I("P on bot1 t1e routers 'outer + "outer'(config)<int fa':' "outer'(config-if)<ip add 2'7'7'71 2##7'7'7' 'outer ! "outer1(config-if)<int fa':' "outer1(config-if)<ip add 2'7'7'72 2##7'7'7' 1'

"outer'(config-if)<no s1 "outer'(config-if)<int fa1:' "outer'(config-if)<ip add 1'7'7'71 2##7'7'7' "outer'(config-if)<no s1 "outer'(config)<router igrp 2' "outer'(config-router)<net/or0 1'7'7'7' "outer'(config-router)<net/or0 2'7'7'7' "outer'(config-router)<e=it

"outer1(config-if)<no s1 "outer1(config-if)<int fa1:' "outer1(config-if)<ip add '7'7'71 2##7'7'7' "outer1(config-if)<no s1 "outer1(config)<router igrp 2' "outer1(config-router)<net/or0 2'7'7'7' "outer1(config-router)<net/or0 '7'7'7' "outer1(config-router)<e=it

'est of all commands are similar to ' % and ' % -"

E *'%

'outer ! Interface ,':' ,1:' 'outer " IP .ddress 1'717171 2'717171 11 Subnet ;as0 2##7'7'7' 2##7'7'7'

Interface ,':' ,1:' 'outer # Interface ,':' ,1:' Lab +b>ect Tas0 1

IP .ddress 1'717172 '717171 IP .ddress '717172 !'717171

Subnet ;as0 2##7'7'7' 2##7'7'7' Subnet ;as0 2##7'7'7' 2##7'7'7'

Configure *I("P on bot1 t1e routers 'outer + "outer1(config)<int fa':' "outer1(config-if)<ip add 1'717171 2##7'7'7' "outer1(config-if)<no s1 "outer1(config)<int fa1:' "outer1(config-if)<ip add 2'717171 2##7'7'7' "outer1(config-if)<no s1 "outer1(config-if)<e=it "outer1(config)<router eigrp 1' "outer1(config-router)<net/or0 1'71717' "outer1(config-router)<net/or0 2'71717' "outer1(config-router)<no autosummary "outer1(config-router)<e=it 'outer ! "outer2(config)<int fa':' "outer2(config-if)<ip add 1'717172 2##7'7'7' "outer2(config-if)<no s1 "outer2(config-if)<int fa1:' "outer2(config-if)<ip add '717171 2##7'7'7' "outer2(config-if)<no s1 "outer2(config-if)<e=it "outer2(config)<router eigrp 1' "outer2(config-router)<net/or0 1'71717' "outer2(config-router)<net/or0 '71717' "outer2(config-router)<no autosummary "outer1(config-router)<e=it "outer (config)<int fa':' "outer (config-if)<ip add '717172 2##7'7'7' "outer (config-if)<no s1 "outer (config-if)<int fa1:' "outer (config-if)<ip add !'717171 2##7'7'7' "outer (config-if)<no s1 "outer (config-if)<e=it "outer (config)<router eigrp 1' "outer (config-router)<net/or0 !'71717' "outer (config-router)<net/or0 '71717' "outer (config-router)<no autosummary "outer1(config-router)<e=it

To Check the E *'% Neighbors "outer'<s1 ip eigrp neig1bors IP-*I("P neig1bors for process 1' 2 .ddress Interface 2old Dptime S"TT "T+ 8 SeJ Type (sec) (ms) Cnt Num ' 1'717172 ,a':' 11 ''?1$? $ 1#2& #''' ' ! To check the E *'% route "outer1<s1 ip route Codes? C - connected@ S - static@ " - "IP@ ; - mobile@ A - A(P 12

6 - *I("P@ *B - *I("P e=ternal@ + - +SP,@ I. - +SP, inter area N1 - +SP, NSS. e=ternal type 1@ N2 - +SP, NSS. e=ternal type 2 *1 - +SP, e=ternal type 1@ *2 - +SP, e=ternal type 2 i - IS-IS@ L1 - IS-IS le4el-1@ L2 - IS-IS le4el-2@ ia - IS-IS inter area C - candidate default@ D - per-user static route@ o - +6" P - periodic do/nloaded static route (ate/ay of last resort is not set 6 C C 2'7'7'7':& E-': '$2'F 4ia 1'717171@ ''?21?'1@ ,ast*t1ernet':' 1'7'7'7':& is directly connected@ ,ast*t1ernet':' '7'7'7':& is directly connected@ ,ast*t1ernet1:'

To check the E *'% topology "outer1<s1 ip eigrp topology IP-*I("P Topology Table for .S(1'):I6( '717171) Codes? P - Passi4e@ . - .cti4e@ D - Dpdate@ 8 - 8uery@ " - "eply@ r - reply Status@ s - sia Status P 1'7'7'7':&@ 1 successors@ ,6 is 2&1)' 4ia Connected@ ,ast*t1ernet':' P 2'7'7'7':&@ 1 successors@ ,6 is '$2' 4ia 1'717171 ( '$2':2&1)')@ ,ast*t1ernet':' P '7'7'7':&@ 1 successors@ ,6 is 2&1)' 4ia Connected@ ,ast*t1ernet1:'

(S%.

'outer ! Interface ,':' ,1:' 'outer " IP .ddress 1'717171 2'717171 Subnet ;as0 2##7'7'7' 2##7'7'7'

Interface ,':' ,1:' 'outer # Interface ,':' ,1:' Lab +b>ect Tas0 1

IP .ddress 1'717172 '717171 IP .ddress '717172 !'717171

Subnet ;as0 2##7'7'7' 2##7'7'7' Subnet ;as0 2##7'7'7' 2##7'7'7'

Configure +SP, on bot1 t1e routers "outer1(config)<int fa':' "outer1(config-if)<ip add 1'717171 2##7'7'7' "outer1(config-if)<no s1 "outer1(config-if)<int fa1:' "outer1(config-if)<ip add 2'717171 2##7'7'7' "outer1(config-if)<no s1 "outer1(config)<router ospf 1'' "outer1(config-router)<net/or0 1'71717' 2##7'7'7' area ' "outer1(config-router)<net/or0 2'71717' 2##7'7'7' area ' "outer2(config)<int fa':' "outer2(config-if)<ip add 1'717172 2##7'7'7' "outer2(config-if)<no s1 "outer2(config-if)<int fa1:' "outer2(config-if)<ip add '717171 2##7'7'7' "outer2(config-if)<no s1 "outer2(config)<router ospf 1'' "outer2(config-router)<net/or0 1'71717' 2##7'7'7' area ' "outer2(config-router)<net/or0 '71717' 2##7'7'7' area ' "outer (config)<int fa':' "outer (config-if)<ip add '717172 2##7'7'7' "outer (config-if)<no s1 "outer (config-if)<int fa1:' "outer (config-if)<ip add !'717171 2##7'7'7' "outer (config-if)<no s1 "outer (config)<router ospf 1'' "outer (config-router)<net/or0 !'71717' 2##7'7'7' area ' "outer (config-router)<net/or0 '71717' 2##7'7'7' area '

To check the (S%. route "outer'<s1 ip route Codes? C - connected@ S - static@ " - "IP@ ; - mobile@ A - A(P 6 - *I("P@ *B - *I("P e=ternal@ + - +SP,@ I. - +SP, inter area N1 - +SP, NSS. e=ternal type 1@ N2 - +SP, NSS. e=ternal type 2 *1 - +SP, e=ternal type 1@ *2 - +SP, e=ternal type 2 i - IS-IS@ L1 - IS-IS le4el-1@ L2 - IS-IS le4el-2@ ia - IS-IS inter area C - candidate default@ D - per-user static route@ o - +6" P - periodic do/nloaded static route (ate/ay of last resort is not set C C + 2'7'7'7':& is directly connected@ ,ast*t1ernet1:' 1'7'7'7':& is directly connected@ ,ast*t1ernet':' '7'7'7':& E11':2F 4ia 1'717172@ ''?''? #@ ,ast*t1ernet':' 1!

To check the (S%. "outer'<s1 ip ospf "outing Process Kospf 1''K /it1 I6 2'717171 Supports only single T+S(T+S') routes Supports opaJue LS. Supports Lin0-local Signaling (LLS) Initial SP, sc1edule delay #''' msecs ;inimum 1old time bet/een t/o consecuti4e SP,s 1'''' msecs ;a=imum /ait time bet/een t/o consecuti4e SP,s 1'''' msecs ;inimum LS. inter4al # secs7 ;inimum LS. arri4al 1 secs LS. group pacing timer 2!' secs Interface flood pacing timer msecs "etransmission pacing timer )) msecs Number of e=ternal LS. '7 C1ec0sum Sum '='''''' Number of opaJue .S LS. '7 C1ec0sum Sum '='''''' Number of 6Cbitless e=ternal and opaJue .S LS. ' Number of 6oNot.ge e=ternal and opaJue .S LS. ' Number of areas in t1is router is 17 1 normal ' stub ' nssa *=ternal flood list lengt1 ' .rea A.CGA+N*(') Number of interfaces in t1is area is 2 .rea 1as no aut1entication SP, algorit1m last e=ecuted ''?'1?!!7$$) ago SP, algorit1m e=ecuted ! times .rea ranges are To check the (S%. Database "outer'<s1 ip ospf database +SP, "outer /it1 I6 (2'717171) (Process I6 1'') "outer Lin0 States (.rea ') Lin0 I6 2'717171 '717171 .6% "outer .ge 2'717171 #& '717171 #& Net Lin0 States (.rea ') Lin0 I6 1'717171 .6% "outer .ge 2'717171 #& SeJ< C1ec0sum '=&''''''1 '=''!C-1 SeJ< C1ec0sum Lin0 count '=&'''''' '='' )&6 2 '=&'''''' '=''A-*. 2

To check the (S%. Neighbor 1#

"outer'<s1 ip ospf neig1bor Neig1bor I6 '717171 Pri State 1 ,DLL:A6" 6ead Time .ddress ''?''? 2 1'717172 Interface ,ast*t1ernet':'

TELNET
'outer + "outer'(config)<line 4ty ' ! "outer'(config-line)<pass/ord cisco12 "outer'(config-line)<login "outer'(config-line)<e=it "outer'(config)<enable pass/ord cisco12 %ing to the destination network. "outer'<ping '717171 Type escape seJuence to abort7 Sending #@ 1''-byte IC;P *c1os to '717171@ timeout is 2 seconds? LLLLL Success rate is 1'' percent (#:#)@ round-trip min:a4g:ma= M 1$2:2$!: && ms "outer'<ping '717172 1) 'outer ! "outer1(config)<line 4ty ' ! "outer1(config-line)<pass/ord cisco12 "outer1(config-line)<login "outer1(config-line)<e=it "outer1(config)<enable pass/ord cisco12

&CCESS L ST

Standard &CL
'outer !
"outer1(config)<int fa':1 "outer1(config-if)<ip add 1'717171 2##7'7'7' "outer1(config-if)<no s1 "outer1(config)<int fa':' "outer1(config-if)<ip add 2'717171 2##7'7'7' "outer1(config-if)<no s1 "outer1(config)<router ospf 1' "outer1(config-router)<net/or0 1'71717' 2##7'7'7' area ' "outer1(config-router)<net/or0 2'71717' 2##7'7'7' area ' "outer1(config-router)<e=it

'outer "
"outer2(config)<int fa':' "outer2(config-if)<ip add 2'717172 2##7'7'7' "outer2(config-if)<no s1 "outer2(config)<int fa':1 "outer2(config-if)<ip add '717171 2##7'7'7' "outer2(config-if)<no s1 "outer2(config)<router ospf 1' "outer2(config-router)<net/or0 2'71717' 2##7'7'7' area ' "outer2(config-router)<net/or0 '71717' 2##7'7'7' area ' "outer2(config-router)<e=it

'outer #
"outer (config)<int fa':' "outer (config-if)<ip add '717172 2##7'7'7' "outer (config-if)<no s1 "outer (config)<int ':1 "outer (config-if)<ip add !'717171 2##7'7'7' "outer (config-if)<no s1 "outer (config)<router ospf 1' "outer (config-router)<net/or0 '71717' 2##7'7'7' area ' "outer (config-router)<net/or0 !'71717' 2##7'7'7' area ' "outer (config-router)<e=it

1$

"outer2(config)<access-list #' deny !'71717' '72##72##72## "outer2(config)<access-list #' permit any "outer2(config-router)<distribute-list #' in fa':' "outer2(config)<access-list 2# permit !'71717' '72##72##72## "outer2(config)<access-list 2# deny any

To C1ec0 t1e connecti4ity before applying distribute-list at router2 fa':' interface


"outer <ping 1'717171 Type escape seJuence to abort7 Sending #@ 1''-byte IC;P *c1os to 1'717171@ timeout is 2 seconds? LLLLL Success rate is 1'' percent (#:#)@ round-trip min:a4g:ma= M !&':#-&:)&! ms

To C1ec0 t1e connecti4ity after applying distribute-list at router2 fa':' in interface


"outer <ping 1'717171 Type escape seJuence to abort7 Sending #@ 1''-byte IC;P *c1os to 1'717171@ timeout is 2 seconds? D7D7D Success rate is ' percent (':#)

To C1ec0 t1e connecti4ity after applying permit command in distribute-list at router 2 fa':' in interface
"outer2(config-router)<distribute-list 2# in fa':' "outer <ping 1'717171 Type escape seJuence to abort7 Sending #@ 1''-byte IC;P *c1os to 1'717171@ timeout is 2 seconds? LLLLL Success rate is 1'' percent (#:#)@ round-trip min:a4g:ma= M !)':)1':$)' ms

E/tended &ccess List


"outer2(config)<access-list 1'1 deny ospf any 1'71717' '7'7'7' "outer2(config)<router ospf 1' "outer2(config-router)<distribute-list 1'1 in fa':'

To C1ec0 t1e connecti4ity before applying distribute-list at router2 fa':' interface


"outer <ping 1'717171 Type escape seJuence to abort7 Sending #@ 1''-byte IC;P *c1os to 1'717171@ timeout is 2 seconds? LLLLL Success rate is 1'' percent (#:#)@ round-trip min:a4g:ma= M !&':#-&:)&! ms

1&

To C1ec0 t1e connecti4ity after applying distribute-list at router2 fa':' in interface


"outer <ping 1'717171 Type escape seJuence to abort7 Sending #@ 1''-byte IC;P *c1os to 1'717171@ timeout is 2 seconds? D7D7D Success rate is ' percent (':#)

N&T
Static N&T

'outer +
"outer'(config)<int fa':' "outer'(config-if)<ip add 1'717171 2##7'7'7' "outer'(config-if)<no s1 "outer'(config)<int fa':1 "outer'(config-if)<ip add '717171 2##7'7'7' "outer'(config-if)<no s1 "outer'(config)<router ospf 1' "outer'(config-router)<net/or0 1'71717' 2##7'7'7' area ' "outer'(config-router)<net/or0 '71717' 2##7'7'7' area ' "outer'(config-router)<e=it "outer'(config)<ip nat inside source static '717171 1'71717

'outer !
"outer1(config)<int fa':' "outer1(config-if)<ip add 1'717172 2##7'7'7' "outer1(config-if)<no s1 "outer1(config)<int fa':1 "outer1(config-if)<ip add 2'717171 2##7'7'7' "outer1(config-if)<no s1 "outer1(config)<router ospf 1' "outer1(config-router)<net/or0 1'71717' 2##7'7'7' area ' "outer1(config-router)<net/or0 2'71717' 2##7'7'7' area ' "outer1(config-router)<e=it

'outer"
"outer2(config)<int fa':' "outer2(config-if)<ip add !'717171 2##7'7'7' "outer2(config-if)<no s1 "outer2(config)<int fa':1 "outer2(config-if)<ip add 2'717172 2##7'7'7' "outer2(config-if)<no s1 "outer2(config)<router ospf 1' "outer2(config-router)<net/or0 2'71717' 2##7'7'7' area ' "outer2(config-router)<net/or0 !'71717' 2##7'7'7' area ' "outer2(config-router)<e=it

1-

To c1ec0 t1e Static N.T


"outer'<copy running-config startup-config 6estination filename Estartup-configFH Auilding configuration777 E+GF "outer'<s1 running-config Auilding configuration777 Current configuration ? )#- bytes L 4ersion 127! no ser4ice timestamps log datetime msec no ser4ice timestamps debug datetime msec no ser4ice pass/ord-encryption L 1ostname "outer' L L L L L interface ,ast*t1ernet':' ip address 1'717171 2##7'7'7' ip nat outside interface ,ast*t1ernet':1 ip address '717171 2##7'7'7' ip nat inside ip nat inside source static '717171 1'71717 ip classless

To c1ec0 t1e IP Translation "outer'<s1 ip nat translations Pro Inside global Inside local +utside local --- 1'71717 '717171 -----

+utside global

Dynamic Nating 'outer +


"outer'(config)<int fa':' "outer'(config-if)<ip add 1'717171 2##7'7'7' "outer'(config-if)<no s1 "outer'(config)<int fa':1 "outer'(config-if)<ip add '717171 2##7'7'7' "outer'(config-if)<no s1 "outer'(config)<router ospf 1' "outer'(config-router)<net/or0 1'71717' 2##7'7'7' area '

'outer !
"outer1(config)<int fa':' "outer1(config-if)<ip add 1'717172 2##7'7'7' "outer1(config-if)<no s1 "outer1(config)<int fa':1 "outer1(config-if)<ip add 2'717171 2##7'7'7' "outer1(config-if)<no s1 "outer1(config)<router ospf 1' "outer1(config-router)<net/or0 1'71717' 2##7'7'7' area '

'outer"
"outer2(config)<int fa':' "outer2(config-if)<ip add !'717171 2##7'7'7' "outer2(config-if)<no s1 "outer2(config)<int fa':1 "outer2(config-if)<ip add 2'717172 2##7'7'7' "outer2(config-if)<no s1 "outer2(config)<router ospf 1' "outer2(config-router)<net/or0 2'71717' 2##7'7'7' area '

2'

"outer'(config-router)<net/or0 '71717' 2##7'7'7' area ' "outer'(config-router)<e=it "outer'(config)<access-list 1# deny 1ost '717171 "outer'(config)<access-list 1# permit '71717' '7'7'72## "outer'(config)<ip nat pool dynat 1'71717! 1'717172' netmas0 1'7'7'7' "outer'(config)<ip nat inside source list 1# pool dynat

"outer1(config-router)<net/or0 2'71717' 2##7'7'7' area ' "outer1(config-router)<e=it

"outer2(config-router)<net/or0 !'71717' 2##7'7'7' area ' "outer2(config-router)<e=it

To c1ec0 t1e 6ynamic N.T


"outer'<copy running-config startup-config 6estination filename Estartup-configFH Auilding configuration777 E+GF "outer'<s1 run Auilding configuration777 Current configuration ? &2& bytes L 4ersion 127! no ser4ice timestamps log datetime msec no ser4ice timestamps debug datetime msec no ser4ice pass/ord-encryption L 1ostname "outer' L interface ,ast*t1ernet':' ip address 1'717171 2##7'7'7' ip nat outside duple= auto speed auto L interface ,ast*t1ernet':1 ip address '717171 2##7'7'7' ip nat inside duple= auto speed auto L interface %lan1 no ip address s1utdo/n L router ospf 1' log-ad>acency-c1anges ip nat pool dynat 1'71717! 1'717172' netmas0 1'7'7'7' ip nat inside source list 1# pool dynat ip nat inside source static '717171 1'71717 ip classless L L

21

access-list 1# deny 1ost '717171 access-list 1# permit '71717' '7'7'72## L L L line con ' line 4ty ' ! login L

S0 TC$ N*

Switch!

Port ,.':1 ,.':2 ,.':

.ssigned %L.Ns %L.N 2 %L.N %L.N2 22

PC PC1(1'717172) PC2(2'717172) PC (1'71717 )

,.':!

%L.N

PC!(2'71717 )

Tas0 To create %L.N2 and %L.N and assign name S.L*S and ,IN.NC* to eac1 %L.N7 .ssign Port 1 and S.L*S and Port 2 and ! to ,IN.NC* S/itc11(config)<4lan 2 S/itc11(config-4lan)<name S.L*S S/itc11(config-4lan)<e=it S/itc11(config)<4lan S/itc11(config-4lan)<name ,IN.NC* S/itc11(config-4lan)<e=it S/itc11(config)<int f':1 S/itc11(config-if)<s/itc1port access 4lan2 S/itc11(config-if)<e=it S/itc11(config)<int f': S/itc11(config-if)<s/itc1port access 4lan2 S/itc11(config-if)<e=it S/itc11(config)<int f':2 S/itc11(config-if)<s/itc1port access 4lan S/itc11(config-if)<e=it S/itc11(config)<int f':! S/itc11(config-if)<s/itc1port access 4lan S/itc11(config-if)<e=it to

Check the nterface S/itc11<s1 int fa':1 2

Name ,a':1 S/itc1port? *nabled .dministrati4e ;ode? Static access +perational ;ode? Static access .dministrati4e Trun0ing *ncapsulation? negotiate +petational Trun0ing *ncapsulation?nati4e Negotiation of Trun0ing?+ff .ccess ;ode %L.N? 1(default) Trun0ing Nati4e ;ode %L.N? 1(default) +t1er commands to be c1ec0ed

S/itc11< s1 4lan brief Ping from one port to ot1er port of same 4lan 3 "esult must be pinging Ping from one port to ot1er port of ot1er 4lan 3 "esult must not ping7

Configure the Trunk %ort Switch! Port ,.':1 ,.':2 ,.':2! Configured as Trun0 Port .ssigned %L.Ns %L.N 2 %L.N PC PC1(1'717172) PC2(2'717172)

Switch" Port ,.':1 ,.':2 ,.':2! Configured as Trun0 Port .ssigned %L.Ns %L.N 2 %L.N PC PC1(1'71717 ) PC2(2'71717 )

2!

Tas0 To configure t1e port No2! as Trun0 Port on bot1 t1e s/itc1es7 S/itc1 1(config)<ing fa':2! S/itc11(config)<s1utdo/n S/itc11(config)<s/itc1port trun0 encapsulation is1 S/itc1 1(config 3 if)<s/itc1port mode trun0 S/itc1 1(config 3 if)<e=it S/itc1 2(config)<int fa':2! S/itc12(config)<s1utdo/n S/itc12(config)<s/itc1port trun0 encapsulation is1 S/itc1 2(config 3 if)<s/itc1port mode trun0 S/itc1 2(config 3 if)<e=it

-erify the Trunking S/itc11< s1 int trun0 S/itc11<s1 int fa':2! s/itc1port

2#

Das könnte Ihnen auch gefallen