These brackets work.  They are easy to set up and can be moved when you need to.  Leave a couple inches from the ends of the 2x4s...otherwise the brackets might slide off.  But once set up, they are rock solid and tough.  I like also that you can use basically any length 2x4 so they are very versatile.