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:
-
Locate the Printer's IP Address:
- Print a "Printer Test Page" from the device to find its IP.
-
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.
-
Add a Route:
- Use the following command to add the route:
CMD:
Replaceroute -p ADD 10.21.16.49 10.21.22.1
10.21.16.49
(printer IP) and10.21.22.1
(gateway) with actual values.
- Use the following command to add the route:
-
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.