Monday, 1 October 2012

Force10 - % Error: Port is in Layer-2 mode

When you try to configure ports on a Force 10 switch for a LAG the switch throws this error:


% 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 ;)

9 comments:

  1. i'm still getting the error:
    interface 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)#

    ReplyDelete
  2. Replies
    1. I am having the same issue. How were you able to resolve this?

      Delete
    2. The no spanning tree is a config. Enable default spanning tree "# spanning-tree [enter]" then perform the no switchport, etc and it should work.

      Delete
    3. I 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"

      Delete
    4. Yes, 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 :)

      Delete
  3. Also, 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:

    no 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?

    ReplyDelete
    Replies
    1. The above worked. Thanks Chris.

      no spanning-tree 0 portfast
      spanning-tree
      no switchport
      no portmode hybrid

      Delete