LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-30-2004, 12:34 PM   #1
meblost
Member
 
Registered: May 2004
Location: At Keyboard
Distribution: Mandrake 10.0, SuSE 9.0
Posts: 114

Rep: Reputation: 15
Webpages not resolving, unable to ping after reboot


Hello,
While my SuSE 9.0 machine boots I see,

Code:
...
Setting up network interfaces:
    lo									done
    eth0      (DHCP) IP/Netmask: <good IP> / <correct mask>		done
...
However, when I try to visit any web pages (www.google.com, for instance) I get either Unknown Host or Unable to resolve host and when I try to ping another machine on my network, I get Destination host unreachable

Code:
$> /etc/init.d/network status
tells me that lo and eth0 are running. But, when I try
Code:
$> /etc/init.d/network restart
Everything works perfectly until I reboot again. Any ideas?

Here is my /etc/sysconfig/network/ifcfg-eth0
Code:
BOOTPROTO='dhcp'
MTU=''
REMOTE_IPADDR=''
STARTMODE='onboot'
UNIQUE='75Hn.58DAcsGIlkA'
BROADCAST='10.10.255.255'
IPADDR='<my_ip_addr>'
NETMASK='255.255.0.0'
NETWORK='10.10.0.0'
What other files would pertain to this situation? Are there any that I should post here?

Thanks for any help
 
Old 06-30-2004, 01:14 PM   #2
linuxmanju
Member
 
Registered: Sep 2003
Location: India
Distribution: Debian
Posts: 50

Rep: Reputation: 15
I got the feeling that ur dns entries r not good... just open /etc/resolve.conf and c if the dns server ip address is mentioned properly..
othrwise.. just checkout the ip address by pinging 216.139.59.104 ..
if u get the ping result then its the problem wth the DNS
enter a valid DNS ip in the /etc/resolve.conf
and cheerup
 
Old 06-30-2004, 02:00 PM   #3
meblost
Member
 
Registered: May 2004
Location: At Keyboard
Distribution: Mandrake 10.0, SuSE 9.0
Posts: 114

Original Poster
Rep: Reputation: 15
Thanks for the post linuxmanju
After I reboot but before I manually restart network services, I cannot ping by IP addr nor by FQDN. My /etc/resolve.conf has the same nameservers listed that a windows machine on the network has.

Does anyone know what entries I should have in /etc/hosts for a machine that gets IP through DHCP?
 
Old 06-30-2004, 03:42 PM   #4
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
Re: Webpages not resolving, unable to ping after reboot

Quote:
Originally posted by meblost
Hello,
While my SuSE 9.0 machine boots I see,

Code:
...
Setting up network interfaces:
    lo									done
    eth0      (DHCP) IP/Netmask: <good IP> / <correct mask>		done
...
...
Here is my /etc/sysconfig/network/ifcfg-eth0
Code:
BOOTPROTO='dhcp'
MTU=''
REMOTE_IPADDR=''
STARTMODE='onboot'
UNIQUE='75Hn.58DAcsGIlkA'
BROADCAST='10.10.255.255'
IPADDR='<my_ip_addr>'
NETMASK='255.255.0.0'
NETWORK='10.10.0.0'
DHCP is a protocol for getting information like DNS and IP addresses from a knowlegable server. If you have one on your network or from your ISP, you do not need the IPADDR, NETMASK, and NETWORK. It could be that your settings conflict with the server. My file has
Code:
DEVICE=eth0
BOOTPROTO=dhcp
NETMASK=255.255.255.0
ONBOOT=yes
MII_NOT_SUPPORTED=no
WIRELESS_ENC_KEY=""
DHCP_HOSTNAME=nifty
NEEDHOSTNAME=yes
 
Old 07-01-2004, 08:54 AM   #5
meblost
Member
 
Registered: May 2004
Location: At Keyboard
Distribution: Mandrake 10.0, SuSE 9.0
Posts: 114

Original Poster
Rep: Reputation: 15
Thanks for the idea RobertP, although when I make your changes, I have the same results.
I'll keep those changes because it seems to be a better solution.

Any other ideas?
 
Old 07-01-2004, 10:28 AM   #6
meblost
Member
 
Registered: May 2004
Location: At Keyboard
Distribution: Mandrake 10.0, SuSE 9.0
Posts: 114

Original Poster
Rep: Reputation: 15
I can also do

$> ifconfig eth0 down
$> ifconfig eth0 up

After I reboot and it work work until I reboot again.
 
Old 07-01-2004, 11:59 AM   #7
andrewdodsworth
Member
 
Registered: Oct 2003
Location: United Kingdom
Distribution: SuSE 10.0 - 11.4
Posts: 347

Rep: Reputation: 30
Re: Webpages not resolving, unable to ping after reboot

Quote:
Originally posted by meblost
Here is my /etc/sysconfig/network/ifcfg-eth0

BOOTPROTO='dhcp'
MTU=''
REMOTE_IPADDR=''
STARTMODE='onboot'
UNIQUE='75Hn.58DAcsGIlkA'
BROADCAST='10.10.255.255'
IPADDR='<my_ip_addr>'
NETMASK='255.255.0.0'
NETWORK='10.10.0.0'

Remove

BROADCAST='10.10.255.255'
IPADDR='<my_ip_addr>'
NETMASK='255.255.0.0'
NETWORK='10.10.0.0'

Add

DHCLIENT_MODIFY_RESOLV_CONF='yes'
DHCLIENT_SET_DEFAULT_ROUTE='yes'

What this should do is let DHCP set default route and also create a temporary
/etc/resolv.conf with nameserver info in it (It saves the original with the name 'resolv.conf.saved.by.dhcpcd').
 
Old 07-02-2004, 03:12 PM   #8
meblost
Member
 
Registered: May 2004
Location: At Keyboard
Distribution: Mandrake 10.0, SuSE 9.0
Posts: 114

Original Poster
Rep: Reputation: 15
Thanks for the tip, I'll try when I'm back at work...
 
Old 07-07-2004, 12:42 PM   #9
meblost
Member
 
Registered: May 2004
Location: At Keyboard
Distribution: Mandrake 10.0, SuSE 9.0
Posts: 114

Original Poster
Rep: Reputation: 15
Nope, still doesn't work. Maybe I should just set it up to restart network automatically in rc dirs...
 
Old 07-07-2004, 01:44 PM   #10
andrewdodsworth
Member
 
Registered: Oct 2003
Location: United Kingdom
Distribution: SuSE 10.0 - 11.4
Posts: 347

Rep: Reputation: 30
Very puzzling as ifcfg-eth0 should override any defaults and if dhcp is creating its own resolv.conf that should be good on booting. Can you have a look at what route outputs after boot up and then again after you ifdown ifup to see what's different?

Also I guess if you've tried changing stuff in any of the rc dirs that could muck things up.

If not have you tried deleting the card in YaST, rebooting and then letting SuSE rediscover it?

The only other thing to do is try and follow exactly what's happening on booting. Part of the boot process calls ifup (which is effectively what you're doing by ifconfig eth0 up) so it should be doing exactly what you're doing. Therefore logically it ought to be bringing the card up so if it's not active when you get to it then something after that process is taking it down or trashing the default route.
 
Old 07-12-2004, 01:58 PM   #11
meblost
Member
 
Registered: May 2004
Location: At Keyboard
Distribution: Mandrake 10.0, SuSE 9.0
Posts: 114

Original Poster
Rep: Reputation: 15
I deleted the card in YAST, rebooted, re-added the card with the same result as before. I guess I need to spend more time looking through boot scripts. Thanks for the help!
 
Old 07-28-2004, 05:48 PM   #12
eteonline
LQ Newbie
 
Registered: Jul 2004
Distribution: suse 9.1
Posts: 3

Rep: Reputation: 0
I have a similar problem with Suse 9.1 using a USR5416 network card. Web sites are not reachable...well not all. Try un.org, or my site www.eteonline.com. It is very clearly a DNS problem for me. I configured a public proxy and suddenly they were all available, including the SUSE's YOU service. It may not be the best solution but it is a solution. I did read elsewhere about local not being treated the same as other domains...it is in the release notes, but that doesn't seem to be my case from what I can figure out being very new to Linux.

Try a public proxy (configured through YAST) and see if it works for you.
 
  


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
Unable to browse ALL webpages jr88 Slackware 6 10-27-2005 12:06 PM
Unable to ping 2 PC naveen_varma Linux - Networking 3 10-26-2005 01:55 AM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM
ping not resolving names - iptables PlatinumRik Linux - Security 2 07-28-2004 11:32 PM
Unable to ping out from RH8.0 vanloke Linux - Networking 2 11-06-2003 02:49 AM

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

All times are GMT -5. The time now is 11:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration