spanning-tree portfast and switchport mode access

Answered Question
Oct 3rd, 2007

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!

I have this problem too.
0 votes
Correct Answer by nambi_gct about 7 years 5 months ago

"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.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Correct Answer
nambi_gct Wed, 10/03/2007 - 20:51

"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.

ada.chan Wed, 10/03/2007 - 20:53

No thats what I call a fast respnse! Thankyou.

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

Actions

Login or Register to take actions

This Discussion

Posted October 3, 2007 at 8:44 PM
Stats:
Replies:2 Overall Rating:5
Views:1427 Votes:0
Shares:0
Tags: No tags.
 

Discussions Leaderboard

Rank Username Points
1
Jon Marshall
16,516
2
Reza Sharifi
9,299
3
Giuseppe Larosa
8,202
4
Peter Paluch
7,599
5
Leo Laohoo
7,591
Rank Username Points
Jon Marshall
551
Joseph W. Doherty
114
Reza Sharifi
108
Peter Paluch
71
Bilal Nawaz
54