Rules for range contexts

  • For interfaces that use the member/slot/port notation, items in the range must be specified in ascending order.

  • Contiguous items in the range are represented by the smallest and largest values separated by a hyphen.

    For example:

    • Command: interface 1/1/1-1/1/8

      Switch prompt: switch(config-if-<1/1/1-1/1/8>)#

    • Command: vlan 1-10

    • Switch prompt: switch(config-vlan-<1-10>)#

  • Noncontiguous items in the range must be separated by commas.

    For example:

    • Command: interface 1/1/1-1/1/8,1/1/10,1/1/12

      Switch prompt: switch(config-if-<1/1/1-1/1/8,1/1/10,1/1/12>)#

    • Command: vlan 1-10,15,20-25

      Switch prompt: switch(config-vlan-<1-10,15,20-25>)#

  • The switch prompt is truncated to 50 characters.