How to ping within a VRF?

Solution Verified - Updated -

Issue

  • How to ping within a VRF?
  • Can the ping command be used to test connectivity across a VRF instance?
  • When pinging within a VRF with ping -I vrf_name the incorrect source IP address is chosen. How do I control the source IP address of a VRF-based ping?

Environment

  • Red Hat Enterprise Linux 9
  • VRF (Virtual Routing and Forwarding)
  • ping command from iputils package

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content