% Error: Port is in Layer-2 mode Gi 0/xx
To prevent this issue the command
# no switchport
If the no switchport command gives the error below:
% Error: Port has Layer-2 config on it Gi 0/xx
You will need to remove the spanning tree configuration for that port with this command.
#no spanning-tree rstp edge-port
Don't forget to save the running config ;)
Thanks for the tips.
ReplyDeletei'm still getting the error:
ReplyDeleteinterface TenGigabitEthernet 0/38
no ip address
mtu 12000
switchport
no spanning-tree
shutdown
S4810-3(conf-if-te-0/38)#no spanning-tree rstp edge-port
S4810-3(conf-if-te-0/38)#no switchport
% Error: Port has Layer-2 config on it Te 0/38.
S4810-3(conf-if-te-0/38)#
I figured it out, sorry.
ReplyDeleteI am having the same issue. How were you able to resolve this?
DeleteThe no spanning tree is a config. Enable default spanning tree "# spanning-tree [enter]" then perform the no switchport, etc and it should work.
DeleteI came across this post while having the same problem, and since Mr. Gutche did not post his answer, I found you also have to put the port into "no portmode hybrid"
DeleteYes, it was my case too: "no spanning tree" turned out to be that nasty L2-configuration that prevented me doing other things! Thank you genius who found it out for others! I don't know, who are the target admins for F10 devices? If I have agreed a service window and then I have to Google-search for 45 minutes to find this incredible detail and formal logic, then... Not everybody will take courses to learn such things and I am not sure it will be taught even there. I rather feel that I'd like to get rid of such devices and we have already chosen and used HPE FF5940 instead: with those, the only strange thing so far has been the "double tagging" of both BAGG's AND the ports that belong to it but since that is done automatically and besides there is GUI to handle all that, I am much relieved with configurations now. Maybe F10's are for tougher guys :)
DeleteAlso, if you've used portmode hybrid and you want to make a port into part of an LACP group, you'll need to return the port to default settings:
ReplyDeleteno spanning-tree 0 portfast
spanning-tree
no switchport
no portmode hybrid
In that order..
Why the hell FTOS does this, I don't know. They don't make it easy for us do they?
The above worked. Thanks Chris.
Deleteno spanning-tree 0 portfast
spanning-tree
no switchport
no portmode hybrid