Assign Port with Mac add manually in 2950

Unanswered Question
May 27th, 2008

how to assign port with Mac add manually in 2950 switches.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 1 (1 ratings)
epsanthosh Tue, 05/27/2008 - 23:45

Getting the following message.

FastEthernet0/3 is dynamic port. port-security parameters cannot be set.

How the change the dyamanic port off.

Jon Marshall Tue, 05/27/2008 - 23:52

You cannot configure port security on a dynamic access port. So under your interface configuration

switch(config-if)# switchport mode access

then add the command previously posted.


Amit Singh Tue, 05/27/2008 - 23:51

Switch(config)# mac address-table static c2f3.220a.12f4 vlan 4 interface gigabitethernet0/1

-amit singh

epsanthosh Wed, 05/28/2008 - 02:12

Even after entering a wrong mac address or incorrect vlan informartion in the command, the port is still connected and is able to ping & get reply.

Tried restarting the s/w but still same result. Any suggestion.

epsanthosh Wed, 05/28/2008 - 02:30

Assign a mac address for a port on 2950 s/w for a specific vlan. If any computer with different mac address is connected it should not obtain ip address since the specified mac address on the s/w and computer is incorrect or not matching.

Amit Singh Wed, 05/28/2008 - 02:40

What we can dot with this is that we can enable port-security on the switch with a static mac-address on it. The moment any other user tries to connect its PC on that port, it will be disabled and user will not be able to work on that port. We can also configure it to send a log to your syslog server.

Here is what you need to do :

Conf t

int fa 0/1

switchport mode access

switchport port-security

switchport port-security max 1

switchport port-security mac-address sticky

switchport port-security mac-address sticky xxxx.yyyy.zzzz

switchport port-security voilation restricted

We have use the sticky configuration so that the mac-address remain in the running-config of the switch.


-amit singh


This Discussion