First you have to use 802.1q trunking on the switchport:
switchport trunk encapsulation dot1q
(switchport trunk native vlan 1)
switchport trunk allowed vlan 2-4094
switchport mode trunk
Then you have to configure your NIC to recognize and send tagged packets. On some Broadcom NICs for example you can do this with a windows utility. With Linux you can configure the kernel to support 802.1q and create virtual NICs for each vlan. Can you give some more details about what you want to achieve and what OS?
Edit: For windows you have to check if your NIC supports vlan tagging. Many Intel and Broadcom NICs do...
Check in the driver settings of you NIC if there is a field like "vlan trunk" or anything similar and/or check the manual of your NIC. Sometime you also need a special driver for this. I maybe can give you some more detailed information if you can tell me what NIC you have exactely...