linux ip dns gateway 设置
1. ip设置
ifconfig eth0 192.168.14.10 netmask 255.255.255.0
2. gateway
route add default gw 192.168.1.1
或者
vi /etc/sysconfig/network
GATEWAY=192.168.0.1
3. dns
修改/etc/resolv.conf(修改后可即时生效)
4. hostname
vi /etc/sysconfig/network
HOSTNAME=hos