You are not logged in.

#1 2007-02-22 22:40:11

cpu
Member
Registered: 2007-02-22
Posts: 68

Two network cards configuration

Hi

I have problem with my network - I have two network cards and it seems they can't live both but I need them both so:
1st card (rtl8139) is connected to cable modem and gets ip by DHCP (eth0="dhcp" in rc.conf)
2nd card (nv forcedeth) is connected to router and gets ip by DHCP too (eth1="dhcp")

When I start them both -> 1st and 2nd card gets good IP by DHCP but when I want to ping google.com for example packet is lost.

What I want ? I want to use my eth0 (1st card) for internet and my 2nd card for local network.

##EDIT##

My resolv.conf is 192.168.1.1 but I need DNS from 1st interface -> how to do this?

Last edited by cpu (2007-02-22 22:46:09)

Offline

#2 2007-02-22 23:00:23

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Two network cards configuration

Messy setup IMO, but anyway....

Your faulty resolv.conf is the reason you can't ping google. Edit it manually as required, and then use the -R flag in /etc/conf.d/dhcpcd to prevent it being overwritten. DHCP on both interfaces will probably cause routing issues as well, in which case you will need the -G flag.

Offline

#3 2007-02-23 16:39:07

cpu
Member
Registered: 2007-02-22
Posts: 68

Re: Two network cards configuration

This don't work for me - still no proper route for packets hmm

Offline

Board footer

Powered by FluxBB