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

Enable port security between Two switches

mahesh18
Level 6
Level 6

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

7 Replies 7

Leo Laohoo
Hall of Fame
Hall of Fame

Mahesh,

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

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

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. 

So seems there is no use to try this experiment.

Regards

Mahesh

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

Hi Leo,

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

I agree with what you said.

Regards

MAhesh

Thanks for the ratings, Mahesh.

Sent from Cisco Technical Support Nintendo App

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco

Ā