CentOS6.5 네트워크 설정 및 동기화 시간 설정

2004 단어 CentOS
ifconfig eth0 192.168.136.128 #       ip     

Ctrl+Alt+F2를 통해 명령줄 인터페이스에 접속하여 계정에 로그인한 후 아래 코드를 입력하십시오
vi  /etc/sysconfig/network-scripts/ifcfg-eth0 #      ,        
ONBOOT=yes  #          
BOOTPROTO=static   #    IP  
IPADDR=192.168.136.128  #  IP  
NETMASK=255.255.255.0  #      
GATEWAY=192.168.136.2   #    
DNS1=192.168.136.2 #   DNS
IPV6INIT=no  #  IPV6

Esc 키를 누른 후 입력: wq # 저장 종료 후 다음 명령을 입력합니다.
service ip6tables stop   #  IPV6  
chkconfig ip6tables off  #  IPV6    
service yum-updatesd stop   #        ,        
chkconfig yum-updatesd off  #      ,        
service network restart  #      
ifconfig  #  IP  
#route add default gw 192.168.136.2  dev eth0 #      
yum install -y ntp #  ntp
service ntpd start #  ntpd  
chkconfig ntpd on #  ntpd     

좋은 웹페이지 즐겨찾기