标签:rtu 恢复 active ber 一个 情况下 def 技术分享 art
Libvirt 在服务器host上生成一个 virtual network switch (virbr0),然后 host 上所有的虚拟机(guests)通过这个 virbr0 连起来。默认情况下 virbr0 使用的是 NAT 模式(采用 IP Masquerade),在这种情况下所有的guest才能通过 host 访问外部。
# virsh net-list --all Name State Autostart ----------------------------------------- default active yes
1.如何关掉virbr0
# virsh net-destroy default
Network default destroyed
# virsh net-undefine default
Network default has been undefined
# systemctl restart libvirtd
2.删除后如何恢复virbr0
# virsh net-define /usr/share/libvirt/networks/default.xml
Network default defined from /usr/share/libvirt/networks/default.xml
# virsh net-autostart default
Network default marked as autostarted
# virsh net-start default
Network default started
More information remember to refer : https://wiki.libvirt.org/page/Networking
标签:rtu 恢复 active ber 一个 情况下 def 技术分享 art
原文地址:https://www.cnblogs.com/zenosblog/p/10241957.html