Hi all,
I have following two rules on S1
{"actions": ["OUTPUT:2", "SET_VLAN_VID:1"], "idle_timeout": 0, "cookie": 0,
"packet_count": 0, "hard_timeout": 0, "byte_count": 0, "duration_nsec":
741000000, "priority": 32768, "duration_sec": 3, "table_id": 0, "match":
{"dl_type": 2048, "nw_dst": "10.0.0.5", "dl_vlan_pcp": 0, "dl_src":
"00:00:00:00:00:00", "tp_src": 0, "dl_vlan": 0, "nw_src": "10.0.0.1",
"nw_proto": 0, "tp_dst": 0, "dl_dst": "00:00:00:00:00:00", "in_port": 1}},
{"actions": ["OUTPUT:1", "STRIP_VLAN"], "idle_timeout": 0, "cookie": 0,
"packet_count": 0, "hard_timeout": 0, "byte_count": 0, "duration_nsec":
660000000, "priority": 32768, "duration_sec": 3, "table_id": 0, "match":
{"dl_type": 2048, "nw_dst": "10.0.0.1", "dl_vlan_pcp": 0, "dl_src":
"00:00:00:00:00:00", "tp_src": 0, "dl_vlan": 0, "nw_src": "10.0.0.5",
"nw_proto": 0, "tp_dst": 0, "dl_dst": "00:00:00:00:00:00", "in_port": 0}}]}
So, if the inport is 1, switch should add the vlan tag = 1 and output it to
port 2.. When I do a ping from h1 to h2 and check the traffic from
wireshark, I dont see the tag added to the packet..
Highly appreciate your thoughts on this
On Wed, Apr 2, 2014 at 8:23 AM, Windhya Rankothge <[email protected]>wrote:
> Hi all,
>
> I have following topology in mininet.
>
> h1 --- s1 --- s2 --- h2
> !
> h3
>
> I want to mark the packets sent by a specific host and I am trying to use
> the vlan field.. I have added a flow in switch 1 saying, if the packets
> comes from h1, then add the vlan id = 10. And then in switch 2, I have
> added a rule saying, if the packet has vlan id = 10, then forward the
> packet only to h3
>
> s1:
> if from h1: add_vlan(10), send(port_toward_s2)
>
> s2:
> if vlan_id=10: send(port_toward_h3)
>
> I am missing something here and I cant send packets from h1 to h3..
>
> Do I need to configure hosts to have VLANs configured on their interfaces
> ? (I only want to use VLAN tags for the packet during its trip through the
> network)
>
> Best Regards,
>
> Windhya Rankothge,
> Universitat Pompeu Fabra,
> Barcelona.
>
--
Best Regards,
Windhya Rankothge,
Universitat Pompeu Fabra,
Barcelona.
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel