
Proxmox 서버(Debian)에서 다음과 같이 게이트웨이를 vmbr0에서 enp0s31f6으로 변경했습니다.
iface enp0s31f6 inet static
address 192.168.1.11
netmask 255.255.255.0
- address 192.168.1.1
+ gateway 192.168.1.1
auto vmbr0
iface vmbr0 inet static
address 192.168.1.10
netmask 255.255.255.0
- gateway 192.168.1.11
bridge-ports enp0s31f6
bridge-stp off
bridge-fd 0
재부팅 후 192.168.1.10이나 192.168.1.11에 ping을 보낼 수 없습니다. 왜 더 이상 연결할 수 없는지 설명해 주실 수 있나요? 브리지된 네트워크에서 gw는 vmbr0
?에 정의되어야 합니다.
처음 에 의 IP 주소가 enp0s31f6
잘못되었습니다(게이트웨이 역할을 하는 라우터인 192.168.1.1을 가리킴). 그래서 192.168.1.1에서 192.168.1.11로 변경했습니다.
답변1
enp0s31f6
인터페이스는 브리지의 포트 이므로 vmbr0
IP 주소를 할당할 수 없습니다. 또한 인터페이스에 IP 주소를 할당하려면 주소 enp0s31f6
를 변경해야 합니다 vmbr0
. 그렇지 않으면 두 인터페이스에 동일한 서브넷이 있게 됩니다.
auto enp0s31f6
iface enp0s31f6 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1
auto vmbr0
iface vmbr0 inet static
address 192.168.2.10
netmask 255.255.255.0
bridge-ports none
bridge-stp off
bridge-fd 0
그러나 브리징 네트워킹에 대한 보다 정확한 구성은 인터페이스에 IP 주소를 할당하는 것입니다 vmbr0
. 이러한 경우 인터페이스 파일은 다음과 같아야 합니다.
iface enp0s31f6 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1
bridge-ports enp0s31f6
bridge-stp off
bridge-fd 0