Lab - Using IOS CLI with Switch MAC Address Tables Tables Topology
Addressing Table Table Device
Interface
I Address
S!bnet Mas"
Defa!lt #ateway
R1
G0/1
192.168.1.1
255.255.255.0
N/A
S1
VLAN 1
192.168.1.11
255.255.255.0
192.168.1.1
S2
VLAN 1
192.168.1.12
255.255.255.0
192.168.1.1
PC-A
NIC
192.168.1.3
255.255.255.0
192.168.1.1
PC-B
NIC
192.168.1.2
255.255.255.0
192.168.1.1
Ob$ectives art %& '!ild and Config!re the (etwor" •
Cable the netw!" a##!$%n& t the t'l&( $%a&!a).
•
Cn*%&+!e the netw!" $e,%#e a##!$%n& t the A$$!e%n& a able. ble.
art )& *+a,ine the Switch MAC Address Table •
e show #))an$ show #))an$ t be!,e the '!#e * b+%l$%n& the w%t#h AC a$$!e table.
'ac"gro!nd Scenario he '+!'e * a La(e! 2 LAN w%t#h % t $el%,e! the!net *!a)e t ht $e,%#e n the l#al netw!". he w%t#h !e#!$ ht AC a$$!ee that a!e ,%%ble n the netw!" an$ )a' the AC a$$!ee t %t wn the!net w%t#h '!t. h% '!#e % #alle$ b+%l$%n& the AC a$$!e table. hen a w%t#h !e#e%,e a *!a)e *!) a PC %t e4a)%ne the *!a)e +!#e an$ $et%nat%n AC a$$!ee. he +!#e AC a$$!e % !e#!$e$ an$ )a''e$ t the w%t#h '!t *!) wh%#h %t a!!%,e$. hen the $et%nat%n AC a$$!e % l"e$ +' %n the AC a$$!e table. I* the $et%nat%n AC a$$!e % a "nwn a$$!e then the *!a)e % *!wa!$e$ 2013 C%# an$/! %t a**%l%ate. All !%&ht !ee!,e$. h% $#+)ent % C%# P+bl%#.
Pa&e % * .
Lab - Using IOS CLI with Switch MAC Address Tables +t * the #!!e'n$%n& w%t#h '!t * the AC a$$!e. I* the AC a$$!e % +n"nwn then the *!a)e % b!a$#at +t * all w%t#h '!t e4#e't the ne *!) wh%#h %t #a)e. It % %)'!tant t be!,e an$ +n$e!tan$ the *+n#t%n * a w%t#h an$ hw %t $el%,e! $ata n the netw!". he wa( a w%t#h 'e!ate ha %)'l%#at%n *! netw!" a$)%n%t!at! whe 7b %t % t en+!e e#+!e an$ #n%tent netw!" #))+n%#at%n. Sw%t#he a!e +e$ t %nte!#nne#t an$ $el%,e! %n*!)at%n t #)'+te! n l#al a!ea netw!". Sw%t#he $el%,e! the!net *!a)e t ht $e,%#e %$ent%*%e$ b( netw!" %nte!*a#e #a!$ AC a$$!ee. In Pa!t 1 (+ w%ll b+%l$ a )+lt%-w%t#h an$ !+te! t'l&( w%th a t!+n" l%n"%n& the tw w%t#he. In Pa!t 2 (+ w%ll '%n& ,a!%+ $e,%#e an$ be!,e hw the tw w%t#he b+%l$ the%! AC a$$!e table. (ote he !+te! +e$ w%th CCNA han$-n lab a!e C%# 191 Inte&!ate$ Se!,%#e R+te! :ISR; w%th C%# I
/e0!ired /eso!rces •
1 R+te! :C%# 191 w%th C%# I
•
2 Sw%t#he :C%# 2960 w%th C%# I
•
2 PC :%n$w > V%ta ! ?P w%th te!)%nal e)+lat%n '!&!a) +#h a e!a e!);
•
Cnle #able t #n*%&+!e the C%# I
•
the!net #able a hwn %n the t'l&(
(ote he @at the!net %nte!*a#e n C%# 2960 w%t#he a!e a+ten%n& an$ an the!net t!a%&ht-th!+&h #able )a( be +e$ between w%t#he S1 an$ S2. I* +%n& anthe! )$el C%# w%t#h %t )a( be ne#ea!( t +e an the!net #!,e! #able.
art %& '!ild and Config!re the (etwor" Step %& Cable the networ" according to the topology1 Step )& Config!re C hosts1 Step 2& Initiali3e and reload the ro!ters and switches as necessary1 Step 4& Config!re basic settings for each switch1 a. Cn*%&+!e $e,%#e na)e a hwn %n the t'l&(. b. Cn*%&+!e IP a$$!e an$ $e*a+lt &atewa( a l%te$ %n A$$!e%n& able. #.
A%&n cisco a the #nle an$ ,t( 'aw!$.
$.
A%&n class a the '!%,%le&e$ ?C 'aw!$.
2013 C%# an$/! %t a**%l%ate. All !%&ht !ee!,e$. h% $#+)ent % C%# P+bl%#.
Pa&e ) * .
Lab - Using IOS CLI with Switch MAC Address Tables
Step .& Config!re basic settings for the ro!ter1 a. =%able =NS l"+'. b. Cn*%&+!e IP a$$!e *! the !+te! a l%te$ %n A$$!e%n& able. #.
Cn*%&+!e $e,%#e na)e a hwn %n the t'l&(.
$.
A%&n cisco a the #nle an$ ,t( 'aw!$.
e.
A%&n class a the '!%,%le&e$ ?C 'aw!$.
art )& *+a,ine the Switch MAC Address Table A w%t#h lea!n AC a$$!ee an$ b+%l$ the AC a$$!e table a netw!" $e,%#e %n%t%ate #))+n%#at%n n the netw!".
Step %& /ecord networ" device MAC addresses1 a. <'en a #))an$ '!)'t n PC-A an$ PC-B an$ t('e ipconfig all. hat a!e the the!net a$a'te! 'h(%#al a$$!ee PC-A AC A$$!e PC-B AC A$$!e b. Cnle %nt !+te! R1 an$ t('e the show interface #5% #))an$. hat % the ha!$wa!e a$$!e R1 G%&ab%t the!net 0/1 AC A$$!e #.
Cnle %nt w%t#h S1 an$ S2 an$ t('e the show interface 65% #))an$ n ea#h w%t#h.
Step )& Display the switch MAC address table1 Cnle %nt w%t#h S2 an$ ,%ew the AC a$$!e table bth be*!e an$ a*te! !+nn%n& netw!" #))+n%#at%n tet w%th '%n&. a. tabl%h a #nle #nne#t%n t S2 an$ ente! '!%,%le&e$ ?C )$e. b. In '!%,%le&e$ ?C )$e t('e the show ,ac address-table #))an$ an$ '!e nte!. S2# show mac address-table
,en th+&h the!e ha been n netw!" #))+n%#at%n %n%t%ate$ a#! the netw!" :%.e. n +e * '%n&; %t % '%ble that the w%t#h ha lea!ne$ AC a$$!ee *!) %t #nne#t%n t the PC an$ the the! w%t#h. A!e the!e an( AC a$$!ee !e#!$e$ %n the AC a$$!e table hat AC a$$!ee a!e !e#!$e$ %n the table wh%#h w%t#h '!t a!e the( )a''e$ an$ t wh%#h $e,%#e $ the( beln& I&n!e AC a$$!ee that a!e )a''e$ t the CP.
2013 C%# an$/! %t a**%l%ate. All !%&ht !ee!,e$. h% $#+)ent % C%# P+bl%#.
Pa&e 2 * .
Lab - Using IOS CLI with Switch MAC Address Tables I* (+ ha$ nt '!e,%+l( !e#!$e$ AC a$$!ee * netw!" $e,%#e %n Ste' 1 hw #+l$ (+ tell wh%#h $e,%#e the AC a$$!ee beln& t +%n& nl( the +t'+t *!) the show ,ac address-table #))an$ =e %t w!" %n all #ena!%
Step 2& Clear the S) MAC address table and display the MAC address table again1 a. In '!%,%le&e$ ?C )$e t('e the clear ,ac address-table dyna,ic #))an$ an$ '!e nte!. S2# clear mac address-table dynamic
b. E+%#"l( t('e the show ,ac address-table #))an$ a&a%n. =e the AC a$$!e table ha,e an( a$$!ee %n %t *! VLAN 1 A!e the!e the! AC a$$!ee l%te$ a%t 10 e#n$ t('e the show ,ac address-table #))an$ an$ '!e nte!. A!e the!e new a$$!ee %n the AC a$$!e table
Step 4& 6ro, C-'7 ping the devices on the networ" and observe the switch MAC address table1 a. @!) PC-B 'en a #))an$ '!)'t an$ t('e arp -a. Nt %n#l+$%n& )+lt%#at ! b!a$#at a$$!ee hw )an( $e,%#e IP-t-AC a$$!e 'a%! ha,e been lea!ne$ b( ARP b.
@!) the PC-B #))an$ '!)'t '%n& the !+te!/&atewa( R1 PC-A S1 an$ S2. =%$ all $e,%#e ha,e +##e*+l !e'l%e I* nt #he#" (+! #abl%n& an$ IP #n*%&+!at%n.
#.
@!) a #nle #nne#t%n t S2 ente! the show ,ac address-table #))an$. Fa the w%t#h a$$e$ a$$%t%nal AC a$$!ee t the AC a$$!e table I* wh%#h a$$!ee an$ $e,%#e @!) PC-B 'en a #))an$ '!)'t an$ !et('e arp -a. =e the PC-B ARP #a#he ha,e a$$%t%nal ent!%e *! all netw!" $e,%#e that we!e ent '%n&
/eflection
2013 C%# an$/! %t a**%l%ate. All !%&ht !ee!,e$. h% $#+)ent % C%# P+bl%#.
Pa&e 4 * .
Lab - Using IOS CLI with Switch MAC Address Tables
/o!ter Interface S!,,ary Table /o!ter Interface S!,,ary /o!ter Model
*thernet Interface 8%
*thernet Interface 8)
Serial Interface 8%
Serial Interface 8)
1800
@at the!net 0/0 :@0/0;
@at the!net 0/1 :@0/1;
Se!%al 0/0/0 :S0/0/0;
Se!%al 0/0/1 :S0/0/1;
1900
G%&ab%t the!net 0/0 :G0/0;
G%&ab%t the!net 0/1 :G0/1;
Se!%al 0/0/0 :S0/0/0;
Se!%al 0/0/1 :S0/0/1;
2801
@at the!net 0/0 :@0/0;
@at the!net 0/1 :@0/1;
Se!%al 0/1/0 :S0/1/0;
Se!%al 0/1/1 :S0/1/1;
2811
@at the!net 0/0 :@0/0;
@at the!net 0/1 :@0/1;
Se!%al 0/0/0 :S0/0/0;
Se!%al 0/0/1 :S0/0/1;
2900
G%&ab%t the!net 0/0 :G0/0;
G%&ab%t the!net 0/1 :G0/1;
Se!%al 0/0/0 :S0/0/0;
Se!%al 0/0/1 :S0/0/1;
(ote *%n$ +t hw the !+te! % #n*%&+!e$ l" at the %nte!*a#e t %$ent%*( the t('e * !+te! an$ hw )an( %nte!*a#e the !+te! ha. he!e % n wa( t e**e#t%,el( l%t all the #)b%nat%n * #n*%&+!at%n *! ea#h !+te! #la. h% table %n#l+$e %$ent%*%e! *! the '%ble #)b%nat%n * the!net an$ Se!%al %nte!*a#e %n the $e,%#e. he table $e nt %n#l+$e an( the! t('e * %nte!*a#e e,en th+&h a 'e#%*%# !+te! )a( #nta%n ne. An e4a)'le * th% )%&ht be an IS=N BRI %nte!*a#e. he t!%n& %n 'a!enthe% % the le&al abb!e,%at%n that #an be +e$ %n C%# I
2013 C%# an$/! %t a**%l%ate. All !%&ht !ee!,e$. h% $#+)ent % C%# P+bl%#.
Pa&e . * .