# Conditional Debug on Cisco IOS Router

**URL:** https://forum.networklessons.com/t/conditional-debug-on-cisco-ios-router/1059
**Category:** Lessons Discussion
**Created:** [December 26, 2016, 7:05pm UTC](https://forum.networklessons.com/t/conditional-debug-on-cisco-ios-router/1059 "2016-12-26T19:05:38Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![roland.walker](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/roland.walker/32/1407_2.png) [@roland.walker](https://forum.networklessons.com/u/roland.walker)
#### Post date: [May 29, 2016, 7:02pm UTC](https://forum.networklessons.com/t/conditional-debug-on-cisco-ios-router/1059/4 "2016-05-29T19:02:27Z")

</div>

Rene,

I have been able to get conditional debug to work with interface. However, I have yet to perform a successful conditional debug with ip. Here’s an example:

```auto
R5#debug ip ospf hello
OSPF hello debugging is on
R5#
OSPF-1 HELLO Gi1.45: Send hello to 224.0.0.5 area 0 from 155.1.45.5
R5#
OSPF-1 HELLO Tu0: Send hello to 224.0.0.5 area 0 from 155.1.0.5
R5#
OSPF-1 HELLO Gi1.5: Send hello to 224.0.0.5 area 0 from 155.1.5.5
OSPF-1 HELLO Gi1.58: Send hello to 224.0.0.5 area 0 from 155.1.58.5
R5#
OSPF-1 HELLO Gi1.45: Rcv hello from 150.1.4.4 area 0 155.1.45.4
OSPF-1 HELLO Tu0: Rcv hello from 150.1.4.4 area 0 155.1.0.4
OSPF-1 HELLO Gi1.100: Rcv hello from 150.1.4.4 area 0 169.254.100.4
R5#
OSPF-1 HELLO Gi1.100: Send hello to 224.0.0.5 area 0 from 169.254.100.5
R5#
OSPF-1 HELLO Gi1.45: Send hello to 224.0.0.5 area 0 from 155.1.45.5
R5#
OSPF-1 HELLO Tu0: Send hello to 224.0.0.5 area 0 from 155.1.0.5
OSPF-1 HELLO Gi1.58: Send hello to 224.0.0.5 area 0 from 155.1.58.5
R5#
OSPF-1 HELLO Gi1.5: Send hello to 224.0.0.5 area 0 from 155.1.5.5
R5#
OSPF-1 HELLO Tu0: Rcv hello from 150.1.4.4 area 0 155.1.0.4
OSPF-1 HELLO Gi1.45: Rcv hello from 150.1.4.4 area 0 155.1.45.4
OSPF-1 HELLO Gi1.100: Rcv hello from 150.1.4.4 area 0 169.254.100.4
R5#
OSPF-1 HELLO Gi1.100: Send hello to 224.0.0.5 area 0 from 169.254.100.5
R5#
OSPF-1 HELLO Gi1.45: Send hello to 224.0.0.5 area 0 from 155.1.45.5
R5#
OSPF-1 HELLO Tu0: Send hello to 224.0.0.5 area 0 from 155.1.0.5
OSPF-1 HELLO Gi1.5: Send hello to 224.0.0.5 area 0 from 155.1.5.5
R5#
OSPF-1 HELLO Gi1.58: Send hello to 224.0.0.5 area 0 from 155.1.58.5
R5#u a
OSPF-1 HELLO Gi1.45: Rcv hello from 150.1.4.4 area 0 155.1.45.4
OSPF-1 HELLO Tu0: Rcv hello from 150.1.4.4 area 0 155.1.0.4
OSPF-1 HELLO Gi1.100: Rcv hello from 150.1.4.4 area 0 169.254.100.4

```

```auto
R5#u all
VDSL daemon error condition debugging is off
VDSL daemon state machine debugging is off
VDSL daemon information debugging is off
VDSL ipc error condition debugging is off
VDSL ipc tx debugging is off
VDSL ipc rx debugging is off
VDSL MIB error debugging is off
VDSL MIB information debugging is off
All possible debugging has been turned off

```

```auto
R5#debug condition ip 155.1.0.5
Condition 1 set

```

```auto
R5#debug ip ospf hello
OSPF hello debugging is on

```

```auto
R5#show debug
IOSXE Conditional Debug Configs:

Conditional Debug Global State: Stop

IOSXE Packet Tracing Configs:

OSPF:
  OSPF hello debugging is on

Condition 1: ip 155.1.0.5 :: (0 flags triggered)

```

```auto
R5#show debug
IOSXE Conditional Debug Configs:

Conditional Debug Global State: Stop

IOSXE Packet Tracing Configs:

OSPF:
  OSPF hello debugging is on

Condition 1: ip 155.1.0.5 :: (0 flags triggered)

```

```auto
R5#show debug
IOSXE Conditional Debug Configs:

Conditional Debug Global State: Stop

IOSXE Packet Tracing Configs:

OSPF:
  OSPF hello debugging is on

Condition 1: ip 155.1.0.5 :: (0 flags triggered)

```

As you can see I don’t get any output when I set the debug condition with the ip address. I’ve also tried different types of debugs, i.e. debug ip icmp, debug ip packet, etc.

Any advice on getting conditional debug to work with ip would be appreciative or an example would be appreciated.

Thank you.

Roland

---

_[View the full topic](https://forum.networklessons.com/t/conditional-debug-on-cisco-ios-router/1059)._
