The bandwidth command is applicable only to interfaces, not the global level. It is used to determine the link cost for link-state protocols, among other things. It does not affect the actual bandwidth of the interface. And it certainly does work with sub-interfaces.
Paresh