Hi,

On 2016年01月05日 01:34, Varun Nair wrote:
> Hi,
> 
> I am using RYU to parse packets and add an additional VLAN to an already 
> tagged packet.
> 
> The topology is as follows :-
> 
> Host H1 ---Switch S1---Switch S2=======Switch S3-----Switch s4---HostH2
> 
> Here S1 will tag packet from H1 with VLAN ID 10. Then S2 will double tag 
> it with VLAN 100.
> 
> At S3, the outermost tag(VLAN 100) is popped and sent to s4.
> At S4, the outermost tag (which will be the inner tag VLAN 10) is popped 
> and sent to Host h2
> 
> 
> At S1, i have written the below action :-
> [OFPActionPushVlan(0x8100),OFPActionSetField(vlan_vid=10),OFPActionOutpu
> t(2)]        (Port 2 is connected to Port 1 of S2)
> 
> Similarily , at S2 , the below action is executed on the received packet
> 
> [OFPActionPushVlan(0x8100),OFPActionSetField(vlan_vid=100),OFPActionOutp
> ut(2)]

I think you need to set "ethertype=0x88a8" in OFPActionPushVlan,
if a VLAN tag already exists at S2.

Thanks,
Iwase

> 
> 
> I am facing the below PROBLEM :-
> When I check the wireshark trace of packets at port 2 of S2, only a 
> single tag is present , with VLAN ID 100. The old VLAN tag is being 
> overwritten
> 
> 
> Where am I going wrong ? I tried changing the ether type at S2 to 0x88a8 
> and 0x9100, but getting the same result.
> 
> I would be really grateful if someone could assist me in solving the 
> above issue.
> 
> 
> Thanks,
> Regards,
> Varun Nair
> 
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
> 

------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to