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

Finals

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

Content version 1.1-draft

Golden Scripts

Case Skills Exam · 6 hours

Router

Static Golden Script

Open TXT

L3 Switch

Static Golden Script

Open TXT

L2 Switch

Static Golden Script

Open TXT

Skills Exam · 2 hours

Router

Static Golden Script

Open TXT

L3 Switch

Static Golden Script

Open TXT

L2 Switch

Static Golden Script

Open TXT

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.

Exam topics and checklists

Case Skills Exam

0 / 21 completed

Skills Exam

0 / 17 completed

Configuration order

Recommended sequence. The actual exam task takes precedence.

  1. Basic configuration
  2. VLAN and interfaces · VLAN
  3. Trunking, DTP and EtherChannel · 802.1Q Trunking · DTP · EtherChannel
  4. Spanning Tree · STP · PortFast · BPDU Guard
  5. VRF-Lite · VRF-Lite (IPv4/IPv6)
  6. Addressing and router-on-a-stick · IPv4 and IPv6 Addressing · Router-on-a-Stick
  7. Static routing · Static Routing (IPv4/IPv6)
  8. OSPFv3 Address Family · OSPFv3 (Address Family)
  9. Port Security · Port Security
  10. Local authentication and remote access · Password Hashing Algorithms · Local User Authentication · SSH · Telnet
  11. Final verification and save

Layer 2

VLAN

VLANs divide a switched network into separate Layer 2 broadcast domains. A switch virtual interface (SVI) provides IP management or inter-VLAN routing when supported and configured.

Quick configuration and verification

Configuration

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

Prerequisites and dependency links
  • Use the VLAN IDs specified by the task.
  • Create the VLAN before assigning access ports.
Create a VLAN Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
vlan [VLAN-ID]
 name [VLAN-NAME]
 exit
end
Command parameters
[VLAN-ID]
VLAN identifier.
[VLAN-NAME]
Descriptive VLAN name.
Assign an access interface Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
vlan [VLAN-ID]
 name [VLAN-NAME]
 exit
interface [INTERFACE]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 no shutdown
 exit
end
Command parameters
[VLAN-ID]
VLAN identifier.
[VLAN-NAME]
Descriptive VLAN name.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
Layer 2 management SVI Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Use the default gateway only when the device is not routing IP.
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.
Layer 3 SVI Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ip routing
vlan [VLAN-ID]
 name [VLAN-NAME]
 exit
interface vlan [VLAN-ID]
 ip address [IP-ADDRESS] [SUBNET-MASK]
 no shutdown
 exit
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.
IPv6 routed SVI 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
vlan [VLAN-ID]
 exit
interface vlan [VLAN-ID]
 ipv6 address [IPV6-ADDRESS]/[PREFIX-LENGTH]
 no shutdown
 exit
end
Command parameters
[VLAN-ID]
VLAN identifier.
[IPV6-ADDRESS]
Local IPv6 interface address without the prefix length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
Voice VLAN (only if requested) Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
vlan [VLAN-ID]
 exit
vlan [VOICE-VLAN]
 exit
interface [INTERFACE]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 switchport voice vlan [VOICE-VLAN]
 no shutdown
 exit
end
Command parameters
[VLAN-ID]
VLAN identifier.
[VOICE-VLAN]
Voice VLAN identifier distinct from the access VLAN.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.

Show / Verify

Primary verification Section link
show vlan brief
Example output
10   USERS   active   Gi0/1

Check that the requested VLAN exists and that access ports are assigned correctly.

Detailed verification Section link
show interfaces [INTERFACE] switchport
Example output
Operational Mode: static access
Access Mode VLAN: 10 (USERS)

Check the actual switchport mode and access VLAN.

Detailed verification Section link
show ip interface brief
Example output
Vlan10   192.0.2.1   YES manual   up   up

Check the SVI status when an IPv4 SVI is configured.

Detailed verification Section link
show ipv6 interface brief
Example output
Vlan10   [up/up]
    2001:DB8:10::1

Check the IPv6 SVI address and line state.

Open full topic, examples, mistakes and removal

An 802.1Q trunk transports multiple VLANs across one link. Frames are tagged except for native VLAN traffic under the usual native VLAN behavior.

Quick configuration and verification

Configuration

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

Prerequisites and dependency links
  • Create the required VLANs.
  • Use compatible settings on both endpoints.
Static 802.1Q trunk Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • On a switch with fixed 802.1Q encapsulation, omit the encapsulation selection command if it is not supported. Match native VLAN and allowed VLANs at both ends.
enable
configure terminal
interface [INTERFACE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[NATIVE-VLAN]
Matching native VLAN ID on trunk peers.
[ALLOWED-VLANS]
Comma-separated VLAN IDs and ranges; replace the whole list only when intended.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: NATIVE-VLAN, ALLOWED-VLANS

enable
configure terminal
interface [INTERFACE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 exit
end

Show / Verify

Primary verification Section link
show interfaces trunk
Example output
Port      Mode   Encapsulation  Status    Native vlan
Gi0/1     on     802.1q         trunking  99

Confirm operational trunking, encapsulation and native VLAN. Inspect allowed, active and forwarding VLAN lists.

Detailed verification Section link
show interfaces [INTERFACE] switchport
Example output
Administrative Mode: trunk
Operational Mode: trunk

The interface is operating as a trunk, not only administratively configured as one.

Open full topic, examples, mistakes and removal

DTP

Dynamic Trunking Protocol negotiates switchport trunking. Dynamic desirable actively attempts negotiation; dynamic auto waits for a compatible peer. Static trunking can operate without DTP.

Quick configuration and verification

Configuration

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

Prerequisites and dependency links
  • Both endpoints must support DTP for negotiated trunking.
  • Use consistent native and allowed VLANs.
Dynamic desirable / auto Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: dtp-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • On a switch with fixed 802.1Q encapsulation, omit the encapsulation selection command if it is not supported. Match native VLAN and allowed VLANs at both ends.
enable
configure terminal
interface [INTERFACE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode dynamic desirable
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[NATIVE-VLAN]
Matching native VLAN ID on trunk peers.
[ALLOWED-VLANS]
Comma-separated VLAN IDs and ranges; replace the whole list only when intended.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: NATIVE-VLAN, ALLOWED-VLANS

enable
configure terminal
interface [INTERFACE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode dynamic auto
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 exit
end
Dynamic desirable / desirable Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: dtp-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • On a switch with fixed 802.1Q encapsulation, omit the encapsulation selection command if it is not supported. Match native VLAN and allowed VLANs at both ends.
enable
configure terminal
interface [INTERFACE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode dynamic desirable
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[NATIVE-VLAN]
Matching native VLAN ID on trunk peers.
[ALLOWED-VLANS]
Comma-separated VLAN IDs and ranges; replace the whole list only when intended.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: NATIVE-VLAN, ALLOWED-VLANS

enable
configure terminal
interface [INTERFACE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode dynamic desirable
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 exit
end
Static trunk without DTP Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: dtp-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • On a switch with fixed 802.1Q encapsulation, omit the encapsulation selection command if it is not supported. Match native VLAN and allowed VLANs at both ends.
enable
configure terminal
interface [INTERFACE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 switchport nonegotiate
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[NATIVE-VLAN]
Matching native VLAN ID on trunk peers.
[ALLOWED-VLANS]
Comma-separated VLAN IDs and ranges; replace the whole list only when intended.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: NATIVE-VLAN, ALLOWED-VLANS

enable
configure terminal
interface [INTERFACE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 switchport nonegotiate
 exit
end

Show / Verify

Primary verification Section link
show interfaces [INTERFACE] switchport
Example output
Administrative Mode: dynamic desirable
Operational Mode: trunk
Negotiation of Trunking: On

Distinguish administrative negotiation from the operational mode.

Detailed verification Section link
show interfaces trunk
Example output
Gi0/1   desirable   802.1q   trunking   99

Confirm the trunk actually formed.

Detailed verification Section link
show dtp interface [INTERFACE]
Example output
DTP information for GigabitEthernet0/1:

Inspect the negotiation state where the platform supports this command.

Open full topic, examples, mistakes and removal

STP

Spanning Tree prevents Layer 2 loops by electing a root bridge and selecting forwarding and non-forwarding ports. PVST+ and Rapid PVST+ maintain per-VLAN spanning-tree instances.

Quick configuration and verification

Configuration

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

Prerequisites and dependency links
  • Identify the desired root and secondary root for each VLAN.
  • Ensure the relevant VLANs and links exist.
Rapid PVST+ Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: stp-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
spanning-tree mode rapid-pvst
end
PVST+ Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: stp-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
spanning-tree mode pvst
end
Root primary Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: stp-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
spanning-tree vlan [VLAN-ID] root primary
end
Command parameters
[VLAN-ID]
VLAN identifier.
Root secondary Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: stp-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
spanning-tree vlan [VLAN-ID] root secondary
end
Command parameters
[VLAN-ID]
VLAN identifier.
Explicit bridge priority Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: stp-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Use an allowed multiple of 4096; a lower bridge ID is preferred.
enable
configure terminal
spanning-tree vlan [VLAN-ID] priority [BRIDGE-PRIORITY]
end
Command parameters
[VLAN-ID]
VLAN identifier.
[BRIDGE-PRIORITY]
STP bridge priority, normally a multiple of 4096.
Explicit port cost Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: stp-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
interface [INTERFACE]
 spanning-tree vlan [VLAN-ID] cost [STP-COST]
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[VLAN-ID]
VLAN identifier.
[STP-COST]
Spanning-tree port path cost.
Explicit port priority Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: stp-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Port priority is an additional tie-breaker; select a supported increment.
enable
configure terminal
interface [INTERFACE]
 spanning-tree vlan [VLAN-ID] port-priority [PORT-PRIORITY]
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[VLAN-ID]
VLAN identifier.
[PORT-PRIORITY]
STP port priority using a supported increment.

Show / Verify

Primary verification Section link
show spanning-tree vlan [VLAN-ID]
Example output
This bridge is the root

On the intended root, this bridge should be the root for the selected VLAN.

Detailed verification Section link
show spanning-tree
Example output
Gi0/1   Root FWD   4   128.1   P2p

Check the port role, forwarding state and path cost.

Detailed verification Section link
show spanning-tree summary
Example output
Switch is in rapid-pvst mode

Confirm the configured spanning-tree mode.

Open full topic, examples, mistakes and removal

PortFast

PortFast allows an edge interface to enter forwarding rapidly instead of waiting for normal spanning-tree convergence. It does not disable spanning tree.

Quick configuration and verification

Configuration

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

Prerequisites and dependency links
  • Use only an edge port connected to an end device.
  • Do not enable on an ordinary inter-switch link.
Access edge port Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
interface [INTERFACE]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 spanning-tree portfast
 no shutdown
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[VLAN-ID]
VLAN identifier.
Default on access edge ports Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Review all affected non-trunk interfaces first.
enable
configure terminal
spanning-tree portfast default
end
Trunk to an edge endpoint Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • On a switch with fixed 802.1Q encapsulation, omit the encapsulation selection command if it is not supported. Match native VLAN and allowed VLANs at both ends.
  • Use only for an explicitly intended edge trunk, never a normal switch-to-switch trunk.
enable
configure terminal
interface [INTERFACE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 spanning-tree portfast trunk
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[NATIVE-VLAN]
Matching native VLAN ID on trunk peers.
[ALLOWED-VLANS]
Comma-separated VLAN IDs and ranges; replace the whole list only when intended.

Show / Verify

Primary verification Section link
show spanning-tree interface [INTERFACE] detail
Example output
The port is in the portfast mode

Confirm the interface is an intended edge port.

Detailed verification Section link
show spanning-tree summary
Example output
Portfast Default is enabled

Check global default when configured.

Open full topic, examples, mistakes and removal

BPDU Guard

BPDU Guard protects an edge port by placing it into err-disabled state when a BPDU is received under the configured guard policy.

Quick configuration and verification

Configuration

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

Prerequisites and dependency links
  • Identify edge ports.
  • Remove the unexpected BPDU source before recovering an affected port.
Interface BPDU Guard Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
interface [INTERFACE]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 spanning-tree portfast
 spanning-tree bpduguard enable
 no shutdown
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[VLAN-ID]
VLAN identifier.
Global PortFast BPDU Guard Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
spanning-tree portfast default
spanning-tree portfast bpduguard default
end
Optional timed recovery Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Only enable automatic recovery if requested. A persistent BPDU source can repeatedly disable the port.
enable
configure terminal
errdisable recovery cause bpduguard
errdisable recovery interval [RECOVERY-SECONDS]
end
Command parameters
[RECOVERY-SECONDS]
Errdisable recovery interval in seconds.

Show / Verify

Primary verification Section link
show spanning-tree summary
Example output
PortFast BPDU Guard Default is enabled

Confirm the global guard policy if configured.

Detailed verification Section link
show interfaces status err-disabled
Example output
Gi0/1   err-disabled   bpduguard

An unexpected BPDU can disable a guarded port; locate and remove the cause before recovery.

Detailed verification Section link
show errdisable recovery
Example output
bpduguard   Enabled

Confirm timed recovery only if requested.

Open full topic, examples, mistakes and removal

EtherChannel

EtherChannel bundles compatible physical links into a single logical port-channel. LACP and PAgP negotiate membership; static mode does not negotiate.

Quick configuration and verification

Configuration

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

Prerequisites and dependency links
  • Use compatible member speeds, duplex and switchport or routed settings.
  • Use the same protocol and compatible negotiation modes at both endpoints.
  • For a new group, use an unused port-channel ID; do not overwrite unrelated interfaces.
TRUNK – LACP active / active Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: etherchannel-link. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • On a switch with fixed 802.1Q encapsulation, omit the encapsulation selection command if it is not supported. Match native VLAN and allowed VLANs at both ends.
enable
configure terminal
interface range [INTERFACE-RANGE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 channel-group [CHANNEL-GROUP] mode active
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 exit
end
Command parameters
[INTERFACE-RANGE]
Local Cisco interface range expression.
[NATIVE-VLAN]
Matching native VLAN ID on trunk peers.
[ALLOWED-VLANS]
Comma-separated VLAN IDs and ranges; replace the whole list only when intended.
[CHANNEL-GROUP]
Local EtherChannel and corresponding Port-channel number.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: NATIVE-VLAN, ALLOWED-VLANS

enable
configure terminal
interface range [INTERFACE-RANGE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 channel-group [CHANNEL-GROUP] mode active
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 exit
end
TRUNK – LACP active / passive Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: etherchannel-link. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • On a switch with fixed 802.1Q encapsulation, omit the encapsulation selection command if it is not supported. Match native VLAN and allowed VLANs at both ends.
enable
configure terminal
interface range [INTERFACE-RANGE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 channel-group [CHANNEL-GROUP] mode active
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 exit
end
Command parameters
[INTERFACE-RANGE]
Local Cisco interface range expression.
[NATIVE-VLAN]
Matching native VLAN ID on trunk peers.
[ALLOWED-VLANS]
Comma-separated VLAN IDs and ranges; replace the whole list only when intended.
[CHANNEL-GROUP]
Local EtherChannel and corresponding Port-channel number.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: NATIVE-VLAN, ALLOWED-VLANS

enable
configure terminal
interface range [INTERFACE-RANGE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 channel-group [CHANNEL-GROUP] mode passive
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 exit
end
TRUNK – PAgP desirable / desirable Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: etherchannel-link. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • On a switch with fixed 802.1Q encapsulation, omit the encapsulation selection command if it is not supported. Match native VLAN and allowed VLANs at both ends.
  • PAgP support is platform-dependent.
enable
configure terminal
interface range [INTERFACE-RANGE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 channel-group [CHANNEL-GROUP] mode desirable
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 exit
end
Command parameters
[INTERFACE-RANGE]
Local Cisco interface range expression.
[NATIVE-VLAN]
Matching native VLAN ID on trunk peers.
[ALLOWED-VLANS]
Comma-separated VLAN IDs and ranges; replace the whole list only when intended.
[CHANNEL-GROUP]
Local EtherChannel and corresponding Port-channel number.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: NATIVE-VLAN, ALLOWED-VLANS

enable
configure terminal
interface range [INTERFACE-RANGE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 channel-group [CHANNEL-GROUP] mode desirable
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 exit
end
TRUNK – PAgP desirable / auto Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: etherchannel-link. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • On a switch with fixed 802.1Q encapsulation, omit the encapsulation selection command if it is not supported. Match native VLAN and allowed VLANs at both ends.
  • PAgP support is platform-dependent.
enable
configure terminal
interface range [INTERFACE-RANGE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 channel-group [CHANNEL-GROUP] mode desirable
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 exit
end
Command parameters
[INTERFACE-RANGE]
Local Cisco interface range expression.
[NATIVE-VLAN]
Matching native VLAN ID on trunk peers.
[ALLOWED-VLANS]
Comma-separated VLAN IDs and ranges; replace the whole list only when intended.
[CHANNEL-GROUP]
Local EtherChannel and corresponding Port-channel number.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: NATIVE-VLAN, ALLOWED-VLANS

enable
configure terminal
interface range [INTERFACE-RANGE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 channel-group [CHANNEL-GROUP] mode auto
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 exit
end
TRUNK – Static on / on Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: etherchannel-link. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • On a switch with fixed 802.1Q encapsulation, omit the encapsulation selection command if it is not supported. Match native VLAN and allowed VLANs at both ends.
  • Both endpoints must be explicitly configured on; incorrect static bundling can cause loops or loss of traffic.
enable
configure terminal
interface range [INTERFACE-RANGE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 channel-group [CHANNEL-GROUP] mode on
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 exit
end
Command parameters
[INTERFACE-RANGE]
Local Cisco interface range expression.
[NATIVE-VLAN]
Matching native VLAN ID on trunk peers.
[ALLOWED-VLANS]
Comma-separated VLAN IDs and ranges; replace the whole list only when intended.
[CHANNEL-GROUP]
Local EtherChannel and corresponding Port-channel number.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: NATIVE-VLAN, ALLOWED-VLANS

enable
configure terminal
interface range [INTERFACE-RANGE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 channel-group [CHANNEL-GROUP] mode on
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 exit
end
ACCESS – LACP active / active Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: etherchannel-link. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
interface range [INTERFACE-RANGE]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 channel-group [CHANNEL-GROUP] mode active
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 no shutdown
 exit
end
Command parameters
[INTERFACE-RANGE]
Local Cisco interface range expression.
[VLAN-ID]
VLAN identifier.
[CHANNEL-GROUP]
Local EtherChannel and corresponding Port-channel number.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: VLAN-ID

enable
configure terminal
interface range [INTERFACE-RANGE]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 channel-group [CHANNEL-GROUP] mode active
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 no shutdown
 exit
end
ACCESS – LACP active / passive Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: etherchannel-link. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
interface range [INTERFACE-RANGE]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 channel-group [CHANNEL-GROUP] mode active
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 no shutdown
 exit
end
Command parameters
[INTERFACE-RANGE]
Local Cisco interface range expression.
[VLAN-ID]
VLAN identifier.
[CHANNEL-GROUP]
Local EtherChannel and corresponding Port-channel number.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: VLAN-ID

enable
configure terminal
interface range [INTERFACE-RANGE]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 channel-group [CHANNEL-GROUP] mode passive
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 no shutdown
 exit
end
ACCESS – PAgP desirable / desirable Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: etherchannel-link. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • PAgP support is platform-dependent.
enable
configure terminal
interface range [INTERFACE-RANGE]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 channel-group [CHANNEL-GROUP] mode desirable
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 no shutdown
 exit
end
Command parameters
[INTERFACE-RANGE]
Local Cisco interface range expression.
[VLAN-ID]
VLAN identifier.
[CHANNEL-GROUP]
Local EtherChannel and corresponding Port-channel number.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: VLAN-ID

enable
configure terminal
interface range [INTERFACE-RANGE]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 channel-group [CHANNEL-GROUP] mode desirable
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 no shutdown
 exit
end
ACCESS – PAgP desirable / auto Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: etherchannel-link. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • PAgP support is platform-dependent.
enable
configure terminal
interface range [INTERFACE-RANGE]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 channel-group [CHANNEL-GROUP] mode desirable
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 no shutdown
 exit
end
Command parameters
[INTERFACE-RANGE]
Local Cisco interface range expression.
[VLAN-ID]
VLAN identifier.
[CHANNEL-GROUP]
Local EtherChannel and corresponding Port-channel number.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: VLAN-ID

enable
configure terminal
interface range [INTERFACE-RANGE]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 channel-group [CHANNEL-GROUP] mode auto
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 no shutdown
 exit
end
ACCESS – Static on / on Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: etherchannel-link. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Both endpoints must be explicitly configured on; incorrect static bundling can cause loops or loss of traffic.
enable
configure terminal
interface range [INTERFACE-RANGE]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 channel-group [CHANNEL-GROUP] mode on
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 no shutdown
 exit
end
Command parameters
[INTERFACE-RANGE]
Local Cisco interface range expression.
[VLAN-ID]
VLAN identifier.
[CHANNEL-GROUP]
Local EtherChannel and corresponding Port-channel number.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: VLAN-ID

enable
configure terminal
interface range [INTERFACE-RANGE]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 channel-group [CHANNEL-GROUP] mode on
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 no shutdown
 exit
end
ROUTED – LACP active / active Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: etherchannel-link. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ip routing
interface range [INTERFACE-RANGE]
 no switchport
 channel-group [CHANNEL-GROUP] mode active
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 no switchport
 ip address [IP-ADDRESS] [SUBNET-MASK]
 no shutdown
 exit
end
Command parameters
[INTERFACE-RANGE]
Local Cisco interface range expression.
[CHANNEL-GROUP]
Local EtherChannel and corresponding Port-channel number.
[IP-ADDRESS]
Local IPv4 interface address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: SUBNET-MASK

enable
configure terminal
ip routing
interface range [INTERFACE-RANGE]
 no switchport
 channel-group [CHANNEL-GROUP] mode active
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 no switchport
 ip address [REMOTE-IP-ADDRESS] [SUBNET-MASK]
 no shutdown
 exit
end
ROUTED – LACP active / passive Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: etherchannel-link. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ip routing
interface range [INTERFACE-RANGE]
 no switchport
 channel-group [CHANNEL-GROUP] mode active
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 no switchport
 ip address [IP-ADDRESS] [SUBNET-MASK]
 no shutdown
 exit
end
Command parameters
[INTERFACE-RANGE]
Local Cisco interface range expression.
[CHANNEL-GROUP]
Local EtherChannel and corresponding Port-channel number.
[IP-ADDRESS]
Local IPv4 interface address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: SUBNET-MASK

enable
configure terminal
ip routing
interface range [INTERFACE-RANGE]
 no switchport
 channel-group [CHANNEL-GROUP] mode passive
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 no switchport
 ip address [REMOTE-IP-ADDRESS] [SUBNET-MASK]
 no shutdown
 exit
end
ROUTED – PAgP desirable / desirable Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: etherchannel-link. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • PAgP support is platform-dependent.
enable
configure terminal
ip routing
interface range [INTERFACE-RANGE]
 no switchport
 channel-group [CHANNEL-GROUP] mode desirable
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 no switchport
 ip address [IP-ADDRESS] [SUBNET-MASK]
 no shutdown
 exit
end
Command parameters
[INTERFACE-RANGE]
Local Cisco interface range expression.
[CHANNEL-GROUP]
Local EtherChannel and corresponding Port-channel number.
[IP-ADDRESS]
Local IPv4 interface address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: SUBNET-MASK

enable
configure terminal
ip routing
interface range [INTERFACE-RANGE]
 no switchport
 channel-group [CHANNEL-GROUP] mode desirable
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 no switchport
 ip address [REMOTE-IP-ADDRESS] [SUBNET-MASK]
 no shutdown
 exit
end
ROUTED – PAgP desirable / auto Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: etherchannel-link. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • PAgP support is platform-dependent.
enable
configure terminal
ip routing
interface range [INTERFACE-RANGE]
 no switchport
 channel-group [CHANNEL-GROUP] mode desirable
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 no switchport
 ip address [IP-ADDRESS] [SUBNET-MASK]
 no shutdown
 exit
end
Command parameters
[INTERFACE-RANGE]
Local Cisco interface range expression.
[CHANNEL-GROUP]
Local EtherChannel and corresponding Port-channel number.
[IP-ADDRESS]
Local IPv4 interface address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: SUBNET-MASK

enable
configure terminal
ip routing
interface range [INTERFACE-RANGE]
 no switchport
 channel-group [CHANNEL-GROUP] mode auto
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 no switchport
 ip address [REMOTE-IP-ADDRESS] [SUBNET-MASK]
 no shutdown
 exit
end
ROUTED – Static on / on Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: etherchannel-link. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Both endpoints must be explicitly configured on; incorrect static bundling can cause loops or loss of traffic.
enable
configure terminal
ip routing
interface range [INTERFACE-RANGE]
 no switchport
 channel-group [CHANNEL-GROUP] mode on
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 no switchport
 ip address [IP-ADDRESS] [SUBNET-MASK]
 no shutdown
 exit
end
Command parameters
[INTERFACE-RANGE]
Local Cisco interface range expression.
[CHANNEL-GROUP]
Local EtherChannel and corresponding Port-channel number.
[IP-ADDRESS]
Local IPv4 interface address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: SUBNET-MASK

enable
configure terminal
ip routing
interface range [INTERFACE-RANGE]
 no switchport
 channel-group [CHANNEL-GROUP] mode on
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 no switchport
 ip address [REMOTE-IP-ADDRESS] [SUBNET-MASK]
 no shutdown
 exit
end
ROUTED – LACP active / active (IPv6) Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: etherchannel-link. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ip routing
ipv6 unicast-routing
interface range [INTERFACE-RANGE]
 no switchport
 channel-group [CHANNEL-GROUP] mode active
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 no switchport
 ipv6 address [IPV6-ADDRESS]/[PREFIX-LENGTH]
 no shutdown
 exit
end
Command parameters
[INTERFACE-RANGE]
Local Cisco interface range expression.
[CHANNEL-GROUP]
Local EtherChannel and corresponding Port-channel number.
[IPV6-ADDRESS]
Local IPv6 interface address without the prefix length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: PREFIX-LENGTH

enable
configure terminal
ip routing
ipv6 unicast-routing
interface range [INTERFACE-RANGE]
 no switchport
 channel-group [CHANNEL-GROUP] mode active
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 no switchport
 ipv6 address [PEER-IPV6-ADDRESS]/[PREFIX-LENGTH]
 no shutdown
 exit
end
ROUTED – LACP active / passive (IPv6) Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: etherchannel-link. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ip routing
ipv6 unicast-routing
interface range [INTERFACE-RANGE]
 no switchport
 channel-group [CHANNEL-GROUP] mode active
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 no switchport
 ipv6 address [IPV6-ADDRESS]/[PREFIX-LENGTH]
 no shutdown
 exit
end
Command parameters
[INTERFACE-RANGE]
Local Cisco interface range expression.
[CHANNEL-GROUP]
Local EtherChannel and corresponding Port-channel number.
[IPV6-ADDRESS]
Local IPv6 interface address without the prefix length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: PREFIX-LENGTH

enable
configure terminal
ip routing
ipv6 unicast-routing
interface range [INTERFACE-RANGE]
 no switchport
 channel-group [CHANNEL-GROUP] mode passive
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 no switchport
 ipv6 address [PEER-IPV6-ADDRESS]/[PREFIX-LENGTH]
 no shutdown
 exit
end
ROUTED – PAgP desirable / desirable (IPv6) Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: etherchannel-link. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • PAgP support is platform-dependent.
enable
configure terminal
ip routing
ipv6 unicast-routing
interface range [INTERFACE-RANGE]
 no switchport
 channel-group [CHANNEL-GROUP] mode desirable
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 no switchport
 ipv6 address [IPV6-ADDRESS]/[PREFIX-LENGTH]
 no shutdown
 exit
end
Command parameters
[INTERFACE-RANGE]
Local Cisco interface range expression.
[CHANNEL-GROUP]
Local EtherChannel and corresponding Port-channel number.
[IPV6-ADDRESS]
Local IPv6 interface address without the prefix length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: PREFIX-LENGTH

enable
configure terminal
ip routing
ipv6 unicast-routing
interface range [INTERFACE-RANGE]
 no switchport
 channel-group [CHANNEL-GROUP] mode desirable
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 no switchport
 ipv6 address [PEER-IPV6-ADDRESS]/[PREFIX-LENGTH]
 no shutdown
 exit
end
ROUTED – PAgP desirable / auto (IPv6) Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: etherchannel-link. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • PAgP support is platform-dependent.
enable
configure terminal
ip routing
ipv6 unicast-routing
interface range [INTERFACE-RANGE]
 no switchport
 channel-group [CHANNEL-GROUP] mode desirable
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 no switchport
 ipv6 address [IPV6-ADDRESS]/[PREFIX-LENGTH]
 no shutdown
 exit
end
Command parameters
[INTERFACE-RANGE]
Local Cisco interface range expression.
[CHANNEL-GROUP]
Local EtherChannel and corresponding Port-channel number.
[IPV6-ADDRESS]
Local IPv6 interface address without the prefix length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: PREFIX-LENGTH

enable
configure terminal
ip routing
ipv6 unicast-routing
interface range [INTERFACE-RANGE]
 no switchport
 channel-group [CHANNEL-GROUP] mode auto
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 no switchport
 ipv6 address [PEER-IPV6-ADDRESS]/[PREFIX-LENGTH]
 no shutdown
 exit
end
ROUTED – Static on / on (IPv6) Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: etherchannel-link. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Both endpoints must be explicitly configured on; incorrect static bundling can cause loops or loss of traffic.
enable
configure terminal
ip routing
ipv6 unicast-routing
interface range [INTERFACE-RANGE]
 no switchport
 channel-group [CHANNEL-GROUP] mode on
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 no switchport
 ipv6 address [IPV6-ADDRESS]/[PREFIX-LENGTH]
 no shutdown
 exit
end
Command parameters
[INTERFACE-RANGE]
Local Cisco interface range expression.
[CHANNEL-GROUP]
Local EtherChannel and corresponding Port-channel number.
[IPV6-ADDRESS]
Local IPv6 interface address without the prefix length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
Peer configuration — Other switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: PREFIX-LENGTH

enable
configure terminal
ip routing
ipv6 unicast-routing
interface range [INTERFACE-RANGE]
 no switchport
 channel-group [CHANNEL-GROUP] mode on
 no shutdown
 exit
interface port-channel [CHANNEL-GROUP]
 no switchport
 ipv6 address [PEER-IPV6-ADDRESS]/[PREFIX-LENGTH]
 no shutdown
 exit
end

Show / Verify

Primary verification Section link
show etherchannel summary
Example output
1   Po1(SU)   LACP   Gi0/1(P) Gi0/2(P)

S = Layer 2, U = in use, P = bundled; routed Port-channels normally show RU.

Detailed verification Section link
show etherchannel port-channel
Example output
Port-channel: Po1

Inspect the logical bundle and active members.

Detailed verification Section link
show interfaces trunk
Example output
Po1   on   802.1q   trunking   99

For a trunk bundle, verify the logical Port-channel and VLANs.

Detailed verification Section link
show lacp neighbor
Example output
Channel group 1 neighbors

Use on LACP bundles to inspect the partner.

Detailed verification Section link
show pagp neighbor
Example output
Channel group 1 neighbors

Use on PAgP bundles to inspect the partner.

Detailed verification Section link
show ip interface brief
Example output
Port-channel1  192.0.2.1  YES manual  up  up

For a routed IPv4 bundle, verify the logical interface.

Detailed verification Section link
show ipv6 interface brief
Example output
Port-channel1  [up/up]
    2001:DB8::1

For a routed IPv6 bundle, inspect its logical interface.

Open full topic, examples, mistakes and removal

Layer 3

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

Quick configuration and verification

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.

Open full topic, examples, mistakes and removal

A router uses 802.1Q subinterfaces on a physical trunk to act as the default gateway for multiple VLANs.

Quick configuration and verification

Configuration

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

Prerequisites and dependency links
  • Create VLANs and configure the connected switch trunk.
  • Use unique VLAN tags and matching native VLAN settings.
IPv4 tagged subinterface Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
interface [INTERFACE]
 no shutdown
 exit
interface [INTERFACE].[SUBINTERFACE-ID]
 encapsulation dot1Q [VLAN-ID]
 ip address [IP-ADDRESS] [SUBNET-MASK]
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[SUBINTERFACE-ID]
Local subinterface suffix, commonly matching its VLAN ID.
[VLAN-ID]
VLAN identifier.
[IP-ADDRESS]
Local IPv4 interface address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
Peer configuration — Connected switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: VLAN-ID

  • Include the tagged VLAN in the allowed list; omit encapsulation selection only on fixed 802.1Q switches.
enable
configure terminal
vlan [VLAN-ID]
 exit
interface [INTERFACE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 exit
end
IPv6 tagged subinterface 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]
 no shutdown
 exit
interface [INTERFACE].[SUBINTERFACE-ID]
 encapsulation dot1Q [VLAN-ID]
 ipv6 address [IPV6-ADDRESS]/[PREFIX-LENGTH]
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[SUBINTERFACE-ID]
Local subinterface suffix, commonly matching its VLAN ID.
[VLAN-ID]
VLAN identifier.
[IPV6-ADDRESS]
Local IPv6 interface address without the prefix length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
Peer configuration — Connected switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: VLAN-ID

  • Include the tagged VLAN in the allowed list; omit encapsulation selection only on fixed 802.1Q switches.
enable
configure terminal
vlan [VLAN-ID]
 exit
interface [INTERFACE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 exit
end
Native VLAN subinterface Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Match the switch-side native VLAN.
enable
configure terminal
interface [INTERFACE]
 no shutdown
 exit
interface [INTERFACE].[SUBINTERFACE-ID]
 encapsulation dot1Q [NATIVE-VLAN] native
 ip address [IP-ADDRESS] [SUBNET-MASK]
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[SUBINTERFACE-ID]
Local subinterface suffix, commonly matching its VLAN ID.
[NATIVE-VLAN]
Matching native VLAN ID on trunk peers.
[IP-ADDRESS]
Local IPv4 interface address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
Peer configuration — Connected switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: NATIVE-VLAN

  • Include the tagged VLAN in the allowed list; omit encapsulation selection only on fixed 802.1Q switches.
enable
configure terminal
vlan [NATIVE-VLAN]
 exit
interface [INTERFACE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 exit
end

Show / Verify

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

Verify the parent and subinterface state.

Detailed verification Section link
show interfaces [INTERFACE].[SUBINTERFACE-ID]
Example output
Encapsulation 802.1Q Virtual LAN, Vlan ID  10.

Check the configured VLAN tag.

Detailed verification Section link
show interfaces trunk
Example output
Gi0/1  on  802.1q  trunking  99

Run on the connected switch and check allowed VLANs.

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

Check the IPv6 address and status of the tagged subinterface.

Open full topic, examples, mistakes and removal

Static routes manually select a next hop or outgoing interface for a destination prefix. A floating route uses a higher administrative distance to serve as a backup.

Quick configuration and verification

Configuration

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

Prerequisites and dependency links
  • Next hop must be resolvable; exit interfaces must be operational.
  • Enable routing on L3 switches and IPv6 routing for IPv6.
Next-hop route Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: static-routing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ip route [NETWORK] [SUBNET-MASK] [NEXT-HOP]
end
Command parameters
[NETWORK]
IPv4 destination or matching network address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
[NEXT-HOP]
IPv4 next-hop address.
Exit-interface route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: static-routing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Prefer this on a point-to-point link; on multiaccess Ethernet use a next hop or fully specified route.
enable
configure terminal
ip route [NETWORK] [SUBNET-MASK] [INTERFACE]
end
Command parameters
[NETWORK]
IPv4 destination or matching network address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
Fully specified route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: static-routing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ip route [NETWORK] [SUBNET-MASK] [INTERFACE] [NEXT-HOP]
end
Command parameters
[NETWORK]
IPv4 destination or matching network address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[NEXT-HOP]
IPv4 next-hop address.
Default route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: static-routing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ip route 0.0.0.0 0.0.0.0 [NEXT-HOP]
end
Command parameters
[NEXT-HOP]
IPv4 next-hop address.
Floating backup route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: static-routing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Choose a distance greater than the preferred route.
enable
configure terminal
ip route [NETWORK] [SUBNET-MASK] [NEXT-HOP] [BACKUP-DISTANCE]
end
Command parameters
[NETWORK]
IPv4 destination or matching network address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
[NEXT-HOP]
IPv4 next-hop address.
[BACKUP-DISTANCE]
Administrative distance of the floating route; greater than the primary.
Next-hop route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: static-routing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Use a resolvable global-unicast next hop in this form. If the next hop is link-local, include the outgoing interface (fully specified route).
enable
configure terminal
ipv6 route [IPV6-PREFIX]/[PREFIX-LENGTH] [NEXT-HOP-IPV6]
end
Command parameters
[IPV6-PREFIX]
IPv6 destination network prefix without slash length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
[NEXT-HOP-IPV6]
IPv6 next-hop address; a link-local next hop needs an exit interface.
Exit-interface route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: static-routing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Prefer this on a point-to-point link; on multiaccess Ethernet use a next hop or fully specified route.
enable
configure terminal
ipv6 route [IPV6-PREFIX]/[PREFIX-LENGTH] [INTERFACE]
end
Command parameters
[IPV6-PREFIX]
IPv6 destination network prefix without slash length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
Fully specified route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: static-routing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ipv6 route [IPV6-PREFIX]/[PREFIX-LENGTH] [INTERFACE] [NEXT-HOP-IPV6]
end
Command parameters
[IPV6-PREFIX]
IPv6 destination network prefix without slash length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[NEXT-HOP-IPV6]
IPv6 next-hop address; a link-local next hop needs an exit interface.
Default route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: static-routing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Use a resolvable global-unicast next hop in this form. If the next hop is link-local, include the outgoing interface (fully specified route).
enable
configure terminal
ipv6 route ::/0 [NEXT-HOP-IPV6]
end
Command parameters
[NEXT-HOP-IPV6]
IPv6 next-hop address; a link-local next hop needs an exit interface.
Floating backup route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: static-routing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Choose a distance greater than the preferred route.
  • Use a resolvable global-unicast next hop in this form. If the next hop is link-local, include the outgoing interface (fully specified route).
enable
configure terminal
ipv6 route [IPV6-PREFIX]/[PREFIX-LENGTH] [NEXT-HOP-IPV6] [BACKUP-DISTANCE]
end
Command parameters
[IPV6-PREFIX]
IPv6 destination network prefix without slash length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
[NEXT-HOP-IPV6]
IPv6 next-hop address; a link-local next hop needs an exit interface.
[BACKUP-DISTANCE]
Administrative distance of the floating route; greater than the primary.

Show / Verify

Primary verification Section link
show ip route static
Example output
S    198.51.100.0/24 [1/0] via 192.0.2.2

Check the installed route and resolved next hop.

Detailed verification Section link
show ipv6 route static
Example output
S   2001:DB8:2::/64 [1/0]
     via FE80::2, GigabitEthernet0/0

Check the IPv6 next hop and exit interface.

Detailed verification Section link
show ip route [DESTINATION-IP]
Example output
Routing entry for 198.51.100.0/24

Inspect the longest matching route.

Detailed verification Section link
show ipv6 route [DESTINATION-IPV6]
Example output
Routing entry for 2001:DB8:2::/64

Inspect the longest matching IPv6 route.

Open full topic, examples, mistakes and removal

OSPFv3 Address Family carries IPv4 and IPv6 routes in separate address families using IPv6 link-local transport. This is the AF syntax, not the traditional IPv6-only configuration.

Quick configuration and verification

Configuration

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

Prerequisites and dependency links
  • IPv6 must be enabled on each participating link, including IPv4 AF links.
  • Use unique router IDs, assign family-appropriate addresses and enable routing.
IPV4 unicast address family Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: ospfv3-af-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ipv6 unicast-routing
router ospfv3 [PROCESS-ID]
 router-id [ROUTER-ID]
 address-family ipv4 unicast
 exit-address-family
 exit
interface [INTERFACE]
 ipv6 enable
 ospfv3 [PROCESS-ID] ipv4 area [AREA-ID]
 exit
end
Command parameters
[PROCESS-ID]
Local routing process identifier.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[AREA-ID]
OSPF area number or dotted area ID.
Peer configuration — Adjacent router or L3 switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: AREA-ID

  • Use the peer's own addresses and interfaces. Process IDs are locally significant. Match area and compatible link parameters.
enable
configure terminal
ipv6 unicast-routing
router ospfv3 [PROCESS-ID]
 router-id [PEER-ROUTER-ID]
 address-family ipv4 unicast
 exit-address-family
 exit
interface [INTERFACE]
 ipv6 enable
 ospfv3 [PROCESS-ID] ipv4 area [AREA-ID]
 exit
end
IPV6 unicast address family Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: ospfv3-af-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ipv6 unicast-routing
router ospfv3 [PROCESS-ID]
 router-id [ROUTER-ID]
 address-family ipv6 unicast
 exit-address-family
 exit
interface [INTERFACE]
 ipv6 enable
 ospfv3 [PROCESS-ID] ipv6 area [AREA-ID]
 exit
end
Command parameters
[PROCESS-ID]
Local routing process identifier.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[AREA-ID]
OSPF area number or dotted area ID.
Peer configuration — Adjacent router or L3 switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: AREA-ID

  • Use the peer's own addresses and interfaces. Process IDs are locally significant. Match area and compatible link parameters.
enable
configure terminal
ipv6 unicast-routing
router ospfv3 [PROCESS-ID]
 router-id [PEER-ROUTER-ID]
 address-family ipv6 unicast
 exit-address-family
 exit
interface [INTERFACE]
 ipv6 enable
 ospfv3 [PROCESS-ID] ipv6 area [AREA-ID]
 exit
end
Both address families Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: ospfv3-af-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ipv6 unicast-routing
router ospfv3 [PROCESS-ID]
 router-id [ROUTER-ID]
 address-family ipv4 unicast
 exit-address-family
 address-family ipv6 unicast
 exit-address-family
 exit
interface [INTERFACE]
 ipv6 enable
 ospfv3 [PROCESS-ID] ipv4 area [AREA-ID]
 ospfv3 [PROCESS-ID] ipv6 area [AREA-ID]
 exit
end
Command parameters
[PROCESS-ID]
Local routing process identifier.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[AREA-ID]
OSPF area number or dotted area ID.
Peer configuration — Adjacent router or L3 switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: AREA-ID

  • Use the peer's own addresses and interfaces. Process IDs are locally significant. Match area and compatible link parameters.
enable
configure terminal
ipv6 unicast-routing
router ospfv3 [PROCESS-ID]
 router-id [PEER-ROUTER-ID]
 address-family ipv4 unicast
 exit-address-family
 address-family ipv6 unicast
 exit-address-family
 exit
interface [INTERFACE]
 ipv6 enable
 ospfv3 [PROCESS-ID] ipv4 area [AREA-ID]
 ospfv3 [PROCESS-ID] ipv6 area [AREA-ID]
 exit
end
IPV4 VRF address family Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: ospfv3-af-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Define the VRF with the required address families first. For IPv4 OSPFv3, IPv6 processing must also be available on the link.
  • On an L3 switch, enable ip routing and convert physical routed ports with no switchport before this block; do not use no switchport on router interfaces or SVIs.
  • For initial configuration or an intentional VRF move only: changing VRF membership can remove existing IP addresses. Record and restore all required IPv4/IPv6 addresses, including the other family on a dual-stack link. If the interface is already in the correct VRF, omit the VRF reassignment and retain existing addressing.
  • Use capability vrf-lite when required for the lab.
enable
configure terminal
ipv6 unicast-routing
router ospfv3 [PROCESS-ID]
 router-id [ROUTER-ID]
 address-family ipv4 unicast vrf [VRF-NAME]
  capability vrf-lite
 exit-address-family
 exit
interface [INTERFACE]
 vrf forwarding [VRF-NAME]
 ip address [IP-ADDRESS] [SUBNET-MASK]
 ipv6 enable
 ospfv3 [PROCESS-ID] ipv4 area [AREA-ID]
 no shutdown
 exit
end
Command parameters
[PROCESS-ID]
Local routing process identifier.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[VRF-NAME]
Local VRF name; align it with the task.
[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.
[AREA-ID]
OSPF area number or dotted area ID.
Peer configuration — Adjacent router or L3 switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: AREA-ID, SUBNET-MASK

  • Use the peer's own addresses and interfaces. Process IDs are locally significant. Match area and compatible link parameters.
  • Define the VRF with the required address families first. For IPv4 OSPFv3, IPv6 processing must also be available on the link.
  • On an L3 switch, enable ip routing and convert physical routed ports with no switchport before this block; do not use no switchport on router interfaces or SVIs.
  • For initial configuration or an intentional VRF move only: changing VRF membership can remove existing IP addresses. Record and restore all required IPv4/IPv6 addresses, including the other family on a dual-stack link. If the interface is already in the correct VRF, omit the VRF reassignment and retain existing addressing.
  • Use capability vrf-lite when required for the lab.
enable
configure terminal
ipv6 unicast-routing
router ospfv3 [PROCESS-ID]
 router-id [PEER-ROUTER-ID]
 address-family ipv4 unicast vrf [VRF-NAME]
  capability vrf-lite
 exit-address-family
 exit
interface [INTERFACE]
 vrf forwarding [VRF-NAME]
 ip address [REMOTE-IP-ADDRESS] [SUBNET-MASK]
 ipv6 enable
 ospfv3 [PROCESS-ID] ipv4 area [AREA-ID]
 no shutdown
 exit
end
IPV6 VRF address family Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: ospfv3-af-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Define the VRF with the required address families first. For IPv4 OSPFv3, IPv6 processing must also be available on the link.
  • On an L3 switch, enable ip routing and convert physical routed ports with no switchport before this block; do not use no switchport on router interfaces or SVIs.
  • For initial configuration or an intentional VRF move only: changing VRF membership can remove existing IP addresses. Record and restore all required IPv4/IPv6 addresses, including the other family on a dual-stack link. If the interface is already in the correct VRF, omit the VRF reassignment and retain existing addressing.
  • Use capability vrf-lite when required for the lab.
enable
configure terminal
ipv6 unicast-routing
router ospfv3 [PROCESS-ID]
 router-id [ROUTER-ID]
 address-family ipv6 unicast vrf [VRF-NAME]
  capability vrf-lite
 exit-address-family
 exit
interface [INTERFACE]
 vrf forwarding [VRF-NAME]
 ipv6 address [IPV6-ADDRESS]/[PREFIX-LENGTH]
 ipv6 enable
 ospfv3 [PROCESS-ID] ipv6 area [AREA-ID]
 no shutdown
 exit
end
Command parameters
[PROCESS-ID]
Local routing process identifier.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[VRF-NAME]
Local VRF name; align it with the task.
[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.
[AREA-ID]
OSPF area number or dotted area ID.
Peer configuration — Adjacent router or L3 switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: AREA-ID, PREFIX-LENGTH

  • Use the peer's own addresses and interfaces. Process IDs are locally significant. Match area and compatible link parameters.
  • Define the VRF with the required address families first. For IPv4 OSPFv3, IPv6 processing must also be available on the link.
  • On an L3 switch, enable ip routing and convert physical routed ports with no switchport before this block; do not use no switchport on router interfaces or SVIs.
  • For initial configuration or an intentional VRF move only: changing VRF membership can remove existing IP addresses. Record and restore all required IPv4/IPv6 addresses, including the other family on a dual-stack link. If the interface is already in the correct VRF, omit the VRF reassignment and retain existing addressing.
  • Use capability vrf-lite when required for the lab.
enable
configure terminal
ipv6 unicast-routing
router ospfv3 [PROCESS-ID]
 router-id [PEER-ROUTER-ID]
 address-family ipv6 unicast vrf [VRF-NAME]
  capability vrf-lite
 exit-address-family
 exit
interface [INTERFACE]
 vrf forwarding [VRF-NAME]
 ipv6 address [PEER-IPV6-ADDRESS]/[PREFIX-LENGTH]
 ipv6 enable
 ospfv3 [PROCESS-ID] ipv6 area [AREA-ID]
 no shutdown
 exit
end

Show / Verify

Primary verification Section link
show ospfv3 neighbor
Example output
OSPFv3 1 address-family ipv4 (router-id 1.1.1.1)
2.2.2.2  1  FULL/DR

Check the correct address-family adjacency.

Detailed verification Section link
show ospfv3 interface
Example output
OSPFv3 1 address-family ipv6

Verify the intended process and AF on each interface.

Detailed verification Section link
show ip route ospfv3
Example output
O    198.51.100.0/24 [110/2] via 192.0.2.2

Check IPv4 routes from OSPFv3.

Detailed verification Section link
show ipv6 route ospf
Example output
O   2001:DB8:2::/64 [110/2]
     via FE80::2, GigabitEthernet0/0

Check IPv6 routes.

Detailed verification Section link
show vrf
Example output
Name   Default RD   Protocols   Interfaces
CustomerA  <not set>  ipv4,ipv6  Gi0/0

Verify the OSPF interface belongs to the intended VRF, not the global table.

Detailed verification Section link
show ip route vrf [VRF-NAME]
Example output
Routing Table: CustomerA
O    198.51.100.0/24 [110/2] via 192.0.2.2

Confirm IPv4 OSPF routes are installed in the selected VRF.

Detailed verification Section link
show ipv6 route vrf [VRF-NAME]
Example output
IPv6 Routing Table - CustomerA
O   2001:DB8:2::/64 [110/2]
     via FE80::2, GigabitEthernet0/0

Confirm IPv6 OSPF routes are installed in the selected VRF.

Open full topic, examples, mistakes and removal

Network Virtualization

VRF-Lite separates routing tables on a device without requiring MPLS. Interfaces and routes are assigned to a named VRF.

Quick configuration and verification

Configuration

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

Prerequisites and dependency links
  • Define the VRF and required address families before assigning interfaces.
  • Changing VRF membership can remove existing addresses; reapply addressing afterwards.
Define a dual-stack VRF Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
vrf definition [VRF-NAME]
 address-family ipv4
 exit-address-family
 address-family ipv6
 exit-address-family
 exit
end
Command parameters
[VRF-NAME]
Local VRF name; align it with the task.
Assign routed router interface Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
interface [INTERFACE]
 vrf forwarding [VRF-NAME]
 ip address [IP-ADDRESS] [SUBNET-MASK]
 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.
[VRF-NAME]
Local VRF name; align it with the task.
[IP-ADDRESS]
Local IPv4 interface address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
[IPV6-ADDRESS]
Local IPv6 interface address without the prefix length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
Assign L3 switch routed port 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
 vrf forwarding [VRF-NAME]
 ip address [IP-ADDRESS] [SUBNET-MASK]
 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.
[VRF-NAME]
Local VRF name; align it with the task.
[IP-ADDRESS]
Local IPv4 interface address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
[IPV6-ADDRESS]
Local IPv6 interface address without the prefix length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
IPv4 VRF static route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ip route vrf [VRF-NAME] [NETWORK] [SUBNET-MASK] [NEXT-HOP]
end
Command parameters
[VRF-NAME]
Local VRF name; align it with the task.
[NETWORK]
IPv4 destination or matching network address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
[NEXT-HOP]
IPv4 next-hop address.
IPv6 VRF static route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ipv6 route vrf [VRF-NAME] [IPV6-PREFIX]/[PREFIX-LENGTH] [NEXT-HOP-IPV6]
end
Command parameters
[VRF-NAME]
Local VRF name; align it with the task.
[IPV6-PREFIX]
IPv6 destination network prefix without slash length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
[NEXT-HOP-IPV6]
IPv6 next-hop address; a link-local next hop needs an exit interface.
Define IPV4 VRF Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
vrf definition [VRF-NAME]
 address-family ipv4
 exit-address-family
 exit
end
Command parameters
[VRF-NAME]
Local VRF name; align it with the task.
Define IPV6 VRF Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
vrf definition [VRF-NAME]
 address-family ipv6
 exit-address-family
 exit
end
Command parameters
[VRF-NAME]
Local VRF name; align it with the task.
Router IPV4 VRF interface Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Define the required VRF address family first. Moving an interface to a VRF can remove existing addresses; restore all required addresses and apply no switchport only on physical routed switchports.
enable
configure terminal
interface [INTERFACE]
 vrf forwarding [VRF-NAME]
 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.
[VRF-NAME]
Local VRF name; align it with the task.
[IP-ADDRESS]
Local IPv4 interface address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
Router IPV6 VRF interface Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Define the required VRF address family first. Moving an interface to a VRF can remove existing addresses; restore all required addresses and apply no switchport only on physical routed switchports.
enable
configure terminal
ipv6 unicast-routing
interface [INTERFACE]
 vrf forwarding [VRF-NAME]
 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.
[VRF-NAME]
Local VRF name; align it with the task.
[IPV6-ADDRESS]
Local IPv6 interface address without the prefix length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
L3 switch IPV4 routed VRF interface Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Define the required VRF address family first. Moving an interface to a VRF can remove existing addresses; restore all required addresses and apply no switchport only on physical routed switchports.
enable
configure terminal
ip routing
interface [INTERFACE]
 no switchport
 vrf forwarding [VRF-NAME]
 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.
[VRF-NAME]
Local VRF name; align it with the task.
[IP-ADDRESS]
Local IPv4 interface address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
L3 switch IPV6 routed VRF interface Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Define the required VRF address family first. Moving an interface to a VRF can remove existing addresses; restore all required addresses and apply no switchport only on physical routed switchports.
enable
configure terminal
ip routing
ipv6 unicast-routing
interface [INTERFACE]
 no switchport
 vrf forwarding [VRF-NAME]
 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.
[VRF-NAME]
Local VRF name; align it with the task.
[IPV6-ADDRESS]
Local IPv6 interface address without the prefix length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.

Show / Verify

Primary verification Section link
show vrf
Example output
Name   Default RD   Protocols   Interfaces
CustomerA  <not set>  ipv4,ipv6  Gi0/0

Check the named VRF and interface membership.

Detailed verification Section link
show ip route vrf [VRF-NAME]
Example output
Routing Table: CustomerA

Check the IPv4 table for the correct VRF.

Detailed verification Section link
show ipv6 route vrf [VRF-NAME]
Example output
IPv6 Routing Table - CustomerA

Check the correct IPv6 table.

Functional verification Section link
ping vrf [VRF-NAME] [DESTINATION-IP]
Example output
Success rate is 100 percent (5/5)

Test IPv4 connectivity using the VRF, not the global table.

Functional verification Section link
ping vrf [VRF-NAME] [DESTINATION-IPV6]
Example output
Success rate is 100 percent (5/5)

Check IPv6 reachability in the named VRF, rather than in the global routing table.

Open full topic, examples, mistakes and removal

Security

Port Security

Port Security restricts source MAC addresses on an access port. Dynamic, static and sticky learning can be combined with a maximum address count and a violation action.

Quick configuration and verification

Configuration

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

Prerequisites and dependency links
  • Use a supported static access port.
  • Choose maximum and violation mode according to the task; inspect attached devices.
Sticky MAC – protect Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: port-security-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
interface [INTERFACE]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 switchport port-security
 switchport port-security maximum [MAX-MAC]
 switchport port-security mac-address sticky
 switchport port-security violation protect
 no shutdown
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[VLAN-ID]
VLAN identifier.
[MAX-MAC]
Maximum secure MAC addresses.
Sticky MAC – restrict Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: port-security-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
interface [INTERFACE]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 switchport port-security
 switchport port-security maximum [MAX-MAC]
 switchport port-security mac-address sticky
 switchport port-security violation restrict
 no shutdown
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[VLAN-ID]
VLAN identifier.
[MAX-MAC]
Maximum secure MAC addresses.
Sticky MAC – shutdown Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: port-security-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
interface [INTERFACE]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 switchport port-security
 switchport port-security maximum [MAX-MAC]
 switchport port-security mac-address sticky
 switchport port-security violation shutdown
 no shutdown
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[VLAN-ID]
VLAN identifier.
[MAX-MAC]
Maximum secure MAC addresses.
Statically allowed MAC Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: port-security-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
interface [INTERFACE]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 switchport port-security
 switchport port-security maximum [MAX-MAC]
 switchport port-security mac-address [MAC-ADDRESS]
 no shutdown
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[VLAN-ID]
VLAN identifier.
[MAX-MAC]
Maximum secure MAC addresses.
[MAC-ADDRESS]
MAC address in Cisco dotted hexadecimal notation.
Dynamic secure MAC learning Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: port-security-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
interface [INTERFACE]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 switchport port-security
 switchport port-security maximum [MAX-MAC]
 no shutdown
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[VLAN-ID]
VLAN identifier.
[MAX-MAC]
Maximum secure MAC addresses.

Show / Verify

Primary verification Section link
show port-security interface [INTERFACE]
Example output
Port Security : Enabled
Port Status : Secure-up
Violation Mode : Restrict

Check state, violation action, maximum and counters.

Detailed verification Section link
show port-security address
Example output
10  0011.2233.4455  SecureSticky  Gi0/1

Verify learned or configured secure MACs.

Detailed verification Section link
show interfaces status err-disabled
Example output
Gi0/1  err-disabled  psecure-violation

Shutdown mode may disable the port; resolve the cause before recovery.

Open full topic, examples, mistakes and removal

Cisco credential types describe how a password or key is stored. Type 0 is plaintext, type 7 is reversible obfuscation, type 5 is legacy MD5 hashing, and types 8 and 9 use stronger password hashing. Type 6 is reversible AES encryption for credentials that must be recovered by the device; it is not a password hash.

Quick configuration and verification

Configuration

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

Prerequisites and dependency links
  • Use placeholders for new secrets. Never paste an existing production hash into shared notes.
  • Prefer the strongest supported secret algorithm unless the exam explicitly requires another type.
Generate type 9 (scrypt) local secret Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: password-hashing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
username [USERNAME] algorithm-type scrypt secret [PASSWORD]
enable algorithm-type scrypt secret [ENABLE-SECRET]
end
Command parameters
[USERNAME]
Local user account name.
[PASSWORD]
New local or line password; never include a real password in shared material.
[ENABLE-SECRET]
New enable password, not a pre-encoded hash.
Generate type 8 (PBKDF2-SHA256) secret Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: password-hashing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
username [USERNAME] algorithm-type sha256 secret [PASSWORD]
enable algorithm-type sha256 secret [ENABLE-SECRET]
end
Command parameters
[USERNAME]
Local user account name.
[PASSWORD]
New local or line password; never include a real password in shared material.
[ENABLE-SECRET]
New enable password, not a pre-encoded hash.
Generate legacy type 5 (MD5) secret Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: password-hashing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Legacy exam compatibility only; modern platforms may reject or convert type 5.
enable
configure terminal
username [USERNAME] algorithm-type md5 secret [PASSWORD]
enable algorithm-type md5 secret [ENABLE-SECRET]
end
Command parameters
[USERNAME]
Local user account name.
[PASSWORD]
New local or line password; never include a real password in shared material.
[ENABLE-SECRET]
New enable password, not a pre-encoded hash.
Explicit type 0 line password Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: password-hashing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Plaintext input and storage unless password encryption is enabled.
enable
configure terminal
line console 0
 password 0 [PASSWORD]
 login
 exit
end
Command parameters
[PASSWORD]
New local or line password; never include a real password in shared material.
Legacy service password encryption Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: password-hashing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Obfuscates applicable plaintext line passwords as type 7. It does not create a strong hash.
enable
configure terminal
service password-encryption
end
Import an already encoded type 9 secret Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: password-hashing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • The value must already be a valid encoded type 9 secret, not a plaintext password.
enable
configure terminal
username [USERNAME] secret 9 [ENCODED-TYPE9-SECRET]
end
Command parameters
[USERNAME]
Local user account name.
[ENCODED-TYPE9-SECRET]
Existing valid type 9 encoded hash, not plaintext.

Show / Verify

Primary verification Section link
show running-config | include ^username
Example output
username exam-user secret 9 [REDACTED]

Check the numeric storage type, not the contents of the secret. Never share unredacted output.

Detailed verification Section link
show running-config | include ^enable secret
Example output
enable secret 8 [REDACTED]

Check the enable secret storage type.

Detailed verification Section link
show running-config | include ^service password-encryption
Example output
service password-encryption

Confirms legacy password obfuscation setting only.

Open full topic, examples, mistakes and removal

Local authentication verifies logins using accounts stored on the device. A username secret is preferable to a shared line password.

Quick configuration and verification

Configuration

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

Prerequisites and dependency links
  • Create a local administrator account before requiring login local.
  • Keep console access while testing a second session.
Local user with secret Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
username [USERNAME] privilege [PRIVILEGE] secret [PASSWORD]
end
Command parameters
[USERNAME]
Local user account name.
[PRIVILEGE]
Cisco privilege level, normally 0 to 15.
[PASSWORD]
New local or line password; never include a real password in shared material.
Console local authentication Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
username [USERNAME] privilege 15 secret [PASSWORD]
line console 0
 login local
 exit
end
Command parameters
[USERNAME]
Local user account name.
[PASSWORD]
New local or line password; never include a real password in shared material.
VTY local authentication Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
username [USERNAME] privilege 15 secret [PASSWORD]
line vty 0 [VTY-LAST]
 login local
 exit
end
Command parameters
[USERNAME]
Local user account name.
[PASSWORD]
New local or line password; never include a real password in shared material.
[VTY-LAST]
Last VTY line number supported by the device; configure remaining lines as needed.

Show / Verify

Primary verification Section link
show running-config | include ^username
Example output
username exam-user privilege 15 secret 9 [REDACTED]

Confirm account exists and storage type; do not disclose the secret.

Detailed verification Section link
show running-config | section ^line
Example output
line vty 0 4
 login local

Confirm authentication binding.

Detailed verification Section link
show privilege
Example output
Current privilege level is 15

Verify expected privilege from a successful session.

Open full topic, examples, mistakes and removal

SSH

SSH provides encrypted remote CLI access. Cisco SSH requires a device identity, RSA keys and an authentication method.

Quick configuration and verification

Configuration

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

Prerequisites and dependency links
  • Configure reachable interface or management SVI and gateway if needed.
  • Use a local user and test before closing console access.
SSH version 2 with local authentication Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Key generation may prompt or reject replacement if a key already exists. Do not overwrite an existing working key unnecessarily.
enable
configure terminal
hostname [HOSTNAME]
ip domain-name [DOMAIN-NAME]
username [USERNAME] privilege 15 secret [PASSWORD]
crypto key generate rsa modulus 2048
ip ssh version 2
line vty 0 [VTY-LAST]
 login local
 transport input ssh
 exit
end
Command parameters
[HOSTNAME]
Local Cisco device hostname.
[DOMAIN-NAME]
Device domain name.
[USERNAME]
Local user account name.
[PASSWORD]
New local or line password; never include a real password in shared material.
[VTY-LAST]
Last VTY line number supported by the device; configure remaining lines as needed.
Optional SSH and VTY timeouts Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ip ssh time-out [SSH-TIMEOUT-SECONDS]
ip ssh authentication-retries [RETRY-COUNT]
line vty 0 [VTY-LAST]
 exec-timeout [IDLE-MINUTES] [IDLE-SECONDS]
 exit
end
Command parameters
[SSH-TIMEOUT-SECONDS]
SSH negotiation/authentication timeout in seconds.
[RETRY-COUNT]
SSH authentication retry count.
[VTY-LAST]
Last VTY line number supported by the device; configure remaining lines as needed.
[IDLE-MINUTES]
VTY idle timeout minutes.
[IDLE-SECONDS]
Additional VTY idle timeout seconds.

Show / Verify

Primary verification Section link
show ip ssh
Example output
SSH Enabled - version 2.0

Confirm SSHv2 is enabled.

Detailed verification Section link
show ssh
Example output
Connection  Version  Mode  Encryption
0           2.0      IN    aes256-ctr

An active test session proves negotiation; check login and privilege separately.

Detailed verification Section link
show running-config | section ^line vty
Example output
line vty 0 4
 login local
 transport input ssh

Verify correct VTY range and transport.

Open full topic, examples, mistakes and removal

Telnet

Telnet provides unencrypted CLI access. It is included for the practical exam, but credentials and traffic are sent without SSH encryption.

Quick configuration and verification

Configuration

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

Prerequisites and dependency links
  • Ensure management reachability.
  • Use only in the environment where the task requests it.
Telnet with local user Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: telnet-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
username [USERNAME] privilege 15 secret [PASSWORD]
line vty 0 [VTY-LAST]
 login local
 transport input telnet
 exit
end
Command parameters
[USERNAME]
Local user account name.
[PASSWORD]
New local or line password; never include a real password in shared material.
[VTY-LAST]
Last VTY line number supported by the device; configure remaining lines as needed.
Telnet with line password Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: telnet-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
line vty 0 [VTY-LAST]
 password [PASSWORD]
 login
 transport input telnet
 exit
end
Command parameters
[VTY-LAST]
Last VTY line number supported by the device; configure remaining lines as needed.
[PASSWORD]
New local or line password; never include a real password in shared material.
Allow both SSH and Telnet Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: telnet-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • SSH prerequisites must already be configured.
enable
configure terminal
line vty 0 [VTY-LAST]
 login local
 transport input ssh telnet
 exit
end
Command parameters
[VTY-LAST]
Last VTY line number supported by the device; configure remaining lines as needed.

Show / Verify

Primary verification Section link
show running-config | section ^line vty
Example output
line vty 0 4
 login local
 transport input telnet

Check transport and authentication policy.

Detailed verification Section link
show users
Example output
*  2 vty 0  exam-user

A separate successful Telnet login confirms actual access.

Open full topic, examples, mistakes and removal

Checklist backup

Reset affects only this exam. Progress stays in this browser.

Export / import checklist backup

Backup contains both exam checklists, no passwords or configurations.

Interface Type Reference

Supporting reference for both exams. Use switchport for Layer 2 and no switchport for routed interfaces where supported.

Access port

Carries untagged traffic for the access VLAN.

enable
configure terminal
interface [INTERFACE]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 no shutdown
 exit
end
show interfaces [INTERFACE] switchport
show vlan brief
Trunk port

Transports multiple VLANs. Omit encapsulation selection only on fixed-802.1Q devices that reject it.

enable
configure terminal
interface [INTERFACE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 exit
end
show interfaces trunk
show interfaces [INTERFACE] switchport
Routed port

A Layer 3 switch interface used for routing rather than VLAN switching.

enable
configure terminal
ip routing
interface [INTERFACE]
 no switchport
 ip address [IP-ADDRESS] [SUBNET-MASK]
 no shutdown
 exit
end
show ip interface brief
show interfaces [INTERFACE] switchport
SVI

Logical VLAN interface for management or routing. L3 routing requires ip routing.

enable
configure terminal
vlan [VLAN-ID]
 exit
interface vlan [VLAN-ID]
 ip address [IP-ADDRESS] [SUBNET-MASK]
 no shutdown
 exit
end
show ip interface brief
show vlan brief
Loopback

Logical interface not tied to a physical link.

enable
configure terminal
interface loopback [LOOPBACK-ID]
 ip address [LOOPBACK-IP] 255.255.255.255
 exit
end
show ip interface brief
show ip route
Subinterface

Logical tagged interface on a physical router link.

enable
configure terminal
interface [INTERFACE]
 no shutdown
 exit
interface [INTERFACE].[SUBINTERFACE-ID]
 encapsulation dot1Q [VLAN-ID]
 ip address [IP-ADDRESS] [SUBNET-MASK]
 exit
end
show ip interface brief
show interfaces [INTERFACE].[SUBINTERFACE-ID]
Layer 2 Port-channel

Logical switched bundle. Configure matching members using the EtherChannel topic; omit encapsulation selection if unsupported.

enable
configure terminal
interface port-channel [CHANNEL-GROUP]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 no shutdown
 exit
end
show etherchannel summary
show interfaces trunk
Layer 3 Port-channel

Logical routed bundle; members must also be routed.

enable
configure terminal
ip routing
interface port-channel [CHANNEL-GROUP]
 no switchport
 ip address [IP-ADDRESS] [SUBNET-MASK]
 no shutdown
 exit
end
show etherchannel summary
show ip interface brief
VRF interface

Assigns a routed interface to a separate routing table. Define the VRF first; on a routed switchport use no switchport, and enable routing. VRF assignment may remove existing addresses.

enable
configure terminal
interface [INTERFACE]
 vrf forwarding [VRF-NAME]
 ip address [IP-ADDRESS] [SUBNET-MASK]
 no shutdown
 exit
end
show vrf
show ip route vrf [VRF-NAME]

Quick Reference Tables

Administrative distance
SourceDefault distance
Connected0
Static1
eBGP20
Internal EIGRP90
OSPF110
RIP120
External EIGRP170
iBGP200
Routing table codes
CodeMeaning
CConnected
LLocal host route
SStatic
OOSPF
O IAOSPF inter-area
O E1 / E2OSPF external
BBGP
*Candidate default
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
STP roles and states
Role or stateMeaning
RootBest path toward root bridge
DesignatedForwarding port for a segment
AlternateAlternative root path
BackupAlternative segment port
DiscardingRSTP non-forwarding state
LearningLearning MAC addresses
ForwardingForwarding traffic
Blocking / ListeningTraditional STP non-forwarding states
STP priorities
SettingReference
Bridge priority32768 commonly; increments of 4096
Port priority128 commonly; increments of 16
Root electionLowest bridge ID wins
Root pathLowest total path cost wins
DTP compatibility
LocalRemoteTrunk?
DesirableAutoYes
DesirableDesirableYes
AutoAutoNo
Trunk (DTP on)Auto or desirableYes
Trunk (nonegotiate)Static trunkYes
AccessAnyNo negotiated trunk
EtherChannel negotiation
LocalRemoteResult
ActiveActive/passiveLACP
PassivePassiveNo
DesirableDesirable/autoPAgP
AutoAutoNo
OnOnStatic
LACPPAgPIncompatible
EtherChannel flags
FlagMeaning
SLayer 2
RLayer 3
UIn use
PBundled
IStand-alone
DDown
sSuspended
OSPF neighbor states
StateMeaning
DownNo recent hello
InitHello received; not bidirectional yet
2-WayBidirectional hello; normal between DROTHERs
ExStart / ExchangeDatabase description negotiation/exchange
LoadingRequesting missing LSAs
FullDatabases synchronized with adjacent peer
BGP session states
StateMeaning
IdleNo established session
Connect / ActiveTCP connection attempt
OpenSent / OpenConfirmBGP negotiation
EstablishedRoute exchange; numeric prefix count in summary
HSRP states and defaults
State or valueMeaning
ActiveCurrent virtual gateway
StandbyCandidate to take over
Listen / SpeakParticipating state/election
Priority 100Default priority
Hello 3 s / Hold 10 sCommon default timers
PreemptNot enabled by default
Cisco credential types
TypeStorage
0Plaintext
5Legacy MD5 hash
6Reversible AES encryption, where supported
7Reversible obfuscation
8PBKDF2-SHA256 hash
9scrypt hash
Syslog severity
LevelName
0Emergency
1Alert
2Critical
3Error
4Warning
5Notification
6Informational
7Debugging
Port Security violation modes
ModeAction
ProtectDrop unauthorized frames
RestrictDrop and report/count violations
ShutdownErr-disable interface (default commonly)
SNMPv2c access
ModeMeaning
RORead only
RWRead and write; only if required
TrapUnsolicited notification
Cisco CLI contexts
PromptMode
Router>User EXEC
Router#Privileged EXEC
Router(config)#Global configuration
Router(config-if)#Interface configuration
Router(config-router)#Routing process
Router(config-router-af)#Address family
Router(config-line)#Console or VTY
Router(config-vlan)#VLAN configuration

Configuration Comparison

Access vs trunk vs routed

Access carries one data VLAN; trunk carries tagged VLANs; routed ports use no switchport and IP addressing.

Open topic
SVI vs router-on-a-stick

SVI routes within a multilayer switch; a router subinterface uses 802.1Q encapsulation on an external trunk.

Open topic
LACP vs PAgP vs static

LACP uses active/passive; PAgP desirable/auto; static on requires explicit agreement without negotiation.

Open topic
PVST+ vs Rapid PVST+

Both are per-VLAN; Rapid PVST+ uses rapid spanning-tree convergence and port roles.

Open topic
Network vs interface OSPF activation

Network statements select interfaces by address and wildcard; interface commands activate the process on a specific interface.

Open topic
OSPFv3 legacy vs AF

Legacy uses ipv6 router ospf and ipv6 ospf; AF uses router ospfv3 and ospfv3 with explicit IPv4/IPv6 family.

Open topic
Next hop vs exit interface

Use a next hop on multiaccess links; a fully specified route includes both. IPv6 link-local next hop needs an interface.

Open topic
iBGP vs eBGP

Same AS vs different AS; next-hop and loopback reachability must be considered.

Open topic
Standard vs extended vs IPv6 ACL

Standard IPv4 matches source; extended IPv4 and IPv6 can match protocol and destination as well.

Open topic
Local vs RADIUS authentication

Local uses device accounts; RADIUS uses centralized credentials. Fallback is normally for unavailable servers, not rejected credentials.

Open topic
SSH vs Telnet

SSH encrypts CLI transport; Telnet does not. Both are included where required by the exam.

Open topic
NTP client vs server vs peer

Client synchronizes to a server; peer forms symmetric association; ntp master creates a local reference for a requested lab.

Open topic
Protect vs restrict vs shutdown

All deny unauthorized MAC traffic; restrict reports/counts violations, shutdown err-disables the port.

Open topic
IP SLA vs Object Tracking

SLA measures an operation; tracking exposes an up/down condition for consumers such as HSRP or static routing.

Open topic

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]
IPv4 path

Inspect hop sequence; missing responses alone do not prove forwarding failure.

traceroute [DESTINATION-IP]
IPv6 path

Inspect IPv6 hop sequence.

traceroute ipv6 [DESTINATION-IPV6]
VRF IPv4

Test in the correct routing instance.

ping vrf [VRF-NAME] [DESTINATION-IP]
traceroute vrf [VRF-NAME] [DESTINATION-IP]
VRF IPv6

Use the VRF-aware ping with an IPv6 destination; select the source if needed. Confirm support on the device.

ping vrf [VRF-NAME] [DESTINATION-IPV6]
HSRP failover (disruptive)

Only when requested, deliberately fail the intended path in a controlled lab, check transition and restore it. Do not include shutdown commands in Verify All.

show standby brief
show track
ping [DESTINATION-IP]
Layer 2 endpoint test

After sending traffic between the intended hosts, verify that the expected MAC addresses are learned on the correct VLAN and interface.

show mac address-table vlan [VLAN-ID]
show interfaces [INTERFACE] switchport
Remote SSH login

Run from a separate test Cisco device or use a client PC; confirm authentication and privilege without closing the existing recovery session.

ssh -l [USERNAME] [DESTINATION-IP]
Remote Telnet login

Use only where the exam requests Telnet. Test from another device, then keep a secure recovery path available.

telnet [DESTINATION-IP]
Management receiver test

Inspect the service-specific state. Confirm receipt of a generated log/trap or a permitted poll on the relevant remote collector. Local counters alone do not prove receiver delivery.

show logging
show snmp
show ntp status

Placeholder Reference

All placeholder definitions
[ACL-NAME]
Access control list name.
[ALLOWED-VLANS]
Comma-separated VLAN IDs and ranges; replace the whole list only when intended.
[AREA-ID]
OSPF area number or dotted area ID.
[BACKBONE-INTERFACE]
Local interface connected to area 0.
[BACKUP-DISTANCE]
Administrative distance of the floating route; greater than the primary.
[BRIDGE-PRIORITY]
STP bridge priority, normally a multiple of 4096.
[BUFFER-BYTES]
Local logging buffer capacity in bytes.
[CHANNEL-GROUP]
Local EtherChannel and corresponding Port-channel number.
[COMMUNITY]
SNMPv2c community string; keep secret.
[CONSOLE-LIST]
Named AAA method list for console login.
[CONTACT]
SNMP administrative contact string.
[DECREMENT]
Amount to reduce HSRP priority when tracking fails.
[DESCRIPTION]
Local interface description.
[DESTINATION]
Destination IP or hostname appropriate to the test.
[DESTINATION-IP]
IPv4 destination or probe target.
[DESTINATION-IPV6]
IPv6 destination address.
[DIRECTION]
in or out, according to the policy.
[DOMAIN-NAME]
Device domain name.
[DOWN-SECONDS]
Tracking delay before reporting down.
[ENABLE-SECRET]
New enable password, not a pre-encoded hash.
[ENCODED-TYPE9-SECRET]
Existing valid type 9 encoded hash, not plaintext.
[EXEC-LIST]
AAA EXEC authorization list name.
[EXTENDED-ACL-NUMBER]
Valid numbered extended IPv4 ACL ID.
[FREQUENCY-SECONDS]
IP SLA operation interval in seconds.
[HELLO-SECONDS]
HSRP hello interval in seconds.
[HOLD-SECONDS]
HSRP hold time in seconds.
[HOSTNAME]
Local Cisco device hostname.
[HSRP-GROUP]
Shared HSRPv2 group number; use an appropriate unused group.
[IDLE-MINUTES]
VTY idle timeout minutes.
[IDLE-SECONDS]
Additional VTY idle timeout seconds.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[INTERFACE-RANGE]
Local Cisco interface range expression.
[IP-ADDRESS]
Local IPv4 interface address.
[IPV6-ADDRESS]
Local IPv6 interface address without the prefix length.
[IPV6-PREFIX]
IPv6 destination network prefix without slash length.
[KEY-ID]
Matching authentication key identifier.
[LINK-LOCAL-ADDRESS]
IPv6 link-local interface address.
[LOCAL-AS]
Local BGP autonomous system number.
[LOCAL-PEER-IP]
This device's IPv4 peering address as seen by the remote peer.
[LOCAL-PEER-IPV6]
This device's IPv6 peering address as seen by the remote peer.
[LOCATION]
SNMP device location string.
[LOGIN-LIST]
AAA authentication method-list name.
[LOOPBACK-ID]
Local loopback interface number.
[LOOPBACK-IP]
Local IPv4 loopback address.
[LOOPBACK-IPV6]
Local IPv6 loopback address.
[MAC-ADDRESS]
MAC address in Cisco dotted hexadecimal notation.
[MANAGER-IP]
Authorized SNMP manager IPv4 address.
[MAX-MAC]
Maximum secure MAC addresses.
[MGMT-ACL]
Management ACL name.
[NATIVE-VLAN]
Matching native VLAN ID on trunk peers.
[NEIGHBOR-INTERFACE]
Local interface on which routing neighbors are expected.
[NEIGHBOR-IP]
Remote IPv4 peer address.
[NEIGHBOR-IPV6]
Remote IPv6 peer address.
[NETWORK]
IPv4 destination or matching network address.
[NEXT-HOP]
IPv4 next-hop address.
[NEXT-HOP-IPV6]
IPv6 next-hop address; a link-local next hop needs an exit interface.
[OTHER-INTERFACE]
Local interface in the non-backbone area.
[PASSWORD]
New local or line password; never include a real password in shared material.
[PEER-IP]
Remote IPv4 NTP peer address.
[PEER-IPV6-ADDRESS]
IPv6 interface address of the other device.
[PEER-IPV6-PREFIX]
IPv6 network advertised by the other peer.
[PEER-NETWORK]
IPv4 network used or advertised by the other peer.
[PEER-PREFIX-LENGTH]
Prefix length of the other peer's IPv6 network.
[PEER-PRIORITY]
HSRP priority on the other device.
[PEER-ROUTER-ID]
Unique 32-bit router ID of the other OSPF or BGP device.
[PEER-SUBNET-MASK]
IPv4 mask of the other peer's network.
[PORT]
Transport-layer port number or supported service keyword.
[PORT-PRIORITY]
STP port priority using a supported increment.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
[PRIORITY]
Local HSRP priority.
[PRIVILEGE]
Cisco privilege level, normally 0 to 15.
[PROCESS-ID]
Local routing process identifier.
[RADIUS-GROUP]
Named AAA RADIUS server group.
[RADIUS-SERVER-NAME]
Local name for the RADIUS server definition.
[RECOVERY-SECONDS]
Errdisable recovery interval in seconds.
[REMOTE-AS]
BGP autonomous system number of the remote peer.
[REMOTE-IP-ADDRESS]
Remote endpoint IPv4 address, distinct from the local address.
[RETRY-COUNT]
SSH authentication retry count.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[SERVER-IP]
IPv4 address of the relevant server.
[SEVERITY]
Syslog severity name or number from 0 to 7.
[SHARED-SECRET]
Matching shared authentication secret on participating systems.
[SLA-ID]
Local IP SLA operation number.
[SOURCE-INTERFACE]
Local source interface used for probes or management traffic.
[SOURCE-IP]
Local IPv4 source address.
[SOURCE-IPV6-PREFIX]
Source IPv6 network without slash length.
[SOURCE-NETWORK]
IPv4 source network address.
[SOURCE-WILDCARD]
IPv4 source wildcard mask.
[SSH-TIMEOUT-SECONDS]
SSH negotiation/authentication timeout in seconds.
[STANDARD-ACL-NUMBER]
Valid numbered standard IPv4 ACL ID.
[STP-COST]
Spanning-tree port path cost.
[STRATUM]
NTP master stratum specified by the task.
[SUBINTERFACE-ID]
Local subinterface suffix, commonly matching its VLAN ID.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
[SUMMARY-IPV6-PREFIX]
Aligned IPv6 aggregate prefix without slash length.
[SUMMARY-MASK]
IPv4 aggregate subnet mask.
[SUMMARY-NETWORK]
Aligned IPv4 aggregate network address.
[SUMMARY-PREFIX-LENGTH]
IPv6 aggregate prefix length without slash.
[TEST-PASSWORD]
Disposable RADIUS test password; not a production credential.
[TEST-USERNAME]
Disposable RADIUS test account.
[TIMEOUT-MS]
IP SLA timeout in milliseconds.
[TRACK-ID]
Local tracking object identifier.
[UP-SECONDS]
Tracking delay before reporting up.
[USERNAME]
Local user account name.
[VIRTUAL-IP]
Shared HSRP virtual IPv4 address.
[VIRTUAL-LINK-LOCAL]
Shared HSRP virtual IPv6 link-local address.
[VLAN-ID]
VLAN identifier.
[VLAN-NAME]
Descriptive VLAN name.
[VOICE-VLAN]
Voice VLAN identifier distinct from the access VLAN.
[VRF-NAME]
Local VRF name; align it with the task.
[VTY-LAST]
Last VTY line number supported by the device; configure remaining lines as needed.
[WILDCARD-MASK]
Inverse IPv4 mask used for matching.

Reset checklist?

Command block

Back to Top

Confirmation

Confirm action

Continue?