PVE cannot access the background after adding network card and the network is not connected

In order to improve the transmission speed of the LAN, a PCI-E 2.5G network card (8125) was added to the NAS of the PVE system. After restarting, it was found that the machine was disconnected, unable to enter the background, and the soft route could not be connected.

reason

The console binding and network bridging of PVE depend on the interface name of the network card.

After adding a new network card (or adjusting the IOMMU group), the interface name of the original bridge network card may change, so the port may be confused or even the management may be lost.

resolvent

1. Find the background management port

First, you need to find the network interface bound to the PVE management background. As mentioned earlier, the name of the network card has changed, so the network interface bound to the management background has also changed, so you need to find the port manually.

  • If there are redundant displays and IO devices:
    The PVE machine is connected to the peripheral and can be queried directly by using the command.
  • If there are no redundant displays and IO devices:
    First, change the PC IP to and manage the background Other IPs of the same network segment After that, unplug the network cable of the original PVE machine management network interface, and change the network interface one by one to try to access the background management.

In a word, you can definitely enter the PVE background.

2. Obtain the correspondence between the network interface and the network interface name

After successfully entering the PVE background, execute the command to view the current network card name and model:

 lspci | grep -i ethernet

The execution results are as follows:

The address at the beginning of the above picture is the PCI bus address, hexadecimal. According to the relevant rules, the corresponding network card name is enp3s0 enp6s0、enp11s0、enp12s0。

Match the interface name and network port location according to the actual hardware situation. Take my D1581 motherboard as an example:

The motherboard has dual network ports. The chip in the north is Crab 8111, and the chip in the south is Intel I210; The PCI-E 2.5G network card chip added later is RTL8125 with dual network ports.

Therefore, the corresponding relationship is:

  • Mainboard Ethernet port 1: enp11s0
  • Mainboard Ethernet port 2: enp12s0
  • PCI-E network card -2.5G # 1: enp3s0
  • PCI-E network card -2.5G # 2: enp6s0

For other motherboards, we can judge according to the circumstances here.

3. Modify the management port binding

If you want to use the previous port as the management port, you need to modify the network port binding.

At the network of the node, find the original management bridge, and modify the port to the network port to be used:

4. Add a new network port

My machine does not engage in network card direct connection. It uses Linux Bridge+virtual machine bridge to complete network interworking. In order to use the new network card, you need to add two new bridges:

5. Modify the soft route interface

My machine uses OpenWrt for soft routing. In order to use this dual port 2.5G network card conveniently, I need to modify the soft routing interface.

Prefer to assign a new interface bridge to the OpenWrt virtual machine:

Then, in the OpenWrt management panel, modify the physical settings of the interface LAN, and check the newly added bridge interface:

After modification, save the application.

6. Verification and others

Through the above settings, the PVE machine successfully recovers the connection, and each virtual machine starts to work normally.

The PC network cable is directly connected to the 2.5G network card interface, and can normally obtain the IP assigned by the soft route and access the network:

After adding a 2.5G network card, you can save a lot of time when transferring data from PC to NAS:

The content described in this article is actually in 2021. Since the actual operation has passed for several months, there are occasional omissions and errors in the content, and you are welcome to point out and supplement in the form of comments.

In addition, the RTL8125, a common 2.5G Crab network card chip, has never had a network port or a network port loss on my PVE. As for ESXi's use of the 8125 network port or a network port loss, I am really not sure.

PCI-E x1 does not run at 2.5G of dual network ports, and the bandwidth is insufficient. This need not be mentioned again, because 99% of the cases in actual use are single ports.

Zimiao haunting blog (azimiao. com) All rights reserved. Please note the link when reprinting: https://www.azimiao.com/8805.html
Welcome to the Zimiao haunting blog exchange group: three hundred and thirteen million seven hundred and thirty-two thousand

Comment

*

*

Comment area

  1. dysobo 01-01 11:11 reply

    Great. I can't even connect to the backstage. I finally got it