在redhat中,系統網路裝置的配置檔案儲存在「/etc/sysconfig/network-scripts」目錄下,ifcfg-eth0包含第一塊網絡卡的配置資訊,ifcfg-
eth1包含第二塊網絡卡的配置資訊。
下面是「/etc/sysconfig/network-scripts/ifcfg-eth0」檔案的示例:
device=eth0
ipaddr=192.168.1.66 //ip
netmask=255.255.255.0 //子網掩碼
network=x.x.x.x
netmask=255.255.255.0 //閘道器
broadcast=x.x.x.x
onboot=yes
bootproto=[none|static|bootp|dhcp](引導時不使用協議|靜態分配|bootp協議|dhcp協議)
userctl=no
生效:#service network restart重新啟動一下網路服務
生效
redhat 修改網絡卡資訊
redhat5 指令 setup redhat7指令 nmtui 檢視網絡卡 ethtool p eth0 檢視網線連線狀態 ethtool eth0 或 ifconfig a 1.配置檔案 etc sysconfig network scripts ifcfg etho 網絡卡型別 type et...
redhat網絡卡設定
在終端中輸入 vi etc sysconfig network scripts ifcfg eth0 編輯完後,儲存退出。重啟網路服務。service network restart或 etc init.d network restart ping閘道器,ping外網進行測試。都能ping通表示網路...
RedHat 6 VMware轉殖後網絡卡修改方法
通常為了節省時間,在vmware中安裝一套linux後,會直接轉殖乙份出來使用。但在轉殖redhat 6後,會發現網絡卡名稱發生變化,比如eth0會變為eth1,下面介紹下轉殖後的redhat 6,如何修改主機名 ip位址和網絡卡名稱。修改主機名 共2步 hostname amto02 vi etc...