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

6 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
  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