I am applying the following command: "spanning-tree portfast default" in config mode and then when I check the running-config I don't see all ports in portfast as I understand they should be according to book...... is there any explanation to this? Is this IOS version related?
I have some ports manually configured as portfast. Then I apply the command "spanning-tree porfast bpduguard defaul" but when I check the running-config I don't see those ports with the bpduguard as I understand they should be according to book...... any explanation?
Switch(config)#spanning-tree portfast ?
default Enable portfast by default on all access ports
so that means, it enable portfast but it will not write the spanning-tree portfast command for each interface into the running or startup config.
In your config, u have just 1 entry "spanning-tree portfast default" so all access ports are portfast.
Btw. Same with bpduguard
U can check, if its globally activated by "show spanning-tree summary"