Plumbing – How to eliminate stink from a waste water pipe

drain-waste-ventplumbingwashing-machine

After some trouble I've finally figured out the source of the stink in my kitchen. The waste water pipe for the clothes washing machine does not have a U-bend/P-trap in it, and so the fumes from the outside drain are rising up through it:

enter image description here

A friend suggested I wrap the [washing machine] pipe tight with newspaper, like a cigar, and seal it off with silicone. Before I try this and/or if this fails, are there any other tricks that might eliminate the stink? Getting a professional plumber in to re-pipe things is a last resort. But I'd be open to getting a plumber in if there's something they could 'add' to this pipe to create a trap.

I should add that I don't own the property. But I have a pretty good relationship with the owner. After I reported the issue I said that I'd first try fix it myself.

Better picture of the pipe:

enter image description here

Also, I didn't think this was relevant so I didn't share it, but before I put 2 and 2 together (no p-trap, ugly mark from the fumes), I was using baking soda and vinegar to try to eliminate the stink. This exposed a leak in the pipe (see video on Google Drive) which I don't even care about for now because it's minor compared to the stench.

Best Answer

Cut the current pipe and install the p-trap near the bottom, close to however it's vented. Retain the cut piece of pipe and add it back above the new p-trap.

Gluing to the top (as mentioned in comments) will cause an overflow issue.