LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 12-12-2004, 10:51 PM   #1
steveperry
LQ Newbie
 
Registered: Dec 2004
Distribution: Mandrake 10.0
Posts: 7

Rep: Reputation: 0
Stumped with connection problem


I need help diagnosing my problem in order to solve it. I'm fairly new to linux but I'm learning quickly. I can't connect to the internet through my router. I installed my NIC and route table. I can get a ping from my router, other computers on my network as well as outside IPs like google's. Got my nameservers in the rosolv.conf(i tried about 10 different ones). When I ping a name like google(I can't post the URL yet) it just comes back with host unreachable. When I tried to pull up the firmware on the router through the linux browser and it just times out. Also my buddy came over with his linux box and was able to get online in minutes(he is running an older version of redhat). I think it has something to do with Mandrake's secuity features. They did away with the iptables and my buddy was stumped. If someone can point me in the right direction. Thanks
 
Old 12-13-2004, 02:18 AM   #2
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
No iptables? Uhh... I'm not sure that's right, though I guess it's possible. I have kernel 2.6.5 and still have iptables (not Mandrake though).

Let me see if I get this right: you can "ping 216.239.57.99" successfully, but not "ping gooble.com". You may want to post your resolv.conf file here. Also, many routers also do dns. You can try adding your router as a nameserver, and see if it works.

One thing to remember when editing the resolv.conf file. Any time you alter the file, changes do NOT take effect automatically. You need to take the interface down and back up again. If you just have one ethernet card then the command "ifconfig eth0 down up" will usually do that. This will cause any routing information also to be lost, so you will need to "route add default gw MyRouter.localWhatever" (<- just put your router's ip address there for simplicity.)

I would still try:
iptables -L

If the command is not found, then you may be missing an important networking package or something.

Can anyone confirm or deny that Mandrake still uses iptables?
 
Old 12-13-2004, 03:38 AM   #3
steveperry
LQ Newbie
 
Registered: Dec 2004
Distribution: Mandrake 10.0
Posts: 7

Original Poster
Rep: Reputation: 0
Update I had to install a program called shorewall first to get the iptables, but still with the same problem.
Here is some data...

[root@localhost etc]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

[root@localhost etc]# ping www.google.com
ping: unknown host www.google.com

[root@localhost etc]# ping 216.239.57.99
PING 216.239.57.99 (216.239.57.99) 56(84) bytes of data.
64 bytes from 216.239.57.99: icmp_seq=1 ttl=239 time=63.5 ms
wrong data byte #30 should be 0x1e but was 0xc0
#16 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d c0 37 0 2 c0 37 0 2 c0 37 0 2 c0 37 0 2 1e 1f
#48 20 1d 1e 1f 20 21 1e 1f
64 bytes from 216.239.57.99: icmp_seq=2 ttl=239 time=63.5 ms
wrong data byte #30 should be 0x1e but was 0x75
#16 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 75 73 77 37 75 73 77 37 75 73 77 37 75 73 77 37 1e 1f
#48 20 1d 1e 1f 20 21 1e 1f

--- 216.239.57.99 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 63.516/63.533/63.551/0.252 ms

[root@localhost etc]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere

Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

[root@localhost etc]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:20:78:11:43:BD
inet addr:192.168.0.9 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::220:78ff:fe11:43bd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:651 errors:0 dropped:0 overruns:0 frame:2
TX packets:421 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:114765 (112.0 Kb) TX bytes:34199 (33.3 Kb)
Interrupt:10 Base address:0xb000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:118 errors:0 dropped:0 overruns:0 frame:0
TX packets:118 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7590 (7.4 Kb) TX bytes:7590 (7.4 Kb)

also

/etc/resolv.conf

nameserver 68.57.192.5
nameserver 68.57.192.6

What do you think?
 
Old 12-13-2004, 03:48 AM   #4
c@sey
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora Core
Posts: 3

Rep: Reputation: 0
Try using Drakconf

I'd try using drakconf to set up networking. Just run "drakconf" as root. It will install any packages you might have missed as well. If you get a "unrecognised command" then run "urpmi drakconf" as root.

If that doesn't work, I'd try a different NIC.

Good luck

Last edited by c@sey; 12-13-2004 at 03:49 AM.
 
Old 12-13-2004, 12:05 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
can you ping the nameservers?
 
Old 12-13-2004, 12:51 PM   #6
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
Pinging the nameservers is a pretty good question... however, that can fail if the servers are firewalled. But I think a much better question here is: are you sure those DNS servers are correct?
 
Old 12-13-2004, 12:53 PM   #7
steveperry
LQ Newbie
 
Registered: Dec 2004
Distribution: Mandrake 10.0
Posts: 7

Original Poster
Rep: Reputation: 0
casey,

I used drakconf in the in the beginning and also to install shorewall, I got everything in order in there.
As far as NICs go, Im on my second and plus this one is fairly popular so I don't believe its the problem.

DavidPhillips,

Yes I can ping nameservers and every server under the sun but no names...its messed up.
It will just time out when I try to pull up my router's firmware on the browser but I can ping it all day long.


Like I said earlier Im stumped...
 
Old 12-13-2004, 12:55 PM   #8
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
OK.... then try with something a little more "basic".

Can you use nslookup and get answers from ANY dns server?
 
Old 12-13-2004, 12:58 PM   #9
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
Oh... and something else... perhaps (just perhaps) the gateway is filtering packets (in this case, DNS).

There are plenty of problems that can produce your situation. Youy just have to follow.
 
Old 12-13-2004, 01:07 PM   #10
steveperry
LQ Newbie
 
Registered: Dec 2004
Distribution: Mandrake 10.0
Posts: 7

Original Poster
Rep: Reputation: 0
hey guys,

yea nslookup just times out after a few seconds with any IP.

If the gw is filtering packets how can I find out and change that?

Thanks
 
Old 12-13-2004, 01:14 PM   #11
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
It's not guys.... it's just me! LOL

Well.... the gateway is another linux box?
 
Old 12-13-2004, 01:32 PM   #12
steveperry
LQ Newbie
 
Registered: Dec 2004
Distribution: Mandrake 10.0
Posts: 7

Original Poster
Rep: Reputation: 0
eantoranz,

So you mean my router? It works fine in WinXP and plus my friend came over with his linux box and was online in about 5 mins.
 
Old 12-13-2004, 01:34 PM   #13
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
Did you have a change to copy his network settings?

I mean... there must be something we're missing. There's apparently no reason why you shouldn't be getting DNS replys.

If you can reach the outside world and the router is not filtering I can't see why you are not getting DNS.

Last edited by eantoranz; 12-13-2004 at 01:40 PM.
 
Old 12-13-2004, 01:46 PM   #14
steveperry
LQ Newbie
 
Registered: Dec 2004
Distribution: Mandrake 10.0
Posts: 7

Original Poster
Rep: Reputation: 0
yeah I tried his settings, He is running a earlier Redhat.
 
Old 12-13-2004, 01:50 PM   #15
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
well... I'd need the computer in front of me to think of other things... in other words.. I remotely give up . Any other ideas, guys?
 
  


Reply



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
Stumped on iptables rgedye Linux - Security 8 01-20-2006 03:59 AM
Stumped on IMQ problem rlh989 Linux - Networking 0 08-05-2005 03:49 PM
how to im stumped rocketgo Linux - Software 8 11-10-2003 10:10 PM
video problem (stumped) bkeating Linux - Software 1 09-08-2003 06:07 AM
really has me stumped! brunogartner Linux - Newbie 4 06-30-2003 05:43 AM

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

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