1. 아래 사항 추가
vi /etc/sysconfig/network-scripts/ifcfg-eno1
[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-eno1
ONBOOT=yes
NM_CONTROLLED=yes
IDADDR=192.168.55.
NETMASK=255.255.255.0
GATEWAY=192.168.55.254
DNS1=
DNS2=
이렇게 아무리 설정해도 ifconfig -a 로 조회하면 고정ip가 뜨질 않아서 혼자 헤매다가
2.nmtui
[root@localhost ~]# nmtui
IPv4는 manual로 IPv6는 ignore로 설정하고
그 외 값은 다 넣어줌
그리고
[root@localhost ~]# reboot
systemctl restart network로는 해결이 안되서 그냥 reboot 했다
그랬더니 해결 완
'programming > Linux' 카테고리의 다른 글
CentOS7 설치 후 기본 설정 (0) | 2021.12.28 |
---|---|
vim 에디터 hantech 오류 colorschema (0) | 2021.12.03 |
CentOS7에 MariaDB 10.6 설치하기 (1) (0) | 2021.08.24 |
ERROR 1045 (28000): Access denied for user '-root'@'localhost' (using password: YES) (0) | 2021.07.08 |
MariaDB5.5 설치 과정 (1) root password 설정 (0) | 2021.07.08 |