
문제:
CentOS7을 VMWare 가상 머신에 설치했는데 갑자기 연결할 수 없는 것으로 나타났습니다. 시스템에 들어가서 ifconfig 명령을 사용하여 네트워크 장치를 확인했는데 외부 네트워크가 없는 것을 발견했습니다. 카드.
(추천 튜토리얼: centos tutorial)
다음과 같이
[root@localhost ~]# 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 12 bytes 1068 (1.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 12 bytes 1068 (1.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:f6:af:41 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0네트워크 카드를 다시 시작해 보세요. 결과는 오류였습니다! 오류 메시지는 다음과 같습니다:
[root@localhost ~]# systemctl status network
● 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 2020-09-28 09:59:00 CST; 9s ago
Docs: man:systemd-sysv-generator(8)
Process: 13344 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)
Sep 28 09:59:00 localhost.localdomain network[13344]: RTNETLINK answers: File...
Sep 28 09:59:00 localhost.localdomain network[13344]: RTNETLINK answers: File...
Sep 28 09:59:00 localhost.localdomain network[13344]: RTNETLINK answers: File...
Sep 28 09:59:00 localhost.localdomain network[13344]: RTNETLINK answers: File...
Sep 28 09:59:00 localhost.localdomain network[13344]: RTNETLINK answers: File...
Sep 28 09:59:00 localhost.localdomain network[13344]: RTNETLINK answers: File...
Sep 28 09:59:00 localhost.localdomain systemd[1]: network.service: control pr...
Sep 28 09:59:00 localhost.localdomain systemd[1]: Failed to start LSB: Bring ...
Sep 28 09:59:00 localhost.localdomain systemd[1]: Unit network.service entere...
Sep 28 09:59:00 localhost.localdomain systemd[1]: network.service failed.
Hint: Some lines were ellipsized, use -l to show in full.이 현상의 원인은 일반적으로 시스템의 NetworkManager 관리 제품군에 문제가 있기 때문입니다
Sep 28 09:59:00 localhost.localdomain systemd[1]: Failed to start LSB: Bring ...
그래서 이 제품군의 서비스를 중지해야 합니다
[root@localhost ~]# systemctl stop NetworkManager
그런 다음 네트워크 카드를 다시 시작해 보세요.
[root@localhost ~]# systemctl restart network.service
오류가 보고되지 않았는데, 무슨 일인가요? 네트워크 장치를 확인했는데
[root@localhost ~]# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.100.15 netmask 255.255.255.0 broadcast 192.168.100.255
inet6 fe80::20c:29ff:fe35:e8d7 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:35:e8:d7 txqueuelen 1000 (Ethernet)
RX packets 9 bytes 626 (626.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 32 bytes 4309 (4.2 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 12 bytes 1068 (1.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 12 bytes 1068 (1.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:f6:af:41 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0외부 네트워크 카드가 있습니다. NetworkManager가 다시 시작된 후 다시 시작되지 않도록 하기 위해
systemctl disable NetworkManager
완료되었습니다!
위 내용은 Centos7에서 인터넷에 접속할 수 없습니다. 네트워크 카드를 다시 시작하고 오류를 보고하면 어떻게 해야 합니까?의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!