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

spanning-tree portfast and switchport mode access

On a Cat 3560 IOS based switch, can someone please tell me the difference between:

int g0/1

switchport mode access

and

int g0/1

spanning-tree portfast?

Many thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
New Member

Re: spanning-tree portfast and switchport mode access

"switchport mode access" command makes the port access port.It means that this port will be part of only one VLAN, which will be configured with "switchport access vlan x".If you do not use this command the port will be part of vlan 1.

"spanning-tree portfast" is an STP optimisation mechanism for access ports which immediately moves the port to Forwarding state to minimise the connectivity loss to the end host.And also if portfast enabled port flaps it wont generate TCN.

Hope this helps.

2 REPLIES
New Member

Re: spanning-tree portfast and switchport mode access

"switchport mode access" command makes the port access port.It means that this port will be part of only one VLAN, which will be configured with "switchport access vlan x".If you do not use this command the port will be part of vlan 1.

"spanning-tree portfast" is an STP optimisation mechanism for access ports which immediately moves the port to Forwarding state to minimise the connectivity loss to the end host.And also if portfast enabled port flaps it wont generate TCN.

Hope this helps.

New Member

Re: spanning-tree portfast and switchport mode access

No thats what I call a fast respnse! Thankyou.

Here I was thinking that they were essentially the same command! Thanks again!

2205
Views
5
Helpful
2
Replies
CreatePlease to create content