debug condition interface

debug condition interface

in this example setting debug condition interface f0/0 will only show the OSPF hellos on f0/0 not f0/1
R1 R2
R1 R2

FIRST no condition set:
R1#debug ip ospf hello
OSPF hello events debugging is on
R1#
*Mar 1 00:05:33.503: OSPF: Send hello to 224.0.0.5 area 0 on FastEthernet0/1 from 2.2.2.1
*Mar 1 00:05:34.443: OSPF: Send hello to 224.0.0.5 area 0 on FastEthernet0/0 from 1.1.1.1
*Mar 1 00:05:35.191: OSPF: Rcv hello from 2.2.2.2 area 0 from FastEthernet0/0 1.1.1.2
*Mar 1 00:05:35.191: OSPF: End of hello processing
*Mar 1 00:05:36.283: OSPF: Rcv hello from 2.2.2.2 area 0 from FastEthernet0/1 2.2.2.2
*Mar 1 00:05:36.283: OSPF: End of hello processing
*Mar 1 00:05:43.007: OSPF: Send hello to 224.0.0.5 area 0 on FastEthernet0/1 from 2.2.2.1
*Mar 1 00:05:44.415: OSPF: Rcv hello from 2.2.2.2 area 0 from FastEthernet0/0 1.1.1.2
*Mar 1 00:05:44.415: OSPF: End of hello processing
*Mar 1 00:05:44.419: OSPF: Send hello to 224.0.0.5 area 0 on FastEthernet0/0 from 1.1.1.1
*Mar 1 00:05:45.979: OSPF: Rcv hello from 2.2.2.2 area 0 from FastEthernet0/1 2.2.2.2
*Mar 1 00:05:45.979: OSPF: End of hello processing

SECOND debug condition set:
R1# debug condition interface f0/0
Condition 1 set
R1#debug ip ospf hello
OSPF hello events debugging is on
R1#debug ip ospf hello
OSPF hello events debugging is on
R1#
*Mar 1 00:06:12.575: OSPF: Rcv hello from 2.2.2.2 area 0 from FastEthernet0/0 1.1.1.2
*Mar 1 00:06:12.575: OSPF: End of hello processing
*Mar 1 00:06:13.315: OSPF: Send hello to 224.0.0.5 area 0 on FastEthernet0/0 from 1.1.1.1
*Mar 1 00:06:21.639: OSPF: Rcv hello from 2.2.2.2 area 0 from FastEthernet0/0 1.1.1.2
*Mar 1 00:06:21.639: OSPF: End of hello processing
*Mar 1 00:06:22.379: OSPF: Send hello to 224.0.0.5 area 0 on FastEthernet0/0 from 1.1.1.1

to remove condition:
R1#no debug condition interface f0/0
This condition is the last interface condition set.
Removing all conditions may cause a flood of debugging
messages to result, unless specific debugging flags
are first removed.

Proceed with removal? [yes/no]: yes
Condition 1 has been removed

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s