[ovs-discuss] How to turn off mac-learning on specific port

Baohua Yang yangbaohua at gmail.com
Wed Jul 24 11:56:01 UTC 2013


Thanks!
That's what I am concerned.
I wanna turn off mac-learning on some specific port, while using the NORMAL
action at other ports.
Seems that's no easy way.


On Wed, Jul 24, 2013 at 5:39 PM, huntxu <mhuntxu at gmail.com> wrote:

> On Wed, 24 Jul 2013 17:05:42 +0800, Baohua Yang <yangbaohua at gmail.com>
> wrote:
>
>  Thanks hunt!
>> However, how about when setting failmod=secure?
>> In this mod, only the controller will set rules. e.g., controller can set
>> an Normal action.
>> I guess ovs also learns mac in this case?
>>
>
> I gave it a try and found that ovs only learned mac addresses from those
> packets
> applied with the action 'NORMAL'(using 'ovs-appctl fdb/show' to verify).
> Thus to
> turn off mac-learning from packets coming from the specific port, you only
> need
> to prevent applying the 'NORMAL' action to such packets.
>
>
>>
>> On Wed, Jul 24, 2013 at 2:37 PM, huntxu <mhuntxu at gmail.com> wrote:
>>
>>  On Wed, 24 Jul 2013 13:46:32 +0800, Baohua Yang <yangbaohua at gmail.com>
>>> wrote:
>>>
>>>  Hi,all
>>>
>>>>      I know that ovsd has a built-in mac-learning switch, and it is
>>>> necessary to support the "NORMAL" action.
>>>>     Now I want to stop the mac-learning on a given port, but other ports
>>>> should work normally.
>>>>
>>>>
>>> When setting up a virtual switch with 'fail_mode=standalone'(the default
>>> value),
>>> there would be an openflow rule with priority 0 that matches ALL of the
>>> packets,
>>> and applies the 'NORMAL' action. That makes ovs a mac-learning switch.
>>> Try
>>> 'ovs-ofctl dump-flows'.
>>>
>>> So what you want could be done by setting up a new openflow rule which
>>> has
>>> a higher
>>> priority, matches the incoming packets from the specific port(in_port),
>>> and then
>>> applies actions other than 'NORMAL'. You could then verify the result
>>> using 'ovs-appctl fdb/show'.
>>>
>>>
>>>      How to implement this? I check the ovs manual, but find no solution.
>>>
>>>>     Thanks for any suggestion!
>>>>
>>>>
>>>>
>>> --
>>> regards,
>>> hunt
>>> ______________________________****_________________
>>> discuss mailing list
>>> discuss at openvswitch.org
>>> http://openvswitch.org/****mailman/listinfo/discuss<http://openvswitch.org/**mailman/listinfo/discuss>
>>> <http:**//openvswitch.org/mailman/**listinfo/discuss<http://openvswitch.org/mailman/listinfo/discuss>
>>> >
>>>
>>>
>>
>>
>>
>
> --
> regards,
> hunt
>



-- 
Best wishes!
Baohua
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20130724/b1c706ac/attachment.html>


More information about the discuss mailing list