LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-01-2005, 09:42 AM   #1
J4b0l
LQ Newbie
 
Registered: Oct 2004
Location: Poland
Distribution: Slackware 10
Posts: 13

Rep: Reputation: 0
how not to use dhcp after "network is down"


i have a problem like this:
i have a slackware 10.1 box connetcted to local network with dhcpd on the router to give addresses to machines. my box is now "placed" in router arp table /etc/ethers twice (one for masquerade and one for public IP). the problem is router`s dhcp is not set to give me public IP from dhcp and it cannot be set not to give local IP to my box.
so, i did something like this: edited my /etc/rc.d/rc.inet1.conf not to use dhcp (USE_DHCP[0]="no") with my public IP and default gateway in config.
but sometimes weird thing is happening. in the system logs i have something like this:
Code:
Dec  1 14:47:04 jabol dhcpcd[16183]: recvfrom: Network is down
Dec  1 14:47:04 jabol dhcpcd[16183]: dhcpConfig: ioctl SIOCADDRT: File exists
and my box changes it`s ip to the one taken from dhcp on the router even if it`s configured not to use it.
this happened twice at almost the same time of day or actually night (two seconds of difference) and then today. i already checked cron, nothing happens at this time on my box nor the router.

can anyone tell me what should i do? (but not things like #killall dhcpcd because this locks networking on this box and i must hard-reset)
this is vital to do it without breaking the connection because it has no keyboard or monitor :/

thanks in advance
MJ aka Jabol
 
Old 12-02-2005, 10:25 PM   #2
lucastic
Member
 
Registered: Aug 2003
Location: Oz
Distribution: Gentoo - Debian
Posts: 202

Rep: Reputation: 30
try

#rm /var/run/dhcpcd-eth1.pid

substitute your device name for eth1 in the above line.

That is the Gentoo location of the file so you might have to search for the file location on your distro if it is different.

I think that is why you are getting the "dhcpConfig: ioctl SIOCADDRT: File exists" error from.

Why not set up static ip connections??
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH issue ""Server unexpectedly closed network connection" Errsta_Fonzarelli Linux - Software 12 05-24-2010 03:35 PM
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 12:26 PM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 04:07 PM
Lost DHCP Lease when putting computer in "Standby" mode for a "long" time pnellesen Linux - Networking 1 01-07-2005 12:44 AM
"ifcfg-ethx" and "network-functions" files peok Linux - Networking 12 08-13-2003 07:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration