Está en la página 1de 1

Cch cu hnh static router:

1.Vo cu hnh ton cc ca Router


2.Xc nh a ch mng ch(lu a ch mng ch ch khng phi a ch host
ch ),subnet mask v cng giao tip ca router m mnh ang cu hnh hoc a ch trm
ca router lng ging
3.Cu hnh vi lnh IP route Destination net-Subnetmask- cng ra hoc a ch mng tip
theo, y ip route l lnh
4.Lm nh th vi cc router tng t
5.Ping th cht lng
VD:
C 3 router R1-R2-R3
R1 ni vi R2 bng cng s0/0 ip-s0/0: 10.0.1.1
R2 ni vi R1 bng cng s0/0 ip-s0/0: 10.0.1.2
R2 ni vi R3 bng cng s1/0 ip-s1/0: 10.168.0.1
R3 ni vi R2 bng cng s0/0 ip-s0/0: 10.168.0.2
R1:192.168.1.1/24 ->desnet add: 192.168.1.0
R2:192.168.2.1/24 ->desnet add: 192.168.2.0
R3:192.168.3.1/24 ->desnet add: 192.168.3.0
Trn R2 cu hnh static route n R1 ta nh:
R2(config)#ip route 192.168.1.0 ( l desnet) 255.255.255.0 (subnet) s0/0 (int) or ( 10.0.1.1
a ch trm k tip )
R2(config)#ip route 192.168.3.0 255.255.255.0 s1/0 or 10.168.0.2
DEFAULT ROUTE
ng default route l ng m router s s dng trong trng hp router khng tm
thy ng no ph hp trong bng nh tuyn ti ch ca gi d liu ,ta thng cu
hnh ng ra internet cho router l ng default v router khng cn lu thng tin ca
tng mng trn internet.
Tng t nh cu hnh static cu hnh default cng lm tng t ch khc 1 ch l a ch
des net v subnetmask ta th bng cc s 0.0.0.0 0.0.0.0 phn outgoing ta lm cng
tng t nhu trn.
Ly v d trn:
Tuy cu hnh cho R2 nhn bit ng i n R1 v R3 nhng R1 v R3 vn cha bit
router kt ni trc tip vi n l g ,ngoi ra R1 v R3 ch c 1 cng giao tip l s0/0 nn ta
s cu hnh default route n gin hn.
VD:
R1(config)#ip route 0.0.0.0 (desnet) 0.0.0.0 (subnet mask) S0/0 (outgoing trn R1 or next
hop add 10.0.1.2 )
R2(config)#ip route 0.0.0.0 (desnet) 0.0.0.0 (sunnet mask) s0/0 (outgoing tren R3 or next
hop add 10.168.0.1 )