47. FreeBSD As A Dialup Server
Introduction to FreeBSD
47.1.  Installing a Modem
47.2.  Configuring the modems
47.3.  Multiport modem boards.
47.4.  pppd

47.1.   Installing a Modem

47.1.1.  Pre-Install
47.1.2.  Install Hardware.
47.1.3.   Configuring a Modem IRQ/COM Port and Device Driver

47.1.1.   Pre-Install

Before you install the modem in your computer, you need to know a few things:

  1. The COM port the modem is currently on.

    There are 4 COM ports available on a standard Computer. The Mouse will usually take up the first one; unless you have a PS/2 Mouse.

  2. How to Change the COM ports on the Modem.

    Most Modems come with Jumpers on the board that you can change, however some of the new ones are Plug N Play.

  3. What the IRQ setting currently is.

    There are 15 IRQ setting available, but most of them are already in use. Commonly you can assign IRQ's 3,4,5,9, and 10.

  4. How to Change the IRQ setting.

    As with COM Ports, most Modems come with Jumpers on the board that you can change, however some of the new ones are Plug N Play.

  5. What Speed the Modem is.

    Usually it will be a 14,400 Bps, 28,800 Bps, or 33,600 Bps. There are a few new ones that run at 56,700 Bps or higher.

  6. What COM ports are available in your Computer.

  7. What IRQ's are available in your Computer.

Now you want to select an IRQ and a COM port that is available in your computer and set the modem jumpers to match it.

47.1.2.   Install Hardware.

Now we need to install the Modem in your Computer.

  1. Shutdown FreeBSD; type: shutdown -h now as root.

  2. Turn off Computer and unplug it. (just to Be safe)

  3. Remove Cover

  4. Install Modem; Make sure the modem is securely seated in slot and the retaining screw is tight.

  5. Plug Phone Cord into Modem.

  6. Replace cover; plug it in and turn it on.

Now your Modem is installed.

47.1.3.   Configuring a Modem IRQ/COM Port and Device Driver

Turn on your Computer and Boot to FreeBSD with the -c Option. If your computer is already on, you will need to reboot it. At start-up, you will see the Boot: prompt; type -c and press ENTER.

>> FreeBSD BOOT @ 0x10000: 639/31744 K of Memory

Usage: [[[0:]fd](0,a)]/kernel][-abcCdghrsv]

Use 1:sd(0,a)/kernel to boot sd0 if it is BIOS drive 1

Use ? for file list or Enter for defaults

Boot: -c 

Now it should start booting and take you to a config> prompt. Here you need to type visual

47.2.   Configuring the modems

Not Yet Scheduled

47.3.   Multiport modem boards.

BocaBoard 16 Port

In order to use a Multi port board, you need to modify your kernel. If you have never built your own custom kernel, see the directions on Creating Custom Kernels in the Basic FreeBSD programming section.

In your Custom Kernel Config File, add the following line at the top of the document:

	options		COM_MULTIPORT		#Multi-Port Support

Next you need to add support for the extra COM ports. Each new COM port needs to have a "device" entry in the Kernel Config File or the Kernel will not be able to recognize it as a valid piece of hardware. BOCA Multi-port boards use a shared IRQ.

You will need to specify the Port memory starting address and the IRQ of the card using the jumpers found on the card. Follow the instructions provided by BOCA for the card that you use.

A BOCA 8 port board will not work because it doesn't have the modem control capabilities. You will also need to buy db25 to rj45/10 connectors to connect from the BOCA breakout box to the external modems.

You will need to add the following to your Kernel Config File, assuming that your starting port address is 100h and the IRQ is 12.

This is an example of a BOCA 16 port Board Sharing IRQ 12, with a starting address of 100H. Adjust your settings as required. You'll notice that I commented out sio1-3 from the File, but left sio0. I am using a mouse on COM1 and am not using any of the other Serial ports. You can start the BOCA sio numbering at the first free COM Port.

Save the file and rebuild your kernel.

Now we need to edit /etc/ttys and add the lines to activate all the extra lines.

Next we create the required devices in /dev

Next we edit /etc/modems so it initializes all the new Devices at startup.

Last we reboot.

47.4.   pppd

Not Yet Scheduled

Return to Table of Contents

Visit the Gifcom