[우분투] CLI 네트워크 설정

Posted by nkjok
2019. 1. 4. 08:39 OS&기타/Linux
반응형
vi /etc/network/interfaces

#DHCP
auto eth0
iface eth0 inet dhcp

#STATIC
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.2
dns-nameservers 192.168.1.2

 #서비스 재시작
service networking restart

반응형