고정 IP 설정할 장치명이 eth0 인 경우
/etc/network/interfaces 파일에 다음과 같이 변경한다.
(아이피를 192.168.10.10으로 고정하는 경우)
|
auto eth0 iface eth0 inet static address 192.168.10.10 netmask 255.255.255.0 gateway 192.168.10.1 dns-nameservers 8.8.8.8 8.8.4.4 |
바로 적용하려면
# sudo systemctl restart networking.service
'Ubuntu Linux' 카테고리의 다른 글
| Ubuntu 22.04 LTS 에 Mongo DB 설치하기 (0) | 2023.05.22 |
|---|---|
| Permission Denied while opening TCP Server on UBUNTU (0) | 2023.03.29 |
| 인터넷 공유 (0) | 2020.11.12 |
| Locale 변경하기 (0) | 2020.10.23 |
| 타임존 설정 (0) | 2020.10.23 |


