Online Classes Available

contact for MCSA 2012,MCSE 2012,Exchange server 2010,VCP 5.5 (Free Demo)
call :+91-9654527967
Skype:neeraj_230@hotmail.com
Hangout:neerajdel@gmail.com

Tuesday, April 8, 2014

Port Security Configuration on 2950 Switch

Switch(config-if)#switchport mode access

Switch(config-if)#switchport port

Switch(config-if)#switchport port-security ?
  mac-address  Secure mac address
  maximum      Max secure addresses
  violation    Security violation mode
  <cr>

Switch(config-if)#switchport port-security mac-address ?
  H.H.H   48 bit mac address
  sticky  Configure dynamic secure addresses as sticky

Switch(config-if)#switchport port-security mac-address 00e0.f75c.6301
Port-security not enabled on interface FastEthernet0/1.

Switch(config-if)#switchport port-security

Switch(config-if)#switchport port-security mac

Switch(config-if)#switchport port-security mac-address 00e0.f75c.6301

Switch(config-if)#^Z
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#sh mac address-table
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----

   1    00e0.f75c.6301    STATIC      Fa0/1
Switch#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

Switch#
Switch#sh mac address-table
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----

   1    00e0.f75c.6301    STATIC      Fa0/1
Switch#sh mac address-table
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----

   1    00e0.f75c.6301    STATIC      Fa0/1
Switch#sh mac address-table
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----

   1    00e0.f75c.6301    STATIC      Fa0/1
Switch#sh mac address-table
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----

   1    00e0.f75c.6301    STATIC      Fa0/1
Switch#sh mac address-table
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----

   1    00e0.f75c.6301    STATIC      Fa0/1
Switch#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to administratively down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down


Switch#
Switch#
Switch#
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config)#int fastEthernet 0/1

Switch(config-if)#switchport port-security maximum 2

Switch(config-if)#shutdown

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to administratively down
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#no sh
Switch(config-if)#no shutdown

Switch(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

Switch(config-if)#switchport port-security violation ?
  protect   Security violation protect mode
  restrict  Security violation restrict mode
  shutdown  Security violation shutdown mode

Switch(config-if)#switchport port-security violation shutdown
Switch(config-if)#^Z
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#sh mac AD
Switch#sh mac ADdress-table
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----

   1    00e0.f75c.6301    STATIC      Fa0/1
Switch#sh mac ADdress-table
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----

   1    00e0.f75c.6301    STATIC      Fa0/1
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config-if)#switchport port-security mac-address 0090.217C.CE02
Switch(config-if)#^Z
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#
Switch#
Switch#sh mac ADdress-table
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----

   1    0090.217c.ce02    STATIC      Fa0/1
   1    00e0.f75c.6301    STATIC      Fa0/1
Switch#

No comments:

Post a Comment