mask a mac address

Unanswered Question
Feb 12th, 2009

can the the following have a mask applied so that you do not have to put all 8 entries in an access list

2100.0000.0000 thru 2100.0000.0007

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
shivlu jain Sun, 02/15/2009 - 09:45

can you elaborate or ptovide some doc how you calculated the mask.

regards

shivlu jain

Istvan_Rabai Sun, 02/15/2009 - 11:00

Hi Kevin,

I believe the access list should have a wildcard mask:

0000.0000.0007

Cheers:

Istvan

Yudong Wu Sun, 02/15/2009 - 15:03

You are right. Thanks for pointing this out. It should use wildcard mask. "1" means don't care and "0" means match exactly.

Explanation to shivlu:

So if we want to match 2100.0000.0000 to 2100.0000.0007, transfer the last Hex number 0 to 7 into binary format, 0000,0001,0010,0011,0100,0101,0110,0111. Therefore, we don't need to care last 3 bits. The mask should be 0111 = 7.

2100.0000.0000 mask 0000.0000.0007 should match all 8 mac addresses.

Actions

This Discussion