ping from vr

Reply
L0 Member

ping from vr

All, is there an easy way to designate a vr as aq source when pinging ? Like ping host a.b.c.d virtual-router myvr ?

So far I only found a way to specify a source interface but the I need first look up a source interface in the specific VR. Any easier way ?


Accepted Solutions
L7 Applicator

the >ping host a.b.c.d is sourced from the management interface by default (the only interface available to the management plane, with only a single default route)

 

only if you set a source IP will the management go looking for an IP to bind to on the dataplane

Tom Piens - PANgurus.com
Like my answer? check out my book! amazon.com/dp/1789956374

View solution in original post


All Replies
L7 Applicator

A ping can only be sourced from a legitimate IP address so you need to select one which will then automatically bind to the appropriate VR, but you can't select the VR manually since it does not have it's own IP

Tom Piens - PANgurus.com
Like my answer? check out my book! amazon.com/dp/1789956374
L0 Member

Thanks for the quick answer. 

What I don't understand here, is that "ping host a.b.c.d" is a valid command without a source, so I assume the source gets auto selected based on route table, just like in case of a router. If that works, why does the same not work for a specific VR ? By the way, I also wonder which route table is used for the first case ?

L7 Applicator

the >ping host a.b.c.d is sourced from the management interface by default (the only interface available to the management plane, with only a single default route)

 

only if you set a source IP will the management go looking for an IP to bind to on the dataplane

Tom Piens - PANgurus.com
Like my answer? check out my book! amazon.com/dp/1789956374

View solution in original post

L0 Member

got it, thank you.

 

But...as a feature request it would be very nice to have Pan OS to look into the the given VR's routing table to decide source interface and hence source ip. Jut like a router would do. So eventually we could have "ping host a.b.c.d virtual-router xy".

L7 Applicator

If you rewch out to your local sales SE, they can submit a feature request for you :)

Tom Piens - PANgurus.com
Like my answer? check out my book! amazon.com/dp/1789956374
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!