내맘대로긍정이 알려주는
Oracle 23ai 신기능
무료 세미나 발표자료
다운로드
trending_flat
OS환경 : Oracle Linux 7.6 (64bit)
에러 : Failed to start LSB: Bring up/down net
ifconfig 시 network 정보가 나오지 않아서 network를 재기동 하려할때 발생한 메세지
현재 네트워크 상태 확인
1
2
3
4
5
6
7
8
9
|
# ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 21 bytes 2185 (2.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 21 bytes 2185 (2.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|
lo(loopback)만 있고 public network가 나오지 않음
network 기동
1
2
|
# systemctl start network
Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
|
systemctl status network.service 명령을 사용하라고 나옴
systemctl status network.service 명령 사용해서 상태확인
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# systemctl status network.service
?? network.service - LSB: Bring up/down networking
Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2022-02-14 14:53:27 KST; 8s ago
Docs: man:systemd-sysv-generator(8)
Process: 10158 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)
Feb 14 14:53:27 oel19db1 network[10158]: RTNETLINK answers: File exists
Feb 14 14:53:27 oel19db1 network[10158]: RTNETLINK answers: File exists
Feb 14 14:53:27 oel19db1 network[10158]: RTNETLINK answers: File exists
Feb 14 14:53:27 oel19db1 network[10158]: RTNETLINK answers: File exists
Feb 14 14:53:27 oel19db1 network[10158]: RTNETLINK answers: File exists
Feb 14 14:53:27 oel19db1 network[10158]: RTNETLINK answers: File exists
Feb 14 14:53:27 oel19db1 systemd[1]: network.service: control process exite...=1
Feb 14 14:53:27 oel19db1 systemd[1]: Failed to start LSB: Bring up/down net...g.
Feb 14 14:53:27 oel19db1 systemd[1]: Unit network.service entered failed state.
Feb 14 14:53:27 oel19db1 systemd[1]: network.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
|
에러 발생
해결 방법 : NetworkManager stop 후 disable 후 network 재기동
기존 이더넷 값 확인
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# cd /etc/sysconfig/network-scripts/
# ls -al ifcfg-*
-rw-r--r-- 1 root root 350 Mar 4 2020 ifcfg-ens32
-rw-r--r-- 1 root root 199 Mar 4 2020 ifcfg-ens35
-rw-r--r--. 1 root root 254 Aug 24 2018 ifcfg-lo
# cat ifcfg-ens32
HWADDR=00:0C:29:D3:6D:16
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens32
DEVICE=ens32
ONBOOT=yes
IPADDR=192.168.137.10
PREFIX=24
GATEWAY=192.168.137.2
DNS1=168.126.63.1
IPV6_PRIVACY=no
# cat ifcfg-ens35
HWADDR=00:0C:29:D3:6D:20
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
IPADDR=10.10.10.10
PREFIX=24
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME=ens35
ONBOOT=yes
DEVICE=ens35
|
모두 정상
NetworkManager 정지
1
|
# systemctl stop NetworkManager
|
NetworkManager 비활성화
1
|
# systemctl disable NetworkManag
|
network 재기동
1
|
# systemctl restart network
|
network 상태 확인
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# ifconfig
ens32: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.137.10 netmask 255.255.255.0 broadcast 192.168.137.255
inet6 fe80::20c:29ff:fed3:6d16 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:d3:6d:16 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 13 bytes 946 (946.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ens35: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.10.10.10 netmask 255.255.255.0 broadcast 10.10.10.255
inet6 fe80::20c:29ff:fed3:6d20 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:d3:6d:20 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 15 bytes 1070 (1.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 21 bytes 2185 (2.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 21 bytes 2185 (2.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|
정상화됨
*다시 NetworkManager을 enable하고 reboot 하면 network 가 또 사라지기때문에 disable 상태 유지
원인 : NetworkManager 문제로 보임
현재 정확한 원인은 알수없음
'Linux, Unix > Trouble Shooting' 카테고리의 다른 글
Oracle Linux 8 설치 중 An unknown error has occurred (0) | 2024.02.23 |
---|---|
Entering emergency mode. Exit the shell to continue. (2) | 2024.01.18 |
E297: Write error in swap file (0) | 2021.06.09 |
This system is not registered with an entitlement server. You can use subscription-manager to register. (0) | 2020.08.21 |
Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle (0) | 2020.08.21 |