LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-02-2009, 03:34 AM   #1
yash singh
LQ Newbie
 
Registered: Oct 2008
Posts: 9
Blog Entries: 1

Rep: Reputation: 0
Question configured router in rhel-5 but unable to resolve webpage of two different site


sir,
i am working in rhel-5 and have two nic card and configured the router as follow

eth0-LAN(internal network having static ip)
eth1-external network(dhcp)

#iptables -I INPUT 1 -i lo -p all -j ACCEPT
#iptables -A FORWARD -i eth0 -j ACCEPT
#iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE

After that i turn on the ip farward rule by following command

#sysctl -w net.ipv4.ip_forward=1
#echo 1 > /proc/sys/net/ipv4/ip_fprward
#service iptables save
#service iptables restart
#chkconfig -level 235 iptables on
#service iptables restart.
#service network restart

Now my router is working fine when ever i am pinging from my client pc(windows) i am getting the reply, and i am able to view the webpage also
but at a time only one network webpage is coming.if i am giving the address of dns server of external network in client pc than that network webpage is coming but to see our internal network webpage again i have to change the dns address in client pc.my all the client are in domain of internal network.

Is my router working fine,if not where i am wrong.please help me to solve this problem. so that just giving the address of webpage at URL page should resolute.Or i have to do some changes in client pc
 
Old 09-04-2009, 05:37 PM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
if you are able to ping and browse web sites, i say router is routing. If you have to change DNS on client to resolve internal sites or external sites, then the problem is likely with DNS server forwarders and/or not having multiple DNS servers available for client to try. Typically, client will try DNS servers in order and wait timeout period before going to next one. If internal DNS server has forwarders, then client tries internal DNS and if internal DNS does not have answer it forwards to external DNS.


Hope this helps.

 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
webpage redirection behind a secure site uks Linux - Networking 6 02-12-2009 09:57 AM
unable to open webpage in ipensuse10.3 hareeshang Linux - Software 4 06-21-2008 12:39 PM
Unable to resolve ulr. /et/resolve.conf looks fine? TheBrick Linux - Networking 3 02-14-2008 04:13 AM
Debian can't bring up router webpage. jay73 Linux - Networking 1 08-01-2007 01:08 AM
network card configured, but still can't connect to router! mikeh2 Linux - Wireless Networking 9 11-11-2005 06:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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