평소에는 openrc init을 이용해서 젠투를 실행하는데, 데비안 10 서버를 설치하다 보니 시스템을 이해하는 데 다소 어려움을 겪습니다. 서버는 결합된 네트워크 인터페이스를 생성한 다음 iscsi 루트에서 시작하는 사용자 정의 dracut initrd로 시작됩니다. 그 부분에서는 모든 것이 잘 작동합니다. 시작 시 세 개의 인터페이스와 해당 네트워크(192.168.1.0/24, 10.0.0.0/24 및 172.16.0.0/24)가 있습니다.
내 (사소한) 문제는 systemd가 다음을 제공한다는 것입니다.
# systemctl --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● networking.service loaded failed failed Raise network interfaces
이는 주로 초기화 중에 네트워크 중 하나가 활성화되었기 때문인 것 같습니다. 젠투에서는 네트워크 서비스를 제공하지 않는 인터페이스를 표시할 수 있습니다. systemd에도 비슷한 개념이 있나요? 아니면 제가 놓친 설정이 있나요? 다시 말하지만, 모든 인터페이스가 실제로 작동하고 있습니다(브리지 2개, 본드 1개). 본드와 브리지에서 로컬 인터페이스와 NICS를 잘라냈습니다.
# ip addr list
[...]
7: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP group default qlen 1000
link/ether 24:6e:96:5e:a3:9c brd ff:ff:ff:ff:ff:ff
inet 172.16.0.14/24 brd 172.16.0.255 scope global dynamic bond0
valid_lft 249300sec preferred_lft 249300sec
inet6 fe80::266e:96ff:fe5e:a39c/64 scope link
valid_lft forever preferred_lft forever
[...]
9: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 00:10:18:64:0f:3c brd ff:ff:ff:ff:ff:ff
inet 192.168.1.14/24 brd 192.168.1.255 scope global vmbr0
valid_lft forever preferred_lft forever
inet6 fe80::210:18ff:fe64:f3c/64 scope link
valid_lft forever preferred_lft forever
10: vmbr1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 00:10:18:64:0f:3e brd ff:ff:ff:ff:ff:ff
inet 10.0.0.14/24 brd 10.0.0.255 scope global vmbr1
valid_lft forever preferred_lft forever
inet6 fe80::210:18ff:fe64:f3e/64 scope link
valid_lft forever preferred_lft forever
# ping -I vmbr0 -c 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) from 192.168.1.14 vmbr0: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=57 time=68.4 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=57 time=114 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=57 time=61.6 ms
어떤 아이디어라도 미리 감사드립니다.
[편집에 필요한 추가정보]
# systemctl status networking.service
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2021-05-04 08:47:07 CDT; 4h 13min ago
Docs: man:interfaces(5)
Main PID: 1586 (code=exited, status=1/FAILURE)
May 04 08:47:04 proxmox systemd[1]: Starting Raise network interfaces...
May 04 08:47:04 proxmox ifup[1586]: Waiting for a max of 0 seconds for # no delay before a port becomes available to bec
May 04 08:47:05 proxmox ifup[1586]: Waiting for vmbr0 to get ready (MAXWAIT is 2 seconds).
May 04 08:47:06 proxmox ifup[1586]: Waiting for a max of 0 seconds for # no delay before a port becomes available to bec
May 04 08:47:07 proxmox ifup[1586]: Waiting for vmbr1 to get ready (MAXWAIT is 2 seconds).
May 04 08:47:07 proxmox ifup[1586]: RTNETLINK answers: File exists
May 04 08:47:07 proxmox ifup[1586]: ifup: failed to bring up vmbr1
May 04 08:47:07 proxmox systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
May 04 08:47:07 proxmox systemd[1]: networking.service: Failed with result 'exit-code'.
May 04 08:47:07 proxmox systemd[1]: Failed to start Raise network interfaces.
그리고
# journalctl -u networking.service
-- Logs begin at Tue 2021-05-04 08:46:28 CDT, end at Tue 2021-05-04 12:17:01 CDT. --
May 04 08:47:04 proxmox systemd[1]: Starting Raise network interfaces...
May 04 08:47:04 proxmox ifup[1586]: Waiting for a max of 0 seconds for # no delay before a port becomes available to bec
May 04 08:47:05 proxmox ifup[1586]: Waiting for vmbr0 to get ready (MAXWAIT is 2 seconds).
May 04 08:47:06 proxmox ifup[1586]: Waiting for a max of 0 seconds for # no delay before a port becomes available to bec
May 04 08:47:07 proxmox ifup[1586]: Waiting for vmbr1 to get ready (MAXWAIT is 2 seconds).
May 04 08:47:07 proxmox ifup[1586]: RTNETLINK answers: File exists
May 04 08:47:07 proxmox ifup[1586]: ifup: failed to bring up vmbr1
May 04 08:47:07 proxmox systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
May 04 08:47:07 proxmox systemd[1]: networking.service: Failed with result 'exit-code'.
May 04 08:47:07 proxmox systemd[1]: Failed to start Raise network interfaces.
답변1
해결되었습니다!
/etc/network/interfaces에 두 개의 게이트웨이가 정의되어 있습니다. 하나만 빼고 모두 삭제하면 오류가 수정되었습니다.
# systemctl --failed
0 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.