[ovs-discuss] Setting a VLAN ID

Elisa Rojas elisa.rojas.sanchez at gmail.com
Fri Jun 3 15:47:46 UTC 2016


That's a good question!

I think it might not be matching any packets, I'm posting the output here
(+ configuration).
What do you think it might be the reason? Because when we use the same
input and output VLAN, then everything works fine and I see the counters
increasing!

mininet> h1 arp -s 10.0.0.3 00:00:00:00:00:03
mininet> h3 arp -s 10.0.0.1 00:00:00:00:00:01
mininet> h1 ping -c 1 h3
PING 10.0.0.3 (10.0.0.3) 56(84) bytes of data.

--- 10.0.0.3 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms

mininet> dpctl dump-flows
*** s1
------------------------------------------------------------------------
NXST_FLOW reply (xid=0x4):
 cookie=0x10000487f63a1, duration=71.402s, table=0, n_packets=0, n_bytes=0,
idle_age=71, priority=40000,dl_type=0x8942 actions=CONTROLLER:65535
 cookie=0x10000488ebd5d, duration=71.401s, table=0, n_packets=0, n_bytes=0,
idle_age=71, priority=40000,arp actions=CONTROLLER:65535
 cookie=0x10000487f5557, duration=71.400s, table=0, n_packets=0, n_bytes=0,
idle_age=71, priority=40000,dl_type=0x88cc actions=CONTROLLER:65535
 cookie=0x1000046444328, duration=36.218s, table=0, n_packets=1,
n_bytes=102, idle_age=17, priority=5,ip actions=CONTROLLER:65535
 cookie=0x4c0000740a69ef, duration=17.899s, table=0, n_packets=0,
n_bytes=0, idle_age=17,
priority=500,ip,in_port=3,dl_vlan=305,nw_dst=10.0.0.1
actions=output:1,mod_vlan_vid:1
 cookie=0x4c0000740a4120, duration=17.896s, table=0, n_packets=0,
n_bytes=0, idle_age=17, priority=500,ip,in_port=1,dl_vlan=1,nw_src=10.0.0.1
actions=output:3,mod_vlan_vid:305
mininet> h1 ping -c 1 h3
PING 10.0.0.3 (10.0.0.3) 56(84) bytes of data.

--- 10.0.0.3 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms

mininet> net
h1 h1-eth0.1:s1-eth1
h2 h2-eth0.1:s1-eth2
h3 h3-eth0.305:s1-eth3
h4 h4-eth0.1:s1-eth4
h5 h5-eth0.1:s1-eth5
s1 lo:  s1-eth1:h1-eth0.1 s1-eth2:h2-eth0.1 s1-eth3:h3-eth0.305
s1-eth4:h4-eth0.1 s1-eth5:h5-eth0.1
c0
mininet>

2016-06-03 17:22 GMT+02:00 Ben Pfaff <blp at ovn.org>:

> On Fri, Jun 03, 2016 at 02:55:33PM +0200, Elisa Rojas wrote:
> > I have a simple deployment with one OVS and 2 hosts to try the
> modification
> > of VLAN ID/tags. Basically, I'm matching an input port+VLAN ID and
> setting
> > an output port+VLAN ID. The thing is that I see the flow properly
> installed
> > and the packet arriving at the switch, but then the output packet is
> going
> > out without modificating the VLAN ID field.
>
> Is your flow that modifies VLAN ID matching any packets?
>



-- 
*Elisa Rojas Sánchez*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20160603/086f013b/attachment-0002.html>


More information about the discuss mailing list