[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt-users] routed network and physical interface



Hello,

 I've created a routed network that forwards to a physical interface:

<network>
  <name>default</name>
  <forward dev='eth0' mode='route'/>
  <mac address='52:54:00:f2:5b:4f'/>
  <ip address='192.168.100.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='192.168.100.10' end='192.168.100.20'/>
    </dhcp>
  </ip>
</network>

 When this network is started, the iptables rules are associated with
 eth0, as expected. However, the "virbr0" bridge interface that is
 create automatically does not contain the eth0 interface. I have to
 manually run "brctl addif virbr0 eth0" so the guests can communicate
 with the outside.

 I was under the impression libvirt would add the physical interface
 automatically, based on the <forward> definition. Is it how it should
 work?

Giovanni


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]