Networking Forums

Networking Forums > Computer Networking > Linux Networking > Weired routing problem

Reply
Thread Tools Display Modes

Weired routing problem

 
 
Michael Badt
Guest
Posts: n/a

 
      11-27-2005, 03:39 PM
Hi,
My Mandriva 2006 _64 is connected to a 10.0.0.x LAN which also contains an
ADSL router/modem (+DHCP server, NAT, FW) on 10.0.0.138 which acs as my
gateway to the Internet. The Mandriva itself also runs its own firewall
(shorewall).
While I get brousing and email connectivity, I found that:
a. I can'tuse ntp (to sync my clock) with the domain name of ANY server, yet
i easily sync by providing the IP address of any server.
b. I can ping sites, but can't telnet the same sites

What's also bothering me is the 1.0.0.0 IP address that reappears. Where
does THIS one come from?

Enclosed please find output of respective commands (as root) +relevant
configuration files.
Any Idea?

TIA
========ntpdate output======================
[root@Atlantis miki]# /usr/sbin/ntpdate -u us.pool.ntp.org
Looking for host us.pool.ntp.org and service ntp
host found : 1.0.0.0
26 Nov 18:16:18 ntpdate[11145]: no server suitable for synchronization found

=============output of telnet=========
telnet www.google.com
Trying 1.0.0.0...

===========output of ping (same site)=======
ping www.google.com
PING www.l.google.com (64.233.183.104) 56(84) bytes of data.
64 bytes from www.google.com (64.233.183.104): icmp_seq=1 ttl=240 time=313
ms
64 bytes from www.google.com (64.233.183.104): icmp_seq=2 ttl=240 time=265
ms

--- www.l.google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 265.269/289.139/313.009/23.870 ms

============contents of my resolv.conf
cat resolv.conf
nameserver 10.0.0.138

============contents of my hosts
cat hosts
127.0.0.1 Atlantis localhost

===========output of route===========
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
10.0.0.0 * 255.0.0.0 U 10 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default mygateway.ar7 0.0.0.0 UG 10 0 0 eth0

=========routing table of my ADSL router (IP 10.0.0.138)=====
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.114.82.152 127.0.0.1 255.255.255.255 UGH 0 0 0 lo
192.114.46.164 127.0.0.1 255.255.255.255 UGH 0 0 0 lo
192.117.100.169 127.0.0.1 255.255.255.255 UGH 0 0 0 lo
192.117.119.209 127.0.0.1 255.255.255.255 UGH 0 0 0 lo
192.114.47.251 192.117.119.209 255.255.255.255 UGH 0 0 0 ppp0
192.114.47.251 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
239.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 br0
10.0.0.0 10.0.0.138 255.0.0.0 UG 0 0 0 br0
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 br0
0.0.0.0 192.114.47.251 0.0.0.0 UG 0 0 0 ppp0


 
Reply With Quote
 
 
 
 
Unruh
Guest
Posts: n/a

 
      11-27-2005, 07:47 PM
Michael Badt <(E-Mail Removed)> writes:

>Hi,
>My Mandriva 2006 _64 is connected to a 10.0.0.x LAN which also contains an


No it is connected to a 10.x.x.x lan.

>ADSL router/modem (+DHCP server, NAT, FW) on 10.0.0.138 which acs as my
>gateway to the Internet. The Mandriva itself also runs its own firewall
>(shorewall).


Shorewall could be your problem.

>While I get brousing and email connectivity, I found that:
>a. I can'tuse ntp (to sync my clock) with the domain name of ANY server, yet
>i easily sync by providing the IP address of any server.
>b. I can ping sites, but can't telnet the same sites


Can you telnet the ip addresses?


>What's also bothering me is the 1.0.0.0 IP address that reappears. Where
>does THIS one come from?


>Enclosed please find output of respective commands (as root) +relevant
>configuration files.
>Any Idea?


>TIA
>========ntpdate output======================
>[root@Atlantis miki]# /usr/sbin/ntpdate -u us.pool.ntp.org
>Looking for host us.pool.ntp.org and service ntp
>host found : 1.0.0.0


That is clearly nonsense. Either your dns server is completely borked or
you ntpdate is. Check that you have not put something stupid in
/etc/hosts.


>26 Nov 18:16:18 ntpdate[11145]: no server suitable for synchronization found


>=============output of telnet=========
>telnet www.google.com
>Trying 1.0.0.0...


AGain your dns server is screwed. Use another one.

And check /etc/hosts.




>===========output of ping (same site)=======
>ping www.google.com
>PING www.l.google.com (64.233.183.104) 56(84) bytes of data.
>64 bytes from www.google.com (64.233.183.104): icmp_seq=1 ttl=240 time=313
>ms
>64 bytes from www.google.com (64.233.183.104): icmp_seq=2 ttl=240 time=265
>ms


>--- www.l.google.com ping statistics ---
>2 packets transmitted, 2 received, 0% packet loss, time 1000ms
>rtt min/avg/max/mdev = 265.269/289.139/313.009/23.870 ms


>============contents of my resolv.conf
>cat resolv.conf
>nameserver 10.0.0.138


Get another one.


>============contents of my hosts
> cat hosts
>127.0.0.1 Atlantis localhost


>===========output of route===========
>route
>Kernel IP routing table
>Destination Gateway Genmask Flags Metric Ref Use
>Iface
>10.0.0.0 * 255.0.0.0 U 10 0 0 eth0
>127.0.0.0 * 255.0.0.0 U 0 0 0 lo
>default mygateway.ar7 0.0.0.0 UG 10 0 0 eth0


And what is mygateway.ar7?



>=========routing table of my ADSL router (IP 10.0.0.138)=====
>Destination Gateway Genmask Flags Metric Ref Use
>Iface
>192.114.82.152 127.0.0.1 255.255.255.255 UGH 0 0 0 lo
>192.114.46.164 127.0.0.1 255.255.255.255 UGH 0 0 0 lo
>192.117.100.169 127.0.0.1 255.255.255.255 UGH 0 0 0 lo
>192.117.119.209 127.0.0.1 255.255.255.255 UGH 0 0 0 lo
>192.114.47.251 192.117.119.209 255.255.255.255 UGH 0 0 0 ppp0
>192.114.47.251 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
>239.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 br0
>10.0.0.0 10.0.0.138 255.0.0.0 UG 0 0 0 br0


This line is nuts.



>10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 br0
>0.0.0.0 192.114.47.251 0.0.0.0 UG 0 0 0 ppp0



 
Reply With Quote
 
bigsteve_uk@hotmail.com
Guest
Posts: n/a

 
      11-27-2005, 10:37 PM
Unruh wrote:
> Michael Badt <(E-Mail Removed)> writes:
>
> >Hi,
> >My Mandriva 2006 _64 is connected to a 10.0.0.x LAN which also contains an

>
> No it is connected to a 10.x.x.x lan.
>
> >ADSL router/modem (+DHCP server, NAT, FW) on 10.0.0.138 which acs as my
> >gateway to the Internet. The Mandriva itself also runs its own firewall
> >(shorewall).

>
> Shorewall could be your problem.
>
> >While I get brousing and email connectivity, I found that:
> >a. I can'tuse ntp (to sync my clock) with the domain name of ANY server, yet
> >i easily sync by providing the IP address of any server.
> >b. I can ping sites, but can't telnet the same sites

>
> Can you telnet the ip addresses?
>
>
> >What's also bothering me is the 1.0.0.0 IP address that reappears. Where
> >does THIS one come from?

>
> >Enclosed please find output of respective commands (as root) +relevant
> >configuration files.
> >Any Idea?

>
> >TIA
> >========ntpdate output======================
> >[root@Atlantis miki]# /usr/sbin/ntpdate -u us.pool.ntp.org
> >Looking for host us.pool.ntp.org and service ntp
> >host found : 1.0.0.0

>
> That is clearly nonsense. Either your dns server is completely borked or
> you ntpdate is. Check that you have not put something stupid in
> /etc/hosts.
>
>
> >26 Nov 18:16:18 ntpdate[11145]: no server suitable for synchronization found

>
> >=============output of telnet=========
> >telnet www.google.com
> >Trying 1.0.0.0...

>
> AGain your dns server is screwed. Use another one.
>
> And check /etc/hosts.
>
>
>
>
> >===========output of ping (same site)=======
> >ping www.google.com
> >PING www.l.google.com (64.233.183.104) 56(84) bytes of data.
> >64 bytes from www.google.com (64.233.183.104): icmp_seq=1 ttl=240 time=313
> >ms
> >64 bytes from www.google.com (64.233.183.104): icmp_seq=2 ttl=240 time=265
> >ms

>
> >--- www.l.google.com ping statistics ---
> >2 packets transmitted, 2 received, 0% packet loss, time 1000ms
> >rtt min/avg/max/mdev = 265.269/289.139/313.009/23.870 ms

>
> >============contents of my resolv.conf
> >cat resolv.conf
> >nameserver 10.0.0.138

>
> Get another one.
>
>
> >============contents of my hosts
> > cat hosts
> >127.0.0.1 Atlantis localhost

>
> >===========output of route===========
> >route
> >Kernel IP routing table
> >Destination Gateway Genmask Flags Metric Ref Use
> >Iface
> >10.0.0.0 * 255.0.0.0 U 10 0 0 eth0
> >127.0.0.0 * 255.0.0.0 U 0 0 0 lo
> >default mygateway.ar7 0.0.0.0 UG 10 0 0 eth0

>
> And what is mygateway.ar7?
>
>
>
> >=========routing table of my ADSL router (IP 10.0.0.138)=====
> >Destination Gateway Genmask Flags Metric Ref Use
> >Iface
> >192.114.82.152 127.0.0.1 255.255.255.255 UGH 0 0 0 lo
> >192.114.46.164 127.0.0.1 255.255.255.255 UGH 0 0 0 lo
> >192.117.100.169 127.0.0.1 255.255.255.255 UGH 0 0 0 lo
> >192.117.119.209 127.0.0.1 255.255.255.255 UGH 0 0 0 lo
> >192.114.47.251 192.117.119.209 255.255.255.255 UGH 0 0 0 ppp0
> >192.114.47.251 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
> >239.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 br0
> >10.0.0.0 10.0.0.138 255.0.0.0 UG 0 0 0 br0

>
> This line is nuts.
> >10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 br0
> >0.0.0.0 192.114.47.251 0.0.0.0 UG 0 0 0 ppp0


I had trouble with linux machine (kernels 2.4/2.6) using dhclient for
dhcp and connecting to a Dlink 504T ADSL/Modem router (which had a
default hostname of mygateway.ar7).

It seemed that whenever I tried to use the DNS relay (set via dhcp) on
the router, it always gave back strange results like you gave above,
1.0.0.0. The only way I managed to get around it was to directly query
my ISP's DNS servers by setting the DNS server entries statically in
/etc/resolv.conf for each linux box. It seems strange how ping resolves
the hostname correctly though!

Hope this helps!

Steve

 
Reply With Quote
 
Michael Badt
Guest
Posts: n/a

 
      11-28-2005, 07:04 AM
Thanks Unruh and Steve.
Steve, your recommendation to modify resolv.conf indeed solved my problem.

Take care !


(E-Mail Removed) wrote:

> Unruh wrote:


>
> It seemed that whenever I tried to use the DNS relay (set via dhcp) on
> the router, it always gave back strange results like you gave above,
> 1.0.0.0. The only way I managed to get around it was to directly query
> my ISP's DNS servers by setting the DNS server entries statically in
> /etc/resolv.conf for each linux box. It seems strange how ping resolves
> the hostname correctly though!
>
> Hope this helps!
>
> Steve


 
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
vpn weired problem khaled azzaz Windows Networking 0 03-19-2007 03:23 PM
routing problem Robert Craig Windows Networking 7 01-17-2006 11:58 PM
Mandriav 2006_x86_64: Weired networking behaviour (multiple problems) Michael Badt Linux Networking 0 11-12-2005 11:17 AM
Weired DNS problem Soren Windows Networking 3 09-25-2005 10:47 PM
ROUTING PROBLEM ChrisFON Linux Networking 0 06-16-2004 08:47 AM



1 2 3 4 5 6 7 8 9 10 11