시간 자동설정
[root@localhost ~]# rdate -s time.bora.net
[root@localhost ~]# nmtui
시스템 재시작
[root@localhost ~]# systemctl restart network
[root@localhost ~]# ifdown ens32
장치 'ens32'의 연결이 성공적으로 해제되었습니다.
[root@localhost ~]# ifup ens32
연결이 성공적으로 활성화되었습니다 (D-Bus 활성 경로: /org/freedesktop/NetworkManager/ActiveConnection/4)
[root@localhost ~]#
[root@localhost ~]# nslookup
> server
Default server: 192.168.111.2
Address: 192.168.111.2#53
> www.naver.com
Server: 192.168.111.2
Address: 192.168.111.2#53
Non-authoritative answer:
www.naver.com canonical name = www.naver.com.nheos.com.
Name: www.naver.com.nheos.com
Address: 202.179.177.22
Name: www.naver.com.nheos.com
Address: 202.179.177.21
> exit
=== ping 네트워크가 정상적인지 확인 , 그러나 네이버는 안된다.
[root@localhost ~]# ping www.yahoo.com
[root@localhost ~]# cat /etc/sysconfig/network
# Created by anaconda
[root@localhost ~]#
[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-ens32
[root@localhost ~]# systemctl restart network
[root@localhost ~]# ping -c 3 www.yahoo.com
[root@localhost ~]# cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 192.168.111.2
[root@localhost ~]#
[root@localhost ~]# vi /etc/resolv.conf
# Generated by NetworkManager
nameserver 192.168.111.2
~
=>== DNS 서버 ,만약 DNS 서버가 없으면
== KT 에서 제공하는 nameserver 168.126.63.1 를 사용
# Generated by NetworkManager
nameserver 168.126.63.1
=>일시적인 변경임 영속적인 변경은
=>[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-ens32 로 변경
[root@localhost ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
[root@localhost ~]# cat /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
#SELINUX=enforcing
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
댓글 ( 4)
댓글 남기기