4. Typical configurations or HOW TO build:
Build your router in 2 steps. You will be offered to choose a type of router:
and then you will pass through standard setup procedure for chosen type.
After that you can change same or all settings via "Advanced settings"
menu. Some of settings don't appear during standard setup procedure and you can
change them only from "Advanced settings" menu, but default setting
are suitable for most cases. All settings are numbered and if you don't
understand any setting you can ask help by number. All settings are also
colored. Green settings are required, yellow
- optional, red - if you aren't guru better don't
touch it. Most questions have default answers enclosed in brackets and
you can pass default answer by pressing <Enter> key. However sometimes
it's required to pass empty string instead of default answer, in such cases user
must reply with "n".
4.1 Modem-to-Ethernet router in dial-on-demand mode
(analog or ISDN modem).
NOTE: ISDN modems are external modems connected via serial port. ISDN
cards are not supported.
Since I've issued FREESCO router Ballantain became obsolete. FREESCO replaces
Ballantain fully.
Here is a picture of typical network with FREESCO as Modem-to-Ethernet
router:

Let's pass step by step setup for this type of router.
711 Hostname of this computer [router]? Press <Enter>
Give a name to your router, default is router.
712 Domain name [inet]? Press <Enter>
Give a name to your whole local network, default - inet.
How many ethernet cards do you have [1-3]? 3
Let's say for example you have 1 cards and 1 local network respectively.
811 I/O port address of 1st ethernet card [0x300]?
Enter hexadecimal address here.
Some ethernet cards are plug-n-play and their Linux drivers don't require this
address and you can leave it default.
812 IRQ line of 1st ethernet card [11]?
Some drivers require this parameter, some don't.
720 Use DHCP client for configuring 1st network interface y/n [n]? n
If you have Analog modem or ISDN modem answer "n"
here. This feature is for Ethernet-to-Ethernet or Cable Modem-to-Ethernet
router.
721 IP address of 1st network interface [10.0.0.1]? Press <Enter>
If you already assigned IP addresses in your network choose one which belongs
to your network. If you build your network from a scratch default answer will be
a good choice.
722 Network mask [255.0.0.0]? Press <Enter>
723 IP range [10.0.0.100 10.0.0.150]? Press <Enter>
Answer "n" will disable DHCP service
on this interface.
14 Screen saver, in minutes. 0 - disable [0]? Press <Enter>
15 Swap file size in kbytes (on boot device). 0 - disable [0]? <Enter>
41 Enable caching DNS server y/n [y]? Press <Enter>
421 Enable DHCP server y/n [y]? Press <Enter>
This option enable or disable DHCP server at whole.
422 WINS address (if you have one, otherwise - n) []? Press <Enter>
If you don't have WINS server (Windows NT server or
Samba-on-Unix server) or if you aren't sure answer "n"
here.
431 Enable public HTTP server y/n [n]? Press <Enter>
441 Enable time server and router control via HTTP y/n [y]? <Enter>
442 Control HTTP server IP port [81]? Press <Enter>
451 Enable Print Server y/n [y]? Press <Enter>
452 Print server IP port [515]? Press <Enter>
453 Output device name [lp1]? Press <Enter>
Then FREESCO will try to detect your modem(s) and will
show the result. Rarely auto detect procedure fails, try to set up your modem(s)
manually in "Advanced settings" menu, usually it happens when you
start setup program from normally booted system. Modem auto detecting
procedure works proper only when you boot system in setup mode.
32 Host DNS address (usually your provider's DNS) []? Enter
your ISP DNS address
16 Keep up ppp link for N sec. 0 - use filter.cfg; 1 -
forever. [600]? Press <Enter>
This option defines how long dialing daemon will keep
link up after last packet passed. If you going to use filter.cfg which describes
how to bring up link and how long to keep link up for different types of packets
please read diald manual at its home page - http://www.loonie.net/~eschenk/diald.html
. If you set this parameter to any value differ from 0 or 1 it means diald will
bring up a link for any packet and will keep link up N seconds after last
packet. Value 1 is good when you have absolutely unlimited connection.
31 ISP phone numbers [T4004444 T5004444]?
Dialing method and phone number. T - stands for tone
dialing, P - stands for pulse dialing.
331 Does your ISP give you dynamic IP address [y]? Press <Enter>
Usually yes, otherwise answer "n"
and enter IP addresses of local and remote sides of ppp link.
341 Authentification method - pap/chap/script []? script
If your ISP starts ppp daemon on his side right after
connection it means it uses pap or chap method and you must provide login name
and password. If after connection with ISP you must login before pppd starts it
means you must use script method. For this method you must describe chat
sequence.
Let's for example describe chat sequence with my provider. After connection my
ISP output login prompt:
Username:
and waits my login name, then it output another prompt:
Password:
and waits my password, then it output third prompt:
emirates-xyz>
and waits until I type ppp followed
by <Enter>, and only after all this ppp daemon starts on ISP side.
So chat sequence will be - wait for "name:" and enter my
login name, then wait for "word:" and enter my password,
then wait for ">" (xyz - usually varies, it depends on which
router I've connected to) and enter ppp, then start ppp daemon on my
side. There are four pairs "Wait For" and "Reply With", if
it's more then you need leave last pair(s) blank. You may need to use some
control symbols in chat sequence, use these back slashed symbols:
- \c - suppresses the new line at the end of the reply
string. This is the only method to send a string without a trailing return
character. It must be at the end of the send string.
- \b - represents a backspace character.
- \d - delay for one second (not valid in expect).
- \K - insert a BREAK (not valid in expect).
- \n - send a new line or linefeed character.
- \r - send or expect a carriage return.
- \N - send a null character.
- \t - send or expect a tab character.
- \\ - send or expect a backslash character.
- \ddd - collapse the octal digits into a single ASCII
(some characters are not valid in expect).
- ^C - send control character represented by C (some
characters are not valid in expect).
Q0 Waitfor []? name:
R0 Reply []? martin
Q1 Waitfor []? word:
R1 Reply []? my_secret_password
Q2 Waitfor []? >
R2 Reply []? ppp
Q3 Waitfor []? Press <Enter>
R3 Reply []? Press <Enter>
Warning!!! At this step internet passwords will be
saved without prompt.
That's all. You will be again in main menu, now you can
save your new config file reboot system and router is ready.
This setup is very similar to Ballantains setup and if you set up your router as
it was just described you will get a full replacement of Ballantain router + DNS
server + Print server + Time&Control server.
4.2 Modem-to-Ethernet router in leased line mode (analog
or ISDN modem).
Setting up of this type of router is very similar to process described in
section 4.1, but you may need to edit file rc_lease according your
specific conditions.
4.3 Ethernet bridge
Ethernet bridge separates two or three parts of network. Bridge remembers in
which parts are located computers and if one computer sends packet to another
computer and both are situated in the same part of network bridge will not pass
this packet to another parts of network. This device reduce traffic within and
between different parts of network.
In network without bridge:

every packet sent from one computer reaches every computer on every part of
network.
What will happen if we connect FREESCO as a bridge?

For instance, let Client #3 sends packet to Client #1. Packet will reach
Client #1, Client #2 and FREESCO brigde. FREESCO knows that Client #1 is
situated in the same part (local net 1) and will not pass this packet in other
parts on network (local net 2 and local net 3). If packet sent by Client #3
addressed to computer on other part of network FREESCO will pass it to
respective part.
The most simplest device and setup procedure. This device doesn't
require maintaining. Bridge works with MAC ethernet addresses and can be used in
network with any protocol.
How many ethernet cards do you have [2-3]? 3
811 I/O port address of 1st ethernet card [0x300]?
812 IRQ line of 1st ethernet card [11]?
821 I/O port address of 2nd ethernet card [0x320]?
822 IRQ line of 2nd ethernet card [7]?
831 I/O port address of 3rd ethernet card [0x340]?
832 IRQ line of 3rd ethernet card [13]?
That's all. Easy, isn't it?
4.4 Ethernet-to-Ethernet router
In this configuration 1st ethernet is used as link to ISP, the rest
(ethernets and modems) are used as links to local or remote computers and
networks.

Let's have a look what setup procedure will do for us.
711 Hostname of this computer [router]?
712 Domain name [inet]?
How many ethernet cards do you have [1-3]? 3
811 I/O port address of 1st ethernet card [0x300]?
812 IRQ line of 1st ethernet card [11]?
821 I/O port address of 2nd ethernet card [0x320]?
822 IRQ line of 2nd ethernet card [7]?
831 I/O port address of 3rd ethernet card [0x340]?
832 IRQ line of 3rd ethernet card [13]?
720 Use DHCP client for configuring 1st network interface y/n [y]?
1st ethernet interface has ability to be configured
through DHCP, it's very useful when you use cable modem.
721 IP address of 1st network interface [10.0.0.1]?
722 Network mask [255.0.0.0]?
723 IP range [10.0.0.100 10.0.0.150]?
731 IP address of 2nd network interface [192.168.168.1]?
732 Network mask [255.255.255.0]?
733 IP range [192.168.168.100 192.168.168.150]?
741 IP address of 3rd network interface [172.22.0.1]?
742 Network mask [255.255.0.0]?
743 IP range [172.22.0.100 172.22.0.150]?
14 Screen saver, in minutes. 0 - disable [0]?
15 Swap file size in kbytes (on boot device). 0 - disable [0]?
41 Enable caching DNS server y/n [y]?
421 Enable DHCP server y/n [y]?
422 WINS address (if you have one, otherwise - n) [10.0.0.2]?
431 Enable public HTTP server y/n [y]?
432 Public HTTP server IP port [80]?
441 Enable time server and router control via HTTP y/n [y]?
442 Control HTTP server IP port [82]?
451 Enable Print Server y/n [y]?
452 Print server IP port [515]?
453 Output device name [lp1]?
32 Host DNS address (usually your provider's DNS) [123.123.123.123]?
75 Host gateway (if exist, otherwise - n) [233.233.233.233]?
4.5 Cable Modem-to-Ethernet router
This section to be done with your help. Who will try to write it? It's very
similar to section 4.4
4.6 Print server
Configuring this type of device similar to configuring Ethernet-to-Ethernet
router.
711 Hostname of this computer [router]?
712 Domain name [inet]?
How many ethernet cards do you have [1-3]? 2
811 I/O port address of 1st ethernet card [0x300]?
812 IRQ line of 1st ethernet card [11]?
821 I/O port address of 2nd ethernet card [0x320]?
822 IRQ line of 2nd ethernet card [7]?
720 Use DHCP client for configuring 1st network interface y/n [y]? n
721 IP address of 1st network interface [10.10.0.1]?
722 Network mask [255.255.0.0]?
723 IP range []?
731 IP address of 2nd network interface [192.168.168.1]?
732 Network mask [255.255.255.0]?
733 IP range [192.168.168.200 192.168.168.240]?
14 Screen saver, in minutes. 0 - disable [0]?
15 Swap file size in Kbytes (on boot device). 0 - disable [0]?
41 Enable caching DNS server y/n [y]?
421 Enable DHCP server y/n [y]?
422 WINS address (if you have one, otherwise - n) [10.10.10.2]?
431 Enable public HTTP server y/n [y]?
432 Public HTTP server IP port [80]?
441 Enable time server and router control via HTTP y/n [y]?
442 Control HTTP server IP port [81]?
451 Enable Print Server y/n [y]?
452 Print server IP port [515]?
453 Output device name [lp1]?
32 Host DNS address (usually your provider's DNS) [194.170.1.6]?
75 Host gateway (if exist, otherwise - n) []?
You see here a lot of questions not concerning to Print
server just because Print server can be DHCP server and/or HTTP server and/or
Time server and/or DNS server and/or Remote Access server at the same time.
|