.修改/etc/sysconfig/network 相應網卡,追加:
| 代碼如下 |
複製代碼 |
NETWORKING_IPV6=no |
2.修改/etc/hosts,把ipv6的那句本地主機名稱解析的也注釋掉:
| 代碼如下 |
複製代碼 |
#::1 localhost localhost6 localhost6.localdomain6 |
3.建立檔案/etc/modprobe.d/ipv6off.conf(名字隨便起)
註:RHEL6.0之後沒有了/etc/modprobe.conf這個檔案
| 代碼如下 |
複製代碼 |
alias net-pf-10 off options ipv6 disable=1 |
4. 重啟系統,然後確認:
| 代碼如下 |
複製代碼 |
[root@test ~]# lsmod | grep -i ipv6 [root@test ~]# ifconfig | grep -i inet6
|
如果上述2個命令執行的結果沒有任何顯示,那麼說明ipv6已經被完全禁止了。
其它:
在不載入ipv6模組的方法裡,有人會有類似這樣的設定方法:
| 代碼如下 |
複製代碼 |
alias net-pf-10 off alias ipv6 off options ipv6 disable=1
|
雖然這樣在系統重啟後,ipv6的確沒被載入,但是因為第二句,在有的版本的系統裡,當我們重啟網路的時候,會出現錯誤:FATAL: Module off not found.
RedHat 5.x
To disable IPv6 in a virtual machine running RedHat 5.x:
1.Log in as root or superuser. www.111cn.net
2.If the /etc/sysconfig/network file contains the line NETWORKING_IPV6=yes, change the line to:
NETWORKING_IPV6=no
3.In the file /etc/modprobe.conf, add this line:
options ipv6 disable=1
4.Save the file and reboot the system.
After you disable IPv6, you should be able to install and configure VMware Tools successfully.