# Сети Д/З Port-Security: Настроить Port-security на всех коммутаторах на активных портах, к которым подключены клиентские ПК. Выставить максимум мак-адресов на активных портах = 2. Режим работы Port-security выставить для логирования событий (без блокировки портов). В конфигурации выключить неактивные интерфейсы. Топология: ![](https://i.imgur.com/bJf2sh9.jpg) Выполнено: 1. Настраиваем p/s на активных access портах (пример Switch1 int e0/1): Switch1(config)#int e0/1 Switch1(config-if)#switchport port-security Switch1(config-if)#switchport port-security mac-address sticky Switch1(config-if)#switchport port-security maximum 2 Switch1(config-if)#switchport port-security violation restrict Проверяем вывод команды *do sh port-security*: Switch1: ![](https://i.imgur.com/VImeR4V.jpg) Switch2: ![](https://i.imgur.com/F7qcAcP.jpg) Switch3: ![](https://i.imgur.com/z9wFWyV.jpg) Switch4: ![](https://i.imgur.com/H3sWkt7.jpg) Switch5: ![](https://i.imgur.com/IsyqFhh.jpg) Server-Switch: ![](https://i.imgur.com/63BLsYL.jpg) 2. Отключаем не активные интерфейсы (пример Switch1): int e0/3 sh int e1/2 sh int e1/3 sh int e2/0 sh int e2/1 sh int e2/2 sh int e2/3 sh Проверяем вывод команды *do show interfaces status*: Switch1: ![](https://i.imgur.com/RZ3gP5u.jpg) Switch2: ![](https://i.imgur.com/yidFZRy.jpg) Switch3: ![](https://i.imgur.com/cC7w3OY.jpg) Switch4: ![](https://i.imgur.com/fnpmO0I.jpg) Switch5: ![](https://i.imgur.com/ObRt2lN.jpg) Server-Switch: ![](https://i.imgur.com/hEIofWJ.jpg)