Home/Support / Knowledge Base / HOW TO: Create a Serial Tunnel or Bridge with Digi PortServer and Digi One Products Using the Comman

HOW TO: Create a Serial Tunnel or Bridge with Digi PortServer and Digi One Products Using the Command Line Interface

HOW TO: Create a Serial Tunnel or Bridge with Digi PortServer and Digi One Products Using the Command Line Interface

First determine which unit will be establishing the connection. Here is an example configuration for port 16 on a remote PortServer unit. The following commands are issued from the root prompt of the Digi unit:

#> set port range=# dev=term auto=on dest=(ip_of_master_portserver) dport=2016

The range # refers to the actual port, the dport value is the port on the "master/host" PortServer. Use 2001 for port one, 2011 for port 11, etc...

The port used on the master/host unit will need to be passive (meaning it cannot assert a getty), so we recommend something like mout (for DCD sensitivity) or prn. Master/host unit configuration:

#> set port range=# dev=prn

Then obviously and baud rate, flow control settings can be configured as applicable:

#> set line baud=19200 range=#

Keep in mind that there can only be on session at a time on the "master/host" port and all subsequent connection attempts will result in a "refused" error.>P> Once the tunnel/bridge is configured/established, connecting to the master/host port will show the data coming in from the remote serial port. Data sent through the host port will be sent to the remotely attached serial device.

To connect to the master/host port, simply use the appropriate TCP port/socket. For example:

telnet (IP_of_Digi_unit) 2001

This will connect to port number one.

Additionally, any "listening" application would listen on the same TCP port.

*Note: For binary or raw data, use the 2100 TCP sockets/ports. For example, 2116 for port 16 and 2101 for port 1.


Last updated: Aug 23, 2017

Filed Under

Network

Recently Viewed Articles

No recently viewed articles
Contact a Digi expert and get started today! Contact Us