You can do this in two parts. Two pairs or one pair and two different.

If you have two pairs you have 6C2 choices for what the digits are. These can be arranged 4!/(2!2!) ways.

If there is only one pair you are choosing three digits with three choices for which is doubled. That's 6C3x3. These can be arranged 4!/2! ways.

Final answer :