home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BURKS 2
/
BURKS_AUG97.ISO
/
BURKS
/
LINUX
/
HOWTO
/
mini
/
toknring.txt
< prev
next >
Wrap
Text File
|
1997-07-07
|
18KB
|
428 lines
Token-Ring HOWTO
Mike Eckhoff (meckhoff@zaphod.wayne.esu1.k12.ne.us)
7/5/95 - Rev 3
To make reading/printing of this document easier, be sure that your margins
are set to ".3" and you are using a proportional font like Courier.
The Ethernet-HOWTO file mentions the Token Ring driver that is being worked
on. This howto is designed to help you install the kernel patch and also try
to point out some things to look for. I suggest that you at least browse
through all of this document before attempting to install any part of the
Token ing driver for Linux.
Special Thanks to Mark Swanson, Peter De Schrijver, David Morris and everyone
else I may have missed who made this driver possible.
Also thanks to:
Larry Sanders (lsanders@iadfw.net)
...who corrected me in a few places.
Copyright and other Jazz
------------------------
We do not guarantee that this howto will be accurate for your system.
Several people have used it and had very good results in installing
Linux on a Token Ring network.
USE THIS HOWTO AT YOUR OWN RISK!!! ... We are not responsible for
any problems caused by using this howto.
If you have any problems with the driver that are not talked about
in this howto, feel free to email me at...
meckhoff@zaphod.wayne.esu1.k12.ne.us
This document is copyright (c) 1995 by Michael Eckhoff. You may
make copies of this document in whole or in part, in any medium
physical or electronic, as long as the copyright notice is
retained on all copies. Commercial redistribution is allowed and
encouraged; however, please notify me so that I can make sure that
you have the most current information available.
INDEX
-----
I. Hardware Requirements
II. Software Needed
III. Installation and Setup
IV. NetTools Installation
V. Known Problems
VI. Questions
----
I. HARDWARE REQUIREMENTS
Make sure that you have a Token Ring card that is supported by this
driver. Currently the only cards that are supported are those that
use the Tropic chipset.
Cards that I personally know to work are:
IBM Token Ring 16/4 adapter /A
IBM Token Ring adapter /A
IBM Token Ring adapter II (4 Megabit only)
IBM 16/4 ISA Token Ring card (16bit)
IBM 16/4 ISA Token Ring card (8bit)
3Com TokenLink Adapter (IBM and 3Com mode)
HyperRing Classic 16/4
Please note that IBM makes a DMA/busmaster adapter for ISA with
the name:
Token-Ring Network 16/4 Adapter II
which will *NOT* work. Do not confuse this card with the IBM
Token Ring adapter II (4mbit) which does.
If you find another card that works please email me the brand and type
of card so that I may add it to my list.
- meckhoff@zaphod.wayne.esu1.k12.ne.us.
II. SOFTWARE NEEDED.
NOTE: The 1.3.x Linux kernels include the Token Ring driver.
If you are using this kernel, you can skip to the
NetTools section.
This assumes you already have Linux up and running.
Obtain the Token Ring patch from:
ftp://linux3.cc.kuleuven.ac.be/pub/Linux/TokenRing/
It will have a filename like TokenRing.patch-1.2.0.gz. If you are
not running at least kernel version 1.2.0, you probably should be. I
have tested this patch on kernels 1.2.0 - 1.2.10 without any problems.
If you cannot upgrade your kernel to version 1.2.x, try installing
this patch anyway. If it works, great! If not, there are some
older versions of the patch on this site that you may want to try.
I have ran the kernel with other versions of the patch since 1.1.5?.
Obtain the NetTools patches from:
ftp://linux3.cc.kuleuven.ac.be/pub/Linux/TokenRing/
Nettools-1.1.95-TR.diff.gz
Create a directory for the patches(such as /usr/src/patches) and place
the patches there.
mkdir /usr/src/patches central directory for patch storage
mkdir /usr/src/patches/token place TokenRing patch here
mkdir /usr/src/patches/nettools place Nettools patch here
Obtain the NetTools source from your normal Linux source provider,
or from:
ftp://tsx-11.mit.edu/pub/linux/packages/net/PROGRAMS/NetTools/
net-tools-1.2.0.tar.gz
III. INSTALLATION AND SETUP
1. Install the TokenRing card into the system and configure it for the settings
that you want to use. It is a good idea to see if you can use the card
through DOS before trying to use it through Linux. If it works in DOS,
chances are, it will work in Linux with the same settings.
2. Make a backup of your linux directory. This is very important in case you
need to totally remove the source of the patch from your kernel and go
back to your original code.
cd /usr/src
tar cvzhf linuxbak.tar.gz linux
3. Uncompress the TokenRing patch.
cd /usr/src/patches/token
gzip -d TokenRing.patch-1.2.0.gz
5. Modify your kernel with the TokenRing patch.
cd /usr/src/linux
patch -p1 < /usr/src/patches/token/TokenRing.patch-1.2.0
-or-
patch -p1 < <directory-of-patchfile>/TokenRing.patch-1.2.0
6. Search your kernel for any rejects from the patch and make changes as
necessary.
find . -name \*.rej -print
7. Search your kernel for the orig files and remove them.
find . -name \*.orig -print | xargs rm
8. Configure your kernel and remake.
NOTE: Make sure your swap space is active if you have one.
cd /usr/src/linux
make config
(The patch should have added two lines to your config.in file for the
following options)
Token Ring support (CONFIG_TR) [y]
(and further down the list...)
IBM Tropic chipset based adaptor support (CONFIG_IBMTR) [y]
make dep
make clean
make zImage
9. Setup LILO.
First rename your /vmlinuz kernel to vmlinuz.old then copy the kernel to
/vmlinuz
On my system this would consist of copying
/usr/src/linux/arch/i386/boot/zImage to /vmlinuz and editing
/etc/lilo.conf to boot that kernel.
Now from the prompt run 'lilo'.
10. If you have not already ran 'netconfig' on your system, do so now. Setup
your machine just as if it were on Ethernet.
11. Edit your /etc/rc.d/rc.inet1 scripts to point to the tr0 device rather
then the eth0 device.
You should have a line that looks like
/sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
Change this line to read
/sbin/ifconfig tr0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
12. You should now be able to reboot your system and use the Token Ring
card in your computer.
IV. NETTOOLS INSTALLATION
The NetTools package contains a lot of the basic utils that you
will use to communicate with network devices. This includes
programs like arp, rarp, route, ifconfig and netstat.
Since these programs do not know about Token Ring by default,
you will need to add the NetTools patch so these utilities can
work more efficiently with the Token Ring driver.
NOTICE: The current version of NetTools is 1.2.0. The patch for
1.1.95 seems to work just fine with this version.
1. Copy and Untar the NetTools source into your source directory.
NOTE: The copy of net-tools-1.2.0.tar.gz that I used did untar
into the net directory under /usr/src/net directory.
cp net-tools-1.2.0.tar.gz /usr/src/net-tools-1.2.0.tar.gz
tar -zxvof net-tools-1.2.0.tar.gz
4. Uncompress and install the patch file to net-tools.
cd /usr/src/patches/nettools
gzip -d Nettools-1.1.95-TR.diff.gz
cd /usr/src/net
patch -p1 < /usr/src/patches/nettools/Nettools-1.1.95-TR.diff
5. Make the net-tools files.
make install
V. KNOWN PROBLEMS
I personally have had very few problems with this driver. It has
been working perfectly for me for quite some time.
One of the main problems with this driver, according to Peter De
Schrijver is Source Routing.
~From: Peter de Schrijver <Peter.DeSchrijver@linux.cc.kuleuven.ac.be>
Main