As others have said, you can rule out the gearbox, that's a whine or grumble, not a rattle.
If it only happens around 2000rpm, have a play with the throttle around 2000rpm and see if you can affect the noise. If the noise comes and goes, it could be engine related, if it's reasonably constant, then it's probably something loose and resonating as culzean suggests.
There are lots of reasons why you could be getting an engine rattle, but best to try to work out where it's coming from first.