ping fails with 'setsockopt(SO_BINDTODEVICE): Operation not permitted' when 'Interface' option is used

Solution Verified - Updated -


  • ping fails with setsockopt(SO_BINDTODEVICE): Operation not permitted when -I option is used
  • ping and ping6 command is not working with interface name


  • Red Hat Enterprise Linux 8.6 and later
  • iputils-20180629-8.el8 and later
  • ping or ping6 command

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