반응형
- 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 - 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
반응형
'IT > Linux' 카테고리의 다른 글
[NextCloud] [Error] Internal Server Error 발생 시 (18) | 2024.10.12 |
---|---|
sh 명령어와 ./ 의 차이 (14) | 2024.09.26 |
우분투에 Odoo 설치 (15) | 2024.08.23 |
wheel그룹/권한 (13) | 2024.07.03 |
sudo / su / visudo 관련 (15) | 2024.06.28 |
댓글