305-300 · Question #13
Which of the following statements is true regarding networking with libvirt?
The correct answer is C. Libvirt networks appear, by default, as standard Linux bridges in the host system. Libvirt supports creating and managing various types of virtual networks that can be used to connect virtual machines to each other or to the external network. One of the common types of virtual networks is the NAT-based network, which uses network address translation (NAT) to…
Question
Options
- ALibvirt's network functionality is limited to connecting virtual machines to a physical network
- BLibvirt assiqns the same MAC address to all virtual machines and isolates their network interfaces
- CLibvirt networks appear, by default, as standard Linux bridges in the host system.
- DLibvirt requires a dedicated network interface that may not be used by the host system.
- ELibvirt supports exactly one virtual network and connects all virtual machines to it.
How the community answered
(35 responses)- B9% (3)
- C83% (29)
- D6% (2)
- E3% (1)
Explanation
Libvirt supports creating and managing various types of virtual networks that can be used to connect virtual machines to each other or to the external network. One of the common types of virtual networks is the NAT-based network, which uses network address translation (NAT) to allow virtual machines to access the outside world through the host's network interface. By default, libvirt creates a NAT-based network called default' when it is installed and started. This network appears as a standard Linux bridge device on the host system, named virbr0. The bridge device has an IP address of 192.168.122.1/24 and acts as a gateway and a DHCP server for the virtual machines connected to it. The bridge device also has iptables rules to forward and masquerade the traffic from and to the virtual machines. The virtual machines connected to the default' network have their own IP addresses in the 192.168.122.0/24 range and their own MAC addresses generated by libvirt. The virtual machines can communicate with each other, with the host, and with the external network through the bridge device and the NAT mechanism.
Topics
Community Discussion
No community discussion yet for this question.