Вы находитесь на странице: 1из 4

Bi ny mnh s hng dn cc bn cu hnh giao thc RIP(Routing Infomation Potoco!" !

m#t tong nh$ng giao thc %&nh tuy'n th(ng %)c cu hnh t*n Rout+, -.y ! giao thc
thu#c !oi /istanc+01+cto2 t3nh ton %(ng %i d4a 1o s5 n+6t0ho7 t8 ngu9n cho t:i %3ch,
;iao thc RIP c< hai 7hi*n b=n(>+sion" 1? 1 1@,
;iao thc RIP hAc cc tuy'n %(ng do cac n+6t0ho7 B' cCn n< gDi sang2 1 n< ! giao thc
thu#c distanc+ n*n n< BhEng bi't %)c stat+ !inB cFa cc tuy'n %(ng Bhc %.y ! m#t %iGm
y'u cFa giao thc ny,
M hnh bi Lab ca mnh(Ging m hnh bi lab trc minh nu) :

Bc 1: hu!n b" bi lab:
Bi ny mnh s sD dHng cIng J+ia! %G B't n5i cc Rout+ 1:i nhau,
KE hnh mnh g9mL
# $%ut&r '(11:
Rout+ MNL int+fac+ s+ia!OPQPO(sOPQPO" IP ?R@,?ST,?,? B't n5i t:i Rout+ NU
int+fac+ fOPO IP ?V@,?S,?,? B't n5i t:i PW?
Rout+ NUL int+fac+ s+ia!OPQPO(sOPQPO" IP ?R@,?ST,?,@ B't n5i t:i Rout+ MN
Rout+ NUL int+fac+ s+ia!OPQP?(sOPQP?" IP ?R@,?ST,@,@ B't n5i t:i Rout+ MWK
Rout+ MWKL int+fac+ s+ia!OPQP?(sOPQP?" IP ?R@,?ST,@,? B't n5i t:i Rout+ NU
int+fac+ fOPO IP ?O,?,?,? B't n5i t:i PW@
' ):
PW ?L IP ?V@,?S,?,@ B't n5i t:i int+fac+ fOPO Rout+ MN
PW@ L IP ?O,?,?,@ B't n5i t:i int+fac+ fOPO Rout+ MWK
Bc ': *u hnh
Wu hnh Rout+ MNL
Rout+(config"Xhostnam+ Rout+ MN
Rout+(config"Xhostnam+ Rout+MN
Rout+MN(config"Xint sOPQPO
Rout+MN(config0if"Xi7 add+ss ?R@,?ST,?,? @YY,@YY,@YY,O
Rout+MN(config0if"Xno shutdoZn
Rout+MN(config0if"Xc!ocB at+ S[OOO
Rout+MN(config0if"X+6it
Rout+MN(config"X
00000000000000000000000000000000000000000000
Rout+MN(config"Xint fOPO
Rout+MN(config0if"Xd+sci7tion \Wonn+ct to PW?\
Rout+MN(config0if"Xi7 add+ss ?V@,?S,?,? @YY,@YY,@YY,O
Rout+MN(config0if"Xno shutdoZn
Rout+MN(config0if"X+6it
Rout+MN(config"X
Wu hnh Rout+ NUL
Rout+(config"Xhostnam+ Rout+NU
Rout+NU(config0if"Xd+sci7tion \conn+ct to Rout+ MN\
Rout+NU(config"Xint sOPQPO
Rout+NU(config0if"Xi7 add+ss ?R@,?ST,?,@ @YY,@YY,@YY,O
Rout+NU(config0if"Xno shutdoZn
Rout+NU(config0if"Xc!ocB at+ S[OOO
Rout+NU(config0if"X+6it
Rout+NU(config"X
0000000000000000000000000000000000000000000000000
Rout+NU(config"Xint sOPQP?
Rout+NU(config0if"Xd+sci7tion \Wonn+ct to Rout+ MWK\
Rout+NU(config0if"Xi7 add+ss ?R@,?ST,@,@ @YY,@YY,@YY,O
Rout+NU(config0if"Xno shutdoZn
Rout+NU(config0if"Xc!ocB at+ S[OOO
Rout+NU(config0if"X+6it
Rout+NU(config"X
Wu hnh Rout+ MWK
Rout+(config"Xhostnam+ Rout+MWK
Rout+MWK(config"Xint sOPQP?
Rout+MWK(config0if"Xd+sci7tion \Wonn+ct to Rout+ NU\
Rout+MWK(config0if"Xi7 add+ss ?R@,?ST,@,? @YY,@YY,@YY,O
Rout+MWK(config0if"Xno shutdoZn
Rout+MWK(config0if"Xc!ocB at+ S[OOO
Rout+MWK(config0if"X+6it
Rout+MWK(config"X
00000000000000000000000000000000000000000000000000000000000000
Rout+MWK(config"Xint fOPO
Rout+MWK(config0if"Xd+sci7tion \Wonn+ct to PW @\
Rout+MWK(config0if"Xi7 add+ss ?O,?,?,? @YY,@YY,@YY,O
Rout+MWK(config0if"Xno shutdoZn
Rout+MWK(config0if"X+6it
Rout+MWK(config"X
Wu hnh i7 cho PW ? 1 PW @L
PW?L i7 add+ss ?V@,?S,?,@2 subn+tmasBL @YY,@YY,@YY,O gat+ZayL ?V@,?S,?,?
PW@L i7 add+ss ?O,?,?,@2 subn+t masBL @YY,@YY,@YY,O gat+ZayL ?O,?,?,?
Jau Bhi cu hnh 6ong cc bn ti'n hnh BiGm ta 7ingL
7ing t8 7c? t:i ?V@,?S,?,? ]]]]]]^oB
7ing t8 7c @ t:i ?O,?,?,? ]]]]]]]]^oB
7ing t8 Rout+MN t:i ?R@,?ST,?,@ ]]]]]]^oB
7ing t8 Rout+NU t:i ?R@,?ST,@,? ]]]]]]]^oB
Nhng cc bn BhEng thG 7ing t8 PW? t:i PW@ 1 ng)c !i b:i 1 Bhi bn 7ing t8 7c?(ho_c
PW@" Rout+MN(ho_c Rout+MWK" BhEng bi't %)c mng ?O,?,?,OP@[ cFa PW@ (ho_c mng
?V@,?S,?,OP@[ cFa PW?" n*n g<i tin s b& do7]]^B't `u= 7ing !oss ?OOa,
Bc #: Wu hnh ;iao thc %&nh tuy'n RIP
Rout+ MNL
RouterHN(config)#router rip
RouterHN(config-router)#version 2
RouterHN(config-router)#net 192.168.1.0
RouterHN(config-router)#net 172.16.1.0
RouterHN(config-router)#exit
RouterHN(config)#
Rout+ NUL
Rout+NU(config"Xout+ i7
Rout+NU(config0out+"X1+sion @
Rout+NU(config0out+"Xn+t ?R@,?ST,?,O
Rout+NU(config0out+"Xn+t ?R@,?ST,@,O
Rout+NU(config0out+"X+6it
Rout+NU(config"X
Rout+ MWKL
Rout+MWK(config"Xout+ i7
Rout+MWK(config0out+"X1+sion @
Rout+MWK(config0out+"Xn+t ?R@,?ST,@,O
Rout+MWK(config0out+"Xn+t ?O,?,?,O
Rout+MWK(config0out+"X+6it
+i,m tra b-ng "nh tu./n:
Rout+ MNL
RouterHN#sh ip route
o!es" - connecte!# $ - st%tic# & - &'R(# R - R&(# ) - *o+i,e# - - -'(
. - /&'R(# /0 - /&'R( extern%,# 1 - 1$(2# &3 - 1$(2 inter %re%
N1 - 1$(2 N$$3 extern%, t4pe 1# N2 - 1$(2 N$$3 extern%, t4pe 2
/1 - 1$(2 extern%, t4pe 1# /2 - 1$(2 extern%, t4pe 2# / - /'(
i - &$-&$# 51 - &$-&$ ,eve,-1# 52 - &$-&$ ,eve,-2# i% - &$-&$ inter %re%
6 - c%n!i!%te !ef%u,t# 7 - per-user st%tic route# o - 1.R
( - perio!ic !o8n,o%!e! st%tic route
'%te8%4 of ,%st resort is not set
R 10.0.0.098 :12092; vi% 192.168.1.2# 00"00"18# $eri%,09<90
172.16.0.092= is su+nette!# 1 su+nets
172.16.1.0 is !irect,4 connecte!# 2%st/thernet090
192.168.1.092= is !irect,4 connecte!# $eri%,09<90
R 192.168.2.092= :12091; vi% 192.168.1.2# 00"00"18# $eri%,09<90
RouterHN#
Rout+NUL
RouterN3#sho8 ip route
o!es" - connecte!# $ - st%tic# & - &'R(# R - R&(# ) - *o+i,e# - - -'(
. - /&'R(# /0 - /&'R( extern%,# 1 - 1$(2# &3 - 1$(2 inter %re%
N1 - 1$(2 N$$3 extern%, t4pe 1# N2 - 1$(2 N$$3 extern%, t4pe 2
/1 - 1$(2 extern%, t4pe 1# /2 - 1$(2 extern%, t4pe 2# / - /'(
i - &$-&$# 51 - &$-&$ ,eve,-1# 52 - &$-&$ ,eve,-2# i% - &$-&$ inter %re%
6 - c%n!i!%te !ef%u,t# 7 - per-user st%tic route# o - 1.R
( - perio!ic !o8n,o%!e! st%tic route
'%te8%4 of ,%st resort is not set
R 10.0.0.098 :12091; vi% 192.168.2.1# 00"00"19# $eri%,09<91
R 172.16.0.0916 :12091; vi% 192.168.1.1# 00"00"2># $eri%,09<90
192.168.1.092= is !irect,4 connecte!# $eri%,09<90
192.168.2.092= is !irect,4 connecte!# $eri%,09<91
RouterN3#
Rout+ MWKL
RouterH)#sh ip route
o!es" - connecte!# $ - st%tic# & - &'R(# R - R&(# ) - *o+i,e# - - -'(
. - /&'R(# /0 - /&'R( extern%,# 1 - 1$(2# &3 - 1$(2 inter %re%
N1 - 1$(2 N$$3 extern%, t4pe 1# N2 - 1$(2 N$$3 extern%, t4pe 2
/1 - 1$(2 extern%, t4pe 1# /2 - 1$(2 extern%, t4pe 2# / - /'(
i - &$-&$# 51 - &$-&$ ,eve,-1# 52 - &$-&$ ,eve,-2# i% - &$-&$ inter %re%
6 - c%n!i!%te !ef%u,t# 7 - per-user st%tic route# o - 1.R
( - perio!ic !o8n,o%!e! st%tic route
'%te8%4 of ,%st resort is not set
10.0.0.092= is su+nette!# 1 su+nets
10.1.1.0 is !irect,4 connecte!# 2%st/thernet090
R 172.16.0.0916 :12092; vi% 192.168.2.2# 00"00"18# $eri%,09<91
R 192.168.1.092= :12091; vi% 192.168.2.2# 00"00"18# $eri%,09<91
192.168.2.092= is !irect,4 connecte!# $eri%,09<91
RouterH)#
>id+o babL
)h0n 1: htt7LPPZZZ,youtub+,comPZatchc1]sdomQ`;efTg
)h0n ': htt7LPPZZZ,youtub+,comPZatchc1];6gmYdsBJQh
)h0n #: htt7LPPZZZ,youtub+,comPZatchc1]iiij!11Knko

Вам также может понравиться