Menu

How to allocate system network ports

Login to the real-time system of the industrial intelligent computer

Log in to the real-time system of the industrial intelligent computer, full name of iComputer, refer to the documentation.

 


Adding network ports to non real time systems of industrial intelligent computers

1.Send command ip a to check the name of the network card to be passed through.

ip a

2.For example, to pass through enp3s0 to the guest system(virtual machine)

sudo ethtool -i enp3s0

 

 

 

 

 

In this picture, the BDF number of PCIE is 03:00.0

 

3.Obtain the name of the virtual machine (this step must be checked, as different system virtual machine names are different, and the specific virtual machine name viewed in the machine shall prevail)

sudo virsh list --all

4.Execute the following command to transparently transmit the network port to a non real time domain

sudo virsh shutdown sp7000Se-vm   
sudo virt-xml --hostdev pci_0000_03_00_0 --add-device sp7000Se-vm 2>/dev/null
sudo virsh start sp7000Se-vm
sudo cp /etc/libvirt/qemu/sp700Se-vm.xml /etc/libvirt/qemu/sp7000Se-vm_default.xml

5.After completing the above steps, the machine will be powered off and restarted. You can search for "Control Panel" in the lower left corner of the Windows desktop of the industrial intelligence machine. After opening the Control Panel, click on "Network and Internet" ->"Network and Sharing Center" ->"Change Adapter Settings". In the pop-up interface, check if there is an additional network card. If there is an additional network port, it proves that the network port is being transmitted to the non real time domain normally

 


Deleting network ports in non real time systems of industrial intelligent computers

1.For example, to delete enp3s0, execute the command

sudo virsh shutdown sp7000se-vm
sudo virt-xml --hostdev pci_0000_03_00_0 --remove-device sp7000se-vm
sudo virsh start sp7000se-vm
sudo cp sp7000se-vm.xml sp7000se-vm_default.xml

 

2.When the machine is powered off and restarted, you can search for "Control Panel" in the lower left corner of the Windows desktop of the AI machine. After opening the Control Panel, click on "Network and Internet" ->"Network and Sharing Center" ->"Change Adapter Settings". In the pop-up interface, check if one network card or port is missing, which proves that the network port has been successfully deleted

Last modified: 2024-11-14