Proxmox(Debian Buster)를 실행하는 새 컴퓨터에서 네트워크에 연결하는 데 문제가 있습니다.5.11 커널. 이 코어는 내 마더보드에서 Intel I219V 이더넷 연결을 지원하는 데 필요합니다. 다음은 라우터 및 8.8.8.8에 대한 ping 시도 실패에 대한 네트워크 구성 및 로그입니다.
root@pve:~# ip addr show
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
2: enp0s31f6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UP group default qlen 1000
link/ether a8:a1:59:6a:fe:3e brd ff:ff:ff:ff:ff:ff
4: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
link/ether d2:32:44:29:bc:6e brd ff:ff:ff:ff:ff:ff
inet 192.168.42.43/24 brd 192.168.42.255 scope global vmbr0
valid_lft forever preferred_lft forever
inet6 fe80::d032:44ff:fe29:bc63/64 scope link
valid_lft forever preferred_lft forever
root@pve:~# dhcp enp0s31f6
root@pve:~# ip addr show
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
2: enp0s31f6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UP group default qlen 1000
link/ether a8:a1:59:6a:fe:3e brd ff:ff:ff:ff:ff:ff
inet 192.168.0.10/24 brd 192.168.0.255 scope global dynamic enp0s31f6
valid_lft 85711sec preferred_lft 85711sec
inet6 fe80::aaa1:59ff:fe6a:fe3e/64 scope link
valid_lft forever preferred_lft forever
4: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether d2:32:44:29:bc:6e brd ff:ff:ff:ff:ff:ff
inet 192.168.42.43/24 brd 192.168.42.255 scope global vmbr0
valid_lft forever preferred_lft forever
inet6 fe80::d032:44ff:fe29:bc63/64 scope link
valid_lft forever preferred_lft forever
root@pve:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface enp0s31f6 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.42.43/24
gateway 192.168.0.1
bridge_ports enp0s31f6
bridge_stp off
bridge_fd 0
root@pve:~# ip route
default via 192.168.0.1 dev vmbr0 onlink
192.168.0.0/24 dev enp0s31f6 proto kernel scope link src 192.168.0.10
192.168.42.0/24 dev vmbr0 proto kernel scope link src 192.168.42.43
root@pve:~# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
From 192.168.0.10 icmp_seq=1 Destination Host Unreachable
From 192.168.0.10 icmp_seq=2 Destination Host Unreachable
From 192.168.0.10 icmp_seq=3 Destination Host Unreachable
From 192.168.0.10 icmp_seq=4 Destination Host Unreachable
root@pve:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
# hangs here indefinitely...
답변1
vmbr0 인터페이스는 IP 주소와 다른 서브넷(즉, 다른 논리적 범위)에 있는 기본 게이트웨이로 구성됩니다. 게이트웨이 IP는 시스템에 다른 서브넷에 도달하는 방법을 알려주며, 게이트웨이 IP가 없으면 패킷이 현재 서브넷을 떠나지 않습니다.
예를 들어 192.168.42.0/24 서브넷에는 다음과 같은 사용 가능한 IP 주소 범위가 있습니다.
192.168.42.1 - 192.168.42.254