¡GoConqr estrena diseño! Cuéntanos qué te parece.

Apuntes

Exercise 6-2: Define a NAT Virtual Network Using virsh

Vagner Aragão EX200 RHCSA Portugués 1 página

Contenido del apunte (1)

Página 1

In this exercise, you will use the virsh command to define a persistent NAT virtual network called rhnet_virsh with subnet 192.168.2.0/24, gateway 192.168.2.1, and DHCP range 192.168.2.2 to .254. You will use virbr2 as the bridge name and a range of ports between 1024 and 65535. You will activate this virtual network and set it to autostart at each system reboot.

1. List virtual networks

$ virsh net-list

2. Create a XML with informations about this Virtual Network

<network>

<name>virsh_bridge</name>

<bridge name='virbr0' stp='on' delay='0' />

<forward mode='nat'>

<nat>

<port start='1024' end='65535' />

</nat>

</forward>

<ip address='192.168.0.1' netmask='255.255.255.0'>

<dhcp>

<range start='192.168.0.100' end='192.168.0.150' />

</dhcp>

</ip>

</network>

3. Define this network as persistent:

$ virsh net-define /root/rhnet_virsh.xml

4. Start automaticaly:

$ virsh net-autostart virsh_bridge

5. Start now

$ virsh net-start virsh_bridge

6. Informações sobre rede

virsh net-info virsh_bridge

Información

Descripción
RHCSA (06. Configuring Server Virtualization and Network Installing) EX200 Apunte sobre Exercise 6-2: Define a NAT Virtual Network Using virsh, creado por Vagner Aragão el 25/01/2019.
Creado por
Vagner Aragão · ene 2019
Actualizado
25 ene 2019
Visitas
0
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?