Juniper vMX – Common Management Commands

The Juniper vMX router for KVM includes a shell script to install and manage the vMX virtual machines. Here are the common commands you can use with the vmx.sh script:

  • To do the initial installation of the vMX (this only needs to be done once, if you run it again it will delete any configurations you have applied): ./vmx.sh -lv --install
  • To start the vMX: ./vmx.sh --start
  • To stop the vMX: ./vmx.sh --stop
  • To restart the vMX: ./vmx.sh --restart
  • To check the status of the vMX: ./vmx.sh --status
  • To remove the vMX completely: ./vmx.sh --cleanup
  • To access the vMX routing engine console using telnet (use Control + ] to exit): telnet 127.0.0.1 8601
  • To access the vMX forwarding plane console using telnet (use Control + ] to exit): telnet 127.0.0.1 8602
  • To access the vMX routing engine console using vmx.sh (use Control + ] to exit): ./vmx.sh --console vcp vmx1
  • To access the vMX forwarding plane console using vmx.sh (use Control + ] to exit): ./vmx.sh --console vfp vmx1

These commands should all be executed from within the vMX directory. If you have extracted the vMX .tar.gz file to /home/vMX-17.4R1 for example, make sure you are in that directory before running the commands.

Leave a Reply

Your email address will not be published. Required fields are marked *