Host Device Setup

In this example a user has a local SunOS 4.1.3 workstation 192.9.200.2 and PortMaster (TM) 192.9.200.1 and wants to be able to dial into PortMaster on port S2 but also tip out to that port as /dev/ttyrf. The modem is a USRobotics 14400 and is connected via a straight-through cable.It should be set for Hardware flow control and carrier detect, with DTE locked down between the modem and PortMaster. The user also has a 9600 baud printer on port S9 that uses Xon/Xoff software flow control.

Install the host software on the local UNIX workstation, so it can run the PortMaster daemon, in.pmd - this modifies /etc/services and /etc/inetd.conf and copies in.pmd into /usr/etc.

You'll need to add /dev/ttyrf to /etc/remote and /dev/ttyre to /etc/printcap.

Set the local PortMaster as follows:

set addr        192.9.200.1
set host        192.9.200.2

# for terminal s2; use similarly for s1, s3-s8
set s2 ext on
set s2 login device /dev/ttyrf
set s2 speed 1 57600
set s2 speed 2 57600
set s2 speed 3 57600
set s2 modem on
set s2 xon/xoff off
set s2 rts/cts on
set s2 host default
set s2 service_login portmaster  (Can be any of the four.)
set s2 service_device portmaster
set s2 override xon/xoff off
set s2 security on               (requires authentication)
set s2 idletime 60               (disconnect 1 hour idle)
save s2
reset s2

# for serial printer
set s9 ext on
set s9 device /dev/ttyre
set s9 speed 1 9600
set s9 speed 2 9600
set s9 speed 3 9600
set s9 xon/xoff on
set s9 host default
set s9 service_device portmaster
set s9 override xon/xoff off
save all
reset s9

You should now be able to access the devices on the PortMaster via these tty's as if they were connected to a local serial port.