Assign Each Switch Port to A Single Computer

NC

In this article, we will perform assigning each switch port to a single computer. Let's start with an example of a small network.

Assign Each Switch Port to A Single Computer

You follow the commands as below. In this example I choose fastEthernet 0/1

enable

configure terminal

interface fastEthernet 0/1

On this interface the only computer connected is the first connected computer. Other computers when connected will not send or receive packets.

switchport mode access

switchport port-security

switchport port-security mac-address stick

switchport port-security violation shutdown

exit

exit

write

The port of the switch will be shutdown.

Assign Each Switch Port to A Single Computer

This is the first computer that connects to the fastEthernet 0/1 interface, everything works fine.

Assign Each Switch Port to A Single Computer

Next, connect another computer to the fastEthernet 0/1 interface, what will happen.

The switch port will be shut down.

Assign Each Switch Port to A Single Computer

If you want to use this port again, use the shutdown and no shutdown commands.

configure terminal

interface fastEthernet 0/1

shutdown

no shutdown

exit

exit

Assign Each Switch Port to A Single Computer

Facebook: https://www.facebook.com/routerbest

Twitter: https://twitter.com/routerbestcom

Tags: Switch