当前位置:网站首页>[Galaxy Kirin V10] [server] KVM create Bridge
[Galaxy Kirin V10] [server] KVM create Bridge
2022-07-04 10:32:00 【GUI Anjun @kylinos】
1、 precondition : Install Kirin V10 Server operating system 、 install kvm、 stay kvm Create a good Kirin V10 The system's virtual machine
Experimental environment : The host machine : kirin V10 0711 x86_64 ip:192.168.1.11
virtual machine :kvm + kirin V10 0711 x86_64 ip:192.168.1.110
2、 Host configuration
# yum install bridge-utils -y // install bridge-utils software package , It provides brctl Tools to configure the bridge
Check tun and bridge Whether the module is loaded
# lsmod | grep tun
# lsmod | grep bridge

establish brdige
# brctl addbr br0
# brctl addif br0 ens33 //ens33 Actually prepare the network card name for bridging for the host , Modify according to the actual name # brctl show br0

# brctl stp br0 on
# brctl show br0
# ifconfig ens33

# ifconfig br0

# ifconfig enp3s0 0 up
# ifconfig br0 up
# dhclient br0
# ifconfig br0

# ifconfig ens33

here , As a vassal of the bridge excuse (slave), Physical network port ens33 The interface does not have its own IP Address , The bridge is parasitic on it .
Open the virtual machine configuration details , On the network card xml In the configuration file, the configuration is changed to bridge,( notes : If xml You can't edit , You can open it in preferences according to the prompt xml Editing authority )
Before change :

After the change :

And change the mode to bridge :

If this option is not shown in the figure above, you can choose to specify a shared device , as follows :

Start the virtual machine after configuration
3、 Virtual machine configuration
Start virtual machine , Then fix the virtual machine configuration ip,ip Address and host ens33 ip Same as segment , Gateway and host ens33 Same gateway , Then restart the virtual machine ens33 The Internet
# vim /etc/sysconfig/network-scripts/ifcfg-ens3

# systemctl stop network
# systemctl restart NetworkManager
The host machine Virtual machine connectivity test :


4、 If the host computer and virtual machine network are not connected, check whether the virtual network card of the host computer is in the physical machine br0 On , as follows :

边栏推荐
- uniapp 小于1000 按原数字显示 超过1000 数字换算成10w+ 1.3k+ 显示
- leetcode842. Split the array into Fibonacci sequences
- Linked list operation can never change without its roots
- 【Day1】 deep-learning-basics
- Does any teacher know how to inherit richsourcefunction custom reading Mysql to do increment?
- From programmers to large-scale distributed architects, where are you (2)
- Native div has editing ability
- Deep learning 500 questions
- Communication layer of csframework
- Rhcsa12
猜你喜欢

用数据告诉你高考最难的省份是哪里!

Huge number (C language)

Latex error: missing delimiter (. Inserted) {\xi \left( {p,{p_q}} \right)} \right|}}

BGP ---- border gateway routing protocol ----- basic experiment

DDL statement of MySQL Foundation

【Day1】 deep-learning-basics

Rhcsa day 9

Huge number multiplication (C language)

Rhcsa - day 13

Quick sort (C language)
随机推荐
Realsense d435 d435i d415 depth camera obtains RGB map, left and right infrared camera map, depth map and IMU data under ROS
RHCE day 3
If the uniapp is less than 1000, it will be displayed according to the original number. If the number exceeds 1000, it will be converted into 10w+ 1.3k+ display
【Day2】 convolutional-neural-networks
If you don't know these four caching modes, dare you say you understand caching?
Four characteristics and isolation levels of database transactions
Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 1
Three schemes of ZK double machine room
Write a program to judge whether the elements contained in a vector < int> container are 9.20: exactly the same as those in a list < int> container.
Evolution from monomer architecture to microservice architecture
/*Rewrite the program, find the value of the element, and return the iterator 9.13: pointing to the found element. Make sure that the program works correctly when the element you are looking for does
Collection of practical string functions
Time complexity and space complexity
Introduction to tree and binary tree
Network disk installation
BGP ---- border gateway routing protocol ----- basic experiment
Two way process republication + routing policy
Summary of several job scheduling problems
Differences among opencv versions
Vs201 solution to failure to open source file HPP (or link library file)