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

Updated 2015-07-28T23:40:14+00:00

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 content preview. For full access to the Red Hat Knowledgebase, please log in.

Not a subscriber? Learn more about the benefits of Red Hat Subscriptions.