The relationship and interconnection between pve and openwrt and the network in my computer

Case 1

a host

There are 4 ports, respectively eth0, eth1, eth2, and eth3.
In this case, pve has a management port. If there is no openwrt, you can directly connect the computer and the pve management port to enter the pve management interface.

Case 2

Assume that the management flavor of pve is eth0
and the bridge in openwrt is eth0 eth1 eth2
. Then the computer is connected to eth3 or the pve management port is set to eth3, then openwrt cannot access the eth3 port.

Case 3

The main route of openwrt's eth1 connection. The external network needs to access the pve port through the main route. The prerequisite is that eth1 and eth0 must be bridged, otherwise eth0 cannot be accessed from eth1.

Let pve, computer and openwrt ping each other

The management port is eth0, and the network cable of eth0 is connected to the main router. The computer is also connected to the main router or other ports of the bypass router. There is
a virtual machine in pve, which is a bypass router. This situation is ok.
Make sure to add 4 virtual devices to pve.

image.png

But when the computer is connected to a 4-port bypass router, if openwrt is turned off, the bridge will lose its function. The host's eth0 cannot communicate with other eth, so the computer cannot access the pve management port at this time.
When openwrt is closed (bridging is turned off), you can also connect to the wifi of the main router through the computer wireless network card, and then access it again and find that it can be connected again, so confirm that you are using pve from the wireless network at this time

openwrt situation

image.png

If openwrt only bridges eth0 eth1 eth2 but not eth3, when the computer is connected to eth3, openwrt in pve cannot ping the computer's local network card ip. However, when the computer network
cable is plugged into eth2, openwrt can ping the computer
but test pve ping the computer ip. , communication between eth0 (pve) and eth3 (computer network cable, wifi is not connected to the main router), normal.
Add the bridge configuration in openwrt to realize that the 4 ports become switches and can communicate with each other (the bypass router is no longer a router)

image.png

This article paves the way for shutting down certain network ports in the future.

Guess you like

Origin blog.csdn.net/u010042660/article/details/132185493