Basics – Interface Naming Conventions

Within the CLI, interfaces are denoted by concatenating the following elements:

  • Type of interface—The following types of interfaces are found on the various types of devices:
    • GigabitEthernet ports (10/100/1000 bits)—This can be written as either GigabitEthernet or gi or
    • TenGigabit thernet ports (10000 bits)—This can be written as either TenGigabitEthernet or te or xg.
    • LAG (Port Channel)—This can be written as either Port-Channel or
    • VLAN—This is written as VLAN
    • Tunnel—This is written as tunnel or tu
    • OOB This is written as OutOfBand or oob
  • Unit Number – Unit in stack. In standalone models this is always 1 (1 by default)
  • Slot Number – Always 1
  • Interface Number—Port, LAG, tunnel or VLAN ID

The syntax for this is:

{<ethernet-type>[ ][<unit-number>/]<slot-number>/<port-number>} | {port-channel | po | ch}[ ]<port-channel-number> | {tunnel | tu}[ ]<tunnel-number> | vlan[ ]<vlan-id>

Sample of these various options are shown in the example below:Sample of these various options are shown in the example below

console(config)#interface GigabitEthernet 1/1/1console(config)#interface GE 1/1/1console(config)#interface gi1/1/1console(config)#interface FastEthernet 1/2/1console(config)#interface fe1/2/1console(config)#interface po1 console(config)#interface vlan 1

Interface Range

Interfaces may be described on an individual basis or within a range. The interface range command has the following syntax:

<interface-range> ::= {<port-type>[ ][<unit-number>/]<slot-number>/<first-port-number>[ – <last-port-number]} | port-channel[ ]<first-port-channel-number>[ – <last-port-channel-number>] | tunnel[ ]<first-tunnel-number>[ – <last-tunnel-number>] | vlan[ ]<first-vlan-id>[ – <last-vlan-id>]A sample of this command is shown in the example below

console#configure
console(config-if)#interface range gi1/1/1-5

Interface List

A combination of interface types can be specified in the interface range command in the following format:

<range-list> ::= <interface-range> | <range-list>, < interface-range> Up to five ranges can be included.

Note. Range lists can contain either ports and port-channels or VLANs. Combinations of port/port-channels and VLANs are not allowed The space after the comma is optional.

When a range list is defined, a space after the first entry and before the comma (,) must be entered.A sample of this command is shown in the example below

console#configure 
console(config)#interface range gi1/1/1-5 , vlan 1-2

Was this article helpful?

Related Articles

Leave A Comment?