Translated message

A translation of this page exists in English.

如何在 Red Hat Enterprise Linux 中禁用或启用 IPv6 协议?

Solution Verified - Updated -

Issue

  • 如何在 Red Hat Enterprise Linux 中禁用或启用 IPv6 协议?
  • 当我试图在 RHEL 5 中禁用 IPv6 时,IPv4 无法正常工作。我需要通过在控制台中运行命令来重新启用 IPv6 后,服务器才能连接到网络。
  • 为什么在更改 IPv6 内核参数时出现错误?

    # 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
    
  • 如何使用安全内容自动化协议(Content Automation Protocol,简称 SCAP) 自动配置 IPv6 以遵守安全策略(如 Center for Internet Security - CIS)?

    • 确保 IPv6 是通过内核引导参数被禁用的
    • 在所有 IPv6 接口中禁用 IPv6 寻址
    • 默认禁用 IPv6 接口上的 IPv6 寻址
    • 禁用 IPv6 网络支持自动加载

Environment

  • Red Hat Enterprise Linux (所有版本)
  • IPv6 网络

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