+1-1+1-1+1-1+1-1...
VirtualBox > VM IP 주소, DNS 고정이 안될 경우 조치 방법 본문
728x90
네트워크 서비스를 재시작하거나, 리부팅하면 설정된 /etc/sysconfig/network-script/ifcfg-XX 파일과 /etc/resolve.conf 파일이 변경되는 증상이 나타남
resolv.conf 파일에 변경된 내용을 보니 'generated by Network Mangger'라는 문구가 박혀있어서 해당 항목을 찾아보니
'자동으로 최대 사용가능한 연결에 네트워크 연결을 스위치 하는 데몬' 이라고 나옴
해당 데몬이 실행 되지 않도록 아래 명령 실행 후 증상 해소
Network Manager 데몬 러닝 상태 확인
[root@localhost ~]# systemctl status NetworkManager
● NetworkManager.service - Network Manager
Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
Active: active (running) since 수 2021-01-13 17:41:37 KST; 2 days ago
Docs: man:NetworkManager(8)
Main PID: 619 (NetworkManager)
CGroup: /system.slice/NetworkManager.service
└─619 /usr/sbin/NetworkManager --no-daemon
1월 13 17:41:53 localhost.localdomain NetworkManager[619]: <info> [1610527313.5105] device (enp0s8): state change: prepare -> config (reason 'none') [40 50 0]
1월 13 17:41:53 localhost.localdomain NetworkManager[619]: <info> [1610527313.5283] device (enp0s8): state change: config -> ip-config (reason 'none') [50 70 0]
1월 13 17:41:53 localhost.localdomain NetworkManager[619]: <info> [1610527313.5349] device (enp0s8): state change: ip-config -> ip-check (reason 'none') [70 80 0]
1월 13 17:41:53 localhost.localdomain NetworkManager[619]: <info> [1610527313.5382] device (enp0s8): state change: ip-check -> secondaries (reason 'none...80 90 0]
1월 13 17:41:53 localhost.localdomain NetworkManager[619]: <info> [1610527313.5384] device (enp0s8): state change: secondaries -> activated (reason 'non...0 100 0]
1월 13 17:41:53 localhost.localdomain NetworkManager[619]: <info> [1610527313.5428] device (enp0s8): Activation: successful, device activated.
1월 13 17:41:54 localhost.localdomain NetworkManager[619]: <info> [1610527314.1491] audit: op="connection-update" uuid="09d26343-911a-48ea-b57a-1327f3fb...success"
1월 13 17:41:54 localhost.localdomain NetworkManager[619]: <warn> [1610527314.2767] ifcfg-rh: loading "/etc/sysconfig/network-scripts/ifcfg-enp0s8" fail…atic/dhcp'
1월 13 17:41:54 localhost.localdomain NetworkManager[619]: <warn> [1610527314.3869] ifcfg-rh: loading "/etc/sysconfig/network-scripts/ifcfg-enp0s8" fail…atic/dhcp'
1월 13 17:41:54 localhost.localdomain NetworkManager[619]: <info> [1610527314.9966] audit: op="connection-update" uuid="09d26343-911a-48ea-b57a-1327f3fb...success"
Hint: Some lines were ellipsized, use -l to show in full.
데몬을 중지하고 자동 시작 서비스에서 삭제 처리
[root@localhost ~]# systemctl stop NetworkManager
[root@localhost ~]# systemctl disable NetworkManager
Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.
반응형
'Linux > Trouble Shooting' 카테고리의 다른 글
Linux - Firewalld 오류 해결 - No route to host (0) | 2021.01.13 |
---|---|
Linux OS TCP/UDP 커넥션 부하 간단 모니터링 (0) | 2021.01.13 |