Thanks Murphy.. I have rules in following way s1: if from h1: add_vlan(10), send(port_toward_s2)
s2: if vlan_id=10: send(port_toward_h3) and here I am missing strip_vlan().. Yes, h3 is *not* configured to have a VLAN assigned to its interface.. I will add the strip_vlan() and cheak traffic using wireshark.. 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) On Wed, Apr 2, 2014 at 2:34 AM, Murphy McCauley <murphy.mccau...@gmail.com>wrote: > Your description of the flow tables is not very complete. If you should > probably have rules like the following: > > s1: > if from h1: add_vlan(10), send(port_toward_s2) > > s2: > if vlan_id=10: strip_vlan(), send(port_toward_h3) > > Both of these rules have two actions. You only mentioned the first for s1 > and the second for s2. Do you actually have both? > > I am assuming here that you only want to use VLAN tags for the packet > during its trip through the network and that h3 is *not* configured to have > a VLAN assigned to its interface. > > Additionally, you should try debugging this by using wireshark to examine > traffic on the switch ports. Do you see the packet leaving s1 on the right > port with the right VLAN tag? Do you see it arrive on the expected port of > s2? Do you see it leave s2 on the port connected to h3? Does it have a > VLAN tag? > > -- Murphy > > On Apr 1, 2014, at 10:08 AM, Windhya Rankothge <windys...@gmail.com> > wrote: > > > Hi all, > > > > I have following topology in mininet and I am using POX controller, I > have asked this question from mininet forum, but I think it is more > relavant to the controller side.. > > > > 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 > > > > When I tried to test it, it is not working.. Packet is not going to h3.. > > > > Other than just adding the tag, do I have to do something more to handle > the VLAN tag concept ? Do I have to create VLAN on switch 1 ? > > > > Your thoughts are higly appreciated.. > > > > > > Best Regards, > > > > Windhya Rankothge, > > Universitat Pompeu Fabra, > > Barcelona. > > -- Best Regards, Windhya Rankothge, Universitat Pompeu Fabra, Barcelona.