In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about how to install and use openvSwitch. Many people may not know much about it. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.
Download the source code package for openvSwitch.
Wget http://openvswitch.org/releases/openvswitch-1.10.0.tar.gz
Extract to the current directory tar zxvf openvswitch-1.10.0.tar.gz & & cd openvswitch-1.10.0 compilation and installation.
/ configure-- with-linux=/lib/modules/ `uname-r` / build needs to specify the location of the source code because it needs to produce kernel modules.
Make-j 4 & & make install because of the 4 cores of my cpu, so specify multiple threads to speed up. Compile and install.
Load kernel module rmmod bridgeinsmod datapath/linux/openvswitch.ko
Generate ovsdb,ovsdb-tool createovsdb-server / etc/openvswitch/conf.db-remote=punix:/usr/var/run/openvswitch/db.sock according to vswitch.ovsschema
-- remote=db:Open_vSwitch,manager_options-- detach starts the ovsdb server,-- detach is the background mode ovs-vsctl-- no-wait init
Initialize vswitchovs-vswitchd unix:/usr/var/run/openvswitch/db.sock-detach to start vswtich, and the database points to the sockovs-vsctl show of ovsdb to view status information
Ovs-vsctl add-br br0 creates a switch for br0
Ovs-vsctl show View status
There is an interface on the br0 switch, which is connected to the br0 network card.
Ifconfig br0 to check the status of the network card
Add a new interface vnet0tunctl-t vnet0 for the br0 switch
Add to the br0 switch, ovs-vsctl add-port br0 vnet0
After reading the above, do you have any further understanding of how to install and use openvSwitch? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.