쓰인다.
MAC-Address를가진Device는해당포트를사용할수없다
Switch(config)# interface gigabitEthernet1/0/1 Switch(config-if)# switchportport-security mac-address 001F.1629.E6F8 |
->해당Interface에Static으로Mac-address를지정하여, Port-Security 적용
후에도그대로해당MAC이Port-Security에저장된다.
Switch(config)# interface gigabitEthernet1/0/1 Switch(config-if)# switchportport-security mac-address sticky |
->해당Interface를Port-Security Sticky 방식으로지정
2016/09/02 - [시스템/Network(CISCO)] - ASA 기본환경설정
2016/09/02 - [시스템/Network(CISCO)] - ASA 기본환경설정
2016/09/02 - [시스템/Network(CISCO)] - ASA 기본환경설정
2016/09/02 - [시스템/Network(CISCO)] - ASA 기본환경설정
2016/09/02 - [시스템/Network(CISCO)] - ASA 기본환경설정
위반했을경우“Shutdown”되며, Err-Disable 상태로넘어간다.
Switch(Config)# interface gigabitethernet1/0/1 Switch(Config-if)#switchportport-securit ymac-address001F.1629.E6F7 Switch(Config-if)# switchportport-security violation shutdown |
%PM-4-ERR_DISABLE: psecure-violation error detected on Gi1/0/1, putting Gi1/0/1 in err-disable state%PORT_SECURITY-2-PSECURE_VIOLATION: Security violation occurred, caused by MAC address 001f.1629.e6f8 on port GigabitEthernet1/0/1. |
->Port-Security 정책을위반하여발생하는Event Log
위반한MAC-Address에대해서Event log를발생한다.
Switch(Config)# interface gigabitethernet1/0/1 Switch(Config-if)# switchportport-security maximum 1 Switch(Config-if)# switchportport-security violation restrict |
->해당Interface를Port-Security maximum-macaddress를지정하여1로지정하여이외의다른MAC이올라왔을경우위반한MAC-Address에대해서만모든Frame을폐기하며, Violation Event log를발생한다
%PORT_SECURITY-2-PSECURE_VIOLATION: Security violation occurred, caused by MAC address 001f.1629.e6f8 on port GigabitEthernet1/0/1. |
->Port-Security Violation이발생하여,001f.1629.e6f8의MAC-Address를제한되었다는log
3. Violation Protect : restrict와동일하게동작하지만, Violation Event log를발생하지않는다.
Switch(Config)# interface gigabitethernet1/0/1 Switch(Config-if)# switchportport-security maximum 1 Switch(Config-if)# switchportport-security violation protect |
->해당Interface를Port-Security maximum-macaddress를지정하여1로지정하여이외의다른MAC이올라왔을경우위반한MAC-Address에대해서만모든Frame을폐기하며, Violation Event log를발생하지않는다.
Port-Security Aging Time에는2가지방식이있다.
Aging Time이만료되어야Port-Security에등록된MAC-Address가삭제된다.
Switch(config)# interface gigabitEthernet1/0/1 Switch(config-if)# switchportport-security aging time 1 Switch(config-if)# switchportport-security aging type absolute |
Port-Security에등록된MAC-Address가삭제된다.
Switch(config)# interface gigabitEthernet1/0/1 Switch(config-if)# switchportport-security aging type inactivity Switch(config-if)# switchportport-security aging time 1 |
ConfigurationSwitch(Config)# interface gigabitethernet1/0/1 Switch(Config-if)# switchportport-security ßPort-security enable Switch(Config-if)# switchportport-security maximum 2 ß ->해당interface로학습될MAC-address 제한 Switch(Config-if)#switchportport-security mac-address[sticky,static] ->port-security type,default dynamic Switch(Config-if)# switchportport-security violation [shutdown / restrict / protect] Switch(Config-if)# switchportport-security aging static ß ->static으로지정한mac-address에대한aging time Switch(Config-if)# switchportport-security aging time [0-1440 min] ß ->default 0sec, 0sec->infinity Switch(Config-if)# switchportport-security aging type [absolute / inactivity] ß ->aging time type 결정 |
Switch# show port-security interface gigabitethernet1/0/1 Port Security : Enabled Port Status : Secure-up Violation Mode : Shutdown Aging Time : 1 mins Aging Type : Absolute SecureStaticAddress Aging : Enabled Maximum MAC Addresses : 1 Total MAC Addresses : 1 Configured MAC Addresses : 0 Sticky MAC Addresses : 0 Last Source Address:Vlan: 001f.1629.e6f8:1 Security Violation Count : 0 |
Port-Security Configuration
Switch# show port-security address Switch# showport-security address Secure Mac Address Table ------------------------------------------------------------------------ Vlan Mac Address Type Ports Remaining Age(mins) ------------------------------------------------------------------------ 1 001f.1629.e6f8 SecureDynamic Gi1/0/1 < 1 ------------------------------------------------------------------------ Total Addresses in System (excluding one macper port) : 0Max Addresses limit in System (excluding one macper port) : 6144 |
->해당Interface에Static으로Mac-address를지정하여, Port-Security 적용
'시스템 > Network' 카테고리의 다른 글
[네트워크] 초보자를 위한 명령어 입력 TIP (0) | 2016.09.02 |
---|---|
[네트워크] CISCO 장비 콘솔 접속 및 점검 (0) | 2016.09.02 |
[네트워크] 서브네팅과 슈퍼네팅 개요 (0) | 2016.09.02 |
[네트워크] 무선AP 설정 (0) | 2016.09.02 |
[네트워크] ASA 기본환경설정 (0) | 2016.09.02 |