"HP Proliant DL380p Gen8"에 CentOS의 새 복사본을 설치했는데 이더넷 인터페이스에서 인터페이스가 제대로 작동하거나 완전히 멈추는 이상하고 고르지 못한 연결 문제가 발생했습니다.
다음은 일부 명령의 출력입니다.
Systemctl 상태 네트워크
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 2019-04-15 03:38:16 EDT; 3min 18s ago
Docs: man:systemd-sysv-generator(8)
Process: 6557 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)
Apr 15 03:38:14 localhost.localdomain systemd[1]: Starting LSB: Bring up/down networking...
Apr 15 03:38:15 localhost.localdomain network[6557]: Bringing up loopback interface: [ OK ]
Apr 15 03:38:15 localhost.localdomain network[6557]: Bringing up interface eno1: ERROR : [/etc/sysconfig/network-scripts/ifup-eth] Device eno1 does not seem to be present, delaying initialization.
Apr 15 03:38:15 localhost.localdomain network[6557]: [FAILED]
Apr 15 03:38:16 localhost.localdomain systemd[1]: network.service: control process exited, code=exited status=1
Apr 15 03:38:16 localhost.localdomain systemd[1]: Failed to start LSB: Bring up/down networking.
Apr 15 03:38:16 localhost.localdomain systemd[1]: Unit network.service entered failed state.
Apr 15 03:38:16 localhost.localdomain systemd[1]: network.service failed.
ifconfig-a
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 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
IP 하나
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/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_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
lspci -nn|grep 네트워크
03:00.0 Ethernet controller [0200]: Broadcom Inc. and subsidiaries NetXtreme BCM5719 Gigabit Ethernet PCIe [14e4:1657] (rev 01)
03:00.1 Ethernet controller [0200]: Broadcom Inc. and subsidiaries NetXtreme BCM5719 Gigabit Ethernet PCIe [14e4:1657] (rev 01)
03:00.2 Ethernet controller [0200]: Broadcom Inc. and subsidiaries NetXtreme BCM5719 Gigabit Ethernet PCIe [14e4:1657] (rev 01)
03:00.3 Ethernet controller [0200]: Broadcom Inc. and subsidiaries NetXtreme BCM5719 Gigabit Ethernet PCIe [14e4:1657] (rev 01)
IP 링크
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
나미크
NAME UUID TYPE DEVICE
eno1 2c3315f0-9a56-4c6f-9cab-a55e3a0f7f2d ethernet --
eno2 657324ea-5e27-4d31-a6ce-314227330869 ethernet --
eno3 6c53e522-01ce-4807-bfe1-46266cb45e29 ethernet --
eno4 e7cebe37-3d20-4e34-b951-ea5901c36a1c ethernet --
/etc/sysconfig/network-scripts/ifcfg-eno1
TYPE="Ethernet"
PROXY_METHOD="none"
BROWSER_ONLY="no"
BOOTPROTO="dhcp"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="eno1"
UUID="2c3315f0-9a56-4c6f-9cab-a55e3a0f7f2d"
DEVICE="eno1"
ONBOOT=yes
HWADDR=2c:76:8a:5d:ea:b8
nmcli 장치 상태
DEVICE TYPE STATE CONNECTION
lo loopback unmanaged --
nmcli 장치 상태
GENERAL.DEVICE: lo
GENERAL.TYPE: loopback
GENERAL.HWADDR: 00:00:00:00:00:00
GENERAL.MTU: 65536
GENERAL.STATE: 10 (unmanaged)
GENERAL.CONNECTION: --
GENERAL.CON-PATH: --
IP4.ADDRESS[1]: 127.0.0.1/8
IP4.GATEWAY: --
IP6.ADDRESS[1]: ::1/128
IP6.GATEWAY: --
lspci-vv
ctl -b 0 로그 |
로그 ctl -b 0 |
로그 ctl -b 0 |
답변1
Centos는 설치 중에 수동으로 활성화하지 않는 한 일반적으로 네트워킹을 비활성화합니다. 물리적 네트워크 링크가 제대로 연결되어 있으면 ip link
명령을 사용하여 링크를 확인할 수 있습니다. 다음 경로에 있는 각 인터페이스 구성에서 ONBOOT=no
행을 설정할 수 있습니다.ONBOOT=yes
/etc/sysconfig/network-scripts/ifcfg-xxxx
nmcli c
최신 centos 7.x인 경우 다음 명령을 입력하여 더 많은 정보를 얻을 수 있습니다.
답변2
인터페이스 파일 이름을 바꿉니다.
mv ifcfg-en01 ifcfg-eno1