Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Enable port security between Two switches

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
Hall of Fame Super Gold

Enable port security between Two switches

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. 

7 REPLIES
Hall of Fame Super Gold

Enable port security between Two switches

Mahesh,

Why do you want to enable port security on a switch-to-switch link? 

New Member

Enable port security between Two switches

Hi Leo,

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

Nothing much just  exploring the options in the network world

Regards

Mahesh

Hall of Fame Super Gold

Enable port security between Two switches

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. 

New Member

Enable port security between Two switches

So seems there is no use to try this experiment.

Regards

Mahesh

Hall of Fame Super Gold

Re: Enable port security between Two switches

I disagree, Mahesh.

You learnt something from all of this, didn't you? If you don't try and "experiment" things, then you won't learn. You learn from your mistakes. Now THAT means a lot.

Sent from Cisco Technical Support Nintendo App

New Member

Enable port security between Two switches

Hi Leo,

yes you are right if i see broader picture i learn something from this.

I agree with what you said.

Regards

MAhesh

Hall of Fame Super Gold

Re: Enable port security between Two switches

Thanks for the ratings, Mahesh.

Sent from Cisco Technical Support Nintendo App

193
Views
0
Helpful
7
Replies
CreatePlease to create content