примного благодарен. вот что нашел:
How to create ethernet type ACL with SNMP command on DXS-3326GSR v4.40 or later
1. Create Access profile and ACL entry
We need create a Access profile as the following command, whose filter range is single source MAC
Код:
#snmpset -c private -v 2c 192.168.1.24 1.3.6.1.4.1.171.12.9.2.1.1.2.1 i 2 1.3.6.1.4.1.171.12.9.2.1.1.3.1 i 3 1.3.6.1.4.1.171.12.9.2.1.1.4.1 x ffffffffffff 1.3.6.1.4.1.171.12.9.2.1.1.6.1 i 2 1.3.6.1.4.1.171.12.9.2.1.1.7.1 i 2 1.3.6.1.4.1.171.12.9.2.1.1.8.1 i 4
Note that the snmpset command must include ‘1.3.6.1.4.1.171.12.9.2.1.1.8.1 i 4’ parameter, when you create a new entry.
Add a one ACL entry to deny the source MAC from 00-1A-4D-44-22-54 on port 1
Код:
#snmpset -c private -v 2c 192.168.1.24 1.3.6.1.4.1.171.12.9.3.1.1.4.1.1 x 001a4d442254 1.3.6.1.4.1.171.12.9.3.1.1.14.1.1 i 1 1.3.6.1.4.1.171.12.9.3.1.1.15.1.1 x 0000000000000001 1.3.6.1.4.1.171.12.9.3.1.1.18.1.1 i 4
Note that the snmpset command must include ‘1.3.6.1.4.1.171.12.9.3.1.1.18.1.1 i 4’ parameter, when you create a new entry.
2.Delete Access_profile command
Код:
#snmpset -c private -v 2c 192.168.1.24 1.3.6.1.4.1.171.12.9.2.1.1.8.1 i 6
3. Delete ACL entry command
Код:
#snmpset -c private -v 2c 192.168.1.24 1.3.6.1.4.1.171.12.9.3.1.1.18.1.1 i 6