sudo ifconfig eth0 10.0.0.100 netmask 255.255.255.0
sudo vi /etc/network/interfaces
# 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 em1
iface em1 inet static
address 10.10.10.57
netmask 255.255.255.0
gateway 10.10.10.1
아이피 바꾸고 나서 :wq 눌러준다
sudo ifdown em1
sudo ifup em1
댓글
댓글 쓰기