본문 바로가기

Linux/_Linux Programming

리눅스 로컬 IP 설정

DHCP 이용(IP 자동으로 받음)

/etc/init.d/networking restart


수동 IP 설정

ifconfig eth0 ip netmask ip up                  // IP , 넷마스크
route add default gw ip eth0                    // 게이트웨이

ex) ifconfig eth0 165.246.xx.xxx netmask 255.255.255.0 up
route add default gw 165.246.xxx.xxx eth0

DNS 설정

vim /etc/reslov.conf

dns ip 추가