1、修改 /etc/sysconfig/network-scripts/ifcfg-eth0 文件(修改ip)
例如:
DEVICE=eth0
BOOTPROTO=static
DHCPCLASS=none
HWADDR=00:0C:29:34:73:E6
ONBOOT=yes
IPADDR=192.168.88.110
GATEWAY=192.168.88.1
2、修改 /etc/resolv.conf 文件(本机dns)
例如:
nameserver 202.96.209.5
nameserver 8.8.8.8