UNIX/ubuntu
네트워크 설정 파일 , 네트워크 서비스 재시작
99iberty
2013. 1. 8. 16:55
1. 네트워크 설정
# /etc/network/interfaces
# The primary network interface
auto eth0
iface eth0 inet static
address 서버IP
netmask 255.255.255.0
network 네트워크대역 (C클래스니까 서버IP에서 마지막만 뒤에 0)
broadcast 브로드캐스트(C클래스니까 서버IP에서 뒤에만 255)
gateway 게이트웨이IP
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers dns서버IP
2. DNS 설정
(위에서 DNS 해도 됨..)
# /etc/resolv.conf
nameserver 192.xxx.xxx.xxx
3. 네트워크 재시작
# /etc/init.d/networking restart
이건 service network restart 가 아님!