LinuxQuestions.org
Help answer threads with 0 replies.
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 08-07-2001, 05:04 AM   #1
lcadwell
LQ Newbie
 
Registered: Jul 2001
Location: Edinburgh
Posts: 25

Rep: Reputation: 15
DHCP probs


Hi

I just installed RH7.1 as part of ClarkConnects cool package. Problem being, when the machine boots, it sends the dhcp request, receives a reply with an IP but says something like 'No RoutersOnSubnet option received with reply'. It then proceeds to keep requesting dhcp every few seconds until the process is killed (by me).

Any ideas?
 
Old 08-07-2001, 05:25 AM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Which DHCP client are you using?

Are you trying to connect to an ISP? Is it a cable modem or DSL?
 
Old 08-07-2001, 05:58 AM   #3
lcadwell
LQ Newbie
 
Registered: Jul 2001
Location: Edinburgh
Posts: 25

Original Poster
Rep: Reputation: 15
It should be the default Dhcp client installed with RedHat, can't tell cause I not at the machine at the moment. I'm connecting to a cable modem.
 
Old 08-07-2001, 11:27 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
My ISP is @home I added the

"-h myhostname"

below for PUMPARGS= ,
put in the cc-xxx name that they use to identify you.



ifup file section
-----------------------------------

if [ -n "${DYNCONFIG}" ]; then
PUMPARGS="-h myhostname"
DHCPCDARGS=
if [ -n "${DHCP_HOSTNAME}" ]; then
PUMPARGS="-h ${DHCP_HOSTNAME}"
DHCPCDARGS="-h ${DHCP_HOSTNAME}"
fi
if [ -n "${NEEDHOSTNAME}" ]; then
PUMPARGS="${PUMPARGS} --lookup-hostname"
DHCPCDARGS="${DHCPCDARGS} -H"
fi
if [ "${PEERDNS}" = "no" ]; then
PUMPARGS="${PUMPARGS} -d"
DHCPCDARGS="${DHCPCDARGS} -R"
fi
---------------------------------------------------
netcfg needs to be set up for that interface with no ip, no gateway, no dns, no hosts, no domainname. Your resolv.conf will be overwritten.

this all got put in by my isp

test it with pump first if you want.

pump -h myhostname

then ifconfig

see if you have eth0 with an ipaddress

after editing the ifup file run it

ifup eth0

if this don't work try the link for different isp setups

http://otsys.myip.org:8080/howto/Cable-Modem.html


Last edited by DavidPhillips; 08-07-2001 at 11:31 PM.
 
Old 08-20-2001, 02:06 PM   #5
WindozBytes
Member
 
Registered: Aug 2001
Location: CT, USA
Distribution: Mandriva 2008
Posts: 105

Rep: Reputation: 15
The DavidPhillips replacements will work, but there is a somewhat more elegant ( and straightforward ) fix.

I also use @home as my ISP and was able to connect by adding the following line to my ifcfg-eth0 file:

DHCP_HOSTNAME=CX999999-A

where CX999999-A is the name that @home uses to identify you.

With this fix, no modifications to ifup are necessary. (This fix also presumes that you have configured your installation to use dhcp.)
 
  


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
DHCP problems - multiple DHCP servers sat86 Linux - Networking 4 10-02-2005 06:43 AM
ADSL DHCP A-OK, but Mandrake 10.1 to be DHCP for other subnet is a problem turnbui Linux - Networking 2 08-20-2005 10:34 AM
why DHCP client not sending own host name in DHCP request packet? sonika_singhi Linux - Networking 7 05-28-2005 06:18 AM
how can a DHCP client get the DHCP server IP? AshesOfTime Linux - Networking 3 11-24-2004 07:50 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 12:24 PM

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

All times are GMT -5. The time now is 10:24 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