It's really quite easy.
/etc/lilo.conf
append="ether=12,0x240,eth1"
where as; 12=irq, 0x0240 address, eth1 = ethernet.
This passes a neat little arg to your kernel and you're away.
Don't forget, you also need to ifconfig that ethernet as well;
I do this for the base address in rc.inet1
Where as; in my case I have the second ethernet to communicate
to another machine on a LAN, not connected to the internet like so
ifconfig eth1 192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0 up
/sbin/route add -net 192.168.0.0 netmask 255.255.255.0 eth1
Ofcourse, you may also use rc.local, for any other ip's you
like to add with in the existing subnet.
ie;
/sbin/ifconfig eth1:0 209.153.237.73 netmask 255.255.255.0
/sbin/route add 192.168.0.5 eth0:0
Note that the :0 is the additional aliased interface.
You need to turn on network aliasiing in the kernel to
accomplish this.
I'm always open to comments from the group
Cheers fellows...
On Tue, 29 Sep 1998, Neil Moore-Smith wrote:
> Date: Tue, 29 Sep 1998 18:44:30 +0100
> From: Neil Moore-Smith <nms@crescendo.ltd.uk>
> To: 'Linux-Net Mailing List' <linux-net@vger.rutgers.edu>
> Subject: Two network adapters
>
> Hi all
>
> I'm quite experienced with Unix in general, but some of the Linux-specifics
> are frustrating me, because there is so much information available, and
> it's hard to find what I need. I suppose that's better than having none!
>
> I need to get two network cards up and running in a multihomed system. I
> have Slackware 2.0.27, and two D-Link DE220 cards which are NE2000
> compatible. They are set to 5/320 and 3/300 respectively. The first one is
> found OK and becomes eth0, but I can't get Linux to see the second card.
>
> I've tried putting an additional line in rc.modules, and I've tried an
> append in liloconfig. I don't even get an error message, and certainly no
> mention of eth1.
>
> It must be simple, so what am I missing?
>
> Neil
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to majordomo@vger.rutgers.edu
>
**********************************************
inTEXT Communications Vancouver BC Canada
Corporate Intranet & Internet Security
System Administration - FireWall Systems
Linux Bsd FreeBSD Programming Perl / c / c++
www.intextonline.com | glenn@intextonline.com
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu