Step 01- Create VLAN
#vlan 2
#name IT
#vlan 999
#name Native-VLAN
Step 02- Assign Port under VLAN
#int fa 0/2
#switchport mode access
#switchport access vlan 2
#int fa 0/3
#switchport mode access
#switchport access vlan 999
Step 03- Declare Trunk port
int fa 0/1
#switchport mode trunk
Step 04- Specify VLAN allow through trunk port
#switchport trunk allowed vlan 2,999
save the configuration and check