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 05-25-2007, 04:12 AM   #1
badall
LQ Newbie
 
Registered: May 2007
Posts: 19

Rep: Reputation: 0
can ping the gateway but unable to browse


I've two NIC in my FC4, eth0 & eth1
I got broadband connection on eth0 via DHCP
I've set IPTABLES.
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth1 -j ACCEPT
I've done IP_FORWARD=1

Now I can ping the gateway of the eth0 from eth1
But I cann't ping yahoo.com cann't even browse.

Please if anyone can help!!!!
 
Old 05-25-2007, 04:47 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by badall
Now I can ping the gateway of the eth0 from eth1
But I cann't ping yahoo.com cann't even browse.
You are trying to get to the Internet from other computers on the same subnet as eth1? They probably don't have correct addresses for the DNS servers. Are you configuring those computers manually or from DHCP? Or do I misunderstand your situation?
 
Old 05-25-2007, 09:56 AM   #3
badall
LQ Newbie
 
Registered: May 2007
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks for reply blackhole54

yes you are right

other computers are manually configured as eth1
and gateway is the ip of eth1.

But how can I set DNS of those computer? Because I get that DNS from dhcp via eth0. Should I set those DNS to that computers?
 
Old 05-25-2007, 10:19 AM   #4
badall
LQ Newbie
 
Registered: May 2007
Posts: 19

Original Poster
Rep: Reputation: 0
thanks I've done it

Boss, You are awesome. DNS was the main problem. I was trying for last several hours. Thanks again.
 
  


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
Unable to PING default gateway, SUSE 10.1 LTC Don Linux - Networking 1 10-07-2006 12:25 PM
Unable to ping other than default gateway senthilpr_in Linux - Networking 6 08-17-2005 07:42 PM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM
dhcp client can't ping gateway but can ping other local hosts dirty_forks Linux - Networking 7 10-08-2004 10:54 AM
RH Linux 7.2 unable to ping to gateway AtulGore Linux - Networking 6 03-15-2002 04:24 PM

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

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