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
    
  • How do I automate IPv6 configuration to comply with security polices (like Center for Internet Security - CIS) with Security Content Automation Protocol (SCAP)?

    • Ensure IPv6 is disabled through kernel boot parameter
    • Disable IPv6 Addressing on All IPv6 Interfaces
    • Disable IPv6 Addressing on IPv6 Interfaces by Default
    • Disable IPv6 Networking Support Automatic Loading

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 4
  • IPv6 networking

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