HIS (SDI) Howto


Replace @YOUR_DEVICE@ with whatever name your system uses (typically /dev/dty00 on NetBSD, /dev/cuaa0 on FreeBSD and /dev/cua00 on OpenBSD). I assume that your config files are in /etc/ppp (it'll by default be be in /usr/pkg/etc/ppp on NetBSD if you're using userppp package).

File /etc/ppp/ppp.conf:


default:
 set device @YOUR_DEVICE@
 set log Phase Chat LCP IPCP CCP tun command
 set speed 115200
 set dial "ATD0 OK"
 set timeout 120
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR
 enable dns

his:
 set speed 115200
 set device @YOUR_DEVICE@
 set ifaddr @YOUR_IP@ 0.0.0.0
 set timeout 0
 enable dns
 set log local phase
# set server +3000 @ANY_PASSWORD@
 set urgent TCP 22 23 6667
 set urgent UDP 53
 set dial "ATD OK"
 set login
 set authname @YOUR_USERNAME@
 set authkey @YOUR_PASSWORD@
 set phone 0

If you're using FreeBSD you can put the following to /etc/rc.conf so that ppp will be started automatically:


ppp_enable="YES"        # Start user-ppp (or NO).
ppp_mode="dedicated"    # Choice of "auto", "ddial", "direct" or "dedicated".
                        # For details see man page for ppp(8). Default is auto.
ppp_nat="YES"           # Use PPP's internal network address translation or NO.
ppp_profile="his"       # Which profile to use from /etc/ppp/ppp.conf.

If you don't run FreeBSD, or just want to establish the connection by hand, type (or add to /etc/rc.local) the following:

ppp -quiet -nat -dedicated his


Another way to establish the link is to use pppd (kernel space ppp). I'm using dty00 as the device in the example (see above section).

File /etc/ppp/options.dty00:

115200
modem
defaultroute
crtscts
asyncmap 0
name @YOUR_USERNAME@

File /etc/ppp/pap-secrets:

@YOUR_USERNAME@	*	@YOUR_PASSWORD@	@YOUR_IP@

You can establish the connection by typing the following command (of course device name needs to be tuned):

pppd /dev/dty00


[Powered by NetBSD] [Powered by XML+XSL] [Powered by vi]