LinuxQuestions.org
Help answer threads with 0 replies.
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-28-2010, 06:21 AM   #1
sudhee.b
LQ Newbie
 
Registered: May 2010
Posts: 4

Rep: Reputation: 0
Post Hosts not able to resolve IP address


Hi,

I am very new to linux. I have to build a netwrok for small lab and office setup.


Setup as below
==============
I have a PC running with Centos 5.4 and has 4 NIC cards. eth0, eth1, eth2 and eth3.

eth0 --- Connected to DSL and getting the Public IP address using PPPoE.
eth1 --- 192.168.4.1 statically configured on the interface
eth2 --- 192.168.5.1 statically configured on the interface
eth3 --- 192.168.6.1 statically configured on the interface



I have
Host1 conncted behind eth1 (host1) which has static IP address
192.168.4.10/24 and GW 192.168.4.1 and DNS: same as from PPPoE

Host2 conncted behind eth2 (host2) which has static IP address
192.168.5.10/24 and GW 192.168.5.1 and DNS: same as from PPPoE

Host3 conncted behind eth2 (host3) which has static IP address
192.168.6.10/24 and GW 192.168.6.1 and DNS: same as from PPPoE

Config
=======
ip_forward is enabled on the CentOS machine
iptable is configured as belwo,
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE


Issue
=====

Now host1 can able to talk to host2 and host3 and also it can reach eth0 and DNS server IP is reachable. Even it can ping any public NTP server or ftp server IP address.

But when I ping ping google.com its not able to resolve.

This is even tru for other hosts host2 and host3.
I want all the hosts access internet and able to browse.

At the same time I can ping google.com from the eth0 from centOS machine.

All hosts are Windows PC (host1, hots2 and host3)

Please let me know what is the issue here.
 
Old 05-28-2010, 11:08 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
if you are using pppoe then your outbound interface may be ppp0 that is where you should be doing the masquarading.
 
Old 05-29-2010, 04:14 AM   #3
sudhee.b
LQ Newbie
 
Registered: May 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Sorry, It was my mistake... I did masqurade on pppoe itself

Last edited by sudhee.b; 05-29-2010 at 04:51 AM.
 
Old 05-31-2010, 03:30 AM   #4
sudhee.b
LQ Newbie
 
Registered: May 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Hi,

I did install yum install chaching-nameserver on the machine and problem is resloved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 resolve via /etc/hosts cronicded Slackware 1 09-13-2006 01:18 AM
External Hosts Resolve but Local Hosts Do Not kjm9 Linux - Networking 7 11-19-2005 04:51 PM
Can't resolve hosts at work marie@dk Linux - Networking 4 10-14-2005 04:45 AM
Server cannot resolve any hosts! hydro Linux - Networking 5 02-16-2004 08:57 PM
how to resolve names to IPs WITHOUT /etc/hosts or DNS iggymac Linux - Networking 11 11-13-2001 11:32 PM

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

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