cd /etc/sysconfig/network-scripts로 들어간다.ls명령어를 실행하여 이더넷 카드 이름 확인
vi ifcfg-이름으로 들어가 설정 바꾸기 (vi /etc/sysconfig/network-scripts/ifcfg-이름으로 바로 들어가도 상관없음)
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
IPADDR=11.11.11.16
NETMASK=255.255.255.0
GATEWAY=11.11.11.1
DNS1=168.126.63.1
DNS2=168.126.63.2
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
항목 설명 (출처:https://wookoa.tistory.com/189)

[root@localhost network-scripts]# systemctl restart network[root@localhost network-scripts]# service network restart[root@localhost ~]# ping (ip주소 작성)[root@localhost ~]# ifconfig
ip 고정이 완료되었다면 Putty로 원격 접속한다.


출처: