JDP 發表於 2011-9-5 15:28:09

設定網卡IP及DNS

1.設定網卡
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
IPADDR="192.168.1.10"
NETMASK="255.255.255.0"
GATEWAY="192.168.1.254"
ONBOOT="yes"
BOOTPROTO=static

2.設定DNS
vi /etc/resolv.conf
nameserver 192.168.1.254

3.重新啟動網路
service network restart
頁: [1]
查看完整版本: 設定網卡IP及DNS