Centos網絡卡配置

2021-06-16 05:55:30 字數 595 閱讀 4304

安裝完成後,在esxi下,如果網絡卡型別為虛擬,則centos5.5無法使用網絡卡。

解決方法:

1、新增網絡卡,e1000。

2、ifconfig-a,檢視網絡卡資訊。

3、重啟網路服務,restart network service。

4、修改 /etc/sysconfig/network-scripts/目錄下的網絡卡配置指令碼。

具體內容:

device=eth0

bootproto=static                   #原來為dhcp,static表示靜態分配ip位址

ipaddr=10.0.3.199                   #10.0.3.199為修改後的ip位址

hwaddr=00:0c:29:3b:71:98

netmask=255.255.255.0

gateway=192.168.1.1

onboot=yes

5、儲存,退出。

6、重啟網路服務,ifconfig檢視。

補充:dns內容在/etc/resolv.conf中。

另外,可以直接使用setup命令在tui下進行配置。

CentOs 配置網絡卡

首先檢視網絡卡裝置ifconfig a 看下有幾塊網絡卡裝置根據網絡卡裝置名稱在 etc sysconfig network script裡建立相對應的檔案 如 我的網絡卡是eth0則建立ifcfg eth0 vi etc sysconfig network script ifcfg eth0 修改...

CentOS網絡卡配置

centos網絡卡配置原始檔如下 device eth0 hwaddr 00 0c 29 a8 67 46 type ethernet uuid 4103d7a8 d073 4e93 ac68 e6f8496f35f0 onboot no nm controlled yes bootproto dh...

centos網絡卡配置

ifconfig 檢視網路資訊 網絡卡存放位置 etc sysconfig network scripts 網絡卡配置資訊 type ethernet 網路型別 乙太網 bootproto static 獲取方式 static none靜態獲取 dhcp 自動獲取 defroute yes 是否設定...