Always Read for Knowledge

Friday 29 April 2011

CCNA LAB Practice - Address Learning Mechanism Of Switch


Address Learning Mechanism

Of

Switch


Objective


This lab demonstrates  address learning mechanism of Switches.

The demonstrations include :

  1. Dynamic Method (Default Method).
  2. Permanent Method.
  3. Restricted Static Method.

i. Dynamic Method

It is the by-default learning method of the switches. The entry remains in the table, if the communication does not exist within the 300 seconds.

Diagram




Procedure

  1. Ping from Host ‘A’ to Host ‘B’.
  2. Verifying the Mac Addresses of the Hosts by the command.
  3. Remove the Dynamic entry of the Hosts

Configuration         

Step 1(A): Ping from Host ‘A’ to Host ‘B’.

D:\>ping 10.0.0.2

Pinging 10.0.0.2 with 32 bytes of data:

Reply from 10.0.0.2: bytes=32 time<10ms TTL=128
Reply from 10.0.0.2: bytes=32 time<10ms TTL=128
Reply from 10.0.0.2: bytes=32 time<10ms TTL=128
Reply from 10.0.0.2: bytes=32 time<10ms TTL=128

Ping statistics for 10.0.0.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum =  0ms, Average =  0ms

Step 2: Verifying the Mac Addresses of the Hosts by the command.

1900-SWA#show mac-address-table

Number of permanent addresses : 0
Number of restricted static addresses : 0
Number of dynamic addresses : 2

Address                      Dest Interface       Type         Source Interface List
---------------------------------------------------------------------------------------
0050.DA23.C9DD    Ethernet 0/1      Dynamic                    All
0001.0262.FCC4      Ethernet 0/2      Dynamic                    All

Step 3: Remove the Dynamic Entry of the Hosts.

1900-SWA#clear mac-address-table

ii. Permanent Method

In the permanent method, the Mac-addresses do not age-out. The entry remains in the table either the device attached to the switch or not.

Diagram





Procedure

  1. Define the permanent entry of the both Hosts.
  2. Ping from Host ‘A’ to Host ‘B’.
  3. Verifying the Mac Addresses of the Hosts by the command.
  4. Remove the permanent entry of the Hosts.

Configuration         

Step 1: Define the permanent entry of the both Hosts.

1900-SWA(config)#mac-address-table permanent 0050.DA23.C9DD e0/1
1900-SWA(config)#mac-address-table permanent 0001.0262.FCC4 e0/2

Step 2: Ping from Host ‘A’ to Host ‘B’.

D:\>ping 10.0.0.2

Pinging 10.0.0.2 with 32 bytes of data:

Reply from 10.0.0.2: bytes=32 time<10ms TTL=128
Reply from 10.0.0.2: bytes=32 time<10ms TTL=128
Reply from 10.0.0.2: bytes=32 time<10ms TTL=128
Reply from 10.0.0.2: bytes=32 time<10ms TTL=128

Ping statistics for 10.0.0.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum =  0ms, Average =  0ms

Step 3: Verifying the Mac Addresses of the Hosts by the command.

1900-SWA#show mac-address-table

OR

1900-SWA#show mac-address-table permanent

Number of permanent addresses : 2
Number of restricted static addresses : 0
Number of dynamic addresses : 0

Address                  Dest Interface         Type         Source Interface List
------------------------------------------------------------------------------------------
0001.0262.FCC4      Ethernet 0/2      Permanent                    All
0050.DA23.C9DD    Ethernet 0/1      Permanent                    All

Step 4: Remove the permanent entry of the Hosts.

1900-SWA#clear mac-address-table permanent


iii. Restricted Static Method

In the restricted static method, the Mac-addresses do not age-out as well as it define the list that which source interface can talk/communicate with this destination interface.

Diagram





Procedure

  1. Define the restricted static of the both Hosts.
  2. Ping from Host ‘A’ to Host ‘B’.
  3. Verifying the Mac Addresses of the Hosts by the command.
  4. Remove the permanent entry of the Hosts.

Configuration         

Step 1: Define the Restricted Static entry of the both Hosts.

1900-SWA(config)#mac-address-table restricted static 0050.DA23.C9DD e0/1 e0/2
1900-SWA(config)#mac-address-table restricted static 0001.0262.FCC4 e0/2 e0/1

Step 2: Ping from Host ‘A’ to Host ‘B’.

D:\>ping 10.0.0.2

Pinging 10.0.0.2 with 32 bytes of data:

Reply from 10.0.0.2: bytes=32 time<10ms TTL=128
Reply from 10.0.0.2: bytes=32 time<10ms TTL=128
Reply from 10.0.0.2: bytes=32 time<10ms TTL=128
Reply from 10.0.0.2: bytes=32 time<10ms TTL=128

Ping statistics for 10.0.0.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum =  0ms, Average =  0ms

Step 3: Verifying the Mac Addresses of the Hosts by the command.

1900-SWA#show mac-address-table

OR

1900-SWA#show mac-address-table restricted static

Number of permanent addresses : 0
Number of restricted static addresses : 2
Number of dynamic addresses : 0

Address                  Dest Interface     Type         Source Interface List
---------------------------------------------------------------------------------------
0001.0262.FCC4      Ethernet 0/2      Static              Et0/1
0050.DA23.C9DD    Ethernet 0/1      Static              Et0/2

Step 4: Remove the Restricted Static entry of the Hosts.

1900-SWA#clear mac-address-table restricted static

No comments:

Post a Comment