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
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