[Linuxtrent] Re: virt-manager e interfacce rete via bridge

  • From: "Giorgio P.R." <prgiorgio@xxxxxxxxxxxxxxxx>
  • To: linuxtrent@xxxxxxxxxxxxx
  • Date: Sun, 03 Aug 2014 22:56:53 +0200

a manina:

imposta una bridige a mano della connessione impostando il
network/interfaces tipo questo:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
# auto eth0
# iface eth0 inet dhcp

# auto eth0
# iface eth0 inet static
# address 192.168.0.17
# netmask 255.255.255.0
# broadcast 192.168.0.17
# gateway 192.168.0.1

auto virbr7
iface virbr7 inet static
address 192.168.0.17
netmask 255.255.255.0
broadcast 192.168.0.17
gateway 192.168.0.1
bridge_ports eth0
bridge_fd 9 
bridge_hello 2 
bridge_maxage 12 
bridge_stp off

-- fine file (reboot e prova che funzioni la rete)

in ifconfig vedrai il bridge

poi:

se la tua vm si chiama 'pippo':

# virsh edit pippo
(ti trovi in un editor tipo vi)

e cambi il networking cambiandolo con questo:

cambiare con:
<interface type='bridge'>
<source bridge='virbr7'/>
</interface>


-- 
Per iscriversi  (o disiscriversi), basta spedire un  messaggio con OGGETTO
"subscribe" (o "unsubscribe") a mailto:linuxtrent-request@xxxxxxxxxxxxx


Other related posts: