The syntax of the command is


ping -I vlanX  (capital -i and lowercase vlan)