我想使用给定的对于ASAv优化(第18页),它应该与KVM一起运行。我正在使用Ubuntu14.04LTS,我应该配置macvtap
以获得更高的性能。
它只是在思科的指南中写了以下内容:
高性能Linux桥接器;您可以使用macvtap而不是Linux桥。
Note that you must configure specific settings to use macvtap instead of the Linux bridge.
我找到了一些教程,并为我的2VLAN 1654和1664设置了两个大屏幕桥接器:
sudo ip link add link eth0.1654 name macvtap1654 type macvtap mode bridge
sudo ip link add link eth1.1664 name macvtap1664 type macvtap mode bridge
不幸的是,当使用virt管理器配置网络设备时,我无法选择它们。显然,没有设置特定的设置。我不知道还需要配置什么,因此我可以在虚拟机上使用这个优化。
谢谢你的阅读和帮助。
发布于 2021-02-18 08:37:18
...better迟到总比根本不出现来得晚
这些变化与Macvtaps和Macvlans是不同的。
在为KVM桥创建macvtap之前,我们需要创建vlan接口。
https://manpages.debian.org/buster/vlan/vlan-interfaces.5.en.html
所以我实际上是在我的/etc/网络/接口配置中创建vlan接口
allow-hotplug enp1s0f0
auto enp1s0f0
iface enp1s0f0 inet static
address 10.8.0.50
netmask 255.255.240.0
gateway 10.8.0.1
dns-nameservers 10.10.10.10 10.80.0.5
现在,在这里,我添加了Vlan接口(S),您可以像这里标记的那样,保持大量的集群Vlan。(请注意,进入此服务器的NIC有多个标记的vlans来自它连接到的交换机).
auto enp1s0f0.4
iface enp1s0f0.4 inet static
address 10.80.0.2
netmask 255.255.255.0
gateway 10.80.0.1
auto enp1s0f0.10
iface enp1s0f0.4 inet static
address 10.10.0.2
netmask 255.255.255.0
gateway 10.10.0.1
重新启动网络
现在将macvtap添加到enp1s0f0.4接口
ip link add link enp1s0f0.4 name macbaby address 52:54:00:b8:cc:bb type macvtap mode bridge
现在您可以在virt管理器中看到macvtap,如果您将其设置为来宾上的nic,您的VM应该会出现在10.80.0.0/24 dchp上。
https://serverfault.com/questions/732834
复制相似问题