Interface Configuration
Cheat sheet · https://pcornel.dk/topic.php?topic=565
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>.
Remember
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.
First 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.
Commands
show ip interface brief- Compact IPv4 interface/address/protocol state.
no shutdown- Enable an administratively shut down interface.
interface <interface>- Enter interface configuration mode.
ip address <address> <mask>- Assign an IPv4 address and mask to an interface.
show ip interface- Display detailed IPv4 settings per interface, including applied ACLs.
ip address <ip> <mask>ip addressip routingip address dhcpip address <ip> <mask> secondaryip unnumbered loopback0show ip route connectedshow ip interface Gi0/1
Verify in this order
address and mask configured → no shutdown → interface up/up → connected and local routes installed → neighbour on the subnet reachable
Where it usually breaks
media/optics → administrative state → carrier/line protocol → negotiation → error/drop counters → neighbor discovery → upper-layer adjacency
Interface Configuration · technical reference
| Stage | Expected evidence |
|---|---|
| Interface | Address/prefix configured |
| Operational | Interface/SVI up |
| RIB | Connected route present |
| Forwarding | ARP + CEF adjacency as needed |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=565