Cut the 2-by-6 to a length of at least 24 inches. Sand the edges of the board to smooth away any splinters or rough edges.
Determine how many pegs can fit, based on the exact length chosen for the cut board. Distance between pegs should be an average of 3 or more inches.
Mark the position of each peg on the board with a pencil. Using a Forstner bit equal to the diameter of the dowels, drill a hole half the thickness of the board for each peg.
Cut dowels into 5-inch lengths. Apply wood glue to one end of each dowel. Insert one dowel into each hole in the board.
Turn the board over, with the dowels resting on the tabletop. Drive a wood screw through the back of the board and into each dowel. Wipe off any excess wood glue from the base of each dowel and let dry overnight. Prime and paint as desired, once the glue dries.