Re: [mu TECH] Two ethernet card

From: Michele Andreoli (m.andreoli@tin.it)
Date: Tue Mar 21 2000 - 12:05:49 CET


On Tue, Mar 21, 2000 at 09:26:47AM +0100, Sven Conrad nicely wrote:
> I think, the complexity of 2+ Network cards is, that you can do so many
> things on it. I have used 2 Card as router into a company network. So I
> have no chance to setup any Workstation on this network. Therefore I setup
> it with masqurading. This has been as simple as:

This is the kind of post I like, thanks!
Obiously, you are right telling the problem is "how to use". I can setup
the two single card, but problem is routing code (i.e. 'route' command
and 'ipfwadm' command). To project that in general way is a little
difficult for me, because I never handled router problematics.

I have now a second NIC card a will try to deal with this fascinating
question.

>
> -----
>
> # 3-Com PCI card
> insmod 3c59x.o
>
> # old ne2000 ISA card
> insmod 8390.o
> insmod ne.o io=0x340 irq=11
>
> #---- (done with normal mulinux setup)
> ifconfig eth0 ......
> route add -net .... eth0
>
> #---- for my private net (sample addr)
> ifconfig eth1 192.168.200.100 netmask 255.255.255.0
> route add -net 192.168.200.0 netmask 255.255.255.0 eth1
> #---- masq
> ipfwadm -F -p deny
> ipfwadm -F -a m -S 192.168.200.0/255.255.255.0
>

What is not clear for me is: how the kernel tcp stack handle
different addresses, from eth0 and eth1. Maybe you specified
eth0 as default gateway?

Michele

-- 
I'd like to conclude with a positive statement, but I can't 
remember any. Would two negative ones do?       -- Woody Allen
---------------------------------------------------------------------
To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.auc.dk
For additional commands, e-mail: mulinux-help@sunsite.auc.dk


This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:13 CET