[ovs-dev] how ovn supports vlan

longguang.yue ovsluck at 163.com
Thu Aug 26 07:36:51 UTC 2021


Hi, Numan Siddique:


    thanks, i now know how to use it very well.
    i just guess how pipelines or openflows rules related are designed.  if my guest is right,  if ovn does not know where a port is(not managed by ovn), ovn sends/floods the packet out via localnet port,  otherwise ovn also sends packets over geneve?


thanks.

















At 2021-08-26 05:14:36, "Numan Siddique" <numans at ovn.org> wrote:
>On Wed, Aug 25, 2021 at 11:20 AM longguang.yue <ovsluck at 163.com> wrote:
>>
>> Hi,all
>> is there a document to detail how vlan is supported and basic theory? or if you please tell me, and patches.
>
>In order for you to use vlan networks,  you need to create a localnet
>port for the logical switch.
>
>Lets say you have a logical switch by name "public",  then you need to
>create a localnet port as:
>
>ovn-nbctl ls-add public
>...
>..
>
># localnet port
>ovn-nbctl lsp-add public ln-public
>ovn-nbctl lsp-set-type ln-public localnet
>ovn-nbctl lsp-set-addresses ln-public unknown
>ovn-nbctl lsp-set-options ln-public network_name=public
>ovn-nbctl set logical_switch_port ln-public tag_request=500 // VLAN tag
>
>
>And on each chassis you need to have a provider ovs bridge and this
>bridge should have the physical interface connected.
>
>ovs-vsctl add-br br-provider
>ovs-vsctl add-port br-provider eth0
>ovs-vsctl set open .
>external_ids:ovn-bridge-mappings="public:br-provider"  // This is
>important
>
>..
>
>Please see the man pages https://docs.ovn.org/en/latest/ref/index.html
>for more information.
>
>You can look at https://www.ovn.org/support/dist-docs/ovn-nb.5.html
>and grep for "localnet".
>
>Thanks
>Numan
>
>>
>>
>> thanks very much.
>>
>>
>>
>>
>>
>> --
>> 发自我的网易邮箱手机智能版
>> _______________________________________________
>> dev mailing list
>> dev at openvswitch.org
>> https://mail.openvswitch.org/mailman/listinfo/ovs-dev


More information about the dev mailing list