設定網卡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]