Networking Forums

Networking Forums > Computer Networking > Linux Networking > peculiar problem: ping works, but cannot browse. Need help of networkgurus.

Reply
Thread Tools Display Modes

peculiar problem: ping works, but cannot browse. Need help of networkgurus.

 
 
HS
Guest
Posts: n/a

 
      07-25-2003, 05:08 AM

Hi,

I have posted a coupel of messages earlier today and
yesterday(comp.os.linux.networking), but no response yet Really, Is
my problem beyond solution?

I have been fiddling with the problem myself and have some more
information.

In short, at present, I can ping outside world through my ppp0
(connected to eth0) but I cannot browse. The problem started when I
installed a new NIC and configured it using the Redhat GUI. After this
configuration, everything seemed to get screwed up. I guess the GUI
overwrites some configuration files (eg /sbin/sysconfig/network ?).

Now, I took out the second nic, and I am tryin go get the things as they
were originally, with ppp0 connected to eth0 (Bell Sympatico HSE). But
for the world of me, I cannot get it to work. I even tried removing the
original NIC, so that I could install it anew. But that didn't work
either.

Some of my config fies I have given below. /sbin/ifconfig -a works, and
shows ppp0, lo and eth0. I am really worried now, I would really
appreciate some help. If nothing else, at least I would like to know how
to uninstall the NIC I have and reintall it from scratch, in the hope
that that would work.

There is also another peculiar thing: yesterday I tried to change my
hostname, by changing the entry in /etc/hosts and in
/etc/sysconfig/network. Now I have changed those back to
localhost.localdomain. But when i try to login, Gnome says that it
cannot find IP address associated with the host name. Is this is a
relevant symptom? How to solve this problem?

Here is additional info if it helps:

>> /sbin/route -n

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
lo

>> /sbin/ifup ppp0


>> /sbin/route -n

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
65.94.113.1 0.0.0.0 255.255.255.255 UH 0 0 0
ppp0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
lo
0.0.0.0 65.94.113.1 0.0.0.0 UG 0 0 0
ppp0

I can ping google(and I tied some other sites, successfully, too):

>> ping 216.239.53.100

PING 216.239.53.100 (216.239.53.100) from 65.94.113.196 : 56(84) bytes
of data.
64 bytes from 216.239.53.100: icmp_seq=1 ttl=51 time=118 ms
64 bytes from 216.239.53.100: icmp_seq=2 ttl=51 time=115 ms
64 bytes from 216.239.53.100: icmp_seq=3 ttl=51 time=114 ms

--- 216.239.53.100 ping statistics ---
3 packets transmitted, 3 received, 0% loss, time 2028ms
rtt min/avg/max/mdev = 114.350/116.018/118.285/1.684 ms


Here are my config files:
****************************
[root@localhost tmp]# cat /etc/sysconfig/network
NETWORKING=yes
#HOSTNAME=localhost.localdomain
HOSTNAME=localhost.localdomain
****************************
[root@localhost tmp]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=no
BOOTPROTO=dhcp
USERCTL=no
PEERDNS=no
TYPE=Ethernet
**************************** the IPs in resolv.conf are for Bell
Sympatico HSE
[root@localhost tmp]# cat /etc/resolv.conf
# MADE-BY-RP-PPPOE
nameserver 209.226.175.223
nameserver 198.235.216.134
****************
[root@localhost tmp]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
#127.0.0.1 parlo.home.pvt localhost
127.0.0.1 localhost.localdomain localhost
****************************
[root@localhost tmp]# cat /etc/sysconfig/network-scripts/ifcfg-ppp0
USERCTL=yes
BOOTPROTO=dialup
NAME=DSLppp0
DEVICE=ppp0
TYPE=xDSL
ONBOOT=no
PIDFILE=/var/run/pppoe-adsl.pid
FIREWALL=NONE
PING=.
PPPOE_TIMEOUT=360
LCP_FAILURE=3
LCP_INTERVAL=80
CLAMPMSS=1412
CONNECT_POLL=6
CONNECT_TIMEOUT=60
DEFROUTE=yes
SYNCHRONOUS=no
ETH=eth0
PROVIDER=DSLppp0
USER=<my user name here>
PEERDNS=no



Thanks,
->HS
--
##----------
Remove all the underscores from my email address to get the correct
email. Sorry for inconvenience, but this is to reduce spam.
##----------


 
Reply With Quote
 
 
 
 
T5uNam1
Guest
Posts: n/a

 
      07-25-2003, 08:47 AM
I just installed RedHat 7.2

I had the same problem I am routing through my main box which runs XP using
ICS.

All I had to do was make sure I ran network config. and set the correct
Gateway IP and subnet .. and it seemed to work fine. I did have to restart
for it to take effect though.


"HS" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> BTW, I am using Redhat 8.0, kernel 2.4.20-19.8
> ->HS
>
> HS wrote:
>
> > Hi,
> >
> > I have posted a coupel of messages earlier today and
> > yesterday(comp.os.linux.networking), but no response yet Really, Is
> > my problem beyond solution?
> >
> > I have been fiddling with the problem myself and have some more
> > information.
> >
> > In short, at present, I can ping outside world through my ppp0
> > (connected to eth0) but I cannot browse. The problem started when I
> > installed a new NIC and configured it using the Redhat GUI. After this
> > configuration, everything seemed to get screwed up. I guess the GUI
> > overwrites some configuration files (eg /sbin/sysconfig/network ?).
> >
> > Now, I took out the second nic, and I am tryin go get the things as they
> > were originally, with ppp0 connected to eth0 (Bell Sympatico HSE). But
> > for the world of me, I cannot get it to work. I even tried removing the
> > original NIC, so that I could install it anew. But that didn't work
> > either.
> >
> > Some of my config fies I have given below. /sbin/ifconfig -a works, and
> > shows ppp0, lo and eth0. I am really worried now, I would really
> > appreciate some help. If nothing else, at least I would like to know how
> > to uninstall the NIC I have and reintall it from scratch, in the hope
> > that that would work.
> >
> > There is also another peculiar thing: yesterday I tried to change my
> > hostname, by changing the entry in /etc/hosts and in
> > /etc/sysconfig/network. Now I have changed those back to
> > localhost.localdomain. But when i try to login, Gnome says that it
> > cannot find IP address associated with the host name. Is this is a
> > relevant symptom? How to solve this problem?
> >
> > Here is additional info if it helps:
> >
> > >> /sbin/route -n

> > Kernel IP routing table
> > Destination Gateway Genmask Flags Metric Ref Use
> > Iface
> > 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
> > lo
> >
> > >> /sbin/ifup ppp0

> >
> > >> /sbin/route -n

> > Kernel IP routing table
> > Destination Gateway Genmask Flags Metric Ref Use
> > Iface
> > 65.94.113.1 0.0.0.0 255.255.255.255 UH 0 0 0
> > ppp0
> > 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
> > lo
> > 0.0.0.0 65.94.113.1 0.0.0.0 UG 0 0 0
> > ppp0
> >
> > I can ping google(and I tied some other sites, successfully, too):
> >
> > >> ping 216.239.53.100

> > PING 216.239.53.100 (216.239.53.100) from 65.94.113.196 : 56(84) bytes
> > of data.
> > 64 bytes from 216.239.53.100: icmp_seq=1 ttl=51 time=118 ms
> > 64 bytes from 216.239.53.100: icmp_seq=2 ttl=51 time=115 ms
> > 64 bytes from 216.239.53.100: icmp_seq=3 ttl=51 time=114 ms
> >
> > --- 216.239.53.100 ping statistics ---
> > 3 packets transmitted, 3 received, 0% loss, time 2028ms
> > rtt min/avg/max/mdev = 114.350/116.018/118.285/1.684 ms
> >
> > Here are my config files:
> > ****************************
> > [root@localhost tmp]# cat /etc/sysconfig/network
> > NETWORKING=yes
> > #HOSTNAME=localhost.localdomain
> > HOSTNAME=localhost.localdomain
> > ****************************
> > [root@localhost tmp]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
> > DEVICE=eth0
> > ONBOOT=no
> > BOOTPROTO=dhcp
> > USERCTL=no
> > PEERDNS=no
> > TYPE=Ethernet
> > **************************** the IPs in resolv.conf are for Bell
> > Sympatico HSE
> > [root@localhost tmp]# cat /etc/resolv.conf
> > # MADE-BY-RP-PPPOE
> > nameserver 209.226.175.223
> > nameserver 198.235.216.134
> > ****************
> > [root@localhost tmp]# cat /etc/hosts
> > # Do not remove the following line, or various programs
> > # that require network functionality will fail.
> > #127.0.0.1 parlo.home.pvt localhost
> > 127.0.0.1 localhost.localdomain localhost
> > ****************************
> > [root@localhost tmp]# cat /etc/sysconfig/network-scripts/ifcfg-ppp0
> > USERCTL=yes
> > BOOTPROTO=dialup
> > NAME=DSLppp0
> > DEVICE=ppp0
> > TYPE=xDSL
> > ONBOOT=no
> > PIDFILE=/var/run/pppoe-adsl.pid
> > FIREWALL=NONE
> > PING=.
> > PPPOE_TIMEOUT=360
> > LCP_FAILURE=3
> > LCP_INTERVAL=80
> > CLAMPMSS=1412
> > CONNECT_POLL=6
> > CONNECT_TIMEOUT=60
> > DEFROUTE=yes
> > SYNCHRONOUS=no
> > ETH=eth0
> > PROVIDER=DSLppp0
> > USER=<my user name here>
> > PEERDNS=no
> >
> > Thanks,
> > ->HS
> > --
> > ##----------
> > Remove all the underscores from my email address to get the correct
> > email. Sorry for inconvenience, but this is to reduce spam.
> > ##----------

>
> --
> ##----------
> Remove all the underscores from my email address to get the correct email.
> Sorry for inconvenience, but this is to reduce spam.
> ##----------
>
>



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 18/07/2003


 
Reply With Quote
 
/dev/rob0
Guest
Posts: n/a

 
      07-25-2003, 01:22 PM
In article <(E-Mail Removed)>, HS wrote:
> I have posted a coupel of messages earlier today and
> yesterday(comp.os.linux.networking), but no response yet Really, Is


Didn't I respond to that one? Are you reading the posts?

> I can ping google(and I tied some other sites, successfully, too):


Routing is good.

> **************************** the IPs in resolv.conf are for Bell
> Sympatico HSE
> [root@localhost tmp]# cat /etc/resolv.conf
> # MADE-BY-RP-PPPOE
> nameserver 209.226.175.223
> nameserver 198.235.216.134


But can you REACH those nameservers? Some dialup providers I once used
gave me one or more bad nameserver IP addresses! But the "usepeerdns"
option for pppd gave me good ones. "nslookup" in the BIND package is a
good way to test them; check its man page.

> [root@localhost tmp]# cat /etc/sysconfig/network-scripts/ifcfg-ppp0
> [snip]
> PEERDNS=no


This setting probably controls that; ask the Red Hat people.
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply
 
Reply With Quote
 
/dev/rob0
Guest
Posts: n/a

 
      07-25-2003, 07:16 PM
In article <(E-Mail Removed)>, HS wrote:
> I will be really surprise to find that I have to go to the RedHat people,


I mean they can tell you what the variables in the configuration scripts
do. I can only guess, since I don't have Red Hat. (I do have access to
some clients' RH systems, but I don't snoop around unless it's a problem
THEY need to solve.)

> since everything was working fine three days ago. PEERDNS=no means that this
> srcipt file will not rite to resolve.conf, right? If I say "yes" here, is it
> supposed to write new IP addresses it gets when it connects?


That is my guess, yes. As I said, pppd's "usepeerdns" does create a
resolv.conf file, normally in the pppd configuration directory (but I'm
sure that can be changed. If pppd won't put it in /etc, a simple shell
script can do it.)
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply
 
Reply With Quote
 
/dev/rob0
Guest
Posts: n/a

 
      07-25-2003, 11:49 PM
In article <(E-Mail Removed)>, HS wrote:
> I tied making it "yes", but in this case I couldn't even ping, and ppp0 was never
> established successfully


Without ppp0 of course you won't get anywhere. pppd has a "debug" option
which might help you figure out why the connection is failing. Where the
debug output goes varies by distro, depending on settings in
/etc/syslog.conf.

> So, it seems like PEERDNS=yes just causes more problems. With "no" optoin, I can
> browse the web by using IP address, but not domain names.


You can manually edit your /etc/resolv.conf, too, if you know you have
good nameservers to put in it. But it's pointless if the PPP fails.

> Thanks for your hints though. You probably have no idea how I am feeling having to
> depend on Windows to solve this problem :-)


Ah, not true. Not at all. I went through it in 1999; later for almost a
year I was stuck behind a Windows proxy. I know what pain is.
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply
 
Reply With Quote
 
H. S.
Guest
Posts: n/a

 
      07-26-2003, 01:33 AM
/dev/rob0 wrote:
> In article <(E-Mail Removed)>, HS wrote:
>
>>I tied making it "yes", but in this case I couldn't even ping, and ppp0 was never
>>established successfully

>
>
> Without ppp0 of course you won't get anywhere. pppd has a "debug" option
> which might help you figure out why the connection is failing. Where the
> debug output goes varies by distro, depending on settings in
> /etc/syslog.conf.
>
>
>>So, it seems like PEERDNS=yes just causes more problems. With "no" optoin, I can
>>browse the web by using IP address, but not domain names.

>
>
> You can manually edit your /etc/resolv.conf, too, if you know you have
> good nameservers to put in it. But it's pointless if the PPP fails.
>
>
>>Thanks for your hints though. You probably have no idea how I am feeling having to
>>depend on Windows to solve this problem :-)

>
>
> Ah, not true. Not at all. I went through it in 1999; later for almost a
> year I was stuck behind a Windows proxy. I know what pain is.



Hi Rob,

It is working !!!!!!!!!!!!

Just for the record, for others too who may be having this problem now
or in future, I was able to ping IP addresses but was not able to browse
the net using domain names. The problem was that /etc/resolv.conf was
not readable by others and groups. I changed it's permissions and pinged
www.google.com successfully. And then I tried browsing with Mozilla, and
felt the sweet taste of success when the page loaded, not to mention the
sudden receding of the feeling that I might go crazy soon if this
problem is not get resloved soon.

I suspect it was the GUI that changed the permissins. I will now
investigate this fully.

THanks for your help though. Your suggestions and hints were almost like
a lifeline

->HS

--
---------------------- X ----------------------
Remove all underscores from my email address to get the correct one.
Apologies for the inconvenience, but this is to reduce spam.

 
Reply With Quote
 
H. S.
Guest
Posts: n/a

 
      07-26-2003, 02:04 AM
HS wrote:
> Hi,
>
> I have posted a coupel of messages earlier today and
> yesterday(comp.os.linux.networking), but no response yet Really, Is
> my problem beyond solution?
>
> I have been fiddling with the problem myself and have some more
> information.
>
> In short, at present, I can ping outside world through my ppp0
> (connected to eth0) but I cannot browse. The problem started when I
> installed a new NIC and configured it using the Redhat GUI. After this
> configuration, everything seemed to get screwed up. I guess the GUI
> overwrites some configuration files (eg /sbin/sysconfig/network ?).
>
> Now, I took out the second nic, and I am tryin go get the things as they
> were originally, with ppp0 connected to eth0 (Bell Sympatico HSE). But
> for the world of me, I cannot get it to work. I even tried removing the
> original NIC, so that I could install it anew. But that didn't work
> either.
>
> Some of my config fies I have given below. /sbin/ifconfig -a works, and
> shows ppp0, lo and eth0. I am really worried now, I would really
> appreciate some help. If nothing else, at least I would like to know how
> to uninstall the NIC I have and reintall it from scratch, in the hope
> that that would work.
>
> There is also another peculiar thing: yesterday I tried to change my
> hostname, by changing the entry in /etc/hosts and in
> /etc/sysconfig/network. Now I have changed those back to
> localhost.localdomain. But when i try to login, Gnome says that it
> cannot find IP address associated with the host name. Is this is a
> relevant symptom? How to solve this problem?
>
> Here is additional info if it helps:
>
>
>>>/sbin/route -n

>
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
> lo
>
>
>>>/sbin/ifup ppp0

>
>
>>>/sbin/route -n

>
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 65.94.113.1 0.0.0.0 255.255.255.255 UH 0 0 0
> ppp0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
> lo
> 0.0.0.0 65.94.113.1 0.0.0.0 UG 0 0 0
> ppp0
>
> I can ping google(and I tied some other sites, successfully, too):
>
>
>>>ping 216.239.53.100

>
> PING 216.239.53.100 (216.239.53.100) from 65.94.113.196 : 56(84) bytes
> of data.
> 64 bytes from 216.239.53.100: icmp_seq=1 ttl=51 time=118 ms
> 64 bytes from 216.239.53.100: icmp_seq=2 ttl=51 time=115 ms
> 64 bytes from 216.239.53.100: icmp_seq=3 ttl=51 time=114 ms
>
> --- 216.239.53.100 ping statistics ---
> 3 packets transmitted, 3 received, 0% loss, time 2028ms
> rtt min/avg/max/mdev = 114.350/116.018/118.285/1.684 ms
>
>
> Here are my config files:
> ****************************
> [root@localhost tmp]# cat /etc/sysconfig/network
> NETWORKING=yes
> #HOSTNAME=localhost.localdomain
> HOSTNAME=localhost.localdomain
> ****************************
> [root@localhost tmp]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE=eth0
> ONBOOT=no
> BOOTPROTO=dhcp
> USERCTL=no
> PEERDNS=no
> TYPE=Ethernet
> **************************** the IPs in resolv.conf are for Bell
> Sympatico HSE
> [root@localhost tmp]# cat /etc/resolv.conf
> # MADE-BY-RP-PPPOE
> nameserver 209.226.175.223
> nameserver 198.235.216.134
> ****************
> [root@localhost tmp]# cat /etc/hosts
> # Do not remove the following line, or various programs
> # that require network functionality will fail.
> #127.0.0.1 parlo.home.pvt localhost
> 127.0.0.1 localhost.localdomain localhost
> ****************************
> [root@localhost tmp]# cat /etc/sysconfig/network-scripts/ifcfg-ppp0
> USERCTL=yes
> BOOTPROTO=dialup
> NAME=DSLppp0
> DEVICE=ppp0
> TYPE=xDSL
> ONBOOT=no
> PIDFILE=/var/run/pppoe-adsl.pid
> FIREWALL=NONE
> PING=.
> PPPOE_TIMEOUT=360
> LCP_FAILURE=3
> LCP_INTERVAL=80
> CLAMPMSS=1412
> CONNECT_POLL=6
> CONNECT_TIMEOUT=60
> DEFROUTE=yes
> SYNCHRONOUS=no
> ETH=eth0
> PROVIDER=DSLppp0
> USER=<my user name here>
> PEERDNS=no
>
>
>
> Thanks,
> ->HS
> --
> ##----------
> Remove all the underscores from my email address to get the correct
> email. Sorry for inconvenience, but this is to reduce spam.
> ##----------
>
>


The culprit seems to be the blasted Network GUI in Redhat 8.0
(SystemSettings->Network). Whenever I changed *anything* at all in it
and pressed Apply, it overwrote some files (which it is supposed to do,
I agree), but it also changed their permissions (I hadn't expected
that). (Actually, when I press Apply, it does ask me if I want to change
the mode of /etc/sysconfig/networking/devices/ifcfg-ppp0 from 600 to 644
and I reply NO. It does this twice! )

For example, I configured my eth0 as
Nickname: eth0
Yes, allow all users to enable and disable the device.
Statically set IP (but all fields blank).

When I pressed Ok, then Apply, it modified
/etc/sysconfig/network-scripts/ifcfg-eth0 *and* it changed permissions
of /etc/resolv.conf ot make it only root rw, and of some others too
because then I couldn't even connect using the "/sbin/ifup ppp0" command.

To correct this, I had to manually change permissions of
/etc/resolv.conf (to make it readable by all) and also run
/sbin/adsl-setup again (perhaps running adsl-setup correctly re-sets the
permission of some files -- haven't tried to find which one but I
suspect one of them must be /etc/sysconfig/network-scripts/ifcfg-ppp0).
If I did not make resolv.conf readable by all users, I could ping IP
addresses but couldn't ping domain names (eg www.google.com).


So, this begs the questions, is the Network GUI buggy in Redhat? BTW,
one good thing that has happened in the torturous 3 days I have spent on
this problem is that now I have read up a lot on network and device
scripts, and feel comfortable (almost) when I face the possibility of
modifying them manually. In fact, I am thinking of modifying these
scripts manually only and not bother with the network GUI. BUT, but, the
GUI seems to be an easy way of probing the device to get its HWADDR !!

All this trouble started when I inserted a second NIC card (to make a
private home network) and configured it using the Network GUI. I took
out that card to solve this problem. Now I will install it again, but
this time I am armed with superior knowledge :-)

Here is some output for those who are interested in my setup(which is
running pretty nicely now):


[root@localhost]# /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
65.94.119.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 65.94.119.1 0.0.0.0 UG 0 0 0 ppp0

[root@localhost]# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface
65.94.119.1 0.0.0.0 255.255.255.255 UH 0 0 0
ppp0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 65.94.119.1 0.0.0.0 UG 0 0 0
ppp0

[root@localhost]# cat /etc/resolv.conf
# MADE-BY-RP-PPPOE
nameserver 209.226.175.223
nameserver 198.235.216.134

[root@localhost]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=no
BOOTPROTO=none
USERCTL=yes
PEERDNS=no
TYPE=Ethernet
NETWORK=10.0.0.0
BROADCAST=10.0.0.255
HWADDR=00:04:75:8a:d6:df <----- this one was found by the GUI ---|

[root@localhost sahambi]# cat /etc/sysconfig/network-scripts/ifcfg-ppp0
USERCTL=yes
BOOTPROTO=dialup
NAME=DSLppp0
DEVICE=ppp0
TYPE=xDSL
ONBOOT=no
PIDFILE=/var/run/pppoe-adsl.pid
FIREWALL=NONE
PING=.
PPPOE_TIMEOUT=360
LCP_FAILURE=3
LCP_INTERVAL=80
CLAMPMSS=1412
CONNECT_POLL=6
CONNECT_TIMEOUT=60
DEFROUTE=yes
SYNCHRONOUS=no
ETH=eth0
PROVIDER=sympatico.ca
USER=<my actual sympatico username here>
PEERDNS=no




Hope this is helpful to others in saving their precious time.

Special thanks to Rob
->HS



--
---------------------- X ----------------------
Remove all underscores from my email address to get the correct one.
Apologies for the inconvenience, but this is to reduce spam.

 
Reply With Quote
 
H. S.
Guest
Posts: n/a

 
      07-26-2003, 02:55 AM
H. S. wrote:
> HS wrote:
>
>> Hi,
>>
>> I have posted a coupel of messages earlier today and
>> yesterday(comp.os.linux.networking), but no response yet Really, Is
>> my problem beyond solution?
>>
>> I have been fiddling with the problem myself and have some more
>> information.
>>
>> In short, at present, I can ping outside world through my ppp0
>> (connected to eth0) but I cannot browse. The problem started when I
>> installed a new NIC and configured it using the Redhat GUI. After this
>> configuration, everything seemed to get screwed up. I guess the GUI
>> overwrites some configuration files (eg /sbin/sysconfig/network ?).
>>
>> Now, I took out the second nic, and I am tryin go get the things as they
>> were originally, with ppp0 connected to eth0 (Bell Sympatico HSE). But
>> for the world of me, I cannot get it to work. I even tried removing the
>> original NIC, so that I could install it anew. But that didn't work
>> either.
>>
>> Some of my config fies I have given below. /sbin/ifconfig -a works, and
>> shows ppp0, lo and eth0. I am really worried now, I would really
>> appreciate some help. If nothing else, at least I would like to know how
>> to uninstall the NIC I have and reintall it from scratch, in the hope
>> that that would work.
>>
>> There is also another peculiar thing: yesterday I tried to change my
>> hostname, by changing the entry in /etc/hosts and in
>> /etc/sysconfig/network. Now I have changed those back to
>> localhost.localdomain. But when i try to login, Gnome says that it
>> cannot find IP address associated with the host name. Is this is a
>> relevant symptom? How to solve this problem?
>>
>> Here is additional info if it helps:
>>
>>
>>>> /sbin/route -n

>>
>>
>> Kernel IP routing table
>> Destination Gateway Genmask Flags Metric Ref Use
>> Iface
>> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
>> lo
>>
>>
>>>> /sbin/ifup ppp0

>>
>>
>>
>>>> /sbin/route -n

>>
>>
>> Kernel IP routing table
>> Destination Gateway Genmask Flags Metric Ref Use
>> Iface
>> 65.94.113.1 0.0.0.0 255.255.255.255 UH 0 0 0
>> ppp0
>> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
>> lo
>> 0.0.0.0 65.94.113.1 0.0.0.0 UG 0 0 0
>> ppp0
>>
>> I can ping google(and I tied some other sites, successfully, too):
>>
>>
>>>> ping 216.239.53.100

>>
>>
>> PING 216.239.53.100 (216.239.53.100) from 65.94.113.196 : 56(84) bytes
>> of data.
>> 64 bytes from 216.239.53.100: icmp_seq=1 ttl=51 time=118 ms
>> 64 bytes from 216.239.53.100: icmp_seq=2 ttl=51 time=115 ms
>> 64 bytes from 216.239.53.100: icmp_seq=3 ttl=51 time=114 ms
>>
>> --- 216.239.53.100 ping statistics ---
>> 3 packets transmitted, 3 received, 0% loss, time 2028ms
>> rtt min/avg/max/mdev = 114.350/116.018/118.285/1.684 ms
>>
>>
>> Here are my config files:
>> ****************************
>> [root@localhost tmp]# cat /etc/sysconfig/network
>> NETWORKING=yes
>> #HOSTNAME=localhost.localdomain
>> HOSTNAME=localhost.localdomain
>> ****************************
>> [root@localhost tmp]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
>> DEVICE=eth0
>> ONBOOT=no
>> BOOTPROTO=dhcp
>> USERCTL=no
>> PEERDNS=no
>> TYPE=Ethernet
>> **************************** the IPs in resolv.conf are for Bell
>> Sympatico HSE
>> [root@localhost tmp]# cat /etc/resolv.conf
>> # MADE-BY-RP-PPPOE
>> nameserver 209.226.175.223
>> nameserver 198.235.216.134
>> ****************
>> [root@localhost tmp]# cat /etc/hosts
>> # Do not remove the following line, or various programs
>> # that require network functionality will fail.
>> #127.0.0.1 parlo.home.pvt localhost
>> 127.0.0.1 localhost.localdomain localhost
>> ****************************
>> [root@localhost tmp]# cat /etc/sysconfig/network-scripts/ifcfg-ppp0
>> USERCTL=yes
>> BOOTPROTO=dialup
>> NAME=DSLppp0
>> DEVICE=ppp0
>> TYPE=xDSL
>> ONBOOT=no
>> PIDFILE=/var/run/pppoe-adsl.pid
>> FIREWALL=NONE
>> PING=.
>> PPPOE_TIMEOUT=360
>> LCP_FAILURE=3
>> LCP_INTERVAL=80
>> CLAMPMSS=1412
>> CONNECT_POLL=6
>> CONNECT_TIMEOUT=60
>> DEFROUTE=yes
>> SYNCHRONOUS=no
>> ETH=eth0
>> PROVIDER=DSLppp0
>> USER=<my user name here>
>> PEERDNS=no
>>
>>
>>
>> Thanks,
>> ->HS
>> --
>> ##----------
>> Remove all the underscores from my email address to get the correct
>> email. Sorry for inconvenience, but this is to reduce spam.
>> ##----------
>>
>>

>
> The culprit seems to be the blasted Network GUI in Redhat 8.0
> (SystemSettings->Network). Whenever I changed *anything* at all in it
> and pressed Apply, it overwrote some files (which it is supposed to do,
> I agree), but it also changed their permissions (I hadn't expected
> that). (Actually, when I press Apply, it does ask me if I want to change
> the mode of /etc/sysconfig/networking/devices/ifcfg-ppp0 from 600 to 644
> and I reply NO. It does this twice! )
>
> For example, I configured my eth0 as
> Nickname: eth0
> Yes, allow all users to enable and disable the device.
> Statically set IP (but all fields blank).
>
> When I pressed Ok, then Apply, it modified
> /etc/sysconfig/network-scripts/ifcfg-eth0 *and* it changed permissions
> of /etc/resolv.conf ot make it only root rw, and of some others too
> because then I couldn't even connect using the "/sbin/ifup ppp0" command.
>
> To correct this, I had to manually change permissions of
> /etc/resolv.conf (to make it readable by all) and also run
> /sbin/adsl-setup again (perhaps running adsl-setup correctly re-sets the
> permission of some files -- haven't tried to find which one but I
> suspect one of them must be /etc/sysconfig/network-scripts/ifcfg-ppp0).
> If I did not make resolv.conf readable by all users, I could ping IP
> addresses but couldn't ping domain names (eg www.google.com).
>
>
> So, this begs the questions, is the Network GUI buggy in Redhat? BTW,
> one good thing that has happened in the torturous 3 days I have spent on
> this problem is that now I have read up a lot on network and device
> scripts, and feel comfortable (almost) when I face the possibility of
> modifying them manually. In fact, I am thinking of modifying these
> scripts manually only and not bother with the network GUI. BUT, but, the
> GUI seems to be an easy way of probing the device to get its HWADDR !!
>
> All this trouble started when I inserted a second NIC card (to make a
> private home network) and configured it using the Network GUI. I took
> out that card to solve this problem. Now I will install it again, but
> this time I am armed with superior knowledge :-)
>
> Here is some output for those who are interested in my setup(which is
> running pretty nicely now):
>
>
> [root@localhost]# /sbin/route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 65.94.119.1 0.0.0.0 255.255.255.255 UH 0 0 0
> ppp0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
> 0.0.0.0 65.94.119.1 0.0.0.0 UG 0 0 0
> ppp0
>
> [root@localhost]# netstat -rn
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt
> Iface
> 65.94.119.1 0.0.0.0 255.255.255.255 UH 0 0 0
> ppp0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
> 0.0.0.0 65.94.119.1 0.0.0.0 UG 0 0 0
> ppp0
>
> [root@localhost]# cat /etc/resolv.conf
> # MADE-BY-RP-PPPOE
> nameserver 209.226.175.223
> nameserver 198.235.216.134
>
> [root@localhost]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE=eth0
> ONBOOT=no
> BOOTPROTO=none
> USERCTL=yes
> PEERDNS=no
> TYPE=Ethernet
> NETWORK=10.0.0.0
> BROADCAST=10.0.0.255
> HWADDR=00:04:75:8a:d6:df <----- this one was found by the GUI ---|
>
> [root@localhost sahambi]# cat /etc/sysconfig/network-scripts/ifcfg-ppp0
> USERCTL=yes
> BOOTPROTO=dialup
> NAME=DSLppp0
> DEVICE=ppp0
> TYPE=xDSL
> ONBOOT=no
> PIDFILE=/var/run/pppoe-adsl.pid
> FIREWALL=NONE
> PING=.
> PPPOE_TIMEOUT=360
> LCP_FAILURE=3
> LCP_INTERVAL=80
> CLAMPMSS=1412
> CONNECT_POLL=6
> CONNECT_TIMEOUT=60
> DEFROUTE=yes
> SYNCHRONOUS=no
> ETH=eth0
> PROVIDER=sympatico.ca
> USER=<my actual sympatico username here>
> PEERDNS=no
>
>
>
>
> Hope this is helpful to others in saving their precious time.
>
> Special thanks to Rob
> ->HS



BTW, just for information, and for comments, BOOTPROTO=none and
BOOTPROTO=dhcp has no effect on my internet connection using ppp0.
Presently, I am able to browse the web perfectly using:
[22:52:03]>> cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=no

Is this normal?


And, is there any advantage in using:
> [root@localhost]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE=eth0
> ONBOOT=no
> BOOTPROTO=none
> USERCTL=yes
> PEERDNS=no
> TYPE=Ethernet
> NETWORK=10.0.0.0
> BROADCAST=10.0.0.255
> HWADDR=00:04:75:8a:d6:df <----- this one was found by the GUI ---|
>



->HS


--
---------------------- X ----------------------
Remove all underscores from my email address to get the correct one.
Apologies for the inconvenience, but this is to reduce spam.

 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      07-26-2003, 12:05 PM
H. S. <(E-Mail Removed)> wrote:

> BOOTPROTO=dhcp has no effect on my internet connection using ppp0.
> Presently, I am able to browse the web perfectly using:
> [22:52:03]>> cat /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE=eth0
> BOOTPROTO=dhcp
> ONBOOT=no


> Is this normal?


Yes, except that you don't need DHCP when you use PPPoE. Note that
DHCP *could* be used and PPPoE discarded entirely, but PPPoE gives
the ISP much more control over what it's clients can have and can do.

DHCP is a standard track protocol, but PPPoE is not and never will be;
it was created solely to benefit the ISP.

> And, is there any advantage in using:
> > [root@localhost]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
> > DEVICE=eth0
> > ONBOOT=no
> > BOOTPROTO=none
> > USERCTL=yes
> > PEERDNS=no
> > TYPE=Ethernet
> > NETWORK=10.0.0.0
> > BROADCAST=10.0.0.255
> > HWADDR=00:04:75:8a:d6:df <----- this one was found by the GUI ---|


No.

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
/* Microsoft is a great marketing organization.
* It _has_ to be */
 
Reply With Quote
 
waldo frinkazoid
Guest
Posts: n/a

 
      08-10-2003, 09:15 AM
your default gateway has to be the ip of the internet connection / device
that makes the connection
"HS" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
>
> T5uNam1 wrote:
>
> > I just installed RedHat 7.2
> >
> > I had the same problem I am routing through my main box which runs XP

using
> > ICS.
> >
> > All I had to do was make sure I ran network config. and set the correct
> > Gateway IP and subnet .. and it seemed to work fine. I did have to

restart
> > for it to take effect though.

>
> Would that be 10.0.0.0 and mask 255.255.255.0? And in Redhat 8.0, I have

the
> SystemSettings->Network GUI to change the settings. Or I can do the

changes
> manually in the config files.
>
> Thanks for the reply.
> ->HS
>
>
>
>
> >
> > "HS" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > BTW, I am using Redhat 8.0, kernel 2.4.20-19.8
> > > ->HS
> > >
> > > HS wrote:
> > >
> > > > Hi,
> > > >
> > > > I have posted a coupel of messages earlier today and
> > > > yesterday(comp.os.linux.networking), but no response yet Really,

Is
> > > > my problem beyond solution?
> > > >
> > > > I have been fiddling with the problem myself and have some more
> > > > information.
> > > >
> > > > In short, at present, I can ping outside world through my ppp0
> > > > (connected to eth0) but I cannot browse. The problem started when I
> > > > installed a new NIC and configured it using the Redhat GUI. After

this
> > > > configuration, everything seemed to get screwed up. I guess the GUI
> > > > overwrites some configuration files (eg /sbin/sysconfig/network ?).
> > > >
> > > > Now, I took out the second nic, and I am tryin go get the things as

they
> > > > were originally, with ppp0 connected to eth0 (Bell Sympatico HSE).

But
> > > > for the world of me, I cannot get it to work. I even tried removing

the
> > > > original NIC, so that I could install it anew. But that didn't work
> > > > either.
> > > >
> > > > Some of my config fies I have given below. /sbin/ifconfig -a works,

and
> > > > shows ppp0, lo and eth0. I am really worried now, I would really
> > > > appreciate some help. If nothing else, at least I would like to know

how
> > > > to uninstall the NIC I have and reintall it from scratch, in the

hope
> > > > that that would work.
> > > >
> > > > There is also another peculiar thing: yesterday I tried to change my
> > > > hostname, by changing the entry in /etc/hosts and in
> > > > /etc/sysconfig/network. Now I have changed those back to
> > > > localhost.localdomain. But when i try to login, Gnome says that it
> > > > cannot find IP address associated with the host name. Is this is a
> > > > relevant symptom? How to solve this problem?
> > > >
> > > > Here is additional info if it helps:
> > > >
> > > > >> /sbin/route -n
> > > > Kernel IP routing table
> > > > Destination Gateway Genmask Flags Metric Ref

Use
> > > > Iface
> > > > 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0

0
> > > > lo
> > > >
> > > > >> /sbin/ifup ppp0
> > > >
> > > > >> /sbin/route -n
> > > > Kernel IP routing table
> > > > Destination Gateway Genmask Flags Metric Ref

Use
> > > > Iface
> > > > 65.94.113.1 0.0.0.0 255.255.255.255 UH 0 0

0
> > > > ppp0
> > > > 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0

0
> > > > lo
> > > > 0.0.0.0 65.94.113.1 0.0.0.0 UG 0 0

0
> > > > ppp0
> > > >
> > > > I can ping google(and I tied some other sites, successfully, too):
> > > >
> > > > >> ping 216.239.53.100
> > > > PING 216.239.53.100 (216.239.53.100) from 65.94.113.196 : 56(84)

bytes
> > > > of data.
> > > > 64 bytes from 216.239.53.100: icmp_seq=1 ttl=51 time=118 ms
> > > > 64 bytes from 216.239.53.100: icmp_seq=2 ttl=51 time=115 ms
> > > > 64 bytes from 216.239.53.100: icmp_seq=3 ttl=51 time=114 ms
> > > >
> > > > --- 216.239.53.100 ping statistics ---
> > > > 3 packets transmitted, 3 received, 0% loss, time 2028ms
> > > > rtt min/avg/max/mdev = 114.350/116.018/118.285/1.684 ms
> > > >
> > > > Here are my config files:
> > > > ****************************
> > > > [root@localhost tmp]# cat /etc/sysconfig/network
> > > > NETWORKING=yes
> > > > #HOSTNAME=localhost.localdomain
> > > > HOSTNAME=localhost.localdomain
> > > > ****************************
> > > > [root@localhost tmp]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
> > > > DEVICE=eth0
> > > > ONBOOT=no
> > > > BOOTPROTO=dhcp
> > > > USERCTL=no
> > > > PEERDNS=no
> > > > TYPE=Ethernet
> > > > **************************** the IPs in resolv.conf are for Bell
> > > > Sympatico HSE
> > > > [root@localhost tmp]# cat /etc/resolv.conf
> > > > # MADE-BY-RP-PPPOE
> > > > nameserver 209.226.175.223
> > > > nameserver 198.235.216.134
> > > > ****************
> > > > [root@localhost tmp]# cat /etc/hosts
> > > > # Do not remove the following line, or various programs
> > > > # that require network functionality will fail.
> > > > #127.0.0.1 parlo.home.pvt localhost
> > > > 127.0.0.1 localhost.localdomain localhost
> > > > ****************************
> > > > [root@localhost tmp]# cat /etc/sysconfig/network-scripts/ifcfg-ppp0
> > > > USERCTL=yes
> > > > BOOTPROTO=dialup
> > > > NAME=DSLppp0
> > > > DEVICE=ppp0
> > > > TYPE=xDSL
> > > > ONBOOT=no
> > > > PIDFILE=/var/run/pppoe-adsl.pid
> > > > FIREWALL=NONE
> > > > PING=.
> > > > PPPOE_TIMEOUT=360
> > > > LCP_FAILURE=3
> > > > LCP_INTERVAL=80
> > > > CLAMPMSS=1412
> > > > CONNECT_POLL=6
> > > > CONNECT_TIMEOUT=60
> > > > DEFROUTE=yes
> > > > SYNCHRONOUS=no
> > > > ETH=eth0
> > > > PROVIDER=DSLppp0
> > > > USER=<my user name here>
> > > > PEERDNS=no
> > > >
> > > > Thanks,
> > > > ->HS
> > > > --
> > > > ##----------
> > > > Remove all the underscores from my email address to get the correct
> > > > email. Sorry for inconvenience, but this is to reduce spam.
> > > > ##----------
> > >
> > > --
> > > ##----------
> > > Remove all the underscores from my email address to get the correct

email.
> > > Sorry for inconvenience, but this is to reduce spam.
> > > ##----------
> > >
> > >

> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.502 / Virus Database: 300 - Release Date: 18/07/2003

>
> --
> ##----------
> Remove all the underscores from my email address to get the correct email.

Sorry
> for inconvenience, but this is to reduce spam.
> ##----------
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Peculiar name resolution problem on VirginMedia cable connection Jeremy Nicoll - news posts Broadband 8 03-23-2008 08:53 AM
Ad Hoc Problem: ping works, nothing else does! kavaXtreme Wireless Networks 0 12-02-2004 02:45 PM
Problem with 2 NICs - only ping works Robert B. Linux Networking 0 02-27-2004 11:46 AM
Peculiar download problem :-( FET Linux Networking 1 12-21-2003 04:54 AM
unable to browse though ping works fine with XP box Rob Windows Networking 0 10-31-2003 03:34 AM



1 2 3 4 5 6 7 8 9 10 11