cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1144
Views
0
Helpful
7
Replies

Enable port security between Two switches

mahesh18
Frequent Contributor
Frequent Contributor

Hi Everyone,

I connected two switches together  via below config

Switch A

int gi0/1

switch mode access

switchport access vlan 10

Switch B

int gi0/1

switch mode access

switchport access vlan 10

They work fine with above config.

I did the Test below

However when i changed Config of Switch B  as below

int gi0/1

switch mode access

switchport access vlan 10

switchport port-security  

Switch B is unable to ping its default gateway.

Also Switch B is not reachable via SSH.

Port is up up and in STP forwarding state.

Switch B can see Switch A as a neighbour.

Also Switch B is not reachable via SSH.

I know that switchport port-security we use only when connecting to PC.

S does this mean that  on above scenario layer 1 and layer 2 are up but layers beyond 3 and above are not reachable like ping,ssh etc??

Regards

MAhesh

1 Accepted Solution

Accepted Solutions

I was just trying to see how the switches behave with this config.

Nothing much just  exploring the options in the network world

Ideally if you want to connect two switches together in Layer 2, Dot1Q trunking is the way to go.  You do not want to put port security because it is useless. 

View solution in original post