# ifconfig hme0 unplumb --停止網卡
# ifconfig hme0 plumb --起用網卡
# ifconfig hme0 inet 192.168.1.1 netmask 255.255.255.0 up --添加ip、子網掩碼
# vi /etc/defaultrouter ---添加網關
# echo "myhost" > /etc/nodename --- 添加主機名
#echo "domain domain.com" > /etc/resolv.conf ---設置域名,可免
#echo "nameserver 218.218.218.218" >> /etc/resolv.conf ---DNS的IP
# vi /etc/nsswitch.conf 更改 hosts:file dns ----設置查詢方式