问题遇到的现象和发生背景
" ifcfg-eno16777736" 19L, 358C LuIr itten
[rootChadoop2 network -scr ipts]# sudo service network restart
Restarting network (via systemctl): Job for network . service failed because the control process exited with error code. See' systemctl status network . service "
nd“ journalctl -xe" for details .
CFAILED ]
[rootChadoop2 network scr ipts # systemctl status network . service
。network . service - LSB: Br ing up/down network ing
Loaded: loaded (/etc/rc .d/ init . d/network)
Active: failed (Result: exit code) since Tue 2021-12 07 14:01:39 EST: 4min 29s ago
Docs: man isys temd -sysu-generator8
Process: 2517 ExecStart=/etc/rc . d/ init . d/network start (code=exited, status=1/FA ILURE)
Dec 07 14:01 :39 hadoop2 network[2517]: RTNETLINK answers: File exists
Dec
0714:01:39 hadoop2 network [2517]: RTNETLINK answers: File exists
Dec 07 14:01:39 hadoop2 network[2517]:
RITNETLINK answers: File exists
Dec 07 14:01 :39 hadoop2 network [2517]: RTNETL INK answers: File exists
Dec 07 14:01:39 hadoop2 network[25171: RITNETLINK answers: File exists
Dec 07 14:01:39 hadoop2 network [2517]: RTNETLINK answers: File exists
Dec 07 14:01 :39 hadoop2 systemd[1]: network service: control process exited, code=exited status-1
Dec
0714:01:39 hadoop2 systemdL1]: Failed to start LSB: Bring up/dowm network ing .
07 14:01:39 hadoop2 systemd[1]: Unit network 。service entered failed state .
Dec 07 14:01:39 hadoop2 systemd[1]: network . seruice fai led .
[rootChadoop2 network scr ipts ]#
集群开始还好好的,今天不知道为什么,突然不行了
本来以为重启网卡就好了,没想到重启网卡也报错了,在网上找了些方法,网卡配置也没错,如下:
TYPE -Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPU4 FAILURE FATAL =no
IPU6 IN IT=yes
IPU6 AUTDCONF=yes
IPU6_ DEFROUTE=yes
IPU6_ PEERDNS=yes
IPU6_ PEERROUTES=yes
IPU6_ FA ILURE FATAL=nO
NAME=eno16777736
UUID=08c4f de5 -ff 4a -48c9 -8d6a -de64bZd46763
DEUICE=eno16777736
IPADDR=192.168.126.137
#NETWASK-255.255.255.0
#GATEWAY=192.168.126.1
ONBOOT=yes
我又输入了 ip addr 结果如下:
"ifcf g -eno16777736" 19L,358C Lur itten
[rootQhadoop2 network -scripts]# ip addr
1: lo: <LOOPBACK, UP LOWER UP> mtuu 65536 qd isc noqueue state UNKNOWN
1 ink/ loopback 00 :00 : 00 :00:00:00 brd 00 :00 :00 :00 : 00:00
inet 127 .0.0.1/8 scope host lo
valid lft forever preferred_ Ift forever
inet6 : :1/128 scope host
valid_ lft forever preferred_ lft forever
2: eno16777736: <NO-CARR IER , BROADCAST, MLTICAST,UP> mtu 1500 qdisc pf ifo_ fast state DOWN qlen 1000
link/ether 00 :8c:29:7b:4e:ab brd ff:ff :ff :ff:ff :ff
[rootChadoop2 network -scr ipts ]#