LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-01-2006, 09:29 PM   #1
acidblue
Member
 
Registered: Apr 2003
Posts: 152

Rep: Reputation: 15
No internet/but I can ping router


I set my wireless card, an SMC 2835w/rt2400 chpset.
I can ping the router, but I can't ping anything else.
like www.google.com, and nothing loads in firefox.
Could iptables be blocking me??
If so how do I shut it off??

I did:
iwconfig ra0 mode Managed
iwconfig essid 'MyRouter'
ifconfig ra0 xxxx netmask xxxx
route add default gw xxxx

Kwifi says I'm connected to my router.

Could I install 'Guardog' or something simular to take
of iptables??
 
Old 01-01-2006, 09:54 PM   #2
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
how 'bout dhcpcd?
 
Old 01-02-2006, 01:56 AM   #3
rahmed
Member
 
Registered: Feb 2004
Location: somewhere over the rainbow...
Distribution: Slackware 10.1
Posts: 166

Rep: Reputation: 30
you have to also add your dns address to the file /etc/resolv.conf
the entry should just be:
nameserver xxx.xxx.xxx
and that should work.
 
Old 01-02-2006, 11:13 AM   #4
acidblue
Member
 
Registered: Apr 2003
Posts: 152

Original Poster
Rep: Reputation: 15
dns address?
I don't know the address of the nameserver.

I did 'dhcpcd' that didn't help.
 
Old 01-02-2006, 11:38 AM   #5
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Rep: Reputation: 174Reputation: 174
Quote:
Originally Posted by acidblue
dns address?
I don't know the address of the nameserver.

I did 'dhcpcd' that didn't help.
You should be able to use the IP for your router...........works for me.
 
Old 01-02-2006, 07:18 PM   #6
rahmed
Member
 
Registered: Feb 2004
Location: somewhere over the rainbow...
Distribution: Slackware 10.1
Posts: 166

Rep: Reputation: 30
check your router status page. its should say it there when it lists other data.
 
Old 01-02-2006, 08:11 PM   #7
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Can you ping sites via IP? LQ.org's IP is 64.179.4.149
 
Old 03-03-2009, 10:50 AM   #8
COZSMIN
LQ Newbie
 
Registered: Apr 2008
Posts: 8

Rep: Reputation: 0
Thumbs up

Hey people I was having the same problem and I got at the point whee i can only ping network + router ofcourse ,then i saw the las post and i knew what i had 2 do

it works
 
Old 03-03-2009, 04:15 PM   #9
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 70
Usually I do this for connecting, let's assume your nic interface is called eth0

ifconfig eth0 [set your ip address here] up
ip r a default via [ip address of router]
echo "nameserver [ip of router]" > /etc/resolv.conf

If you can ping your router, but not google, then it could be either a dns or gateway problem. If you can ping an ip address outside your router, then it's dns that's the problem. Gateway just lets you access the internet.

Last edited by trist007; 03-03-2009 at 04:18 PM.
 
Old 03-06-2009, 07:24 PM   #10
kyle_p
LQ Newbie
 
Registered: Mar 2009
Location: Canada
Distribution: CentOS, RHEL*, SuSE*, *
Posts: 12

Rep: Reputation: 0
Quote:
Originally Posted by SqdnGuns View Post
You should be able to use the IP for your router...........works for me.
This will not work for everyone. You can google OpenDNS and use their nameservers or forward port 53 tcp/udp on your router and ...

Code:
 echo "nameserver 127.0.0.1" > /etc/resolv.conf ; /etc/rc.d/rc.bind start
Bingo Bango your own nameserver! That's the fun way in my opinion.

Note: I havent used slack in a while but you may have to open the host's firewall as well

Code:
iptables -A INPUT -s 0/0 -p tcp --dport 53 -j ACCEPT ; iptables -A INPUT -s 0/0 -p udp --dport 53 -j ACCEPT
Again, it has been a while since I used Slack but I think you have to add that to or create a firewall script and then add and if -x statement to the multi-user startup script.

Slackware is fun
 
  


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
FC4 won't ping 127.0.0.1 or the internet, but will ping local computers jalsk Linux - Networking 4 11-22-2005 05:59 PM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM
SuSE 9.0 can browse LAN, ping router...cannot get on the internet tmlayton Linux - Networking 5 06-30-2004 02:43 AM
Can ping network but can't ping any internet ip when I hard set the ip Streme Linux - Wireless Networking 4 04-13-2004 09:18 AM
Internet Ping AND router? garr0323 Linux - Networking 1 03-09-2004 11:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:59 AM.

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