- 积分
- 788
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 注册时间
- 2014-12-7
- 最后登录
- 1970-1-1
- 阅读权限
- 40
- 听众
- 收听
中级工程师
|
You have been asked to evaluate an OSPF network setup in a test lab and to answer questions a customer has about its operation. The customer has disabled your access to the show running-config command." ~+ }) }$ C w4 w3 Y8 V6 F/ ^
, p$ U+ S5 K+ RAlthough in this sim we are not allowed to use “show running-config” command but we post the configuration here so that you can understand more about the topology.
+ j6 g, {! D5 _: BR1) x1 v" v- f T( Q! u/ @
interface Loopback07 D! F$ F, s' f2 E* Q7 {8 r
ip address 1.1.1.1 255.255.255.255
0 e7 q4 }! Q$ M$ J! E& }" \; W!
$ \+ P' N% K A7 t. H: jinterface Serial0/0
4 N k( i" \, T6 Eip address 192.168.13.1 255.255.255.0# z6 @7 ^' r# s6 U
ip ospf network non-broadcast0 M" U6 r) d( @; ^( z
!% _7 l9 p+ b7 \, B G- e9 }
router ospf 1
4 b% T! G4 I( inetwork 192.168.13.0 0.0.0.255 area 0, h* E- q8 U* A
network 1.1.1.1 0.0.0.0 area 0R2
. m. z" ?6 a! E( t" y' j" N7 s2 {interface Loopback 0
6 }% D- X. l: [( y% [) {9 a- zip address 2.2.2.2 255.255.255.255 n! P2 Q. V' u" q1 y* S
!
- Q% i8 Y; k9 O7 G0 I) e' Sinterface S0/01 d2 Q) v* E' D5 q; r; |
ip address 192.168.23.2 255.255.255.0/ ?7 m8 _; G% k& o1 m0 q
ip ospf network non-broadcast1 m2 t' G" w- O" U4 Z' ^! _- y
!' a0 q: h. |' G- g- c, J
router ospf 1
: j5 c& W. Q* e5 l5 snetwork 192.168.23.0 0.0.0.255 area 0
7 l1 Q% _) O2 q# y7 A+ q1 [4 l1 U4 dnetwork 2.2.2.2 0.0.0.0 area 0
) Y0 q9 c" [5 K) g. Y1 Y: ^$ [( xneighbor 192.168.23.3R35 z6 q! r' g3 \" `* ?" [
interface Loopback 0
) c t- [2 t# @% Bip address 3.3.3.3 255.255.255.255
1 F2 B2 p0 v8 u: v0 h4 J% f. J!. @; v! C% K1 w- W* z4 z/ L. B% Z
interface Ethernet0/0
( S! I0 W' L/ J; Q$ @ip address 192.168.34.3 255.255.255.0
% \9 J1 X$ Y( m!+ h; h5 ^" p$ a( t5 h) T
interface S1/0
1 I3 a6 Y, N2 l; ]0 J7 p# }ip address 192.168.23.3 255.255.255.0
$ { ~, G: b( L! Yip ospf network non-broadcast# X! J Q+ n( J: s. d2 [
!9 Z% p1 d- a2 T* C6 z: Q
interface S1/18 h- ?# \5 Z8 B& B
ip address 192.168.13.3 255.255.255.0# D, w2 W- t: F6 ^- G
ip ospf network non-broadcast
: X c- {+ n8 @2 M7 O!
+ B) x* e. y& H: o' @* j: p5 H, Krouter ospf 1; x$ o; I0 V0 A- h% H
network 192.168.13.0 0.0.0.255 area 0
. ^. l, d1 ~+ i+ E8 E4 I7 ]) w# _network 192.168.23.0 0.0.0.255 area 0
6 i7 P4 O8 L! Q' K/ F8 m5 Znetwork 192.168.34.0 0.0.0.255 area 1
F: @3 V4 P4 Ynetwork 3.3.3.3 0.0.0.0 area 0
{) `7 X" a$ ], larea 1 virtual-link 4.4.4.4
5 b% \+ ^; @( n4 qneighbor 192.168.23.2R4
& D/ c: d! x; n# T2 C2 o ~# F. finterface Loopback 0; L9 T) K: d$ c2 G8 W
ip address 4.4.4.4 255.255.255.255$ R5 A& W5 s2 I2 F) }
interface FastEthernet0/0
* ] O: V# q: R6 hip address 192.168.34.4 255.255.255.0
6 ~6 f( N) L: |!
! c" ?$ ^1 k7 D5 Q" e0 minterface Ethernet0/1
- E: t# G/ @9 N" O+ zip address 192.168.45.4 255.255.255.00 B& {& H% H# K4 I& \7 C( k/ y
no shut6 @4 F+ T' I% w& a8 P. F8 \
!
l1 a+ B/ x' [: f1 L minterface Ethernet0/27 h U, @& u1 y5 |/ |
ip address 192.168.46.4 255.255.255.0
% {9 }1 E8 \. l2 rno shut. X- h' c+ N! A
!* {7 Z f0 J: @6 ^
router ospf 1
7 J* }* ^0 w0 ^network 192.168.34.0 0.0.0.255 area 1( p) _+ V' m: f6 {8 E3 g8 ^# O0 Y
network 192.168.45.0 0.0.0.255 area 2. b1 z* d9 E: \
network 192.168.46.0 0.0.0.255 area 30 r: R* _7 w; D/ u6 M0 ?& t
network 4.4.4.4 0.0.0.0 area 1( I+ I/ w; l: O$ n& A- P8 P: O
area 1 virtual-link 3.3.3.31 M6 E! @/ j9 Z, V) v
area 2 nssa6 `. L7 H- `5 z
area 3 stub no-summaryR5% I* d' L, o! A! F$ H: _
interface Loopback06 e! F/ K; h( A: M
ip address 5.5.5.5 255.255.255.255& c% |( }. K! O9 h, c& z
interface Loopback1
1 W! O' j6 U3 n3 h: A* k6 H# pip address 5.5.1.1 255.255.255.255
+ r5 j2 {* H: V- h5 s* x3 einterface Loopback2
0 [$ J: P: m$ A7 C! i2 xip address 5.5.2.1 255.255.255.255
8 N3 O3 |7 u/ j2 K: Ointerface Loopback36 t& `. j) `, u+ m% M
ip address 5.5.3.1 255.255.255.255" N& v4 f7 _5 v* I
interface Loopback4" l) V% x9 V: U7 K0 u
ip address 5.5.4.1 255.255.255.255
$ Q/ ?* M; T( f' p/ B+ E: R+ l- t0 Finterface Ethernet0/0
7 M/ n4 ]# A2 w. P& r/ Y+ o7 uip address 192.168.45.5 255.255.255.0
' s. k" x; Y* P! t6 P: H3 L* W!( t: I0 K7 y& f1 \2 V4 v) I Y; R: W* E
router ospf 1
8 g; ?8 ?! T& E% `& L6 O8 {4 {network 192.168.45.0 0.0.0.255 area 2$ E0 B6 Y" S' w
network 5.5.0.0 0.0.255.255 area 2# O8 {) j/ G' ^, m1 i& z
area 2 nssaR6) [ I! K0 Q7 X/ ~
interface Ethernet0/01 Z" ?3 w6 |$ [" f+ i' m
ip address 192.168.46.6 255.255.255.0* v! q$ r4 l: n" S8 S; v
interface Loopback 0
. |' y ~, f$ K$ X, @ip address 6.6.6.6 255.255.255.255% K/ O9 e0 x& M* W- G" }
!
# O4 G' F, N: Q4 b& j8 g# drouter ospf 1
* {: f+ n9 Z; U* D9 @9 i# znetwork 192.168.46.0 0.0.0.255 area 3
) z; {, M& ?5 a) P& ~$ }network 6.6.6.6 0.0.0.0 area 3. n! ^. h% ^9 b; u7 I# r& ^2 q
area 3 stubSome notices from above configuration: g# w+ ]6 m3 T. D
+ The OSPF network type between R2 & R3 is non broadcast.2 ~- _# C+ B- \' v, S/ Z
+ R3 and R4 is running virtual-link to connect Area 2 & 3 to Area 0! G6 G% E3 K2 @& m. I' C. a
+ Area 2 is a NSSA area while Area 3 is a Totally Stubby area
8 j/ n+ Q! }8 R3 X/ DYou can download this sim to practice at http://www.digitaltut.com/download/ROUTE_OSPF.zip. Please use GNS3 with version older than v1.0 to open it (v0.8.3.1 for example). IOS used in this lab: c3640-jk9s-mz.124-16.bin
- e, G0 H5 A4 N7 A% g5 X, O- S7 HQuestion 18 e3 f* q3 {) Q/ n
How old is the Type 4 LSA from Router 3 for area 1 on the router R5 based on the output you have examined?
) ]5 y: u" }/ s Z! s( nA. 1858
! P/ l8 d& A; i5 A/ UB. 1601
& y& r* x" V( l$ z1 w5 ]C. 600& [# E: ?/ i. l. p2 o2 Q( K
D. 1569
* ], Y2 h/ }" B8 \" @, J & L" g8 }1 ^# I5 d) P
Answer: A
$ w+ j6 k$ f/ rExplanation
4 M4 J8 H' `# \2 `To check OSPF LSA we should use the “show ip ospf database” command on R5:
& R! z8 s4 C. A
4 B$ F: A+ j( T6 pIn this sim there is no LSA Type 4 because there is no ASBR so maybe this question wants to ask about LSA Type 3 (Summary Net Link States).& [) V' n0 ]) q1 L) n
Note: LSA Type 4 is generated by ABR, not ASBR but without ASBR inside the network there are no LSA Type 4 generated. For more information about OSPF LSA Types please read our OSPF LSA Types Lab tutorial.: P; B8 q) A4 N: v! {1 F
R3 advertises LSA Type 1 to R4 then R4 converts it into Type 3 and sends to R5 (because R4 is the ABR) so we see the “Link ID” 3.3.3.3 of R3 is advertising by R4 (4.4.4.4). According to the “Age” column, this LSA was advertised 1858 seconds ago.4 w& U! @. l3 L+ \6 F
Question 2* B/ h# @: q3 M6 d, N
Which of the following statements is true about the serial links that terminate in R3?
$ u! O9 ~) h! M \A. The R1-R3 link needs the neighbor command for the adjacency to stay up
1 z3 R2 Z# B% lB. The R2-R3 link OSPF timer values are 30, 120, 120/ V' }# _& K F' y! E' d2 o8 y9 s' A
C. The R1-R3 link OSPF timer values should be 10,40,40) i& ]: K; g' {
D. R3 is responsible for flooding LSUs to all the routers on the network.
6 _. L" l, b E* N( H; F ! {; D0 x6 L7 |$ |3 K! n
Answer: B, ^+ w$ A- i6 x3 ^# }
Explanation- V. G. f8 j. ]1 s2 T$ W
Check the Serial1/0 interface of R3 which is connected to R2 with the “show ip ospf interface serial 1/0″ command:' r+ B8 H: g0 s) c; r$ M$ P- _( M# r( y
" a9 K# T1 ]3 Y- {, E( dThere are two things we should notice from the output above:
( U7 }& E5 {5 {9 U" A$ G( T+ The “network type” connection between R2-R3 is “NON_BROADCAST” (usually we have “BROADCAST”). OSPF neighbors are discovered using multicast Hello packets. In non broadcast environment, multicast (and broadcast) messages are not allowed so OSPF neighborship cannot be formed automatically. Therefore we have to establish OSPF neighborship manually by using “neighbor ” command under OSPF process (OSPF will send unicast Hello message to this address). For example on R2 we have to use these commands:8 T# B, Q5 F9 G, k
router ospf 1
" P! j) [8 m1 j: Nneighbor 192.168.23.3And on R3:
% c0 {- _1 Y9 F3 ~router ospf 19 h' r3 G6 y" N; P3 o
neighbor 192.168.23.2+ For non broadcast environment the default Hello timer is 30 seconds; Dead timer (time to wait before declaring a neighbor dead) is 120 seconds and Wait timer (causes the interface to exit out of the wait period and select a DR on a broadcast network. This timer is always equal to the dead timer interval) is 120 seconds. In the output we also see the default timers for non broadcast network.
/ w" k" c+ Y4 k( Y: j% bQuestion 33 O5 u9 K4 c8 B# ]1 o6 n% x
How many times was SPF algorithm executed on R4 for Area 1?
8 g2 |$ ]; n2 D9 _* dA. 1' r5 U6 J3 _( p
B. 5
, J; U' Y F7 _0 YC. 9) m5 P7 O: l2 c# q
D. 20' h0 ^8 i" t+ l) R$ I3 o
E. 54& R1 c) w+ w- w+ Y) M) B
F. 224
! ~6 S* Z% m9 W5 H 5 O; C: i4 H2 K+ p, W: L
Answer: C: O! O4 x% G0 |, n) G0 c3 {
Explanation4 {+ Q3 C/ i$ q' W
We can check the number of executed SPF algorithm via the “show ip ospf” command on R4:- D2 R: h9 D3 m: u
. `3 ]+ y+ L% V9 G
In the output above we can see SPF has been executed 9 times.
* Q$ D8 e3 l; G2 U0 Q" p3 [Question 4+ M# ?* G3 m6 D& j" j
Areas of Router 5 and 6 are not normal areas, inspect their routing tables and determine which statement is true?
6 f& f: _" i* Y& x7 e8 iA. R5′s Loopback and R6′s Loopback are both present in R5′s Routing table p$ w! `- b3 m7 k) Z
B. R5′s Loopback and R6′s Loopback are both present in R6′s Routing table
5 u8 O, M7 f# l _C. Only R5′s loopback is present in R5′s Routing table6 H m5 w1 e& j- _
D. Only R6′s loopback is present in R5′s Routing table$ E/ m, W; h! B# K2 c7 @
E. Only R5′s loopback is present in R6′s Routing table- c! k( E, Y9 o; r' w/ ?
0 p! ?( d- p- C6 O# j* A
Answer: A
- C" V& z% R9 Z2 Q& ~& i( UExplanation6 \! s& S3 O2 s
Area 2 (of R5) is a Not-so-Stubby area (NSSA). You can check it by the “show ip ospf” command on R4 or R5 (in Area 2 section). For example, below is the output of “show ip ospf” command on R5:2 f2 [. x, a ]) M, i! E
3 p( f6 ]# m; o6 U9 O OIn general, NSSA is same as normal area except that it can generate LSA Type 7 (redistribute from another domain) so we can see both Loopback interfaces of R5 & R6 in the routing table of R5.. ?. z2 x2 j# T h: L5 g+ y
: }$ `8 U) \" G; \" ]; [
Note: NSSA does not receive a default route by default so you will not see a default route on R5.
3 P3 Y) K3 C& V4 P! J1 I. o4 xArea 3 (of R6) is a Totally-Stubby area so R6 only has one default route to outside world. You can check with the “show ip ospf” command on R4 and R6 (area 3 section):! ~6 e2 b( P$ Y9 {4 D' o5 E
( P \+ u& N7 i/ z
# g: w% B5 A5 `% c+ S. aNotice that on R4 you will get more detail (shows “stub area, no summary LSA”) than on R6 (only shows “stub area”).
, d$ R8 @( T' d" nR6 is in a totally-stubby area so we will not see any R5′s Loopback interfaces in R6 routing table:
/ H" g/ I3 Y' G( A3 _) G
9 s7 a) I" |+ q9 O$ z zNote: You can see a default (summary) route to the outside (O*IA 0.0.0.0/0 …)2 F4 t3 K: {$ k6 K) K, e6 `
|
|