[CentOS 8.0] CLI로 Static IP 설정 방법


[CentOS 8.0] CLI로 Static IP 설정 방법

CLI로 Static IP 설정 방법 1. IP 설정 전 기본적으로 할당된 IP 확인 IP 설정 전 IP가 기본적으로 "192.168.111.128/24"로 자동 세팅되어 있음 기본적으로 DHCP를 이용하여 IP를 자동으로 할당받기 때문에 초기 세팅이 없어도 할당받은 IP가 있음 2. IP를 관리자가 원하는 IP로 설정 명령어 [root@localhost ~]# cd /etc/sysconfig/network-scripts/ [root@localhost network-scripts]# ls ifcfg-ens160 [root@localhost network-scripts]# gedit ifcfg-ens160 파일 수정 전에 IP를 "dhcp"로 할당받음 "gedit"명령어를 이용하여 "ifcfg-ens160 "파일을 수정함 명령어 BOOTPROTO="none" IPADDR="192.168.111.100" NETMASK="255.255.255.0" GATEWAY="192.168.1...


#CentOSCLI로IP설정 #CentOSIP설정 #CentOS명령어로IP설정 #리눅스CLI로IP설정 #리눅스IP설정 #리눅스명령어로IP설정

원문링크 : [CentOS 8.0] CLI로 Static IP 설정 방법