[ovs-discuss] How to make multiple VLANs on one NIC?
blp at nicira.com
Mon May 31 16:50:38 UTC 2010
On Mon, May 31, 2010 at 3:41 AM, 신용진 <akayong at gmail.com> wrote:
> Do I have to set trunks or vlans in physical switch?
If you are using VLANs on a physical port connected to a switch, you
will probably have to configure that port on the physical switch as a
> Does outgoing packet from server have tagging information(tag field in header)
> Does openvswitch support VTP?
> Is there any method on openvswitch to support VLAN without setting physical switch?
Open vSwitch supports GRE encapsulation. You can use that to
implement virtual tunnels without using VLANs. GRE is less likely to
be filtered by a physical switch than are VLANs.
> We can check the flows, with "ovs-dpctl dump-flows"
> However, I am not clear about the terms used in dump-flows.
> For example,
> tunnel00000000:in_port0002:vlan65535:pcp0 mac00:1a:a0:38:0d:05->ff:ff:ff:ff:ff:ff type0806 proto1 tos0 ip192.168.10.1->192.168.10.11 port0->0, packets:2, bytes:120, used:3.176s, actions:0
> tunnel00000000:in_port0002:vlan65535:pcp0 mac00:19:30:98:e2:8c->01:00:0c:cc:cc:cd type05ff proto0 tos0 ip0.0.0.0->0.0.0.0 port0->0, packets:2821, bytes:180544, used:0.578s, actions:0
> tunnel00000000:in_port0002:vlan65535:pcp0 mac00:19:30:98:e2:8c->01:80:c2:00:00:00 type05ff proto0 tos0 ip0.0.0.0->0.0.0.0 port0->0, packets:2821, bytes:169260, used:0.578s, actions:drop
> tunnel00000000:in_port0002:vlan100:pcp7 mac00:19:30:98:e2:8c->01:00:0c:cc:cc:cd type0032 proto0 tos0 ip0.0.0.0->0.0.0.0 port0->0, packets:2819, bytes:191692, used:1.830s, actions:0,strip_vlan,1
> there are many terms, such as pcp, type, proto, tos, actions.
> What do each values of those terms mean?
"pcp" is the 802.1q priority code point. See
TOS is the IP type of service code. See
proto is the IP protocol type. See
actions is what happens to packets that match the rule. A number
means that the packet is sent out that port. strip_vlan means that
the VLAN header is removed. drop means that the packet is dropped.
More information about the discuss