change network config in Centos7

علی ذوالفقار
1399/03/20 11:53:50 (860)
change config in the folowing file : /etc/sysconfig/network-scripts/ifcfg-ens160 sample :
BOOTPROTO=none                                  
TYPE=Ethernet                                   
DEFROUTE=yes                                    
IPV4_FAILURE_FATAL=no                           
NAME=ens33                                      
UUID=2d0d7be9-27ab-4c24-a776-baee01ad8d7e       
DEVICE=ens33                                    
ONBOOT=YES                                      
IPADDR=192.168.0.75                             
NETMASK=255.255.252.0                           
GATEWAY=192.168.0.30                            
restart service : service network restart
Back