2.2.2.5 Lab - Configuring IPv4 Static and Default Routes (1)
Short Description
data comm...
Description
Lab – Configuring IPv4 Static and Default Routes Topology
Addressing Table Device R1
Interface
IP Address
Subnet Mas
Default !ate"ay
G0/1
192.168.0.1
255.255.255.0
N/A
S0/0/1
10.1.1.1
255.255.255.252
N/A
G0/1
192.168.1.1
255.255.255.0
N/A
S0/0/0 (DCE)
10.1.1.2
255.255.255.252
N/A
Lo0
209.165.200.225
255.255.255.224
N/A
Lo1
198.133.219.1
255.255.255.0
N/A
PC-A
NIC
192.168.0.10
255.255.255.0
192.168.0.1
PC-C
NIC
192.168.1.10
255.255.255.0
192.168.1.1
R3
#b$ectives Part %& Set 'p t(e Topology and Initiali)e Devices Part *& Configure +asic Device Settings and ,erify Connectivity
© 2013 Cisco !"/o# i$s %%i&i$'s. A&& #i$s #'s'#*'". +is "oc,'!$ is Cisco P,&ic.
P' % o% %-
Lab – Configuring IPv4 Static and Default Routes Part .& Configure Static Routes
Co!%i,#' #'c,#si*' s$$ic #o,$'.
Co!%i,#' "i#'c$& co!!'c$'" s$$ic #o,$'.
Co!%i,#' !" #'o*' s$$ic #o,$'s.
Part 4& Configure and ,erify a Default Route
+acground / Scenario A #o,$'# ,s's #o,$i! $&' $o "'$'#i!' '#' $o s'!" c'$s. +' #o,$i! $&' co!$i!s s'$ o% #o,$'s $$ "'sc#i' ic $' o# i!$'#%c' $' #o,$'# ,s's $o #'c s'ci%i'" !'$o#. I!i$i&& $' #o,$i! $&' co!$i!s o!& "i#'c$& co!!'c$'" !'$o#s. +o co,!ic$' i$ "is$!$ !'$o#s #o,$'s ,s$ ' s'ci%i'" !" ""'" $o $' #o,$i! $&'. I! $is & o, i&& !,&& co!%i,#' s$$ic #o,$' $o s'ci%i'" "is$!$ !'$o# s'" o! !'$-o IP ""#'ss o# 'i$ i!$'#%c'. o, i&& &so co!%i,#' s$$ic "'%,&$ #o,$'. A "'%,&$ #o,$' is $' o% s$$ic #o,$' $$ s'ci%i's $' $o ,s' '! $' #o,$i! $&' "o's !o$ co!$i! $ %o# $' " 's$i!$io! !'$o#. 0ote +is & #o*i"'s i!i& ssis$!c' i$ $' c$,& co!"s !'c'ss# $o co!%i,#' s$$ic #o,$i!. 7o'*'# $' #',i#'" co!"s #' #o*i"'" i! A'!"i A. +'s$ o,# !o&'"' $#i! $o co!%i,#' $' "'*ic's i$o,$ #'%'##i! $o $' '!"i. 0ote +' #o,$'#s ,s'" i$ CCNA !"s-o! &s #' Cisco 1941 I!$'#$'" S'#*ic's Ro,$'#s (ISRs) i$ Cisco IS R'&'s' 15.2(4):3 (,!i*'#s&9 i'). +' si$c's ,s'" #' Cisco C$&s$ 2960s i$ Cisco IS R'&'s' 15.0(2) (&!s'9 i'). $'# #o,$'#s si$c's !" Cisco IS *'#sio!s c! ' ,s'". D''!"i! o! $' o"'& !" Cisco IS *'#sio! $' co!"s *i&&' !" o,$,$ #o",c'" i$ *# %#o $ is so! i! $' &s. R'%'# $o $' Ro,$'# I!$'#%c' S,# +&' $ $' '!" o% $is & %o# $' co##'c$ i!$'#%c' i"'!$i%i'#s. 0ote :' s,#' $$ $' #o,$'#s !" si$c's *' ''! '#s'" !" *' !o s$#$, co!%i,#$io!s. I% o, #' ,!s,#' co!$c$ o,# i!s$#,c$o#.
Re1uired Resources
2 Ro,$'#s (Cisco 1941 i$ Cisco IS R'&'s' 15.2(4):3 ,!i*'#s& i' o# co#&')
2 Si$c's (Cisco 2960 i$ Cisco IS R'&'s' 15.0(2) &!s'9 i' o# co#&')
2 PCs (;i!"os P i$ $'#i!& ',&$io! #o# s,c s +'# +'#)
Co!so&' c&'s $o co!%i,#' $' Cisco IS "'*ic's *i $' co!so&' o#$s
E$'#!'$ !" s'#i& c&'s s so! i! $' $oo&o
Part %& Set 'p t(e Topology and Initiali)e Devices Step %& Cable t(e net"or as s(o"n in t(e topology2 Step *& Initiali)e and reload t(e router and s"itc(2
Part *& Configure +asic Device Settings and ,erify Connectivity I! P#$ 2 o, i&& co!%i,#' sic s'$$i!s s,c s $' i!$'#%c' IP ""#'ss's "'*ic' cc'ss !" sso#"s. o, i&& *'#i% LAN co!!'c$i*i$ !" i"'!$i% #o,$'s &is$'" i! $' #o,$i! $&'s %o# R1 !" R3.
© 2013 Cisco !"/o# i$s %%i&i$'s. A&& #i$s #'s'#*'". +is "oc,'!$ is Cisco P,&ic.
P' * o% %-
Lab – Configuring IPv4 Static and Default Routes
Step %& Configure t(e PC interfaces2 Step *& Configure basic settings on t(e routers2 . Co!%i,#' "'*ic' !'s s so! i! $' +oo&o !" A""#'ssi! +&'. . Dis&' DNS &oo,. c.
Assi! class s $' '!&' sso#" !" ssi! cisco s $' co!so&' !" *$ sso#".
". S*' $' #,!!i! co!%i,#$io! $o $' s$#$, co!%i,#$io! %i&'.
Step .& Configure IP settings on t(e routers2 . Co!%i,#' $' R1 !" R3 i!$'#%c's i$ IP ""#'ss's cco#"i! $o $' A""#'ssi! +&'. . +' S0/0/0 co!!'c$io! is $' DCE co!!'c$io! !" #',i#'s $' cloc rate co!". +' R3 S0/0/0 co!%i,#$io! is "is&'" '&o. R3(config)# interface s0/0/0 R3(config-if)# ip address 10.1.1.2 255.255.255.252 R3(config-if)# clock rate 128000 R3(config-if)# no shutdown
© 2013 Cisco !"/o# i$s %%i&i$'s. A&& #i$s #'s'#*'". +is "oc,'!$ is Cisco P,&ic.
P' . o% %-
Lab – Configuring IPv4 Static and Default Routes
Step 4& ,erify connectivity of t(e LA0s2 .
+'s$ co!!'c$i*i$ i!i! %#o 'c PC $o $' "'%,&$ $' $$ s ''! co!%i,#'" %o# $$ os$. ?#o PC-A is i$ ossi&' $o i! $' "'%,&$ $'@ 's
CBs'#sG,#&''!Si!i! 192.168.0.1 Pi!i! 192.168.0.1 i$ 32 $'s o% "$ R'& %#o 192.168.0.1 $'s32 $i'1s ++L255 R'& %#o 192.168.0.1 $'s32 $i'1s ++L255 R'& %#o 192.168.0.1 $'s32 $i'1s ++L255 R'& %#o 192.168.0.1 $'s32 $i'1s ++L255 Pi! s$$is$ics %o# 192.168.0.1 Pc'$s S'!$ 4 R'c'i*'" 4 Los$ 0 (0F &oss) A#oi$' #o,!" $#i $i's i! i&&i-s'co!"s :i!i, 0s :i, 0s A*'#' 0s ?#o PC-C is i$ ossi&' $o i! $' "'%,&$ $'@ ES
CBs'#si&&7,ssi!i! 192.168.1.1
Pi!i! 192.168.1.1 i$ 32 $'s o% "$ R'& %#o 192.168.1.1 $'s32 $i'2s ++L255 R'& %#o 192.168.1.1 $'s32 $i'2s ++L255 R'& %#o 192.168.1.1 $'s32 $i'2s ++L255 R'& %#o 192.168.1.1 $'s32 $i'2s ++L255
Pi! s$$is$ics %o# 192.168.1.1 Pc'$s S'!$ 4 R'c'i*'" 4 Los$ 0 (0F &oss) A#oi$' #o,!" $#i $i's i! i&&i-s'co!"s :i!i, 2s :i, 2s A*'#' 2s . +'s$ co!!'c$i*i$ i!i! '$''! $' "i#'c$& co!!'c$'" #o,$'#s. ?#o R1 is i$ ossi&' $o i! $' S0/0/0 i!$'#%c' o% R3@ 's
© 2013 Cisco !"/o# i$s %%i&i$'s. A&& #i$s #'s'#*'". +is "oc,'!$ is Cisco P,&ic.
P' 4 o% %-
Lab – Configuring IPv4 Static and Default Routes
R1Hi! 10.1.1.2 +' 'sc' s','!c' $o o#$. S'!"i! 5 100-$' IC:P Ecos $o 10.1.1.2 $i'o,$ is 2 s'co!"s S,cc'ss #$' is 100 '#c'!$ (5/5) #o,!"-$#i i!/*/ 12/14/16 s I% $' !s'# is no $o ! o% $'s' ,'s$io!s $#o,&'soo$ $' co!%i,#$io!s !" co##'c$ $' '##o#. c.
+'s$ co!!'c$i*i$ '$''! "'*ic's $$ #' !o$ "i#'c$& co!!'c$'". ?#o PC-A is i$ ossi&' $o i! PC-C@ No ?#o PC-A is i$ ossi&' $o i! Lo0@ No ?#o PC-A is i$ ossi&' $o i! Lo1@ No ;'#' $'s' i!s s,cc'ss%,&@ ; o# !o$@
No 'c,s' $'#' s !o i #o,$' %o# PING . 0ote& I$ ' !'c'ss# $o "is&' $' PC %i#'&& $o i! '$''! PCs.
Step -& !at(er infor3ation2 . C'c $' s$$,s o% $' i!$'#%c's o! R1 i$ $' s(o" ip interface brief co!". 7o ! i!$'#%c's #' c$i*$'" o! R1@ 2 . C'c $' s$$,s o% $' i!$'#%c's o! R3. 7o ! i!$'#%c's #' c$i*$'" o! R3@ 4
c.
=i' $' #o,$i! $&' i!%o#$io! %o# R1 ,si! $' s(o" ip route co!".
R1Hso i #o,$' Co"'s L - &oc& C - co!!'c$'" S - s$$ic R - RIP : - oi&' - GP D - EIGRP E> - EIGRP '$'#!& - SP? IA - SP? i!$'# #' N1 - SP? NSSA '$'#!& $' 1 N2 - SP? NSSA '$'#!& $' 2 E1 - SP? '$'#!& $' 1 E2 - SP? '$'#!& $' 2 i - IS-IS s, - IS-IS s,# L1 - IS-IS &'*'&-1 L2 - IS-IS &'*'&-2 i - IS-IS i!$'# #' J - c!"i"$' "'%,&$ B - '#-,s'# s$$ic #o,$' o - DR P - '#io"ic "o!&o"'" s$$ic #o,$' 7 - N7RP & - LISP K - #'&ic$'" #o,$' F - !'$ o o*'##i"'
© 2013 Cisco !"/o# i$s %%i&i$'s. A&& #i$s #'s'#*'". +is "oc,'!$ is Cisco P,&ic.
P' - o% %-
Lab – Configuring IPv4 Static and Default Routes
G$' o% &s$ #'so#$ is !o$ s'$
10.0.0.0/8 is *#i& s,!'$$'" 2 s,!'$s 2 ss C
10.1.1.0/30 is "i#'c$& co!!'c$'" S'#i&0/1/1
L
10.1.1.1/32 is "i#'c$& co!!'c$'" S'#i&0/1/1 192.168.0.0/24 is *#i& s,!'$$'" 2 s,!'$s 2 ss
C
192.168.0.0/24 is "i#'c$& co!!'c$'" Gii$E$'#!'$0/1
L
192.168.0.1/32 is "i#'c$& co!!'c$'" Gii$E$'#!'$0/1
R1H ;$ !'$o#s #' #'s'!$ i! $' A""#'ssi! +&' o% $is & ,$ !o$ i! $' #o,$i! $&' %o# R1@
198.133.219.0 209.165.200.224 192.168.1.0
". =i' $' #o,$i! $&' i!%o#$io! %o# R3.
G$' o% &s$ #'so#$ is !o$ s'$
10.0.0.0/8 is *#i& s,!'$$'" 2 s,!'$s 2 ss C
10.1.1.0/30 is "i#'c$& co!!'c$'" S'#i&0/1/0
© 2013 Cisco !"/o# i$s %%i&i$'s. A&& #i$s #'s'#*'". +is "oc,'!$ is Cisco P,&ic.
P' o% %-
Lab – Configuring IPv4 Static and Default Routes
L
10.1.1.2/32 is "i#'c$& co!!'c$'" S'#i&0/1/0 192.168.1.0/24 is *#i& s,!'$$'" 2 s,!'$s 2 ss
C
192.168.1.0/24 is "i#'c$& co!!'c$'" Gii$E$'#!'$0/1
L
192.168.1.1/32 is "i#'c$& co!!'c$'" Gii$E$'#!'$0/1 198.133.219.0/24 is *#i& s,!'$$'" 2 s,!'$s 2 ss
C
198.133.219.0/24 is "i#'c$& co!!'c$'" Looc1
L
198.133.219.1/32 is "i#'c$& co!!'c$'" Looc1 209.165.200.0/24 is *#i& s,!'$$'" 2 s,!'$s 2 ss
C
209.165.200.224/2< is "i#'c$& co!!'c$'" Looc0
L
209.165.200.225/32 is "i#'c$& co!!'c$'" Looc0
;$ !'$o#s #' #'s'!$ i! $' A""#'ssi! +&' i! $is & ,$ !o$ i! $' #o,$i! $&' %o# R3@
192.168.0.0 ; #' && $' !'$o#s !o$ i! $' #o,$i! $&'s %o# 'c o% $' #o,$'#s@
I$s !o$ ossi&' 'c,s' o% !o cc'ss $o $' #o,$'#
Part .& Configure Static Routes I! P#$ 3 o, i&& '&o ,&$i&' s $o i&''!$ s$$ic !" "'%,&$ #o,$'s o, i&& co!%i# $$ $' #o,$'s *' ''! ""'" $o $' #o,$i! $&'s o% R1 !" R3 !" o, i&& *'#i% co!!'c$i*i$ s'" o! $' i!$#o",c'" #o,$'s. 0ote +is & #o*i"'s i!i& ssis$!c' i$ $' c$,& co!"s !'c'ss# $o co!%i,#' s$$ic #o,$i!. 7o'*'# $' #',i#'" co!"s #' #o*i"'" i! A'!"i A. +'s$ o,# !o&'"' $#i! $o co!%i,#' $' "'*ic's i$o,$ #'%'##i! $o $' '!"i.
Step %& Configure a recursive static route2 ;i$ #'c,#si*' s$$ic #o,$' $' !'$-o IP ""#'ss is s'ci%i'". 'c,s' o!& $' !'$-o IP is s'ci%i'" $' #o,$'# ,s$ '#%o# ,&$i&' &oo,s i! $' #o,$i! $&' '%o#' %o##"i! c'$s. +o co!%i,#' #'c,#si*' s$$ic #o,$'s ,s' $' %o&&oi! s!$ Router(config)# ip route network-address subnet-mask ip-address
.
! $' R1 #o,$'# co!%i,#' s$$ic #o,$' $o $' 192.168.1.0 !'$o# ,si! $' IP ""#'ss o% $' S'#i& 0/0/0 i!$'#%c' o% R3 s $' !'$-o ""#'ss. ;#i$' $' co!" o, ,s'" i! $' sc' #o*i"'".
IP #o,$' 198.168.1.0 255.255.255.0 10.1.1.2 . =i' $' #o,$i! $&' $o *'#i% $' !' s$$ic #o,$' '!$#. 7o is $is !' #o,$' &is$'" i! $' #o,$i! $&'@
G$' o% &s$ #'so#$ is !o$ s'$
10.0.0.0/8 is *#i& s,!'$$'" 2 s,!'$s 2 ss C
10.1.1.0/30 is "i#'c$& co!!'c$'" S'#i&0/1/1
L
10.1.1.1/32 is "i#'c$& co!!'c$'" S'#i&0/1/1
© 2013 Cisco !"/o# i$s %%i&i$'s. A&& #i$s #'s'#*'". +is "oc,'!$ is Cisco P,&ic.
P' 5 o% %-
Lab – Configuring IPv4 Static and Default Routes
192.168.0.0/24 is *#i& s,!'$$'" 2 s,!'$s 2 ss C
192.168.0.0/24 is "i#'c$& co!!'c$'" Gii$E$'#!'$0/1
L
192.168.0.1/32 is "i#'c$& co!!'c$'" Gii$E$'#!'$0/1
S
192.168.1.0/24 M1/0 *i 10.1.1.2
?#o os$ PC-A is i$ ossi&' $o i! $' os$ PC-C@ No +'s' i!s so,&" %i&. I% $' #'c,#si*' s$$ic #o,$' is co##'c$& co!%i,#'" $' i! ##i*'s $ PC-C. PC-C s'!"s i! #'& c $o PC-A. 7o'*'# $' i! #'& is "isc#"'" $ R3 'c,s' R3 "o's !o$ *' #'$,#! #o,$' $o $' 192.168.0.0 !'$o# i! $' #o,$i! $&'.
Step *& Configure a directly connected static route2 ;i$ "i#'c$& co!!'c$'" s$$ic #o,$' $' exit-interface #'$'# is s'ci%i'" ic &&os $' #o,$'# $o #'so&*' %o##"i! "'cisio! i! o!' &oo,. A "i#'c$& co!!'c$'" s$$ic #o,$' is $ic&& ,s'" i$ oi!$-$ooi!$ s'#i& i!$'#%c'. +o co!%i,#' "i#'c$& co!!'c$'" s$$ic #o,$'s i$ ! 'i$ i!$'#%c' s'ci%i'" ,s' $' %o&&oi! s!$ Router(config)# ip route network-address subnet-mask exit-intf
.
! $' R3 #o,$'# co!%i,#' s$$ic #o,$' $o $' 192.168.0.0 !'$o# ,si! S0/0/0 s $' 'i$ i!$'#%c'. ;#i$' $' co!" o, ,s'" i! $' sc' #o*i"'".
I #o,$' 192.168.0.0 255.255.255.0 10.1.1.1 . =i' $' #o,$i! $&' $o *'#i% $' !' s$$ic #o,$' '!$#. 7o is $is !' #o,$' &is$'" i! $' #o,$i! $&'@
G$' o% &s$ #'so#$ is !o$ s'$ 10.0.0.0/8 is *#i& s,!'$$'" 2 s,!'$s 2 ss C
10.1.1.0/30 is "i#'c$& co!!'c$'" S'#i&0/1/0
L
10.1.1.2/32 is "i#'c$& co!!'c$'" S'#i&0/1/0 192.168.1.0/24 is *#i& s,!'$$'" 2 s,!'$s 2 ss
C
192.168.1.0/24 is "i#'c$& co!!'c$'" Gii$E$'#!'$0/1
L
192.168.1.1/32 is "i#'c$& co!!'c$'" Gii$E$'#!'$0/1 198.133.219.0/24 is *#i& s,!'$$'" 2 s,!'$s 2 ss
C
198.133.219.0/24 is "i#'c$& co!!'c$'" Looc1
L
198.133.219.1/32 is "i#'c$& co!!'c$'" Looc1 209.165.200.0/24 is *#i& s,!'$$'" 2 s,!'$s 2 ss
C
209.165.200.224/2< is "i#'c$& co!!'c$'" Looc0
L
209.165.200.225/32 is "i#'c$& co!!'c$'" Looc0
© 2013 Cisco !"/o# i$s %%i&i$'s. A&& #i$s #'s'#*'". +is "oc,'!$ is Cisco P,&ic.
P' 6 o% %-
Lab – Configuring IPv4 Static and Default Routes
c2 ?#o os$ PC-A is i$ ossi&' $o i! $' os$ PC-C@ 's +is i! so,&" ' s,cc'ss%,&. 0ote I$ ' !'c'ss# $o "is&' $' PC %i#'&& $o i! '$''! PCs.
Step .& Configure a static route2 .
! $' R1 #o,$'# co!%i,#' s$$ic #o,$' $o $' 198.133.219.0 !'$o# ,si! o!' o% $' s$$ic #o,$' co!%i,#$io! o$io!s %#o $' #'*io,s s$'s. ;#i$' $' co!" o, ,s'" i! $' sc' #o*i"'".
I #o,$' 198.133.219.0 255.255.255.0 10.1.1.2 .
! $' R1 #o,$'# co!%i,#' s$$ic #o,$' $o $' 209.165.200.224 !'$o# o! R3 ,si! $' o$'# s$$ic #o,$' co!%i,#$io! o$io! %#o $' #'*io,s s$'s. ;#i$' $' co!" o, ,s'" i! $' sc' #o*i"'".
I #o,$' 209.165.200.224 255.255.255.224 10.1.1.2 c.
=i' $' #o,$i! $&' $o *'#i% $' !' s$$ic #o,$' '!$#. 7o is $is !' #o,$' &is$'" i! $' #o,$i! $&'@
G$' o% &s$ #'so#$ is !o$ s'$
10.0.0.0/8 is *#i& s,!'$$'" 2 s,!'$s 2 ss C
10.1.1.0/30 is "i#'c$& co!!'c$'" S'#i&0/1/1
L
10.1.1.1/32 is "i#'c$& co!!'c$'" S'#i&0/1/1 192.168.0.0/24 is *#i& s,!'$$'" 2 s,!'$s 2 ss
C
192.168.0.0/24 is "i#'c$& co!!'c$'" Gii$E$'#!'$0/1
L
192.168.0.1/32 is "i#'c$& co!!'c$'" Gii$E$'#!'$0/1
S
192.168.1.0/24 M1/0 *i 10.1.1.2
". ?#o os$ PC-A is i$ ossi&' $o i! $' R1 ""#'ss 198.133.219.1@ 's +is i! so,&" ' s,cc'ss%,&.
Step 4& Re3ove static routes for loopbac addresses2 . ! R1 ,s' $' no co!" $o #'o*' $' s$$ic #o,$'s %o# $' $o &ooc ""#'ss's %#o $' #o,$i! $&'. ;#i$' $' co!"s o, ,s'" i! $' sc' #o*i"'".
!o I #o,$' 198.133.219.0 255.255.255.0 10.1.1.2
© 2013 Cisco !"/o# i$s %%i&i$'s. A&& #i$s #'s'#*'". +is "oc,'!$ is Cisco P,&ic.
P' 7 o% %-
Lab – Configuring IPv4 Static and Default Routes
!o I #o,$' 209.165.200.224 255.255.255.224 10.1.1.2 . =i' $' #o,$i! $&' $o *'#i% $' #o,$'s *' ''! #'o*'". 7o ! !'$o# #o,$'s #' &is$'" i! $' #o,$i! $&' o! R1@
10.0.0.0/8 is *#i& s,!'$$'" 2 s,!'$s 2 ss C
10.1.1.0/30 is "i#'c$& co!!'c$'" S'#i&0/1/1
L
10.1.1.1/32 is "i#'c$& co!!'c$'" S'#i&0/1/1 192.168.0.0/24 is *#i& s,!'$$'" 2 s,!'$s 2 ss
C
192.168.0.0/24 is "i#'c$& co!!'c$'" Gii$E$'#!'$0/1
L
192.168.0.1/32 is "i#'c$& co!!'c$'" Gii$E$'#!'$0/1
S
192.168.1.0/24 M1/0 *i 10.1.1.2
R1H Is $' G$' o% &s$ #'so#$ s'$@
No
Part 4& Configure and ,erify a Default Route I! P#$ 4 o, i&& i&''!$ "'%,&$ #o,$' co!%i# $$ $' #o,$' s ''! ""'" $o $' #o,$i! $&' !" *'#i% co!!'c$i*i$ s'" o! $' i!$#o",c'" #o,$'. A "'%,&$ #o,$' i"'!$i%i's $' $' $o ic $' #o,$'# s'!"s && IP c'$s %o# ic i$ "o's !o$ *' &'#!'" o# s$$ic #o,$'. A "'%,&$ s$$ic #o,$' is s$$ic #o,$' i$ 0.0.0.0 s $' "'s$i!$io! IP ""#'ss !" s,!'$ s. +is is coo!& #'%'##'" $o s O," '#oQ #o,$'. I! "'%,&$ #o,$' 'i$'# $' !'$-o IP ""#'ss o# 'i$ i!$'#%c' c! ' s'ci%i'". +o co!%i,#' "'%,&$ s$$ic #o,$' ,s' $' %o&&oi! s!$ Router(config)# ip route 0.0.0.0 0.0.0.0 {ip-address or exit-intf }
.
Co!%i,#' $' R1 #o,$'# i$ "'%,&$ #o,$' ,si! $' 'i$ i!$'#%c' o% S0/0/1. ;#i$' $' co!" o, ,s'" i! $' sc' #o*i"'".
ip route 0.0.0.0 0.0.0.0 10.1.1.2
© 2013 Cisco !"/o# i$s %%i&i$'s. A&& #i$s #'s'#*'". +is "oc,'!$ is Cisco P,&ic.
P' %8 o% %-
Lab – Configuring IPv4 Static and Default Routes
. =i' $' #o,$i! $&' $o *'#i% $' !' s$$ic #o,$' '!$#. 7o is $is !' #o,$' &is$'" i! $' #o,$i! $&'@
G$' o% &s$ #'so#$ is 10.1.1.2 $o !'$o# 0.0.0.0
SJ
0.0.0.0/0 M1/0 *i 10.1.1.2 10.0.0.0/8 is *#i& s,!'$$'" 2 s,!'$s 2 ss
C
10.1.1.0/30 is "i#'c$& co!!'c$'" S'#i&0/1/1
L
10.1.1.1/32 is "i#'c$& co!!'c$'" S'#i&0/1/1 192.168.0.0/24 is *#i& s,!'$$'" 2 s,!'$s 2 ss
C
192.168.0.0/24 is "i#'c$& co!!'c$'" Gii$E$'#!'$0/1
L
192.168.0.1/32 is "i#'c$& co!!'c$'" Gii$E$'#!'$0/1
S
192.168.1.0/24 M1/0 *i 10.1.1.2
;$ is $' G$' o% &s$ #'so#$@
10.1.1.2 c.
?#o os$ PC-A is i$ ossi&' $o i! $' 209.165.200.225@ 's
". ?#o os$ PC-A is i$ ossi&' $o i! $' 198.133.219.1@ 's +'s' i!s so,&" ' s,cc'ss%,&.
Reflection 1.
A !' !'$o# 192.168.3.0/24 is co!!'c$'" $o i!$'#%c' G0/0 o! R1. ;$ co!"s co,&" ' ,s'" $o co!%i,#' s$$ic #o,$' $o $$ !'$o# %#o R3@
i!$ 0/0 i ""#'ss 192.168.3.0 255.255.255.0 !o s,$"o! 'i$ 2.
Is $'#' '!'%i$ $o co!%i,#i! "i#'c$& co!!'c$'" s$$ic #o,$' i!s$'" o% #'c,#si*' s$$ic #o,$'@
's 3.
; is i$ io#$!$ $o co!%i,#' "'%,&$ #o,$' o! #o,$'#@
© 2013 Cisco !"/o# i$s %%i&i$'s. A&& #i$s #'s'#*'". +is "oc,'!$ is Cisco P,&ic.
P' %% o% %-
Lab – Configuring IPv4 Static and Default Routes
Because it is more secure.
Current confguration: 1799 bytes ! ! Last confguration change at 20:37:52 UC ue e" 3 2013 ! #$%&' confg (ast u")ate) at 20:*5:*1 UC ue e" 3 2013 ! #$%&' confg (ast u")ate) at 20:*5:*1 UC ue e" 3 2013 +ersion 15.1 ser+ice timestam"s )ebug )atetime msec ser+ice timestam"s (og )atetime msec no ser+ice "ass,or)-encry"tion ! hostname %1 ! boot-start-marer boot-en)-marer ! ! enab(e "ass,or) c(ass ! no aaa ne,-mo)e( ! memory-si/e iomem 10 ! no i"+ ce
© 2013 Cisco !"/o# i$s %%i&i$'s. A&& #i$s #'s'#*'". +is "oc,'!$ is Cisco P,&ic.
P' %* o% %-
Lab – Configuring IPv4 Static and Default Routes
i" source-route i" ce ! ! ! ! ! no i" )omain (oou" ! mu(ti(in bun)(e-name authenticate) ! ! cry"to "i toen )eau(t remo+a( timeout 0 ! ! (icense u)i "i) CC290149 sn 6L1132089 (icense boot mo)u(e c2900 techno(ogy-"acage security9 ! ! ! re)un)ancy ! ! ! ! ! ! ! ! ! ! ! interace mbe))e)-er+ice-ngine040 no i" a))ress
© 2013 Cisco !"/o# i$s %%i&i$'s. A&& #i$s #'s'#*'". +is "oc,'!$ is Cisco P,&ic.
P' %. o% %-
Lab – Configuring IPv4 Static and Default Routes
shut)o,n ! interace igabitthernet040 no i" a))ress shut)o,n )u"(e auto s"ee) auto ! interace igabitthernet041 i" a))ress 192.1;.0.1 255.255.255.0 )u"(e auto s"ee) auto ! interace eria(04140 no i" a))ress shut)o,n c(oc rate 2000000 ! interace eria(04141 i" a))ress 10.1.1.1 255.255.255.252 ! i" or,ar)-"rotoco( n) ! no i" htt" ser+er no i" htt" secure-ser+er ! i" route 0.0.0.0 0.0.0.0 10.1.1.2 i" route 0.0.0.0 0.0.0.0 eria(04140 i" route 192.1;.1.0 255.255.255.0 eria(04140 i" route 192.1;.1.0 255.255.255.0 10.1.1.2 i" route 192.1;.1.0 255.255.255.0 192.1;.1.1 i" route 19;.133.219.0 255.255.255.0 eria(04140 i" route 209.15.200.22* 255.255.255.22* eria(04140 !
© 2013 Cisco !"/o# i$s %%i&i$'s. A&& #i$s #'s'#*'". +is "oc,'!$ is Cisco P,&ic.
P' %4 o% %-
Lab – Configuring IPv4 Static and Default Routes
! ! ! ! ! ! contro(-"(ane ! ! ! (ine con 0 "ass,or) cisco (ogin (ine au 0 (ine 2 no acti+ation-character no eec trans"ort "reerre) none trans"ort in"ut a(( trans"ort out"ut "a) te(net r(ogin (a"b-ta mo" u)"tn +120 ssh sto"bits 1 (ine +ty 0 * "ass,or) cisco (ogin trans"ort in"ut a(( ! sche)u(er a((ocate 20000 1000 en)
© 2013 Cisco !"/o# i$s %%i&i$'s. A&& #i$s #'s'#*'". +is "oc,'!$ is Cisco P,&ic.
P' %- o% %-
View more...
Comments