REQ - Help with config of 2950

Jun 01, 2005 5 Replies

You can use the port security feature to restrict the devices that can be connected to a port by MAC addresses. Here is an example:

Switch(config)#interface fastethernet0/2 Switch(config-if)#switchport mode access Switch(config-if)#switchport port-security Switch(config-if)#switchport port-security mac-address 0422.1043.0a31 Switch(config-if)#exit

The following papers explain the details about port security configuration:

Fundamentals of Switching (by KP-LAB):

formatting link
Configuring Port Security (by Cisco):
formatting link

KPLAB

formatting link
- Free CCNA Study Guide

Mark,

Read the answer to your questions below.

Question 1

If you're hardware supports it you can use Auto-MDIX setting. This will sense the cabling used either straight-through or crossover.

switch#configure terminal switch(config)#interface fastethernet 0/1 switch(config-if)#mdix auto switch(config-if)#end switch#

Question 2

switch#configure terminal switch(config)#interface fastethernet 0/1 switch(config-if)#switchport mode access switch(config-if)#switchport port-security switch(config-if)#switchport port-security mac-address 0001.0002.0003 switch(config-if)#end switch#

That wasn't hard now was it? Try Googling for answers next time! It's all there.

Don't forget to save your configuration!

HTH

LEON

G'day all I need some help with the config of a 2950 Switch if someone would be so kind,



  1. Is it possible to set port 1 as a crossover (instead of using a cable) and if so how, what commands do I use to achieve this.


  1. Can I lock down the ports to specific mac addresses and if so how, what commands do I use to achieve this.



Thanks in advance Mark


Thanks so much Leon Regards Mark

Now I've had to go and mdo a IOS upgrade as MDIX is not featured in the IOS I have installed.

Thanks so much. Regards Mark

formatting link

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required