How do I disable or enable the IPv6 protocol in Red Hat Enterprise Linux?

Solution Verified - Updated -

Issue

  • How do I disable or enable the IPv6 protocol in Red Hat Enterprise Linux?
  • When I attempt to disable IPv6 in RHEL5, IPv4 does not connect. Had to re-enable IPv6 via console commands to connect to network.
  • Why do I see errors when try to change IPv6 kernel parameters?
  # sysctl -p
  error: "net.ipv6.conf.default.accept_redirects" is an unknown key
  error: "net.ipv6.conf.default.accept_ra" is an unknown key
  error: "net.ipv6.conf.all.disable_ipv6" is an unknown key
  error: "net.ipv6.conf.default.disable_ipv6" is an unknown key

Environment

  • Red Hat Enterprise Linux 4
  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.