VMware ESXi and vSphere Cluster Management
Cisco IOS Interfaces: Identification, Status, and Basic Configuration
Learn how Cisco IOS identifies interfaces, interpret show ip interface brief output, configure IPv4 addresses, enable router ports, and troubleshoot interface states.
A Cisco IOS interface is a configurable network connection point on a router or switch. A physical port is the hardware socket used for a cable or transceiver. Cisco IOS applies many settings at the interface level, so you select a specific interface before configuring its address, administrative state, speed, or other properties.
Cisco IOS is Cisco's network-device operating system and command-line environment. This lesson focuses on physical Ethernet interfaces, while also introducing logical interfaces such as VLAN interfaces and loopbacks. Logical interfaces do not represent a physical socket, but IOS can still apply configuration to them.
Physical and Logical Interfaces
Common physical Ethernet interface types include:
- FastEthernet: commonly associated with 100 Mb/s Ethernet.
- GigabitEthernet: commonly associated with 1 Gb/s Ethernet.
A logical interface is created or represented in software. Examples include a switch virtual interface used for management and a loopback interface used for a stable logical address. Physical interfaces connect directly to media; logical interfaces do not require a physical socket.
Understanding Interface Names
An interface name identifies both its type and its location on the device. Depending on the platform, the numbering format may be type/slot/port or simply type/port.
FastEthernet0/0means FastEthernet, slot 0, port 0 on a platform using two-part numbering.GigabitEthernet0/1means GigabitEthernet, slot 0, port 1.- Some platforms use names such as
GigabitEthernet1/0/1, where the first number identifies a slot or module and the remaining numbers identify the port.
IOS accepts useful abbreviations when they identify one interface unambiguously. For example, int g0/0 may be accepted as an abbreviation for interface GigabitEthernet0/0. The full canonical name shown by the device is safest for documentation and teaching. Do not assume that every router or switch uses the same numbering scheme.
Router and Switch Interface Behavior
On many Cisco routers, Ethernet interfaces are administratively disabled by default or after a reset. A router interface must normally receive the no shutdown command before it can forward traffic.
Switch access ports generally become usable after startup when a cable is connected and the port is not administratively disabled. However, being enabled does not guarantee connectivity. The physical cable, transceiver, far-end device, VLAN and port settings, speed, duplex, and protocol conditions all affect the final operational state.
IOS Modes Used for Interface Work
IOS uses a hierarchy of command modes. A prompt helps identify the current mode.
| IOS Mode | Prompt Style | Purpose | Example Commands |
|---|---|---|---|
| Privileged EXEC | Router# | Advanced monitoring, verification, and management. | show ip interface brief, configure terminal |
| Global configuration | Router(config)# | Device-wide settings and entry into subordinate configuration modes. | interface GigabitEthernet0/0 |
| Interface configuration | Router(config-if)# | Settings for the currently selected interface. | ip address, no shutdown |
From user EXEC mode, use enable to enter privileged EXEC mode. Use configure terminal to enter global configuration mode, then use the interface command to select one interface.
Router> enable
Router# configure terminal
Router(config)# interface GigabitEthernet0/0
Router(config-if)#
Interface-specific commands entered at the Router(config-if)# prompt apply only to the selected interface. Use end to return directly to privileged EXEC mode.
Viewing an Interface Summary
Run show ip interface brief from privileged EXEC mode to get a compact view of interface names, IPv4 addressing, address-assignment method, administrative state, and line protocol state.
Router# show ip interface brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 192.0.2.1 YES manual up up
GigabitEthernet0/1 unassigned YES unset administratively down down
Loopback0 198.51.100.1 YES manual up up
Reading show ip interface brief Output
| Field | What It Identifies | Typical Values | How to Interpret It |
|---|---|---|---|
| Interface | The IOS name of the interface. | GigabitEthernet0/0, FastEthernet0/1 | Use this exact name when selecting the interface. |
| IP-Address | The IPv4 address assigned to the interface. | 192.0.2.1, unassigned | unassigned means no IPv4 address is currently assigned. |
| OK? | An indicator that IOS considers the address information valid. | YES, NO | This is an address-validity indicator, not a link-status test. |
| Method | How the address was assigned. | manual, DHCP, unset | manual indicates static configuration; DHCP indicates Dynamic Host Configuration Protocol assignment. |
| Status | Administrative and physical interface condition. | up, down, administratively down | administratively down means IOS has disabled the interface with configuration. |
| Protocol | The line protocol or operational condition. | up, down | This helps show whether the interface's line protocol is operational. |
Common Status Combinations
| Status | Protocol | Likely Meaning | Initial Checks |
|---|---|---|---|
| up | up | The interface is enabled and the physical and line protocol conditions are operational. | Confirm the address, mask, VLAN or Layer 2 settings, and remote connectivity. |
| administratively down | down | The interface is disabled by shutdown or has not been enabled. | Enter the correct interface and issue no shutdown if it should be active. |
| down | down | The interface is not administratively shut down, but no usable physical link is detected. | Check cable, transceiver, far-end power, far-end port state, media, speed, and duplex. |
| up | down | The physical layer is present, but a Layer 2 or protocol-level condition prevents normal operation. | Run show interfaces; inspect errors, encapsulation, and settings on both ends. |
Configuring a Router Interface
To configure a static IPv4 address, use the ip address command followed by the address and dotted-decimal subnet mask. A subnet mask identifies the network and host portions of an IPv4 address. Static addressing means the address information is entered manually rather than acquired through DHCP.
The following example assigns 192.0.2.1/24 to GigabitEthernet0/0 and enables the interface.
Router> enable
Router# configure terminal
Router(config)# interface GigabitEthernet0/0
Router(config-if)# ip address 192.0.2.1 255.255.255.0
Router(config-if)# no shutdown
Router(config-if)# end
Router# show ip interface brief
The address and administrative state are separate settings. The ip address command supplies Layer 3 addressing; no shutdown removes the administrative disable. If the cable is disconnected, the interface may remain down/down after no shutdown.
Shutdown, Speed, and Duplex
The shutdown command administratively disables the selected interface. The corresponding no shutdown command enables it.
Router(config)# interface GigabitEthernet0/0
Router(config-if)# shutdown
Router(config-if)# no shutdown
Speed is the Ethernet link transmission rate. Duplex describes whether the link can transmit and receive simultaneously or must alternate direction. Ethernet interfaces often negotiate these settings automatically. If the hardware and network design require a manual speed, a command such as the following may be appropriate:
Router(config)# interface FastEthernet0/0
Router(config-if)# speed 100
Supported speed and duplex options vary by platform and interface type. Verify the available options instead of assuming that every interface supports speed 100 or the same duplex settings. The far-end device must use compatible settings.
Verifying Configuration
Compact Verification
Use show ip interface brief to confirm the expected IPv4 address and look for up/up.
Interface-Specific Configuration
Use show running-config interface to display the active configuration for one port:
Router# show running-config interface GigabitEthernet0/0
This is useful for confirming the configured address, mask, and whether a shutdown command is present.
Detailed Diagnostics
Use show interfaces when the summary is not enough. It provides detailed physical and line-protocol information, including counters, errors, encapsulation information where applicable, and link details.
Router# show interfaces GigabitEthernet0/0
Common Interface Troubleshooting
Administratively Down/Down
This state usually means the interface is disabled with shutdown or has never been enabled. Select the correct interface, inspect its active configuration, issue no shutdown if appropriate, and run the summary command again.
Down/Down After no shutdown
The interface is enabled but has no physical Ethernet link. Check the cable and transceiver, verify that the far-end device is powered on, confirm that its connected port is enabled, and check media and speed compatibility.
Up/Down
The physical layer is detected, but the line protocol is not operational. Use show interfaces for details. Check Layer 2 or encapsulation settings, interface errors, and configuration compatibility with the connected device. This is different from an administrative shutdown.
Address Assigned but Communication Fails
An assigned IPv4 address does not guarantee traffic flow. Confirm that status and protocol are both up, then validate the address and subnet mask against the connected network. Also check the remote endpoint's address, mask, port state, and physical connection.
Interface Name Not Found
If IOS rejects an interface command, the platform may use a different interface type or numbering convention. Run show ip interface brief, copy the exact interface name reported by the device, and use context-sensitive help to inspect supported choices.
Practical Comparison: Static and DHCP Addressing
A manually configured address appears with a method such as manual. An interface that receives its address through DHCP, the Dynamic Host Configuration Protocol, appears with a method such as DHCP. Compare the Method and IP-Address fields rather than inferring the assignment method from the address alone.
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 192.0.2.1 YES manual up up
GigabitEthernet0/1 203.0.113.20 YES DHCP up up
Exam-Relevant Notes
enableenters privileged EXEC mode; it does not enable an interface.configure terminalenters global configuration mode.interface GigabitEthernet0/0selects one interface and enters interface configuration mode.no shutdownadministratively enables an interface; it does not repair a disconnected cable.up/upis the normal operational combination for an active interface.administratively down/downpoints to a configured administrative shutdown.- An IPv4 address can be present while the interface is unable to forward traffic.
- Interface numbering and supported speed or duplex values are platform-dependent.
Summary
Identify the device's actual interface names before configuring ports. Use privileged EXEC verification commands, especially show ip interface brief, to examine addressing and state. Enter global configuration mode, select the interface, configure the IPv4 address and subnet mask, and use no shutdown when the interface should be active. Confirm the result with the summary command, inspect one port with show running-config interface, and use show interfaces for detailed troubleshooting.
Continue with Cisco IOS interface identification and configuration practice as a reference while working through router and switch interface exercises.