• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

Roger Perkin

Network Automation Architect

  • Network Automation
    • Network Automation Courses
    • What is NetDevOps?
    • Workflow Orchestration
    • Ansible Automation Platform
    • Ansible Workshop
    • What is Network Automation?
    • Network Automation Tools
    • ContainerLab
    • Ansible Training
      • What is Ansible?
      • Ansible Tutorial for Beginners
      • Ansible Network Automation
      • Ansible Inventory Example
    • Python Network Automation
      • Nornir
      • Python Network Automation Course
      • Python for Network Engineers
      • Python VENV / Virtual Environment Tutorial
      • Python Tutorial for Beginners
      • pyATS
    • Network Source of Truth
      • NetBox
      • Infrahub
    • NetDevops
    • DevOps Tutorial
      • Git Training
      • Terraform Training
      • Linux Training
      • Kubernetes Training
      • Devops Training Course
      • Azure Devops Training
    • Terraform
    • GIT
      • Git Commands
      • What is GitHub?
    • Docker Training
    • Confluence
    • Microsoft Azure
  • Cisco
    • ISE
    • SD WAN Training
    • Password Recovery
    • Software-Upgrade-Guides
    • BGP
    • Data Center
    • WIRELESS
  • CCIE
  • Blog
  • About
    • My Red Special Guitar
  • Contact

Debug Condition Interface – Cisco

Home » CCIE Certification

magnifying glass During an INE Volume II lab I discovered a great way to filter the debug output from a router. The Debug Condition Interface command allows you to only show the debug output from a specific interface.
There are other conditions you can filter on as well including application, mac-address, vlan and there are a number of voice related commands which I am not interested in at this time.

For this example I had to configure OSPF to use unicast and not multicast, I then had to verify this was working, so I considered using an access list, and then discovered the debug condition command.

To filter the debug output to only interface fa0/1 use the following command

Rack6R5#debug condition interface fa0/1
Condition 1 set

To then filter this even more we are going to filter to only ospf hello’s

Rack6R5#debug ip ospf hello
OSPF hello events debugging is on

The output from this is now a very filtered view of exaclty what I want to see

Rack6R5#
*Mar  1 00:59:01.573: OSPF: Rcv hello from 150.6.4.4 area 45 from FastEthernet0/1 183.6.45.4
*Mar  1 00:59:01.573: OSPF: End of hello processing
Category: CCIE CertificationTag: CCIE Lab, cisco, debug
ansible course for network engineers
Get Access to my Ansible Course NOW
Previous Post:GNS3 Video Training Course
Next Post:OSPF Anatomy of an Internet Routing Protocol

Reader Interactions

Comments

  1. Darren

    January 8, 2013 at 11:05 am

    Just remember that when you do this and then type undebug all, it does not remove the condition. You need to remove the condition separately.

    If not, yo’r future debugs may show nothing at all as it’s on the wrong interface 🙂

  2. Lee

    January 25, 2013 at 5:42 pm

    Thanks for the post.

    I have been trying to get my head around this command and I am also using the INE WBs. Do you know whether this command will also filter out debug information from other interfaces when used in conjuction with the ‘debug ip packet 100 detail’?

    So – I want to debug all IP packets based on my ACL100, but only display whats on a particular interface.?

    Many thanks

Sidebar

Hi I'm Roger Perkin,
Based in the UK working as a Network Automation Architect, CCIE #50038
About Roger | Twitter | Linkedin

python course for network engineers

Topics

Network Automation
Ansible
Python for Network Automation
CCIE
Cisco ISE
F5 Certification
BGP
OSPF
Network Automation Conferences
auvik promo banner
Pluralsight Trial

Git for Network Engineers

Ansible vs Nornir

Start learning today with my Network Automation Courses

Master Ansible, Python, Git, Nornir, Jenkins and more..


Buy me a coffeeBuy me a coffee

ansible network automation course

Have you seen my YouTube Channel?

YouTube Subscribe

Let’s get started

Take a look at my premium courses on Ansible, Nornir & Git or buy them all with the Network Automation Bundle!

Network Automation Courses

Navigation

Python VENV Tutorial
Python for Network Engineers

Network Automation
Network Automation Courses
Network Discovery Tools
Network Automation Conferences
Ansible Training
What is Ansible?
Devops Tutorial
Network Source of Truth
DevOps Glossary
Network Monitoring Software

Contact

Contact

Get in touch with me here

[email protected]

  • Twitter
  • LinkedIn
  • YouTube
Buy me a coffeeBuy me a coffee

Copyright © 2025 · Roger Perkin · All Rights Reserved · Privacy Policy – Terms