Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-30-2007, 09:19 PM
|
#1
|
LQ Newbie
Registered: Jul 2007
Posts: 2
Rep:
|
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?
|
|
|
07-30-2007, 10:05 PM
|
#2
|
Member
Registered: Jan 2006
Distribution: Slackware Current
Posts: 272
Rep:
|
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
|
|
|
07-30-2007, 10:17 PM
|
#3
|
Member
Registered: Jul 2006
Location: Joinville, Brazil
Distribution: Debian, CentOS
Posts: 301
Rep:
|
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.
|
|
|
07-31-2007, 02:03 AM
|
#4
|
Member
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346
Rep: 
|
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.
|
|
|
07-31-2007, 07:45 AM
|
#5
|
Member
Registered: Jul 2006
Location: Joinville, Brazil
Distribution: Debian, CentOS
Posts: 301
Rep:
|
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?
Last edited by sparc86; 07-31-2007 at 07:48 AM.
|
|
|
07-31-2007, 09:26 AM
|
#6
|
LQ Newbie
Registered: Jul 2007
Posts: 2
Original Poster
Rep:
|
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 03:21 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|