문서의 이전 판입니다!


우분투 고정 IP 설정하기

/etc/network/interfaces 파일을 수정하면 된다.

sudo nano /etc/network/interfaces

있던 설정은 #을 붙여 주석처리

# auto eth0
# iface eth0 inet dhcp

다음과 같이 추가 혹은 입력…

auto eth0

iface eth0 inet static
address 192.168.0.6
netmask 255.255.255.0
gateway 192.168.0.1

dns-nameservers 168.126.63.1 168.126.63.2 8.8.8.8 8.8.4.4

물론 게이트웨이나 어드레스는 자신의 것으로 맞춰서 입력한다. 마지막 줄처럼 DNS도 설정해줘야 한다.

재시작

  sudo reboot

역링크