ip addr    #查询IP地址route    #查询路由表vi /etc/sysconfig/network-scripts/ifcfg-eno16777736    #编辑IP信息TYPE=Ethernet    #以太网类型BOOTPROTO=none    #静态模式DEFROUTE=yesPEERDNS=yesPEERROUTES=yesIPV4_FAILURE_FATAL=noIPV6INIT=yesIPV6_AUTOCONF=yesIPV6_DEFROUTE=yesIPV6_PEERDNS=yesIPV6_PEERROUTES=yesIPV6_FAILURE_FATAL=noNAME=eno16777736    #网络设备名称UUID=1cb74fee-c350-4b86-8a2a-99ac416ae9ffDEVICE=eno16777736ONBOOT=yes    #启用网络活动状态IPADDR=192.168.10.5    #IP地址    PREFIX=24    #子网掩码GATEWAY=192.168.10.10    #网关DNS1=114.114.114.114    #当前电信运营商提供的域名DNS2=8.8.8.8        #google全球域名:wq         #保存并退出ping 114.114.114.114    #测试网络联通