Bug 745514 - Used detected guest IP address when static address specified in domain xml
Summary: Used detected guest IP address when static address specified in domain xml
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-12 14:48 UTC by Stanislav Petr
Modified: 2011-10-12 14:58 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-12 14:58:40 UTC


Attachments (Terms of Use)

Description Stanislav Petr 2011-10-12 14:48:38 UTC
when is a domain network interface defined by this xml:

    <interface type='bridge'>
      <mac address='00:16:3e:00:00:e0'/>
      <source bridge='br0'/>
      <ip address='192.168.20.31'/>
      <target dev='vps1836'/>
      <model type='virtio'/>
      <driver name='vhost' txmode='iothread' />
      <filterref filter='clean-traffic'/>
      <link state='up'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>

ebtables nnetwork filter uses detected IP address from first packet but not IP address specified in XML. This causes network connectivity problems in Windows 2008 on first boot after installation and it can be used by administrator of VPS to use another than configured IP address (change ip address in VPS, reboot and use the new "unauthorized" ip address).

So when IP element exist, ebtables filter can be created  immediately with this address with no try to detect used address.

Comment 1 Daniel Berrangé 2011-10-12 14:58:40 UTC
You can already do this, but the syntax is different:

<filterref filter='clean-traffic'>
  <parameter name="IP" value="192.168.20.31"/>
</filterref>

See also:

http://libvirt.org/formatnwfilter.html


Note You need to log in before you can comment on or make changes to this bug.