Listando interface virbr0
1 2 3 4 5 6 7 8 |
[root@bd01 ~]# ifconfig virbr0 virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255 ether 52:54:00:f0:c0:a2 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 |
Listar rede padrão
1 2 |
[root@bd01 ~]# virsh net-list bash: virsh: command not found... |
Instalar o pacote virsh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
[root@bd01 ~]# yum install libvirt Dependencies Resolved ========================================================================================================================== Package Arch Version Repository Size ========================================================================================================================== Installing: libvirt x86_64 3.9.0-14.el7_5.2 ol7_latest 172 k Installing for dependencies: autogen-libopts x86_64 5.18-5.el7 ol7_latest 65 k gnutls-dane x86_64 3.3.26-9.0.1.el7 ol7_latest 34 k gnutls-utils x86_64 3.3.26-9.0.1.el7 ol7_latest 236 k libvirt-client x86_64 3.9.0-14.el7_5.2 ol7_latest 457 k libvirt-daemon-config-nwfilter x86_64 3.9.0-14.el7_5.2 ol7_latest 178 k libvirt-daemon-driver-lxc x86_64 3.9.0-14.el7_5.2 ol7_latest 899 k Transaction Summary ========================================================================================================================== Install 1 Package (+6 Dependent packages) Total download size: 2.0 M Installed size: 3.8 M Is this ok [y/d/N]: y |
Listar rede padrão
1 2 3 4 |
[root@bd01 ~]# virsh net-list Name State Autostart Persistent ---------------------------------------------------------- default active yes yes |
Destruir a rede padrão
1 2 |
[root@bd01 ~]# virsh net-destroy default Network default destroyed |
Remova permanentemente a rede virtual padrão da configuração.
1 2 |
[root@bd01 ~]# virsh net-undefine default Network default has been undefined |
Listando interface virbr0
1 2 |
[root@bd01 ~]# ifconfig virbr0 virbr0: error fetching interface information: Device not found |