본문 바로가기
시스템운영

network IP 설정

by 보이드메인 2020. 3. 18.

network IP 

 
vi /etc/network/interfaces

dhcp

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp

static

# The primary network interface
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.153.131
netmask 255.255.255.0
gateway 192.168.153.2
dns-nameservers 192.168.153.2

network restart

sudo service networking restart

ernetworking restart

service networking restart 다른 방법

$ sudo service networking restart
 
stop: Job failed while stopping
start: Job is already running: networking
sudo ifdown eth0 && sudo ifup eth0

 

'시스템운영' 카테고리의 다른 글

top 명령  (0) 2020.04.23
인터넷 연결이 확실치 않음(wifi/LAN) - 해결하기  (0) 2020.04.22
망분리  (0) 2020.03.18
IP 설정하기  (0) 2020.03.17
[ UNIX/LINUX ] Shutdown  (0) 2016.07.12

댓글