This configuration requires setting up global parameters to take into account the on demand or continuous dial setup, configuring each of the ports that will be part of the group of lines dialing, and setting up a dialout location appropriate for the terminal server or router you are dialing into.
Configuration of each of the dialout interfaces begins with specifying the network type for the port in question. In this case, its "dialout". The router normaly uses the address of ether0 as the local address for these connections however, for our configuration, we've hard-coded the port address and netmask. Since this is an "on demand" configuration, we want to prevent unnecessary traffic from passing out this interface. To that end, the ports have been configured to listen to RIP packets but not to transmit them. Since the local network has only one exit point, we also disabled routing on the ethernet interface. The one remaining task is to assign the port to a dial group. This is used in indeitifying which interfaces can be used to connect to the programmed location. Each port can be a member of only one group.
The remaining parameters deal with setting up the connection, authentication, the number of ports that can be used, when additional interfaces are used, where to connect to, and when to tear down the connection.
Since this is not a dedicated connection, we've set the type to "on_demand" instead of "continuous". The difference being that an "on_demand" connection is only opened when traffic must pass out an interface associated with that location. A "continuous" connection establishes automatically, regardless of traffic levels and if disconnected, will sleep for 1 minute and then attempt to reestablish the connection automatically. If you only want to connect to the location once, or only occassionally, you could also specify "manual" as the type. This type of connection requires that someone log into the router and force the connection open. When it disconnects, it will not reconnect.
There can be any number of interfaces in the connection group. To have the unit make use of additional interfaces, set "maxports" to the desired value. Since the connection we are setting up is an ISDN connection, we also want it to use multilink PPP instead of PPP load balancing. When additional interfaces are brought up is determined by the traffic load on the established interface(s). The "high_water" mark is the number of bytes queued for an interface. When this threshold is reached, an additional interface will be put into use, if additional interfaces are availible.
On ISDN lines, there is often a unit charge associated with the line. Similarly, if a dialup is made over a long distance line, there is a unit charge for that. If no idle timeout is set, the connection would remain up until somethig in the network caused the connection to drop. This can lead to unnecessary bills and possibly job openings. To avoid this, set a timeout for the location to some reasonable value. In our case, 10 minutes.
All that remains is to set the phone number to dial and the username and password to pass to the corosponding host for authentication. It should be noted that the characters in the phone number are passed directly to the device attached to the interface. For an ISDN connection, the only characters permitted are numbers. Formatting the phone number as 555-5555 (using the dash character as a seperator) will cause the switch to reject the call.
set sysname dialout-1 set password hello add netmask 206.165.9.0 255.255.255.240 set address 206.165.9.241 set netmask 255.255.255.240 set broadcast high set gate 206.165.11.201 set routing off set default listen set isdn-switch ni-1 set s1 network dialout set s1 spid 60212345671111 set s1 directory 6021234567 set s1 address 206.165.9.241 set s1 netmask 255.255.255.240 set s1 routing listen set s1 group 1 set s2 network dialout set s2 routing listen set s2 address 206.165.9.241 set s2 netmask 255.255.255.240 set s2 spid 60212345671111 set s2 directory 6021234567 set s2 group 1 add location pnet set location pnet on_demand set loc pnet proto ppp set loc pnet mtu 1500 set loc pnet dest 206.165.11.201 set loc pnet netmask 255.255.255.0 set loc pnet routing listen set loc pnet group 1 set loc pnet maxports 2 set loc pnet high_water 1000 set loc pnet idle 10 set loc pnet multilink on set loc pnet username Pfoo set loc pnet password abcdefg set loc pnet telephone 5551234 set loc pnet compress on
Mail suggestions, corrections, and comments to web@typo.org