On Wed, Aug 25, 2021 at 11:20 AM longguang.yue <[email protected]> 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 > [email protected] > https://mail.openvswitch.org/mailman/listinfo/ovs-dev _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
