Redhat EL/Fedora
参考:http://www.sysdigg.com/how-to-disable-ipv6-in-rhel-5-linux
In Fedora or RHEL5 Linux modules are loaded using /etc/modprobe.conf file, open the modprobe.conf file using your friendly editor vi or pico and add these line to disable autloading of IPv6 module
alias net-pf-10 off alias ipv6 off |
2. Next in your global network configuration file edit the IPv6 option using your root login session:
bosdev # vi /etc/sysconfig/network |
Change following option to NO:
NETWORKING_IPV6=yes to NETWORKING_IPV6=no |
3. To turn off the IPv6 tables immediately run Linux service command to disable the IPv6 service
bosdev# service ip6tables stop |
4. For permanently disabling the ip6tables using chkconfig command so it wouldn’t start during next Linux reboot
bosdev# chkconfig ip6tables off |
Using these steps I was able to successfully turn of IPv6 on my RHEL5 Linux machine. If you want to turn off IPv6 on your RHEL 5 or Fedora machines you can disable it by following these steps.
Windows Vista/ Windows 7/ Windows 2008
参考: http://support.microsoft.com/kb/929852
To disable certain IPv6 components yourself, follow these steps:
- Click Start , type regedit in the Start Search box, and then click regedit.exe in the Programs list.
- In the User Account Control dialog box, click Continue .
- In Registry Editor, locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Tcpip6/Parameters/
- Double-click DisabledComponents to modify the DisabledComponents entry.
Note If the DisabledComponents entry is unavailable, you must create it. To do this, follow these steps:
- In the Edit menu, point to New , and then click DWORD (32-bit) Value .
- Type DisabledComponents , and then press ENTER.
- Double-click DisabledComponents .
- Type any one of the following values to configure the IPv6 protocol, and then click OK :
- Type 0 to enable all IPv6 components.
Note The value "0" is the default setting.
- Type 0xffffffff to disable all IPv6 components, except the IPv6 loopback interface. This value also configures Windows Vista to use Internet Protocol version 4 (IPv4) instead of IPv6 in prefix policies.
- Type 0x20 to use IPv4 instead of IPv6 in prefix policies.
- Type 0x10 to disable native IPv6 interfaces.
- Type 0x01 to disable all tunnel IPv6 interfaces.
- Type 0x11 to disable all IPv6 interfaces except for the IPv6 loopback interface.