<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Apr 1, 2014, at 11:20 PM, Windhya Rankothge <<a href="mailto:windyswsw@gmail.com">windyswsw@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div>Thanks Murphy.. I have rules in following way<br><br>s1:<br>
if from h1: add_vlan(10), send(port_toward_s2)<br>
<br>
s2:<br>
if vlan_id=10: send(port_toward_h3) and here I am missing strip_vlan().. <br><br>Yes, h3 is *not* configured to have a VLAN assigned to its interface.. I will add the strip_vlan() and cheak traffic using wireshark.. <br>
</div><br></div>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)</div></blockquote><div><br></div><div>Since you're not stripping the VLAN tag before forwarding to h3, the absolute best thing you can hope to have happening is that the packet arrives at h3 with a VLAN tag on it. If h3 isn't configured to think it has an interface on VLAN 10, it's going to throw it away. So your options are either: 1) strip the VLAN tag before sending it to h3 in which case, as far as h3 knows, the packet never had anything to do with any VLAN, or 2) configure h3 to know that it's on VLAN 10. I think the first option is the one you want.</div><div><br></div><div>-- Murphy</div><br><blockquote type="cite"><div class="gmail_extra"><div class="gmail_quote">
On Wed, Apr 2, 2014 at 2:34 AM, Murphy McCauley <span dir="ltr"><<a href="mailto:murphy.mccauley@gmail.com" target="_blank">murphy.mccauley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Your description of the flow tables is not very complete. If you should probably have rules like the following:<br>
<br>
s1:<br>
if from h1: add_vlan(10), send(port_toward_s2)<br>
<br>
s2:<br>
if vlan_id=10: strip_vlan(), send(port_toward_h3)<br>
<br>
Both of these rules have two actions. You only mentioned the first for s1 and the second for s2. Do you actually have both?<br>
<br>
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.<br>
<br>
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?<br>
<span class="HOEnZb"><font color="#888888"><br>
-- Murphy<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Apr 1, 2014, at 10:08 AM, Windhya Rankothge <<a href="mailto:windyswsw@gmail.com">windyswsw@gmail.com</a>> wrote:<br>
<br>
> Hi all,<br>
><br>
> 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..<br>
><br>
> h1 --- s1 --- s2 --- h2<br>
> !<br>
> h3<br>
><br>
> I want to mark the packets sent by a specific host and I am trying to use the vlan field..<br>
><br>
> 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<br>
><br>
> When I tried to test it, it is not working.. Packet is not going to h3..<br>
><br>
> 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 ?<br>
><br>
> Your thoughts are higly appreciated..<br>
><br>
><br>
> Best Regards,<br>
><br>
> Windhya Rankothge,<br>
> Universitat Pompeu Fabra,<br>
> Barcelona.<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div>Best Regards,</div>
<div> </div>
<div>Windhya Rankothge,<br></div><div>Universitat Pompeu Fabra,<br></div><div>Barcelona.<br></div></div>
</div>
</blockquote></div><br></body></html>