Linux is a very nice operating system that was developed cooperatively on the Internet. Since it was developed on the Net, it is not surprising that Linux and Internetworking work so well together. If you would like more basic information about Linux, check out the Linux International home page or the Linux Documentation Project's home page. I have collected these and several other good Linux references.
Access a Net Access Dial-Up Unix Shell account with standard telecom software:
There are at least three fine telecomunications programs that work under Linux (seyon, minicom, and kermit). Each of which will let you dial into your Internet account.
Access a Net Access Dial-Up Unix Shell account with Term:
Term is a program that lets you run multiple applications over a serial line. With Term you can run Netscape and other X11 client applications through your Unix shell account. To get more information about Term please see the Linux Documentation Project's Term HOWTO.
Access a Net Access Dial-Up SLIP/PPP Account:
Linux supports SLIP via the "dip" program and PPP via pppd. Theoretically CSLIP is faster than PPP. Since PPP has become such a widespread standard and is rock solid, I've been using PPP over SLIP lately. For more information on Linux networking check out the Linux Net-3 HOWTO and the Linux Network Administrator's Guide (nag)).
See below for tips on setting up Networking for use with a Net Access SLIP/PPP account.
Access the Internet full-time with a Net Access Dedicated SLIP/PPP Account:
Linux is a great way to hook your company's LAN to the Internet. Configuration is similar to that of a dial-up SLIP/PPP account.
Set your machine's hostname using the hostname command (Slackware uses /etc/HOSTNAME to initialize the hostname at boot time; Debian uses /etc/hostname). You can choose any hostname. It doesn't really matter since the Internet won't "know" your machine's name anyway.
There are several ways to set up nameservice (resolving hostnames
into IP addresses) under Unix.
The simplest way is to set up the resolver to use Net Access'
nameserver. To do this simply put the following lines into
/etc/resolv.conf
:
domain netaxs.com
nameserver 207.8.186.1
nameserver 207.8.186.1
And make sure these lines are in /etc/host.conf
:
order hosts,bind
multi on
nospoof on
alert on
Alternatively you can set up named. Here's a step-by-step (several
of the filenames will differ depending on how your distribution sets up
bind --- BE CAREFUL!):
In /etc/resolv.conf
make "nameserver 127.0.0.1" the
first nameserver. If you have a forwarders line in your
/etc/named.boot
(as below), you can omit the other
nameserver lines from /etc/resolv.conf
.
Set up the basic config options for named in
/etc/named.boot
:
;
; boot file for name server
;
cache . /etc/named.ca
primary 0.0.127.IN-ADDR.ARPA /etc/named.local
forwarders 207.8.186.1 207.8.186.2
Set up the basic name servers in /etc/named.ca
:
; Net Access Name Servers
;
. 99999999 IN NS ns1.netaxs.com.
99999999 IN NS ns2.netaxs.com.
;
; Net Access Name Servers by address
;
ns1.netaxs.com. 99999999 IN A 207.8.186.1
ns2.netaxs.com. 99999999 IN A 207.8.186.2
Finally set up the loopback address in /etc/named.local
(obviously, change the username, cjf, and hostname, linux, to something
more appropriate for your system):
@ IN SOA syntropy.netaxs.com. cjf.syntropy.netaxs.com. (
1 ; serial
36000 ; refresh every 100 hours
3600 ; retry after 1 hour
3600000 ; expire after 1000 hours
36000 ; default ttl is 100 hours
)
IN NS syntropy.netaxs.com.
1 IN PTR localhost.
options { directory "/var/named";
forward only;
forwarders { 207.8.186.1; 207.8.186.2; };
listen-on { 127.0.0.1; };
zone "localhost" { type master; file "named.local"; };
@ IN SOA localhost. root.localhost. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Default TTL
;
@ IN NS localhost.
@ IN A 127.0.0.1
To access Net Access' NNTP server put the following into the file
/etc/nntpserver
:
netnews.netaxs.com
/etc/ppp/options should only have generic parameters in it since every user on your system will use this configuration file for both incoming and outgoing links. Probably the only parameters to set in this file would be:
asyncmap 0
crtscts
lock
modem
lcp-echo-interval 30
lcp-echo-failure 4
noproxyarp
noipx
You might want to use the Debian Project's annotated version of the /etc/ppp/options file.
/usr/sbin/ppp should be mode 4754 and setgid to dip or another group with permission to access the modem.
wvdial is fantastic at setting up PPP connections with the minimum of fuss. It will work on netaxs' 1-215-966-6666 hunt group. There is a bug that prevented it from working with the 1-215-966-7777 hunt group, but I've submitted a bug report and hope that it will be resolved soon. wvdial's home page has the latest scoop. Or pick up the stable Debian package or the the unstable Debian package.
Here is an example dialing script for ppp (put it in your ~/bin directory and change its mode to 755 --- since switching to wvdial, I never use these scripts any more):
#!/bin/sh -e
MODEM="/dev/ttyS2 38400"
/usr/sbin/pppd $MODEM defaultroute noipdefault \
connect "/usr/sbin/chat -t 255 -v -f ~/.ppp.chatscript"
Notes:
Here is an example ~/.ppp.chatscript:
ABORT BUSY ABORT 'NO CARRIER' '' ATZ OK ATl1m1s7=255 OK ATDP1-215-966-7777
CONNECT \n\n '' \dppp
name:--name: USERNAME ssword: \qPASSWD
Notes:
Instead of these scripts, I now recommend xisp which is much easier if you are running X. It has some prerequisites. But once its running, it works great!
Basically all you need for SLIP is a good dip(8) script.
I recommend my hacked version of Peter Tobias's dipconfig script (originally built for the Debian GNU/Linux Project). I have prepared this for Net Access's dynamic and static IP accounts. For the dynamic script you only need to edit which port your modem lives on and put your login name and password in the correct place. For the static script you also need your IP address AND the IP address of the terminal server you are connecting to (Net Access staff can supply these to you).
Vince Quaresima wrote another dip script which I hacked just a wee bit. It has excellent comments. It doesn't work for dynamic SLIP.
Daryl Jurbala wrote NetSLIP, a dip script for establishing a dynamic SLIP connection. If you want to look at it, don't forget to read his README.
Sometimes you will need to configure the networking interface manually. Here are the steps (for SLIP connections anyway):
First configure the loopback interface:
$ ifconfig lo 127.0.0.1
$ route add -net 127.0.0.0
$ ifconfig sl0 mtu 1006 $myIP pointopoint $gatewayIP
$ route add $gatewayIP dev sl0
$ route add default gw $gatewayIP
Check out the Net Access User's Guide to see if any phone numbers or server addresses have changed since the last time this document was updated.
If you need further assistance try, netaxs.linux, the Net Access Linux newsgroup.