LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   eth0, eth1, dhcp, slackware 11 problem (https://www.linuxquestions.org/questions/slackware-14/eth0-eth1-dhcp-slackware-11-problem-573544/)

q3noob 07-30-2007 09:19 PM

eth0, eth1, dhcp, slackware 11 problem
 
Hi guys

I'm trying to help a friend of mine to set up his router.

rc.inet1.conf:

# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]="192.168.0.1"
NETMASK[1]="255.255.255.0"
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

eth0 is conected to a modem, and cant be set to static ip.

The problem is, when eth0 is plugged alone, it works,
when both eth0 and eth1 are plugged, after 30 or so seconds
eth0 loses its ip and dissapears.

Any ideas?

davimint 07-30-2007 10:05 PM

I'm still learning so forgive me if this sounds like a bad question.

What type of router and how is it being connected ?

For example is it a dsl connection or cable modem being used.

Is it wired like this:
cable modem > wireless router > wired pc's & wireless pc's

sparc86 07-30-2007 10:17 PM

Why don't you try to setup the eth0 using a static IP, like you did to eth1?

Please tell us if it worked for you.

pdw_hu 07-31-2007 02:03 AM

Quote:

Originally Posted by sparc86
Why don't you try to setup the eth0 using a static IP, like you did to eth1?

Please tell us if it worked for you.

As he said he can't. My ISP does the same, it changes IP-s very randomly, sometimes after a few weeks, sometimes after a month, and currently i've had the same IP for over 3 months now.

IPADDR[1]="192.168.0.1"

Set this to something else. This is usually the router/modems IP address.

sparc86 07-31-2007 07:45 AM

Why exactly he says that he cannot?

Troubles with dhcpcd, maybe? Tell him to put "no" at the option USE_DHCP[0]="yes"


Did it work?

q3noob 07-31-2007 09:26 AM

it seems it was the mac address of eth0 that causes the problem.

thank you guys for fast replies!


All times are GMT -5. The time now is 04:13 AM.