Grossel
Well-Known Member
Hi.
The company I work for have bought some Hitachi 500NMD64 managed switches for a project. There is a star network consisting of 4 locations, where on the fourth location, the location itself are owned by another company. Because of this, my boss have asked me to put a mac filter on the switch (to one particular port) to ensure that only the device that is supposed to be connected on that port is able to communicate through the switch.
This is what I've done so far (extract from running-config). For the test, I'm using two laptops with known mac address and wifi turned off. The laptop that is supposed to communicate have mac address 10- . . . . . . -06, and each test are tested two times where the laptop connection is swapped. When no rules are set, the laptops can ping each other through the switch.
Test 1
access-list 1 permit-rule 1 mac destination not 10- . . . . . . -06
access-list 1 permit-rule 2 mac source not 10- . . . . . . -06
set switch port3 acl 1
Result: fail. All traffic seems to get through (both 10- . . . . . . -06 and other devices with different mac address)
Test 2
access-list 1 deny-rule 1 mac destination 10- . . . . . . -06
access-list 1 deny-rule 2 mac source 10- . . . . . . -06
set switch port3 acl 1
Result: fail. All traffic seems to get through (both 10- . . . . . . -06 and other devices with different mac address)
Test 3
access-list 1 deny-rule 1 mac destination not 10- . . . . . . -06
set switch port3 acl 1
Result: fail. This rule cause device with mac 10- . . . . . . -06 being blocked. Didn't test the other laptop so don't know if other devices get blocked as well.
Soo, here is the problem - due to schedule, I wasn't able to test more rules, but I do suspect that I'm starting to get closer after test 3.
Anybody having any experiences with those products that know how to set mac filtering rule to achieve the wanted behavior - only one device with a specific mac address are able to send traffic through that port on the switch ?
The company I work for have bought some Hitachi 500NMD64 managed switches for a project. There is a star network consisting of 4 locations, where on the fourth location, the location itself are owned by another company. Because of this, my boss have asked me to put a mac filter on the switch (to one particular port) to ensure that only the device that is supposed to be connected on that port is able to communicate through the switch.
This is what I've done so far (extract from running-config). For the test, I'm using two laptops with known mac address and wifi turned off. The laptop that is supposed to communicate have mac address 10- . . . . . . -06, and each test are tested two times where the laptop connection is swapped. When no rules are set, the laptops can ping each other through the switch.
Test 1
access-list 1 permit-rule 1 mac destination not 10- . . . . . . -06
access-list 1 permit-rule 2 mac source not 10- . . . . . . -06
set switch port3 acl 1
Result: fail. All traffic seems to get through (both 10- . . . . . . -06 and other devices with different mac address)
Test 2
access-list 1 deny-rule 1 mac destination 10- . . . . . . -06
access-list 1 deny-rule 2 mac source 10- . . . . . . -06
set switch port3 acl 1
Result: fail. All traffic seems to get through (both 10- . . . . . . -06 and other devices with different mac address)
Test 3
access-list 1 deny-rule 1 mac destination not 10- . . . . . . -06
set switch port3 acl 1
Result: fail. This rule cause device with mac 10- . . . . . . -06 being blocked. Didn't test the other laptop so don't know if other devices get blocked as well.
Soo, here is the problem - due to schedule, I wasn't able to test more rules, but I do suspect that I'm starting to get closer after test 3.
Anybody having any experiences with those products that know how to set mac filtering rule to achieve the wanted behavior - only one device with a specific mac address are able to send traffic through that port on the switch ?