우분투 12.10] 네트워크 정보 설정
네트워크 설정 파일을 다음과 같이 변경한다.
hadoop@ubuntuA:~$ cat /etc/network/interfaces
auto lo
auto eth0
iface lo inet loopback
iface eth0 inet static
address 172.16.10.10
netmask 255.255.255.0
network 172.16.10.0
broadcast 172.16.10.255
gateway 172.16.10.254
네트워크 재시작
citylock@ubuntuA:/etc/network$ sudo /etc/init.d/networking restart
* Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
* Reconfiguring network interfaces... ssh stop/waiting
ssh start/running, process 2862
[ OK ]
네임서버(Name server) 설정
citylock@ubuntuA:/etc$ sudo vi resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
nameserver 8.8.8.8
hosts 파일 수정 (/etc/hosts)
hadoop@ubuntuA:~$ cat /etc/hosts
127.0.0.1 localhost
172.16.10.10 master
172.16.10.11 slave01
172.16.10.12 slave02
댓글 없음:
댓글 쓰기