[Linux] OS별 network 재시작 방법
페이지 정보

본문
CentOS 6/ RHEL7/
service network restart
CentOS 8
$sudo nmcli networking off
$sudo nmcli networking on
또는
$sudo systemctl restart NetworkManager.service
Ubuntu 14
How to restart network in Ubuntu Server:
- /etc/init.d/networking restart script based command.
- service restart networking – Use service to run a System V init script such as networking.
- systemctl restart networking – Restart networking for the latest version of Ubuntu server.
Ubuntu 18 / 20 / 22 IP설정
/etc/netplan/00-installer-config.yaml 파일 수정
$ sudo netplan apply
Almalinux
#nmtui
https://linuxconfig.org/how-to-configure-static-ip-address-on-almalinux
debian 9
파일
sudo nano /etc/network/interfaces
수정
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
재 시작
sudo systemctl restart networking
추천0 비추천0
- 이전글[Centos7] Apache SSL 인증서 비밀번호 검증 없애기 26.06.24
- 다음글웹 서버의 정보 숨기기 (apache) 25.03.25
댓글목록
등록된 댓글이 없습니다.