cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1163
Views
1
Helpful
8
Replies

Assign Port with Mac add manually in 2950

epsanthosh
Level 1
Level 1

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

8 Replies 8

bvsnarayana03
Level 5
Level 5

switchport port-security mac-address

Getting the following message.

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

How the change the dyamanic port off.

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.

Jon

Amit Singh
Cisco Employee
Cisco Employee

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

-amit singh

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.

What is your exact requirement. please explain in detail

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.

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.

HTH,

-amit singh

Review Cisco Networking products for a $25 gift card