> Hello World !!!

     

@syaku

리눅스 우분투 9 네트워크 아이피(IP) 변경 : Linux Ubuntu

written by Seok Kyun. Choi. 최석균

posted by Seok Kyun. Choi. 최석균
http://www.cyworld.com/syaku
http://syaku.tistory.com


아이피 확인
$ ifconfig eth0

아이피 수정
$ sudo vi /etc/network/interface

이미 유동아이피로 설정되어 있다.
auto eth0
iface eth0 inet dhcp

고정아이피로 바꾸기 위해 아래와 같이 수정하자.
dhcp (유동) static (고정)

# auto eth0
# iface eth0 inet dhcp

auto eth0
iface eth0 inet static
  address 192.168.0.100
  netmask 255.255.255.0
  gateway 192.168.0.1

vi 편집기에서 편집은 i 키 , 편집종료는 esc 키 , 저장종료는 :wq 이다.

DNS 설정은 다른 파일에서 수정해야한다.

$ sudo vi /etc/resolv.conf

아래와 같이 네임서버를 등록하자.

nameserver 168.126.63.1
nameserver 168.126.63.2

모든 수정이 완료되면, 다음 명령어로 네트워크를 재시작하자.

$ sudo /etc/init.d/networking restart

 http://syaku.tistory.com