본문 바로가기
IT/리눅스

리눅스 nmcli 네트워크 설정

by JGSHIN 2025. 2. 15.
SMALL

2. 네트워크 설정 및 관리

🔹 네트워크 설정

  • 호스트네임 변경

hostnamectl set-hostname myserver.example.com

  • 네트워크 인터페이스 설정 (NMCLI 활용)

nmcli connection modify eth0 ipv4.method manual

nmcli connection modify eth0 ipv4.address '192.168.1.100/24'

nmcli connection modify eth0 ipv4.gateway '192.168.1.1'

nmcli connection modify eth0 ipv4.dns '8.8.8.8' nmcli connection up eth0

 

LIST
📧 이메일 문의
by @ 2025 JGSHIN