Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi,

I found the mistake. If you want to send a packet through an interface/port and this packet has an ip/mac different from the interface/port one, you need to provide a new ip/mac pair to the interface/port settings. You can to this either with python-neutronclient or by using the REST api.
Rest example:
REST Endpoint for updating a port:
https://XX.XX.XX.XX:XXXX/v2.0/ports/<port-id>
JSON-Body:

{
    "port": {
        "allowed_address_pairs" : [
            {"ip_address": "192.168.100.2","mac_address": "fa:16:3e:ec:48:9b"}
        ]
    }
}

Hi,

I found the mistake. If you want to send a packet through an interface/port and this packet has an ip/mac different from the interface/port one, you need to provide a new ip/mac pair to the interface/port settings. You can to this either with python-neutronclient or by using the REST api.
Rest example:
REST Endpoint for updating a port:
https://XX.XX.XX.XX:XXXX/v2.0/ports/<port-id> URL:neutronPort/v2.0/ports/<port-id>
JSON-Body:

{
    "port": {
        "allowed_address_pairs" : [
            {"ip_address": "192.168.100.2","mac_address": "fa:16:3e:ec:48:9b"}
        ]
    }
}