Hello, I have a local Ethernetwork of several Macs, and would like to use one of them (an old Power Mac 7300 running SuSE Linux 7.0) as gateway/ firewall to the wide world. I understand from the IP-Masquerade HOWTO that this requires the 7300 to have *two* Ethernet ports: iMac iMac \ / \ / Hub ---------------- 7300 --- Modem --- WEB. / \ / \ iBook printer (See http://www.linuxdoc.org/HOWTO/IP-Masquerade-HOWTO-7.html#ss7.26. Only the 7300 would stay "on" 24/7.) 1) Do I understand correctly? 2) If yes, I need to add a Network card in one the 7300's PCI slots. What's a good choice? (Price, SuSE 7.0 support,...) Thanks in advance for any and all suggestions, hysterion
On Mon, Jun 04, hysterion wrote:
Hub ---------------- 7300 --- Modem --- WEB.
You dont need two ethernet cards, you need two interfaces. Hub ---- eth0 -7300- ppp0 - Modem --- Web. So you have to MASQ the ppp0 interface. This eth0 is the gateway for all iMacs. Gruss Olaf -- $ man clone BUGS Main feature not yet implemented...
Olaf Hering wrote:
On Mon, Jun 04, hysterion wrote:
Hub ---------------- 7300 --- Modem --- WEB.
You dont need two ethernet cards, you need two interfaces.
Hub ---- eth0 -7300- ppp0 - Modem --- Web.
So you have to MASQ the ppp0 interface. This eth0 is the gateway for all iMacs.
Thanks, and my apologies for not being clearer: by modem I meant a *cable* modem, hence the perceived need for a second Ethernet card on this (Power Mac) 7300. Now I'm trying to follow this suggestion (from comp.os.linux.powerpc): Brian Victor writes:
1) Do I understand correctly?
Yes. Your diagram could be put in a textbook. ;)
2) If yes, I need to add a Network card in one the 7300's PCI slots. What's a good choice? (Price, Linux support,...)
I had success with the $20 Netgear FA311. http://lists.linuxppc.org/listarcs/linuxppc-user/200105/msg00158.html
I got the card yesterday, and have been trying to get it recognized
today... to no avail yet. Not sure where the crux lies, so I've tried to
include all relevant messages below.
Further help would be greatly appreciated - I have 14 days to get this
card working, or return it and try another. (Suggestions still welcome!)
Thanks again,
hysterion
==========================
Kernel: 2.2.16 from SuSE Linux 7.0 PPC.
Machine: Power Mac 7300/180.
Netgear FA311 installed in one of the PCI slots.
Goal: get it recognized as eth1 (eth0 is the built-in card).
1) Following http://www.scyld.com/network/updates.html (section
"Drivers may be updated individually..."), I downloaded these to
a directory /usr/src/modules/:
natsemi.c kern_compat.h
pci-scan.c pci-scan.h
I do have the necessary file /usr/include/linux/version.h .
2) Compilation produces natsemi.o and pci-scan.o, but with these warnings:
$ gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c natsemi.c
In file included from natsemi.c:107:
/usr/include/linux/string.h:28: warning: conflicting types for
built-in function `memset'
/usr/include/linux/string.h:29: warning: conflicting types for
built-in function `memcpy'
/usr/include/linux/string.h:32: warning: conflicting types for
built-in function `memcmp'
$ gcc -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -Wall -Wstrict-prototypes
-O6 -c pci-scan.c
In file included from /usr/include/linux/signal.h:64,
from /usr/include/linux/sched.h:23,
from /usr/include/linux/mm.h:4,
from pci-scan.c:60:
/usr/include/linux/string.h:28: warning: conflicting types for
built-in function `memset'
/usr/include/linux/string.h:29: warning: conflicting types for
built-in function `memcpy'
/usr/include/linux/string.h:32: warning: conflicting types for
built-in function `memcmp'
3) "Testing the module": pci-scan.o loads, but *not* natsemi.o:
$ insmod -v pci-scan.o
Using pci-scan.o
Symbol version prefix ''
$ insmod -v natsemi.o
Using natsemi.o
Symbol version prefix ''
natsemi.o: init_module: Device or resource busy
Hint: this error can be caused by incorrect module parameters,
including invalid IO or IRQ parameters
$ lsmod
Module Size Used by
pci-scan 3408 0
ipv6 121832 -1 (autoclean)
memstat 1960 0 (unused)
$ dmesg
(...)
natsemi.c:v1.07 1/9/2001 Written by Donald Becker
On Thu, Jun 07, hysterion wrote:
Olaf Hering wrote:
On Mon, Jun 04, hysterion wrote:
Hub ---------------- 7300 --- Modem --- WEB.
You dont need two ethernet cards, you need two interfaces.
Hub ---- eth0 -7300- ppp0 - Modem --- Web.
So you have to MASQ the ppp0 interface. This eth0 is the gateway for all iMacs.
Thanks, and my apologies for not being clearer: by modem I meant a *cable* modem, hence the perceived need for a second Ethernet card on this (Power Mac) 7300. Now I'm trying to follow this suggestion (from comp.os.linux.powerpc):
These drivers are not neccessary ready for non-i386. Did you try 2.4.2? It has natsemi.o ftp.suse.com/pub/suse/ppc/kernel/2.4.2/k_deflt-2.4.2-11.ppc.rpm You can also try 2.4.5: ftp.suse.com/pub/suse/ppc/update/BETA/kernel/k_deflt.rpm 2.4 has a lot endian fixes for network cards, so it may work much better than 2.2. Gruss Olaf -- $ man clone BUGS Main feature not yet implemented...
Olaf Hering wrote:
These drivers are not neccessary ready for non-i386. Did you try 2.4.2? It has natsemi.o
Thanks, yes I will try this ultimately. But, call me stubborn, I'm still
attempting to get that card to work with 2.2.16. If Don Becker's driver
(a 40kB download) could save me the download of 2.4.2 (9.3MB)...
I've made progress... after pulling the Netgear FA311 card out of
its PCI slot and putting it back in. (Don't ask why.)
Now the hub's LED lights up, my Power Mac 7300 loads the natsemi
kernel module, and the card gets recognized as eth1 (in addition
to the built-in eth0). Also it gets recognized at bootup, after
changing a line in modules.conf to: alias eth1 natsemi
HOWEVER: While I can telnet, ftp and http into the box from my
iMac using eth0 (192.168.0.99), nothing happens if instead I use
eth1 (192.168.0.100).
See relevant info below. What am I doing wrong?
hysterion
==============
Boot messages:
(...)
Setting up network device eth0 done
Setting up network device eth1 done
Setting up routing (using /etc/route.conf) done
Starting RPC portmap daemon done
(...)
Starting service httpd done
(...)
Starting INET services (inetd) done
(...)
==============
$ dmesg
(...)
natsemi.c:v1.07 1/9/2001 Written by Donald Becker
I wrote:
HOWEVER: While I can telnet, ftp and http into the box from my iMac using eth0 (192.168.0.99), nothing happens if instead I use eth1 (192.168.0.100).
See relevant info below. What am I doing wrong?
Just for the record (and so that nobody spend more time on this), I got this working thanks to kind help on the newsgroups. IIUC my error was to have put eth1 in the same subnet as eth0; calling it 192.168.1.99 instead of 192.168.0.100 fixed the problem. Ergo: the $20 Netgear FA311 does work with SuSE 7.0 PPC kernel 2.2.16 and Don Becker's natsemi driver. On to the next hurdle :-) hysterion
participants (2)
-
hysterion
-
Olaf Hering