文本模式下修改LINUX系统IP
    #vi /etc/sysconfig/network-scripts/ifcfg-eth0

        DEVICE=eth0
      BOOTPROTO=static
    HWADDR= ;网卡的物理地址,通常检测到的网卡不用输入了
    ONBOOT=yes
    IPADDR=192.168.0.1
      NETMASK=255.255.255.0
      NETWORK=192.168.1.0
      BROADCAST=192.168.1.255
      GATEWAY= ;输入网关
    保存退出
    
    #service network restart

网卡eth0    IP修改为 102.168.0.1   
ifconfig eth0 102.168.0.1 netmask 255.255.255.0
----------------------------------------------------------------------
网关修改为 102.168.0.254
route add default gw 102.168.0.254
----------------------------------------------------------------------
修改dns
echo "nameserver 202.202.202.20 ">> /etc/resolv.conf