Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Interface Configuration

Direct answer

IPv4 interface configuration assigns an address and mask with ip address <ip> <mask> and enables the interface with no shutdown; verify with show ip interface brief and show ip interface <if>.

When to use this

Use Interface Configuration when assigning or checking an IPv4 address on a router or Layer 3 switch interface: ip address, no shutdown, the connected route and the interface status.

First 30 seconds

1. show ip interface brief — correct address? Status up/up?

2. administratively down → no shutdown.

3. up/down → Layer 1/2 problem (cable, speed, encapsulation).

4. show ip route connected — the subnet appears as C and the address as L?

5. Ping the neighbour on the same subnet.

Operational verification

address and mask configured → no shutdown → interface up/up → connected and local routes installed → neighbour on the subnet reachable

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · Cisco IOS / IOS XE · Cisco IOS XE
Key commandinterface <interface>
Scope / prerequisiteUse Interface Configuration when assigning or checking an IPv4 address on a router or Layer 3 switch interface: ip addr…
Configure · 1Show · 2Reference · 2
What next?3 suggested next steps
Catalog command links5
Evidence0
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

4 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Known-good, broken and proof-boundary verification Verify boundary

Known-good state is the intended address/prefix on the intended interface and VRF, interface up/up, connected/local routes installed, and the original endpoint or routed workload passing. Broken state can be duplicate/wrong address, wrong prefix, down line protocol, wrong VRF or missing adjacency. Verify with interface summary/detail, route lookup and one neighbor test using the same source. Address presence does not show usable L2 adjacency or end-to-end routing; the limit of what it shows closes only after the original traffic test succeeds and the route/neighbor state remains stable.

Step 2 Native known-good discriminator and proof boundary — Interface Configuration Verify boundary

Known-good Interface Configuration means the intended interface is selected, no shutdown is effective when service is expected, the configured IPv4 address/mask is present in the correct context, and show ip interface brief plus show ip interface report the expected administrative/protocol and addressing state. Broken evidence includes the address on the wrong interface/VRF, administratively down state, unexpected secondary addressing, line-protocol failure or a configuration that is accepted but not usable because the adjacent subnet/ARP path is wrong. These commands show local interface configuration and state only; they cannot show peer reachability or application success. Repeat the original same-source traffic test and inspect the adjacent neighbor/return path before closure.

Step 3 Verification and output interpretation Verify boundary

Verify the configured address/prefix and administrative/line state, then confirm the connected route exists. Test ARP for a same-subnet peer and inspect CEF/adjacency for representative destinations. If the interface is an SVI, verify the VLAN is active and the SVI’s autostate conditions are met. Compare the peer’s mask and gateway because asymmetric subnet interpretation can make one direction look healthy while the reverse fails.

Step 4 Failure isolation: observation → implication → next check Narrow the fault

If the IPv4 address is absent, inspect the exact interface and running configuration. If the address is present but protocol is down, check physical/L2 state before IP. If the interface is up/up but the connected prefix is missing, verify VRF and prefix interpretation; if the connected route exists but the gateway or peer is unreachable, inspect ARP and the adjacent segment. If local adjacency works but remote traffic fails, follow the RIB/FIB, ACL/NAT and return path. Do not treat a successful self-ping as closure.

Command lookup Jump straight to Cisco syntax
Key points

ip address <ip> <mask> replaces the primary address (add secondary for more). The interface must be up/up for its connected route to appear. On a Layer 3 switch port use no switchport first, or use an SVI. Duplicate addresses produce %IP-4-DUPADDR log messages.

Key checks
  • show ip interface brief — address, status and protocol.
  • show ip interface <if> — address with prefix, helper address, ACLs.
  • show running-config interface <if> — configuration as entered.
  • show ip route connected — connected and local routes from the interface.
  • show logging | include DUPADDR — duplicate address conflicts.
ReferenceHow it works2 sections · depth on demand

Quick reference

IPv4 interface configuration assigns an address and mask to a router or Layer 3 switch interface, which automatically creates a connected and a local route for that subnet when the interface comes up.

interface GigabitEthernet0/1
 description Uplink to ISP
 ip address 203.0.113.2 255.255.255.252
 no shutdown
interface Vlan20
 ip address 10.20.0.1 255.255.255.0
 ip helper-address 10.0.0.53

Documented example, not captured output.

CheckCommand
Status and IPshow ip interface brief
Details (helpers, ACLs)show ip interface Gi0/1
Routes createdshow ip route connected

Mechanics, state owner and dependency boundary

IPv4 interface configuration binds an address/prefix to a specific Layer-3 interface and causes IOS XE to create connected/local routes when the interface is operational. Administrative state, line protocol, address uniqueness, VRF membership and connected-route installation are different state owners. A correctly typed address on an administratively down or wrong-VRF interface cannot provide the expected adjacency, while an up interface can still fail because ARP, VLAN encapsulation or upstream routing is broken.

ReferenceImportant terms & boundaries3 sections · depth on demand

In depth

IPv4 interface configuration

To route, an interface needs an IP address. Cisco's Catalyst 9300 interface guide puts it plainly: Layer 3 interfaces need an IP address to route traffic; on a switch, that's either a routed port (no switchport) or an SVI (interface vlan <id>), and on a router, a physical or sub-interface.

Interface types

InterfaceConfiguration
Router physical portip address <ip> <mask>, no shutdown
Router sub-interface (router on a stick)encapsulation dot1Q <vlan> + ip address
Switch routed portno switchport + ip address
SVIinterface vlan <id> + ip address; needs ip routing to route between VLANs
Loopbackinterface loopback <n> + /32 address; always up
DHCP clientip address dhcp (for example an Internet uplink)
R1(config)# interface GigabitEthernet0/0/1
R1(config-if)# description to-SW1
R1(config-if)# ip address 10.0.12.1 255.255.255.252
R1(config-if)# no shutdown
R1(config)# interface GigabitEthernet0/0/2.110
R1(config-subif)# encapsulation dot1Q 110
R1(config-subif)# ip address 10.110.0.1 255.255.255.0
R1(config)# interface Loopback0
R1(config-if)# ip address 10.255.0.1 255.255.255.255
R1# show ip interface brief
Interface              IP-Address      OK? Method Status                Protocol
GigabitEthernet0/0/1   10.0.12.1       YES manual up                    up
GigabitEthernet0/0/2   unassigned      YES unset  up                    up
Gi0/0/2.110            10.110.0.1      YES manual up                    up
Loopback0              10.255.0.1      YES manual up                    up

Status columns

Status / ProtocolMeaning
up / upWorking
administratively down / downshutdown configured
down / downNo link (cable, far end down)
up / downLink but no keepalives or line protocol (encapsulation mismatch, SVI without active VLAN ports)

Secondary addresses and IP unnumbered

ip address <ip> <mask> secondary adds extra subnets (useful during migrations); ip unnumbered loopback0 borrows an address on point-to-point links.

Checks

Confirm the mask matches the neighbour's, the interface is up/up, and the connected route appears (show ip route connected).

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

State model and technical mechanics

Assigning an IPv4 address and mask to a routed interface or SVI creates the router’s local address and, when the interface is operational, a connected route for that prefix. Destinations inside the connected prefix require ARP resolution to a local MAC; remote destinations use a routing-table decision and then resolve the selected next hop. An SVI additionally depends on the VLAN and switching state, whereas a physical routed port depends directly on its own link state. The address configuration is therefore one layer in a chain: interface operational state → connected route → ARP/next-hop resolution → CEF → packet forwarding. Read the mechanism as a chain of dependent state rather than a single boolean. The same configured object can be healthy locally while an adjacent interface, policy, route, neighbor or endpoint prevents the intended service, so the reference keeps those state boundaries explicit.

Limits and common misconceptions

A configured address does not guarantee the connected route is active; the interface must satisfy its operational conditions. Likewise, a connected route does not show a host exists or will answer ARP. Successful ping to the local interface address shows the local control plane responded, not that packets can traverse the attached segment or reach a remote application.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Choose the address/prefix from the documented plan, add a meaningful interface description and enable the interface intentionally. Avoid overlapping connected networks unless the platform/design explicitly supports the intended behavior because overlapping interfaces make source selection and route ownership difficult to reason about. For point-to-point links, use a prefix sized for the design; for LAN gateway interfaces, align the prefix with host configuration and redundancy requirements. Treat secondary addressing, proxy ARP and similar exceptions as explicit design choices rather than defaults to reach for when basic subnetting is wrong.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 791

Authoritative/upstream documentation reviewed for bounded claims in IP Fundamentals → IPv4 → Interface Configuration. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc791.html · confidence 94%
Embedded reference data

Quick lookup tables

Interface Configuration · technical reference

Compact mechanics, configuration and evidence boundaries for fast lookup.

StageExpected evidence
InterfaceAddress/prefix configured
OperationalInterface/SVI up
RIBConnected route present
ForwardingARP + CEF adjacency as needed
Confirmation

Confirm action

Continue?