Putty串連VMware RedHat Linux 9

來源:互聯網
上載者:User

一、讓Linux上網:

Red Hat 9裝在虛擬機器VMware上之後,串連網路是出現問題

Determining IP information for eth0... failed; no link present. Check cable?

 這個問題,搞了很長時間,一直以為是自己的設定沒設對,

最後發現是RedHat的一個bug,考,鬱悶。解決方案:

到/etc/sysconfig/network-scripts/ifcfg-eth

/etc/sysconfig/networking/devices/ifcfg-eth

 其中表示Ethernet adapter的標識數字,一般為0。

當為零的時候,

就是 /etc/sysconfig/network-scripts/ifcfg-eth0

/etc/sysconfig/networking/devices/ifcfg-eth0

這兩個檔案中加入 check_link_down () { return 1; }

另外如果存在/etc/sysconfig/networking/profiles/default/ifcfg-eth0 檔案,

則同樣在其中加入這一段東西即可,然後重啟系統。

不行的話再手動設定下DNS 如主DNS:192.168.1.1

二、配置ifconfig

網路連接如果選擇NAT,在windows中找到VMware8的ip段,將Linux的ip設定為同一網段。

命令:ifconfig eth0 192.168.1.21 netmask 255.255.255.0 up

三、關閉防火牆

chkconfig iptables off   關閉防火牆 重啟即可。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.