설정
vi /etc/network/interfaces
static IP 설정 (고정IP)
# 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
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
네트워크 재시작
sudo service networking restart
'OS > Ubuntu' 카테고리의 다른 글
ubuntu18 네트워크 인터페이스 카드 추가. (0) | 2019.11.11 |
---|---|
vim tab 설정 (0) | 2019.11.11 |
Ubuntu 14.04 싱글모드 접속 root 비밀번호 재설정. (0) | 2019.10.29 |
Ubuntu 18.04.3 LTS MySQL 설치 (0) | 2019.10.28 |
Secure CRT AWS EC2 인스턴스 Public Key(인증서) 사용하여 접속하기 (0) | 2019.10.28 |