Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
|
 |
01-29-2004, 09:35 AM
|
#1
|
Member
Registered: Dec 2003
Distribution: Linux Mint 21 (Cinnamon)
Posts: 234
Rep:
|
DHCP problems and cable modem
Just made the leap to a cable modem through Earthlink (installed by Time Warner Cable...the guy told me it's the same as RoadRunner). Anyway, it's working fine for my Windoze laptop with DHCP. Trying to get my SuSE 8.1 Professional box running as well (in terms of a network connection via eth0 through the cable modem).
I know the hardware is working fine because I have ftp'ed (in my home network) to and from the Linux box many times on eth0 (using the same cables).
When I do an "ifup eth0" I get the following message:
"Starting DHCP Client Daemon on eth0... . . . . . . . . . . . . . . . no IP address yet... backgrounding"
Then if I try to do a ping, I get:
"connect: Network is unreachable"
Any help would be greatly appreciated
Thoughts of what's wrong--but no idea really:
1)DNS
2)DHCP configured wrong
3)Firewall on my machine is causing problems
Here's what I see if I do an ifconfig:
eth0 Link encap:Ethernet HWaddr 00:0C:F1:88:33:E2
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1034 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:67167 (65.5 Kb) TX bytes:3564 (3.4 Kb)
Interrupt:18 Base address:0xddc0 Memory:fe9e0000-0
Then something similar for lo (Local Loopback).
Here's my /etc/sysconfig/network/dhcp file (without the comments):
DHCLIENT_BIN=""
DHCLIENT_DEBUG="no"
DHCLIENT_SET_HOSTNAME="no"
DHCLIENT_MODIFY_RESOLV_CONF="no"
DHCLIENT_SET_DEFAULT_ROUTE="yes"
DHCLIENT_MODIFY_NTP_CONF="no"
DHCLIENT_MODIFY_NIS_CONF="no"
DHCLIENT_SET_DOMAINNAME="yes"
DHCLIENT_KEEP_SEARCHLIST="no"
DHCLIENT_LEASE_TIME=""
DHCLIENT_TIMEOUT="999999"
DHCLIENT_REBOOT_TIMEOUT=""
DHCLIENT_HOSTNAME_OPTION="AUTO"
DHCLIENT_CLIENT_ID=""
DHCLIENT_VENDOR_CLASS_ID=""
DHCLIENT_RELEASE_BEFORE_QUIT="no"
DHCLIENT_SCRIPT_EXE=""
DHCLIENT_ADDITIONAL_OPTIONS=""
DHCLIENT_SLEEP="0"
Here's my /etc/sysconfig/network/ifcfg-eth0: (I have NO idea if any of these
are right or necessary):
BOOTPROTO='dhcp'
BROADCAST='24.136.225.255'
IPADDR='24.136.225.67
NETMASK='255.255.254.0'
NETWORK='24.136.224.0'
REMOTE_IPADDR=''
STARTMODE='onboot'
UNIQUE='60go.ZReZuYIS34D'
WIRELESS='no'
|
|
|
01-29-2004, 09:52 AM
|
#2
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Rep:
|
Whats your actuall network look like ?
if you want linux to access the internet, and your lan you must have 2 NIC's
the cable modem MUST be have its own dedicated NIC or the lan will not work.
to me, it looks like the dhcp client is looking for a dhcp server on the lan ?
anyway, How many NIC's does the linux machine have ?
do you have a hardware router ?
if not is the linux machine acting as the router ?
if not have you configured your gateway IP correctly ?
if the linux box is NOT acting as the router, is there a dhcp server running on the lan ?
if not you should configure static ip's.
|
|
|
01-29-2004, 10:45 AM
|
#3
|
Member
Registered: Dec 2003
Distribution: Linux Mint 21 (Cinnamon)
Posts: 234
Original Poster
Rep:
|
I have one NIC. It's a gigabit ethernet card. I have it connected directly to the cable modem box.
I do not have a router and have done NO home networking.
I do not think the linux machine is acting as a router. I do not know though.
I think I set the gateway properly. I put the same gateway as for DHCP on the Windoze laptop (which is totally disconnected, by the way...I don't mean to confuse you).
Any ideas or anything I should check?
|
|
|
01-29-2004, 10:45 AM
|
#4
|
Member
Registered: Dec 2003
Distribution: Linux Mint 21 (Cinnamon)
Posts: 234
Original Poster
Rep:
|
(Oops...didn't mean to say "for DHCP" in that last reply...disregard that.)
|
|
|
01-29-2004, 12:16 PM
|
#5
|
Member
Registered: Dec 2003
Distribution: Linux Mint 21 (Cinnamon)
Posts: 234
Original Poster
Rep:
|
Also, for clarification, when I said "if I try to do a ping"...I was referring to pinging something on the internet, like the gateway.
|
|
|
01-29-2004, 12:39 PM
|
#6
|
Member
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546
Rep:
|
well, if your ISP has given you a dynamic IP address, then you do not need to manually assign it.
What i recommend is,
1. as root, use the 'netconfig' command to open the network configuration window. { In Redhat linux, we also have a command called 'neat' that does the same job }
2. now select 'DHCP' or 'Dynamic IP' whatever is the option in that menu.
3. Now Select 'OK'
All the rest of the information for your machine, for eg, the netmask, the gateway etc will be automatically filled in that file.
4. Now after making changes, give the command
ifup eth0
Note - > Compare the values in the file /etc/sysconfig/network/ifcfg-eth0 after following above steps with the previous settings....
{Add Network Address, Broadcast address to it in case you arent successful even after following the above-mentioned steps. }
Regards,
amit
|
|
|
01-29-2004, 04:49 PM
|
#7
|
Member
Registered: Dec 2003
Distribution: Linux Mint 21 (Cinnamon)
Posts: 234
Original Poster
Rep:
|
Fixed it...a friend helped me...posting this for completeness in case someone else has this problem
I wrote what I did below...you can see the response that got me on track as well.
Thanks for all your help everyone!
wmeler
-------MY RESPONSE TO THE PROBLEM GETTING SOLVED----
Thanks...you were dead on with #3! As soon as I set it to yes...boom...I could ping the gateway. (My gut was the firewall too, but I would have never guessed why, so thanks again.)
Two more things I had to fix after that though...
1. I set the hostname to what I call my machine and the domain to "local". I then clicked OFF the "Change hostname via DHCP." I clicked ON the "Update name servers and search list via DHCP."
Also, I set the router Gateway to xxx.yyy.xxx.1
(Trying to be complete for the archive.)
wmeler
-----SUGGESTION THAT GOT ME ON THE RIGHT TRACK---------
> > Thoughts of what's wrong--but no idea really:
> > 1)DNS
>
> If you can't get a network connection the DNS isn't
> going to work anyway
> - the problem is unlikely to lie there at this stage
>
> > 2)DHCP configured wrong
>
> Hmmm maybe... Some cablemodem services (SFAIUI)
> 'lock' onto a single MAC
> address - you could try getting your NIC to spoof
> the MAC address of
> the NIC on the Win box
>
> > 3)Firewall on my machine is causing problems
>
> In YaST>System>Editor for SuSE config files -
> network - firewall make
> sure the FW_SERVICES_DHCLIENT setting is "yes" and
> try again
>
|
|
|
All times are GMT -5. The time now is 03:19 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
|
|