如何修改目标地址,并强制流转到另一个目的地?我使用这个xml:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flow xmlns="urn:opendaylight:flow:inventory">
<priority>33000</priority>
<flow-name>Foo</flow-name>
<match>
<ethernet-match>
<ethernet-type>
<type>2048</type>
</ethernet-type>
</ethernet-match>
<ipv4-destination>10.0.0.6/32</ipv4-destination>
</match>
<id>1</id>
<table_id>0</table_id>
<instructions>
<instruction>
<order>1</order>
<apply-actions>
<action>
<order>1</order>
<set-nw-dst-action>
<ipv4-address>10.0.0.4</ipv4-address>
</set-nw-dst-action>
</action>
</apply-actions>
</instruction>
</instructions>
</flow>然而,它没有修改ip地址,而是将所有数据包降到10.0.0.6,甚至sudo ovs-ofctl -O OpenFlow13 dump-flows br-int也显示了action=drop
有什么来源我可以参考添加流,这似乎是不完整的。
发布于 2015-12-14 16:50:20
您需要指定掩码10.0.0.4/32
https://stackoverflow.com/questions/33693198
复制相似问题