debian, Ubuntu, LinuxMint 등 debian 계열에서 설정법
1. 설정파일을 열기
$ sudo vi /etc/network/interfaces
2. 고정 ip 설정
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 192.168.0.1
3. dhcp 설정
auto eth0
iface eth0 inet dhcp
4. network 재시작
$ sudo service networking restart
/etc/init.d/networking restart