[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[UPDATE] Network Modules :



Hello all;

	Here is a small update on what I have done so far, and what errors I'm
getting. I haven't slept much, since this has been eating my head inside
out. I have cut down from three network cards to just two of them. So,
the steps I would presumebly have to follow would be these :

1. Install Debian 				Done
2. Configure Security				Done
3. Install kernel 2.2.x				Pending
4. Install network cards			Pending
5. Install ipmasq				Pending
6. Sleep over for a long time			Pending

	Ok, Debian is installed properly, and I have so far one network card
installed correctly and working. This would be eth0 (0x320/09). Now, I
have to install the second ethernet card which would need to be eth1
(0x200/03). I have edited /etc/modules in the following manner:

-------------------------------------------------------------------------------
# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line.  Comments begin with
# a `#', and everything on the line after them are ignored.
# An entry named `auto' will cause the system to start kerneld
immediately.
# Kerneld then loads modules on demand. `noauto' disables kerneld
completely.

# auto
ne0
ne1
-------------------------------------------------------------------------------

	Ok, so far so good, once this was edited and saved, I went and edited
the file /etc/conf.modules in this way:

-------------------------------------------------------------------------------
### This file is automatically generated by update-modules
#
# Please do not edit this file directly. If you want to change or add
# anything please take a look at the files in /etc/modutils and read
# the manpage for update-modules.
#
alias block-major-7 loop

# Uncomment the network protocols you don't want loaded:
# alias net-pf-2 off            #       IPv4
alias net-pf-3 off
alias net-pf-4 off                      # IPX
alias net-pf-5 off                      # DDP / appletalk
alias net-pf-10 off                     # IPv6
# Other aliases:
alias net-pf-17 af_packet       # packet mode (tcpdump, etc.)

alias netalias-2 ip_alias
alias char-major-4 serial
alias char-major-10-130 softdog
alias iso9660 isofs
alias ppp-compress-21 bsd_comp
alias ppp-compress-24 ppp_deflate
alias ppp-compress-26 slhc
alias binfmt-0064 binfmt_aout
alias binfmt--310 binfmt_java

# If you use the IDE tape driver as a module, uncomment the next two
lines:
# alias block-major-3 ide-probe
# alias char-major-37 ide-tape

#alias <whatever you don't have that kerneld complains about> off 

alias ne0 ne
alias ne1 ne

options ne0 io=0x320 irq=09
options ne1 io=0x200 irq=03
path[boot]=/lib/modules

# State module paths in order of importance
path[fs]=/lib/modules/`uname -r`
path[net]=/lib/modules/`uname -r`
path[scsi]=/lib/modules/`uname -r`
path[block]=/lib/modules/`uname -r`
path[cdrom]=/lib/modules/`uname -r`
path[ipv4]=/lib/modules/`uname -r`
path[ipv6]=/lib/modules/`uname -r`
path[misc]=/lib/modules/`uname -r`
path[video]=/lib/modules/`uname -r`
path[sound]=/lib/modules/`uname -r`
path[fc4]=/lib/modules/`uname -r`

path[fs]=/lib/modules/`kernelversion`
path[net]=/lib/modules/`kernelversion`
path[scsi]=/lib/modules/`kernelversion`
path[block]=/lib/modules/`kernelversion`
path[cdrom]=/lib/modules/`kernelversion`
path[ipv4]=/lib/modules/`kernelversion`
path[ipv6]=/lib/modules/`kernelversion`
path[misc]=/lib/modules/`kernelversion`
path[video]=/lib/modules/`kernelversion`
path[sound]=/lib/modules/`kernelversion`
path[fc4]=/lib/modules/`kernelversion`

path[fs]=/lib/modules
path[net]=/lib/modules
path[scsi]=/lib/modules
path[block]=/lib/modules
path[cdrom]=/lib/modules
path[ipv4]=/lib/modules
path[ipv6]=/lib/modules
path[misc]=/lib/modules
path[video]=/lib/modules
path[sound]=/lib/modules
path[fc4]=/lib/modules

alias parport_lowlevel parport_pc
-------------------------------------------------------------------------------

	Since this file is long, I'll point out what I have edited. What I
added was alias ne0 ne, alias ne1 ne, options ne0 io=0x320 irq=09,
options ne1 io=0x200 irq=03
path[boot]=/lib/modules . So far so good (I hope). Anyway, after
changing this, I went into /etc/modutils and edited a file called
modconf in the following way:

-------------------------------------------------------------------------------
options ne io=0x320 irq=09
options ne io=0x200 irq=03
-------------------------------------------------------------------------------

	I just went into that file to see what there was, and I added the
bottom line in to see what would happen. Anyway, before doing anything
else, I edited the file called aliases, also in /etc/modutils , and this
is what it looked like:

-------------------------------------------------------------------------------
alias block-major-7 loop

# Uncomment the network protocols you don't want loaded:
# alias net-pf-2 off            #       IPv4
alias net-pf-3 off
alias net-pf-4 off                      # IPX
alias net-pf-5 off                      # DDP / appletalk
alias net-pf-10 off                     # IPv6
# Other aliases:
alias net-pf-17 af_packet       # packet mode (tcpdump, etc.)

alias netalias-2 ip_alias
alias char-major-4 serial
alias char-major-10-130 softdog
alias iso9660 isofs
alias ppp-compress-21 bsd_comp
alias ppp-compress-24 ppp_deflate
alias ppp-compress-26 slhc
alias binfmt-0064 binfmt_aout
alias binfmt--310 binfmt_java

# If you use the IDE tape driver as a module, uncomment the next two
lines:
# alias block-major-3 ide-probe
# alias char-major-37 ide-tape

#alias <whatever you don't have that kerneld complains about> off 

alias ne0 ne
alias ne1 ne
-------------------------------------------------------------------------------

	So, things seem to look ok for now. At last, before doing anything
else, I went into /etc/init.d/ and edited the network file in this way: 

-------------------------------------------------------------------------------
#! /bin/sh
ifconfig lo 127.0.0.1
route add -net 127.0.0.0
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
GATEWAY=
ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
route add -net ${NETWORK} eth0

IPADDR=195.76.46.62
NETMASK=255.255.255.224
BROADCAST=195.76.46.255
GATEWAY=195.76.46.33
ifconfig eth1 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
route add -net ${NETWORK} eth1
[ "${GATEWAY}" ] && route add default gw ${GATEWAY} metric 1
-------------------------------------------------------------------------------

	By this point, the configuration looks pretty well. So my next step is
use the modprobe comand in order to set up these devices (I think). I've
cut and paste the screen output exactly as it looks, so to see that no
errors appeard to what I have done:

-------------------------------------------------------------------------------
cangrejo:~# modprobe ne
cangrejo:~# modprobe ne0
cangrejo:~# modprobe ne1
cangrejo:~# modprobe ne0 io=0x320 irq=09
cangrejo:~# modprobe ne1 io=0x200 irq=03
cangrejo:~# 
-------------------------------------------------------------------------------

	As you can see, I didn't get any errors when I used these comands, but
to make sure, I went into /etc/var and looked into kern.log and syslog
and I found no errors. I also have the line *.* /dev/tty3 on my
syslog.conf in /etc/ to spill out all the logs on tty3, and when I typed
those commands out, I didn't get any errors there either. So, I suppose
that what comes next is the reboot time.
	Once the computer was rebooting, I looked carefully at what the kernel
messages were saying, and unfortunatly I got the following words on my
screen:

-------------------------------------------------------------------------------
Calculating module dependencies... done.
Loading modules: ne0 ne.c:v1.10 9/23/94 Donald Becker
(becker@cesdis.gsfc.nasa.gov)
NE*000 ethercard probe at 0x320: 00 44 4c 03 0a 5c
eth0: NE2000 found at 0x320, using IRQ 9.
ne1
Checking all file systems...
Parallelizing fsck version 1.12 (9-Jul-98)
/dev/hda2: clean, 317/25792 files, 4328/102816 blocks
Mouting local file systems...
/dev/hda2 on /var type ext2 (rw)
SIOCSIFADDR: Operation not supported by device
eth1: unknown interface.
SIOCSIFNETMASK: Operation not supported by device
SIOCSIFBRDADDR: Operation not supported by device
eth1: unknown interface.
SIOCADDRT: Operation not supported by device
SIOCADDRT: Network is unreachable
-------------------------------------------------------------------------------

	So, something has gone wrong here, and I don't know what it is. The
interesting thing though is that my linux box is still working after all
the different changes I have played with. Does anybody have any ideas as
to what I can do about this ?

Thanks in advance

Neil.


Reply to: