Skip to content
Guide: Cisco IOS device basicsSwitch
CCNA learning path

Guide

Cisco IOS device basics: initial setup, interfaces, PoE and cable diagnostics

Learn how Cisco IOS and IOS XE switches and routers handle basic management, interface setup, Ethernet and fiber troubleshooting, PoE, and common edge ports. Commands and defaults can vary by platform, so use the cited Catalyst documentation for the device you operate.

4 parts · 40 practice questions

Basic router and switch behavior

A Layer 2 switch forwards Ethernet frames within a VLAN by learning source MAC addresses and looking up destination MAC addresses. It can do this without an IP address or VTP setup; keep Spanning Tree enabled to prevent Layer 2 loops. A switch IP address is for management access, not ordinary Layer 2 forwarding. Access VLAN defaults depend on the platform and configuration; check the device rather than assuming VLAN 1.

A Layer 2 switch can have a management IP on a switched virtual interface (SVI). Configure the VLAN interface, then its IP address and mask. The VLAN must exist and have an active Layer 2 port for the SVI to be operational. If the switch is not routing IP, configure ip default-gateway with the address of a router on the management subnet so the switch itself can reach remote subnets. A dedicated management VLAN makes it easier to apply management access policy; VLAN 1 can carry IP traffic and is not inherently blocked.

When a host sends to another host in its own IPv4 subnet and has no ARP entry, it broadcasts an ARP request to learn the destination host's MAC address. It then sends the IP packet in an Ethernet frame addressed to that MAC. A switch learns source MAC-to-port mappings from frames and forwards known unicast traffic toward the learned port. Use show mac address-table dynamic to inspect dynamically learned entries and clear mac address-table dynamic to remove dynamic entries while retaining static entries.

IOS XE
interface vlan 1
 ip address 192.0.2.10 255.255.255.0
 no shutdown
ip default-gateway 192.0.2.1
show mac address-table dynamic
clear mac address-table dynamic
References (3)

Configure and check interfaces

Enter interface configuration mode with interface and select an interface. An interface that reports administratively down has been disabled in configuration; no shutdown removes that administrative shutdown. It becomes operational only when its physical and data-link conditions are also good. In show ip interface brief, the first state describes interface status and the second describes line protocol status. up, line protocol down means the physical interface is up but its data-link protocol is not; that status alone does not identify the cause.

Manual speed
1000 Mb/s
Manual duplex
full duplex

On interfaces that support manual settings, speed 1000 requests 1000 Mb/s and duplex full requests full duplex. Availability depends on the port and transceiver. Autonegotiation is normally preferred when supported, and both ends should use compatible settings. An interface range command selects multiple compatible ports so one description, speed setting, or shutdown command can be applied to all selected ports. Shut down unused switch ports to prevent a device plugged into an unattended port from gaining immediate network access.

An interface description is a human-readable note in the configuration. It documents purpose but does not change forwarding or enable the interface. The running configuration is active now; copy it to startup configuration to retain changes across a normal reload. On Catalyst switch ports, show interfaces status is a compact table of link status, VLAN, duplex, and speed. Catalyst 9300 IOS XE accepts ranges such as interface range gigabitethernet1/0/1 - 4 and interface range gigabitethernet1/1/1 - 3 , tengigabitethernet1/1/1 - 2; use names valid for the model.

IOS XE
interface GigabitEthernet1/0/1
 description Link to SW1
 speed 1000
 duplex full
 no shutdown
interface range GigabitEthernet1/0/2 - 10
 shutdown
show ip interface brief
show interfaces status
copy running-config startup-config
References (1)

Diagnose copper and fiber links

A duplex mismatch occurs when one end is full duplex and the other is half duplex. On 10/100 links, an auto-negotiating end connected to a manually configured peer can detect speed but not duplex, and typically operates half duplex. Behavior depends on the interface and link technology. The half-duplex side can report collisions and late collisions; the full-duplex side can report CRC, FCS, alignment, or runt errors. These counters have other possible causes too. Cisco lists duplex mismatch and out-of-specification cabling, including an over-length cable, among possible causes of late collisions. Counter behavior varies by platform and fault. A late collision is detected after the first 64 bytes of a frame have been transmitted. Full-duplex Ethernet should not have collisions. Check both ends' settings and the physical link before replacing equipment.

Maximum cable length
100 metres
Late collision detected after
64 bytes
Single-mode core
about 9 micrometres
Example single-mode distance
10 km

Catalyst 9300 installation guidance gives a maximum cable length of 100 metres for 10/100/1000 ports; 100BASE-TX and 1000BASE-T require Category 5 or higher. If Auto-MDIX is unavailable or disabled, a switch-to-switch copper connection uses a crossover cable; a straight-through cable connects unlike MDI and MDI-X devices. Auto-MDIX availability and state depend on the port and platform, so check interface documentation and operational status instead of assuming support. On 10/100BASE-T, data uses the two pairs on pins 1 and 2 and pins 3 and 6. In a T568B cable, these correspond to the orange pair on 1/2 and green pair on 3/6. 1000BASE-T, also known as IEEE 802.3ab, uses all four pairs, so a damaged or miswired pair can prevent gigabit operation even if a 10/100 link works.

Fiber is directional: one end's transmit (Tx) must connect to the other end's receive (Rx). If a duplex pair is reversed, swap the two fibers at one end. Match the optic type and wavelength to the fiber type and supported distance. Single-mode fiber has a small core, about 9 micrometres, and supports long distances such as 10 km with suitable optics. Multimode fiber has a larger core and is generally used for shorter links. Check the specific transceiver supported fiber type, wavelength and distance before diagnosing a link; a matching connector does not guarantee compatibility.

If the SFP supports digital optical monitoring (DOM), show interfaces <id> transceiver detail can display received (Rx) and transmitted (Tx) optical power in dBm and the optic's thresholds. Depending on the transceiver, this output can also report temperature and voltage. Compare Rx power with that specific optic's limits: low power with CRC errors is evidence to investigate the optical path, not proof of a VLAN issue. Inspect the optical path, patch cord, splices, and connector cleanliness. Inspect and clean the optical path using the device and optic manufacturer's safety and cleaning instructions. show interfaces counters errors gives compact per-port counters such as CRC, runts, and collisions; show interfaces <id> gives detail. Clear or note counters, then check whether they continue increasing to distinguish an active fault from old errors.

IOS XE
show interfaces counters errors
show interfaces GigabitEthernet1/0/1
show interfaces GigabitEthernet1/0/49 transceiver detail
References (5)

PoE and common edge-port configurations

Power over Ethernet (PoE) lets a switch provide power and data over the Ethernet cable. IEEE 802.3af PoE supplies up to 15.4 W from the switch port. IEEE 802.3at, called PoE+, supplies up to 30 W. IEEE 802.3bt defines Type 3 PSE output up to 60 W and Type 4 output up to 90 W; Catalyst 9300 support depends on the specific model. IEEE 802.1X is port-based network access control and authentication, not a PoE standard. A switch has a finite total PoE budget, and available power may also be limited per port. If devices reboot or a port reports power denied while the budget is nearly used, review total consumption, device class, supply capacity, and port priorities. show power inline reports the budget and per-port administrative and operating state, device class, and allocation.

IEEE 802.3af PoE
up to 15.4 W
IEEE 802.3at PoE+
up to 30 W
IEEE 802.3bt Type 3 PSE output
up to 60 W
IEEE 802.3bt Type 4 output
up to 90 W

On Catalyst 9300 IOS XE, PoE detection mode auto is the default: the switch detects a powered device and allocates power if enough is available. power inline never disables detection and power on that port. Use it only when the port should not power an endpoint; Cisco warns against it with a Cisco-powered device because a false link-up may put the port into error-disabled state.

An IP phone with a PC behind it normally connects to a Layer 2 access port. The PC uses the access VLAN untagged, while the phone sends voice traffic tagged for the configured voice VLAN. CDP or LLDP-MED can tell the phone which voice VLAN to use. Example: access VLAN 10 for data and voice VLAN 150 for the phone.

A centrally switched lightweight access point tunnels client WLAN traffic to its controller, so a basic deployment can use an access port in the AP management VLAN. A FlexConnect AP using local switching forwards client traffic to the local LAN or VLAN instead of tunneling it through the controller. Cisco documents either an access or trunk port for a FlexConnect AP; when locally switched client traffic uses separate VLANs, use a trunk carrying those VLANs. An autonomous AP that tags multiple SSIDs into different VLANs needs an 802.1Q trunk carrying those VLANs, with an appropriate native VLAN for untagged management if the AP uses it. A hypervisor that tags virtual-machine traffic for VLANs 10, 20, and 30 also needs a trunk allowing those VLANs on its physical uplink. Multiple compatible hypervisor uplinks can be bundled with LACP when both ends are configured for the same EtherChannel.

A desktop's switch port is normally an access port in one VLAN. Spanning Tree PortFast moves an edge port to forwarding without waiting through the normal listening and learning delay. Use it only for an end station, not a switch or hub, because bypassing normal transition can contribute to a loop. BPDU Guard is commonly paired with PortFast to protect against an unexpected bridge. LACP negotiates EtherChannel bundles: active initiates and passive responds, so active/passive forms a bundle but passive/passive does not. Static on does not negotiate LACP, and PAgP modes desirable and auto are a different protocol.

IOS XE
show power inline
interface GigabitEthernet1/0/1
 power inline never
 switchport mode access
 switchport access vlan 10
 switchport voice vlan 150
 spanning-tree portfast
 spanning-tree bpduguard enable
interface GigabitEthernet1/0/2
 switchport mode trunk
 switchport trunk allowed vlan 10,20,30
interface range GigabitEthernet1/0/3 - 4
 channel-group 1 mode active
References (8)

Check your understanding

Cisco IOS device basics: initial setup, interfaces, PoE and cable diagnostics

All 4 sections · no timer

Unlimited retries

Questions from every section are combined into one assessment. Answer them all correctly to complete the article.

Your completion saves in this browser. Sign in to sync it to your account.