fc5 區域網設定方法如下
1.修改/etc/sysconfig/network-scripts/ifcfg-eth0
原內容(dhcp):
device=eth0
bootproto=dhcp
hwaddr=00:03:47:2c:d5:40
onboot=yes
type=ethernet
改為(靜態ip):
device=eth0
bootproto=static
ipaddr=192.168.8.85
hwaddr=00:03:47:2c:d5:40
onboot=yes
type=ethernet
netmask=255.255.255.0
gateway=192.168.8.1
2.設定dns
nameserver ***.***.***.***
nameserver ***.***.***.***
3.重啟網路
/etc/init.d/network restart
或service network restart
擴充套件知識 服務(service)
服務"service" 是在你開機之後就自動執行的一種程式,而且它在後台執行.
管理服務程式:ntsysv
檢查乙個服務是不是在執行: service 服務名 status
開始乙個服務: service 服務名 start
停止乙個服務: service 服務名 stop
所有服務都可在/etc/init.d/中找到,除了上面的方法,還可以用/etc/init.d/servicename start/restart/stop 來手動開啟、重啟、停止服務。
linux在vmware中的網路設定
虛擬機器版本 vmware workstation 5.5.1 主機 windows xp sp2 以下簡稱zfxp 虛擬機器 redflag linux dc server 4.1 以下簡稱zflinux 前提 zfxp能正常上網 設定過程 1 在zfxp上 本地連線 屬性 高階 internet...
Linux中基本網路設定(一)
知識結構 一 檢視網路設定 1,檢視網路介面資訊ifconfig 檢視所有活動網路介面的資訊 檢視指定網路介面資訊 ifconfig 網路介面號2,檢視主機名稱hostname hostname命令 檢視或設定當前主機名 臨時修改 hostname 或者 systemctl set hostname...
linux網路設定
size large linux ip 設定 修改ip位址 即時生效 ifconfig eth0 192.168.1.102 netmask 255.255.255.0 啟動生效 修改 etc sysconfig network scripts ifcfg eth0 加入ipaddr 192.168...