How to add vlan without vconfig command? [closed]

ip link add link eth0 name eth0.5 type vlan id 5 

do not forget to make link UP:

ip link set eth0 up
ip link set eth0.5 up