본문 바로가기
IT/Tips

Ubuntu Server IP 설정

by Joe! 2018. 10. 3.
반응형

# sudo vi /etc/network/interfaces

 

 auto lo

iface lo inet loopback

 

auto eth0

iface eth0 inet static

address 192.168.0.2

netmask 255.255.255.0

gateway 192.168.0.1

network 192.168.0.0

broadcast 192.168.0.255 

dns-nameservers 8.8.8.8 

 

 

/etc/init.d/networking restart

반응형

댓글