LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   using two network cards for ICS (https://www.linuxquestions.org/questions/linux-networking-3/using-two-network-cards-for-ics-183158/)

takatam 05-19-2004 02:40 AM

using two network cards for ICS
 
i'm running mandrake 9.2 on a pentium-class desktop, asus mainboard (P4S533-E) with on-board ethernet port.

i'm trying to setup my computer such that it provides internet connection sharing to my home network while being used as a workstation itself. i've got an on-board network card (RTL8201 PHY chip) and i've put in a cnet ethernet adapter. my bios has the PnP turned off and the slots in which the cards sit do not sare the same IRQ.

i've tried to use the graphical configuration tool to setup my network cards but it does not recognise them correctly. it shows that i have two Realtek 8139 cards instead. how do i tell it do discard this so that i can tell the system which cards i have? which file do i need to edit?

when i added (copy from eth0) the file /etc/sysconfig/network-scripts/ifcfg-eth1 both adapters started working (see ifconfig). however, i'm not sure whether i've set up eth1 cleanly. do i need to do/add anything more? i get internet on my machine but my lokal network is unable to ping anything, not even me.

how do i now setup my system to perform internet connection sharing? it seems the graphical tools fail in this instance. which files to i have to edit to get it working?

any help is greatly appreciated. i'm rather new to linux so detailed help/hints/instructions are welcome.

:newbie: is seeking desperate help. this is even more so annoying as it works under windows but in order go get it off my machine this needs to work.

maxut 05-19-2004 03:00 AM

first type "lspci" to see pci devices.

here is mine
[root@linux mesut]# /sbin/lspci
00:0a.0 Ethernet controller: Davicom Semiconductor, Inc. Ethernet 100/10 MBit (rev 31)
00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

i have rtl8139 and cnet pro200b ethernet cards.

here is my /etc/modules.conf
alias eth0 dmfe
alias eth1 8139too

these lines say that eth0 is davicom cnet pro 200b
and eth1 is rtl8139

also check /etc/sysconfig/network-scripts/ifcfg-eth0 and ifcfg-eth1

if u wanna share internet via linux. u need an iptables script. visit www.iptables-script.dk to create a script for your network configuration.

takatam 05-24-2004 04:32 PM

ics problem
 
thanks for your help, maxut.

adding the card into /etc/modules.conf did the trick. now i was able to see it in my system and configure it. strangely the /sbin/route -n is returning the same info as before but i guess other parts are set up better and cleaner now.

thanks again.


All times are GMT -5. The time now is 03:07 AM.