Centos系统配置静态ip及网络设置
1.修改主机名称
[root@centos ~]# vim /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain
GATEWAY=192.168.17.2
2.修改网卡
[root@centos ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROT=static
IPADDR=192.168.17.128
GATEWAY=192.168.17.2
NETMASK=255.255.255.0
ONBOOT=yes
DNS1=192.168.17.2
3.重新启动网络配置
[root@centos ~]#service network restart
相关推荐
  plusz    2020-09-14  
   leonranri    2020-07-26  
   88427810    2020-05-28  
   小惠    2020-05-08  
   二两天涯    2020-04-25  
   IsanaYashiro    2020-04-08  
   pengkunstone    2020-03-06  
   starinshy    2020-03-05  
   86284851    2020-02-28  
   85206633    2020-02-24  
   hnllei    2020-02-24  
   86206132    2020-02-18  
   89236831    2020-02-01  
   hnllei    2020-01-17  
   adc00    2020-01-08  
   xinjing0    2020-01-02  
   Charliewolf    2019-12-10  
   comeonxueRong    2019-11-30  
 