a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 77|回复: 0

[综合] 思科认证:关于路由器静态路由配置的详解

[复制链接]
发表于 2012-8-3 20:03:30 | 显示全部楼层 |阅读模式
思科认证:关于路由器静态路由配置的详解! M+ b( _/ q( \+ ?( H
路由器静态路由配置
* ?" }2 G/ u0 f0 Y//实现:通过静态路由实现网络的连通性。
$ I* s# K$ V+ F1 x" \0 k//环境:2 E2 \; R8 u, B- P! A- N) E
Router01, b/ u. k! d; P6 v; y1 j
Router02
3 W# W) U4 m4 }% }0 BCISCO 2960-01
0 E  x: a5 c* p, e, n% E  zCISCO 2960-029 U1 M9 ~$ T' U
PC015 h2 [0 U( H' [$ R' M# i/ V
PC02* ]8 ^6 }+ |: ^0 [* x5 H
//配置Router01
5 K2 s( u& D) A) L, i& g: r8 ?7 ~. uRouter01》enable: `9 n3 Q$ m/ v% t/ X8 F# R
Router01#configure terminal6 i( E: |4 Z( G
Router01(config)#interface fastEthernet 1/0# k6 i; B. J2 M, l' ^
Router01(config-if)#no shutdown
" L, W$ @1 y7 L( URouter01(config-if)#ip address 192.168.1.1 255.255.255.0! ~! W: T  }, n8 W
Router01(config-if)#exit
0 a, \. E3 z9 G' f6 GRouter01(config)#interface serial 2/0
1 o- |* Z1 z- |Router01(config-if)#ip address 192.168.3.1 255.255.255.0
" a( e8 L* i, X
- f+ n* g9 c5 k( |$ G- l6 }8 rRouter01(config-if)#clock rate 64000 //配置时钟频率
5 C7 M( [6 n# }; m9 m7 D6 lRouter01(config-if)#no shutdown
$ g" J6 J7 y* x  s$ S" qRouter01#configure terminal
8 w2 r2 Q) |2 P1 d$ N5 N0 k5 P2 z! URouter01(config)#ip route 192.168.2.0 255.255.255.0 192.168.3.2 //静态路由配置(目标网段,下一跳地址); E( k' P- i( A
Router01#show ip route //查看路由表
* S4 U/ H  a: jRouter01#write
8 \- f) X2 L) k6 c& @9 S//配置Router02
3 q, I0 ?- @) ]2 YRouter02》enable
/ W( L& p1 ^! H) M( L% s1 G  C, W9 mRouter02#configure terminal
, c. A0 F, L* @  Z# M4 tRouter02(config)#interface fastEthernet 1/0
; p' p1 h8 R5 g, b4 x4 M  N$ Q& G, M4 PRouter02(config-if)#no shutdown
) z0 u: t9 Y9 Z# I, TRouter02(config-if)#ip address 192.168.2.1 255.255.255.0/ ?# |& T8 O5 ?& r
Router02(config-if)#exit
. }7 Y9 z0 O% _1 {Router02(config)#interface serial 2/0
8 y1 _* @2 X9 R4 ]" k" m% MRouter02(config-if)#ip address 192.168.3.1 255.255.255.0
6 ]* ~! ^( I; ~2 m2 D% K3 ~Router02(config-if)#no shutdown( d% B; Z8 }/ X1 W" o+ b* L6 a2 [
Router02#configure terminal* ^$ I$ h3 {! M  l! s8 F' C
Router02(config)#ip route 192.168.1.0 255.255.255.0 192.168.3.1. V* D. B% u3 j9 _+ A" m
Router02#write
" N/ r7 @2 A5 h) W) Q" t//测试:(终端计算机)+ u) S9 w) o) k! `
PC01》ping 192.168.1.1
# w3 u" r  }7 \$ v- EPinging 192.168.1.1 with 32 bytes of data:" P& {' h* A+ _
Reply from 192.168.1.1: bytes=32 time=7ms TTL=255: g: q8 K/ }# J2 |. W& g" C2 N
Ping statistics for 192.168.1.1:: N; y1 @& _( Y& n
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),- u& Y( g- j0 f: Z1 K
Approximate round trip times in milli-seconds:
# g) \7 Y7 x& h( t6 w- BMinimum = 7ms, Maximum = 7ms, Average = 7ms
. X* e9 x5 ]$ ZControl-C; c$ o9 A2 Q" H2 X0 k  T: E7 {
PC01》ping 192.168.3.1
& R6 O8 e) \, ?7 _Pinging 192.168.3.1 with 32 bytes of data:  h; C$ S9 U% i
Reply from 192.168.3.1: bytes=32 time=13ms TTL=2559 D0 c, n. }+ N2 W
Ping statistics for 192.168.3.1:% h0 v+ O  N" e3 l: H3 f
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),  w5 k( q1 Q4 M9 e9 L
Approximate round trip times in milli-seconds:1 s# @0 r+ _9 m6 I0 h- w
Minimum = 13ms, Maximum = 13ms, Average = 13ms9 o( z: R9 D- Y1 w
Control-C: p: J1 P' H/ Y/ T  f% Z0 F
PC01》ping 192.168.3.2
* O( D+ M/ \6 h& w" Z* c: e% c( WPinging 192.168.3.2 with 32 bytes of data:
6 e: ]4 C* i9 H; O: y% w  u6 G1 cReply from 192.168.3.2: bytes=32 time=21ms TTL=254# [+ d/ x* ?# e1 m; G: v$ F& J
Ping statistics for 192.168.3.2:1 M# q; A- m$ s, \
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
- `- Q; O) c* ?- wApproximate round trip times in milli-seconds:! |( G% T% N. W' f# D! K0 p
Minimum = 21ms, Maximum = 21ms, Average = 21ms
# y5 a7 B6 V; l: T2 qControl-C
* E, P% y9 H4 D' c8 g- I& K- \9 I2 H+ aPC01》ping 192.168.2.1! r" l* z/ _$ B
Pinging 192.168.2.1 with 32 bytes of data:' k  P$ s+ j7 ^2 |/ K% b( l( a
Reply from 192.168.2.1: bytes=32 time=19ms TTL=254
; Y4 C/ `( E1 w& N5 h0 h& m1 uPing statistics for 192.168.2.1:
4 o7 _7 R, U7 k! D5 zPackets: Sent = 1, Received = 1, Lost = 0 (0% loss),0 q3 V4 D8 ^8 h1 z; _$ ^4 \
Approximate round trip times in milli-seconds:
* W; a" D+ s. h3 t, cMinimum = 19ms, Maximum = 19ms, Average = 19ms  M5 z8 q! n: W# |1 S' Q
Control-C9 z6 ^7 Y6 M) X: U3 c/ m
PC01》ping 192.168.2.101
2 W1 q9 S+ m* EPinging 192.168.2.101 with 32 bytes of data:  Z' }3 z# F+ G: I
Reply from 192.168.2.101: bytes=32 time=35ms TTL=126* c( F6 x  w* `/ t
Ping statistics for 192.168.2.101:/ r$ p7 u* m# z; f( A9 t9 b
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),! V( t9 e2 M, o# U9 Q
Approximate round trip times in milli-seconds:
& x6 Y0 V5 _+ {* q  P, h' F/ f0 nMinimum = 35ms, Maximum = 35ms, Average = 35ms/ Y9 ~2 c5 o- }* q: m6 X$ O+ Q
Control-C
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-5-31 05:57 , Processed in 0.238458 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表