I believe that you are asking the question of "how you use data vlan (i.e routed and for all the ports) and leave the mangement vlan un-routed for cisco mgmt ie cdp, vtp etc " (The reply is based on this assumption)
With an IOS based switch such as a 35xx or the new 29xx :
!
int vlan 1
shut
!
int vlan 10
ip address x.x.x.x 255.255.255.0
no shut
!
ip default-gateway 1.1.1.1
!
On a cat OS switch such as the 6500 :
!
#ip (where 10 is the vlan number)
set interface sc0 10 x.x.x.x/255.255.255.0
set ip route 0.0.0.0/0.0.0.0 x.x.x.1
!
We use this type of config on all our layer 3 designs. Hope this helps.