Pcornel
H3 · Practical network exams · Cisco IOS / IOS XE

IPv4 and IPv6 Addressing · Finals

Configuration first, verification second, theory third. Reference templates require task-specific adaptation.

Content version 1.1-draft

Keyboard shortcuts

/ Finals search · Ctrl K global command palette · Alt E Exam Mode · Alt G Golden Scripts · Alt T Exam Topics · Alt V Verify · Esc close dialog.

Case Skills Exam · Supporting reference, not an additional exam objective

Quick explanation

IPv4 and IPv6 addresses identify interfaces at Layer 3. A routed switchport must be converted to Layer 3 before assigning an address.

Configuration

Replace highlighted placeholders. Configure only the variants required by the task.

Prerequisites and dependency links
  • Use the addressing plan; do not duplicate addresses.
  • For routed links on an L3 switch, enable IP routing and use no switchport.
Router IPv4 Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
interface [INTERFACE]
 ip address [IP-ADDRESS] [SUBNET-MASK]
 no shutdown
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[IP-ADDRESS]
Local IPv4 interface address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
L3 switch routed IPv4 Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ip routing
interface [INTERFACE]
 no switchport
 ip address [IP-ADDRESS] [SUBNET-MASK]
 no shutdown
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[IP-ADDRESS]
Local IPv4 interface address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
Router IPv6 Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ipv6 unicast-routing
interface [INTERFACE]
 ipv6 address [IPV6-ADDRESS]/[PREFIX-LENGTH]
 no shutdown
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[IPV6-ADDRESS]
Local IPv6 interface address without the prefix length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
L3 switch routed IPv6 Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ip routing
ipv6 unicast-routing
interface [INTERFACE]
 no switchport
 ipv6 address [IPV6-ADDRESS]/[PREFIX-LENGTH]
 no shutdown
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[IPV6-ADDRESS]
Local IPv6 interface address without the prefix length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
IPv4 loopback Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
interface loopback [LOOPBACK-ID]
 ip address [LOOPBACK-IP] 255.255.255.255
 exit
end
Command parameters
[LOOPBACK-ID]
Local loopback interface number.
[LOOPBACK-IP]
Local IPv4 loopback address.
IPv6 loopback Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ipv6 unicast-routing
interface loopback [LOOPBACK-ID]
 ipv6 address [LOOPBACK-IPV6]/128
 exit
end
Command parameters
[LOOPBACK-ID]
Local loopback interface number.
[LOOPBACK-IPV6]
Local IPv6 loopback address.
L2 switch IPv6 management SVI Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • This is host management, not IPv6 routing. Use a platform that supports IPv6 host/SVI functions. Off-link traffic requires a learned IPv6 default router, normally through Router Advertisements.
  • Check the exact model, IOS release, feature image and show sdm prefer before IPv6 management. On supported Catalyst 2960 LAN Base models, select sdm prefer dual-ipv4-and-ipv6 default in global configuration, then end, save the configuration and schedule a reload; verify the active template with show sdm prefer after reboot. Reload interrupts service and is a separate preparation step, not part of this script.
  • Do not apply the 2960 template requirement to every switch: Cisco documents that the dual template is not required on 2960-S and is unavailable on 2960 LAN Lite. Confirm support in the matching platform guide.
enable
configure terminal
vlan [VLAN-ID]
 name [VLAN-NAME]
 exit
interface vlan [VLAN-ID]
 ipv6 address [IPV6-ADDRESS]/[PREFIX-LENGTH]
 no shutdown
 exit
end
Command parameters
[VLAN-ID]
VLAN identifier.
[VLAN-NAME]
Descriptive VLAN name.
[IPV6-ADDRESS]
Local IPv6 interface address without the prefix length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
L2 switch IPv4 management SVI Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Use ip default-gateway on a nonrouting switch.
enable
configure terminal
vlan [VLAN-ID]
 name [VLAN-NAME]
 exit
interface vlan [VLAN-ID]
 ip address [IP-ADDRESS] [SUBNET-MASK]
 no shutdown
 exit
ip default-gateway [NEXT-HOP]
end
Command parameters
[VLAN-ID]
VLAN identifier.
[VLAN-NAME]
Descriptive VLAN name.
[IP-ADDRESS]
Local IPv4 interface address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
[NEXT-HOP]
IPv4 next-hop address.
L2 switch IPv6 management SVI using SLAAC Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Requires IPv6 host/SVI support for the exact model, IOS release and feature image. Apply the same model-dependent SDM preparation described for the static IPv6 management SVI; do not insert template changes or reload into a Golden Script.
  • ipv6 address autoconfig is an interface command for host SLAAC. The management SVI must be up/up with an active VLAN member; a router on that VLAN must advertise a /64 prefix with autonomous addressing enabled. Off-link management also needs a usable default router advertised by RA. A static IPv6 address alone does not provide a default router; ip default-gateway is IPv4 only. Do not enable ipv6 unicast-routing for this L2 host example.
enable
configure terminal
vlan [VLAN-ID]
 exit
interface vlan [VLAN-ID]
 ipv6 address autoconfig
 no shutdown
 exit
end
Command parameters
[VLAN-ID]
VLAN identifier.

Show / Verify

Primary verification Section link
show ip interface brief
Example output
Gi0/0  192.0.2.1  YES manual  up  up

Verify IPv4 address and both states.

Detailed verification Section link
show ipv6 interface brief
Example output
Gi0/0  [up/up]
    FE80::1
    2001:DB8::1

Check link-local and global addresses.

Detailed verification Section link
show interfaces [INTERFACE]
Example output
GigabitEthernet0/0 is up, line protocol is up

Verify the link.

Connectivity verification

IPv4 reachability

Check success rate; use source or VRF context if required.

ping [DESTINATION-IP]
IPv6 reachability

Check IPv6 path and return routing.

ping ipv6 [DESTINATION-IPV6]
Source-specific IPv4

Verify from the intended source network.

ping [DESTINATION-IP] source [SOURCE-IP]

Common mistakes

  • Incorrect subnet mask or prefix.
  • Missing no shutdown.
  • Missing no switchport on a routed switchport.
  • IPv6 routing not enabled.

Quick reference and default values

IPv4 prefix reference
PrefixSubnet maskWildcard
/00.0.0.0255.255.255.255
/1128.0.0.0127.255.255.255
/2192.0.0.063.255.255.255
/3224.0.0.031.255.255.255
/4240.0.0.015.255.255.255
/5248.0.0.07.255.255.255
/6252.0.0.03.255.255.255
/7254.0.0.01.255.255.255
/8255.0.0.00.255.255.255
/9255.128.0.00.127.255.255
/10255.192.0.00.63.255.255
/11255.224.0.00.31.255.255
/12255.240.0.00.15.255.255
/13255.248.0.00.7.255.255
/14255.252.0.00.3.255.255
/15255.254.0.00.1.255.255
/16255.255.0.00.0.255.255
/17255.255.128.00.0.127.255
/18255.255.192.00.0.63.255
/19255.255.224.00.0.31.255
/20255.255.240.00.0.15.255
/21255.255.248.00.0.7.255
/22255.255.252.00.0.3.255
/23255.255.254.00.0.1.255
/24255.255.255.00.0.0.255
/25255.255.255.1280.0.0.127
/26255.255.255.1920.0.0.63
/27255.255.255.2240.0.0.31
/28255.255.255.2400.0.0.15
/29255.255.255.2480.0.0.7
/30255.255.255.2520.0.0.3
/31255.255.255.2540.0.0.1
/32255.255.255.2550.0.0.0
IPv6 address types
PrefixMeaning
FE80::/10Link-local
2000::/3Global unicast
FC00::/7Unique local
FF00::/8Multicast
::/128Unspecified
::1/128Loopback
::/0Default route
Remove configuration — separate, potentially disruptive actions

Remove IPv4 address

Removes IPv4 connectivity on the interface.

enable
configure terminal
interface [INTERFACE]
 no ip address
 exit
end

Remove specific IPv6 address

Removes that IPv6 address.

enable
configure terminal
interface [INTERFACE]
 no ipv6 address [IPV6-ADDRESS]/[PREFIX-LENGTH]
 exit
end

Related reference

Networking technical reference · Interface types · Connectivity verification
Documentation references consulted

Reset checklist?

Command block

Back to Top

Confirmation

Confirm action

Continue?