Portfast question

in CCNA & CCENT
Ok so you can either set a whole switch to portfast by:
Switch(config)# spanning-tree portfast default
and also set up specific port to portfast by
Switch(config-if)# spanning-tree portfast
and this also works for a range but, my question is this:
Would the global command cause a problem if the switch already has two trunks set up to another switch?
I have enabled the global command and it did not seem to cause a problem with the existing stp. Or is there a command to set of the specific ports after the global portfast setting has been enabled.
Many thanks.
Switch(config)# spanning-tree portfast default
and also set up specific port to portfast by
Switch(config-if)# spanning-tree portfast
and this also works for a range but, my question is this:
Would the global command cause a problem if the switch already has two trunks set up to another switch?
I have enabled the global command and it did not seem to cause a problem with the existing stp. Or is there a command to set of the specific ports after the global portfast setting has been enabled.
Many thanks.
Comments
-
APA Member Posts: 959
Global portfast default, once applied - only applies to ports configured as access ports.
'switchport mode access' or that have negotiated access port state, if you've only applied the 'switchport access vlan [number]'.
It will not affect trunks.
CCNA | CCNA:Security | CCNP | CCIP
JNCIA:JUNOS | JNCIA:EX | JNCIS:ENT | JNCIS:SEC
JNCIS:SP | JNCIP:SP -
billyr Member Posts: 186
Just as an extra you can also apply portfast and set an interface to access mode using the following macro:
e.g
conf t
int f0/10
switchport host