[ovs-discuss] 回复: replace the openvswitch.ko without losing the bridge interface's configuration
pei Jikui
jkpei at hotmail.com
Wed Mar 20 10:08:05 UTC 2019
What's more, the steps I followed is from the openvswitch FAQ document in http://docs.openvswitch.org/en/latest/faq/issues/
But even follow these steps, every time I need to reconfigure the bridge interface such as br0's ip address etc ...
Common Configuration Issues - Open vSwitch Documentation<http://docs.openvswitch.org/en/latest/faq/issues/>
A: More than likely, you’ve looped your network. Probably, eth0 and eth1 are connected to the same physical Ethernet switch. This yields a scenario where OVS receives a broadcast packet on eth0 and sends it out on eth1, then the physical switch connected to eth1 sends the packet back on eth0, and so on forever.
docs.openvswitch.org
Q: I can’t unload the openvswitch kernel module. Why?
A: The userspace might still hold the reference count. So rmmod openvswitch does not work, for example:
$ lsmod | grep openvswitch
openvswitch 155648 4
nf_conncount 24576 1 openvswitch
Use the command below to drop the refcnt:
$ ovs-dpctl del-dp system at ovs-system
$ rmmod openvswitch
发送自 Outlook<http://aka.ms/weboutlook>
________________________________
发件人: ovs-discuss-bounces at openvswitch.org <ovs-discuss-bounces at openvswitch.org> 代表 pei Jikui <jkpei at hotmail.com>
发送时间: 2019年3月20日 15:02
收件人: ovs-discuss at openvswitch.org
主题: [ovs-discuss] replace the openvswitch.ko without losing the bridge interface's configuration
When I replace the openvswitch.ko with a new modified one, the configuration on the bridge such as br0 is lost. I need to reconfigure its ip address and bring it up again manually.
Is there any alternative that we could replace the openvswitch.ko without losing the bridge interfaces’ configuration?
The steps I used to replace the openvswitch on the centos.
1) Compile the openvswitch
make -j `nproc`
make install
2) Replace the openvswitch.ko
ovs-dpctl del-dp system at ovs-system
rmmod openvswitch
insmod ./datapath/linux/openvswitch.ko
ovs-ctl restart
Thanks.
Jikui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20190320/e858451b/attachment-0001.html>
More information about the discuss
mailing list