The Galaxy Tab 2 10.1 has gotten rooted by the guys at RootzWiki. Try the root at your own risk. Its been tested for the Galaxy Tab 2 7.0 and works perfectly on both the 7.0 and 10.1 tabs. The Android 4.0 multitouch tablet, Galaxy Tab 2, is the latest tablet in Samsung’s ever-growing tab lineup. Follow the steps below to get your device rooted:
Flash xoomdev’s CWM recovery First, then flash the root package.
Xoomdev’s thread
Download the recovery.tar.md5
Make sure Kies is closed
Reboot into Download mode (adb reboot download)
Open Odin, confirm connection
Click PDA
Load recovery.tar.md5 file
Click Start
Device will reboot when the flash is complete
To reboot into recovery, just like any other device; adb reboot recovery
Link to the CWM Package
Link to root package
Source RootzWiki