Additional Network Card (Token Ring)
HOWTO for E-SMITH 4.1.X
I tested this on E-smith version 4.1.2
Written by Allen (admin@allenscomputing.com)
Purpose:
This is to add a third or forth network interface to an E-smith Server.
Example:
I wanted to have my E-smith Server bridge an internal Ethernet and an Internal
Token Ring Network to an outside Internet Connection.
Example Equipment:
eth0 - 3com 10/100 PCI card (Internal Net)
eth1 - Realtec 1839 10/100 PCI card (External Internet connections)
eth2 - 3com 10/100 PCI card (2nd Internal Net Card)
tr0 - Madge Token Ring PCI card (Internal Net)
Load E-smith 4.1.X on your machine and configure the first 2 network
adapters. Test machine to verify the first two are working.
Verify the module your network card needs is in /lib/modules/2.2.16-22/net
Directory. If not, find the module on the internet and copy it to this directory.
Notes:
Directory 2.2.16-22 is named after the RedHat kernal version that E-smith is
compiled on. If you are using a Different version of E-smith than 4.1.2, then this
directory may have a slightly different name
My Madge Token Ring Module wasn't. I had to compile it on a RedHat 7.0 machine
and then copy it to this directory).
Create the custom template directory for /etc/modules.conf
mkdir /etc/e-smith/templates-custom/etc/modules.conf
cp /etc/e-smith/templates/etc/modules.conf/* /etc/e-smith/templates-custom/etc/modules.conf
Create a file for the additional network cards. Start the name with the number 11 or 12,
so it is built after the file 10EthernetDrivers. This file will add a line to
/etc/modules.conf which will link the driver module to the network interface.
My madge token ring module is "mtok" and my network interface was "tr0".
My second ethernet card was a 3c590 and used the module "3c59x". You might want to use pico to create these files.
create /etc/e-smith/templates-custom/etc/modules.conf/11tr0
having the following lines:
{
push @lines, "alias tr0 mtok"
}
create /etc/e-smith/templates-custom/etc/modules.conf/11eth2
having the following lines:
{
push @lines, "alias eth2 3c59x"
}
Expand the template:
/sbin/e-smith/expand-template /etc/modules.conf
Create a config file for each new interface in /etc/sysconfig/network-scripts (The Name of these config files
must have the device name in them)
Use the eth0 device config file as a template for the new devices.
cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth2
cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-tr0
edit the config files to include the ip-numbers and netmasks of the additional networks.
pico /etc/sysconfig/network-scripts/ifcfg-eth2
pico /etc/sysconfig/network-scripts/ifcfg-tr0
Start the interface: (this will happen automatically on reboot, but do it now to save rebooting)
/etc/sysconfig/network-scripts/ifup tr0
/etc/sysconfig/network-scripts/ifup eth2
Check status of Interfaces:
ifconfig tr0
ifconfig eth2
Check the log file for any error messages
/var/log/messages
Give the Network "local network" rights with the e-smith web manager.