Example: Add Static Route for JCA Printer


Printer Details:

  • Printer IP Address: 10.21.16.49
  • Gateway Address: 10.21.22.1

Command Syntax:

route -p ADD [Printer IP] [Gateway]

Example:

route -p ADD 10.21.16.49 10.21.22.1

This ensures the printer is accessible while connected to the VPN.


Steps:

  1. Locate the Printer's IP Address:

    • Print a "Printer Test Page" from the device to find its IP.
  2. Determine the Gateway Address:

    • Disconnect from VPN.
    • Open Command Prompt (cmd.exe) as an Administrator.
    • Run: route print
    • Identify the gateway associated with the interface connected to the printer's network.
  3. Add a Route:

    • Use the following command to add the route:
      CMD:
      route -p ADD 10.21.16.49 10.21.22.1
      Replace 10.21.16.49 (printer IP) and 10.21.22.1 (gateway) with actual values.
  4. Test the Route:

    • Reconnect to the VPN.
    • Verify connectivity by pinging the printer:
      CMD:
      ping 10.21.16.49
    • If successful, print a test page to confirm.