Ask Your Question
0

vlan as ovs port for external network?

asked 2019-02-25 18:51:43 -0500

binooetomo gravatar image

Dear All.

Currently my ovsctl-vsctl show :

[root@ceph-node4 ~]# ovs-vsctl show
c97b4aae-d890-4ad3-93fa-2d56a9283f1d
    Manager "ptcp:6640:127.0.0.1"
        is_connected: true
    Bridge br-ex
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port "eno2"
            Interface "eno2"
        Port br-ex
            Interface br-ex
                type: internal
        Port phy-br-ex
            Interface phy-br-ex
                type: patch
                options: {peer=int-br-ex}
    ovs_version: "2.10.1"

With that configuration above, all VM that have external network got internet access without problem. But all traffic have no vlan tag on it.

I need seperate internet traffic of vm with other traffic in the same physical eth.

If I want my net work looks like https://docs.openstack.org/ocata/networking-guide/_images/deploy-ovs-provider-flowns1.png (https://docs.openstack.org/ocata/netw...) , Is it mean that I need to first create vlan 101 on eno2 and tell vsctl to add eno2.101 as port instead of eno2 ?

and ovs-vsctl show will be like :

Bridge br-ex
    Controller "tcp:127.0.0.1:6633"
        is_connected: true
    fail_mode: secure
    Port "eno2.101"
        Interface "eno2.101"
    Port br-ex
        Interface br-ex
            type: internal
    Port phy-br-ex
        Interface phy-br-ex
            type: patch
            options: {peer=int-br-ex}
ovs_version: "2.10.1"

Sincerely

-bino-

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-03-02 04:43:11 -0500

jsm gravatar image

Yes you can do what yo describe,if all vms is to be on the same external vlan. One can also let openvswitch tag the traffic by setting segmentation id of the provider network in neutron, and use the vlan type for the provider network.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2019-02-25 18:51:43 -0500

Seen: 39 times

Last updated: Mar 02