当前位置:网站首页>[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 :

边栏推荐
- Work order management system OTRs
- Uniapp--- initial use of websocket (long link implementation)
- Reasons and solutions for the 8-hour difference in mongodb data date display
- Rhcsa learning practice
- 如果不知道這4種緩存模式,敢說懂緩存嗎?
- Virtual machine configuration network
- On binary tree (C language)
- Lavel document reading notes -how to use @auth and @guest directives in lavel
- Dos:disk operating system, including core startup program and command program
- [untitled]
猜你喜欢

Rhcsa day 9

leetcode842. Split the array into Fibonacci sequences

Reprint: summation formula of proportional series and its derivation process

【Day2】 convolutional-neural-networks

Three schemes of ZK double machine room

MongoDB数据日期显示相差8小时 原因和解决方案

The future education examination system cannot answer questions, and there is no response after clicking on the options, and the answers will not be recorded

Four characteristics and isolation levels of database transactions

基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 2

leetcode1-3
随机推荐
Check 15 developer tools of Alibaba
Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 2
[untitled]
Dichotomy search (C language)
Whether a person is reliable or not, closed loop is very important
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
Laravel文档阅读笔记-How to use @auth and @guest directives in Laravel
PHP programming language (1) - operators
有老师知道 继承RichSourceFunction自定义读mysql怎么做增量吗?
RHCE day 3
The bamboo shadow sweeps the steps, the dust does not move, and the moon passes through the marsh without trace -- in-depth understanding of the pointer
Servlet基本原理与常见API方法的应用
Dynamic memory management
BGP advanced experiment
What is devsecops? Definitions, processes, frameworks and best practices for 2022
MySQL case
【OpenCV 例程200篇】218. 多行倾斜文字水印
Container cloud notes
对于程序员来说,伤害力度最大的话。。。