Jump to content
Калькуляторы

Как заблокировать все MAC-адреса кроме определённого на одном порту?

Добрый день!

Есть коммутатор S2940-8G 

Необходимо открыть доступ только одному mac-адресу, допустим на 1 порту

Подскажите можно ли это сделать 

Share this post


Link to post
Share on other sites

@Kachanovskiy Dmitriy, Добрый день. Вы можете использовать функционал - switchport port-security. Описание функционала есть здесь:

  https://nag.wiki/x/EB1-AQ

Share this post


Link to post
Share on other sites

conf
int e1/0/1
(config-if-ethernet1/0/1)#switchport port-security
(config-if-ethernet1/0/1)#switchport port-security maximum 1
(config-if-ethernet1/0/1)#switchport port-security violation shutdown recovery 30
(config-if-ethernet1/0/1)#switchport port-security mac-address sticky
(config-if-ethernet1/0/1)#exit

 

порт будет изучать 1 мак на порту автоматически и блокировать порт на 30 сек при его изменении и далее по кругу, можно поменять по желанию на другое действие

Edited by andpuxa

Share this post


Link to post
Share on other sites

как сделать так что бы он не блокировал  порт.

Суть такая: на порту 500 маков, основной из них один остальные только мешают, но при этом должны работать.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.