12.07.2015 Views

download

download

download

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Network Configuration—PPPThe next step is to modify the /etc/gettytab file, telling it to run the ppploginscript in case you detect a point-to-point connection on the line. The default clauseshould be modified to look like this:default:\:cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:\:if=/etc/issue:\:pp=/etc/ppp/ppplogin:Now you should make your system accept incoming dial-in requests on the serialports. This should be done by modifying the /etc/ttys file. This file contains a fewlines defining the serial port behavior. The following is the default configuration thatyou will see in /etc/ttys:# Serial terminals# The 'dialup' keyword identifies dialin lines to login, fingerd etc.ttyd0 "/usr/libexec/getty std.9600" dialup off securettyd1 "/usr/libexec/getty std.9600" dialup off securettyd2 "/usr/libexec/getty std.9600" dialup off securettyd3 "/usr/libexec/getty std.9600" dialup off secureThere are four lines, each of which belongs to a serial port. In FreeBSD, ttyd0 isequal to the first serial port (COM1), ttyd1 to the second serial port (COM2), andso on. Depending on which port you have connected the modems to, you shouldenable serial ports by modifying relevant lines of configuration. For example, if youhave connected two modems to ttyd0 and ttyd1, your configuration file should bemodified to look like this:ttyd0 "/usr/libexec/getty std.115200" dialup on securettyd1 "/usr/libexec/getty std.115200" dialup on secureYou may also want to change the serial connection speed. The default isset to 9600 baud, which is not enough in most cases. It is recommended toset it to the maximum (115200). If you are experiencing any problems withthe maximum speed, it would be a good idea to reduce the connectionspeed to 57600 baud which would be sufficient for a 56kbps connection.Once you finish editing the /etc/ttys file, you should reload the tty configuration:# init qThis command will reload the tty configuration information from the /etc/ttys file,and from this moment, the incoming calls to your modems should be answered.[ 150 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!