개발자의 노트
반응형

 

게이트웨이 정보가 잡혀있지 않아서 외부로 인터넷 연결이 안되는 리눅스 서버


# vi /etc/sysconfig/network-scripts/ifcfg-eth0 

BOOTPROTO=static  <= static 으로

GATEWAY=192.168.0.1 추가하고 저장


# vi /etc/resolv.conf 에 dns 서버 설정

nameserver 168.126.63.1

nameserver 168.126.63.2 


# service network restart

profile

개발자의 노트

@곽코딩

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!