LinuxQuestions.org
Visit Jeremy's Blog.
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 08-19-2003, 02:38 PM   #1
louisb
Member
 
Registered: Aug 2003
Posts: 199

Rep: Reputation: 15
Unable to reach external IP's and URL's


I have a Linux server that has two NIC's. One NIC is connected to my internal network the other is connected to my DSL router.

I am having difficulty trying to surf the INTERNET or ping IP addresses outside my internal network. I can ping successfully addresses on my network and my DSL router. However, when I try surfing the INTERNET with a URL I get the message "URL not found". When I ping external IP addresses I get the message "Host-name unreachable". The address that I try to ping is my ISP DNS server. The IPs for the ISP's DNS server are setup in my router and for each NIC.

If I apply my Windows Proxy to Mozilla I can surf the INTERNET with no problems. I can reach location my using the URL or IP address.

I want my Linux network to operate independently of Windows.

I have assigned static IP's to both NIC's. I later want to apply DHCP and DNS servers. I'm just looking to getting the basic working for now.

I have checked the status of my NIC's by using Network Device Control GUI. Both cards are marked as Active and I can ping them. I can also ping the NIC connected to my hub from Windows with no problems.

Any help will greatly appreciated.

Thanks


Louis

Last edited by louisb; 08-19-2003 at 02:39 PM.
 
Old 08-19-2003, 02:56 PM   #2
gabriele_101
Member
 
Registered: Oct 2001
Location: CAMBRIDGE, MA USA
Distribution: RH9 Kernel 2.4.20-18.9
Posts: 69

Rep: Reputation: 15
louisb:

What linux distribution are you using?

How many DNS servers have you set up? Can you ping any other IP addresses on the other side of your LAN? Try performing a traceroute on your ISP's DNS like so (I'm assuming RedHat >= 7.2):
Code:
/usr/sbin/traceroute 999.999.999.999
Where 999.999.999.999 is the DNS IP address.

You say that you can ping your DSL router from your Linux box but cannot ping your ISP's DNS server. This is odd, especially if you are able to circumvent the problem with Windows proxy. Sounds like your DNS may be misconfigured. What are the proxy settings you're using for Mizilla that let you surf?

-G
 
Old 08-19-2003, 03:40 PM   #3
louisb
Member
 
Registered: Aug 2003
Posts: 199

Original Poster
Rep: Reputation: 15
I'm using Redhat Linux 9.0 I will try the trace.

thanks

Louis
 
Old 08-19-2003, 04:09 PM   #4
Electric_Blue
Member
 
Registered: Aug 2003
Distribution: RedHat
Posts: 35

Rep: Reputation: 15
I think you will also need to set up some routes here. Your linux box needs to know where to send packets to networks it does not know about.

ip route add 0.0.0.0/24 via 192.168.1.1

Where 192.168.1.1 is the ip of your gateway. This basically says send anything you don't know about to 192.168.1.1 and let him
worry about it. Then it needs a return route....I think. Maybe someone else can help

Also, I think you will need to turn on packet forwarding. In redhat it's:

echo 1 > /proc/sys/net/ipv4/ip_forward

These are just some hints, it took me a long time to get these right on my network, but I had 4 routers and WAN's involved. Never actually done it for just one router.
 
Old 08-19-2003, 05:21 PM   #5
louisb
Member
 
Registered: Aug 2003
Posts: 199

Original Poster
Rep: Reputation: 15
gabriele_101

I performed the traceroute "aaa.aaa.aaa.aaa" and results where as follows:

1 bbb.bbb.bbb.bbb (bbb.bbb.bbb.bbb) 2995.029 ms !H 30.102 ms !H 2999.693 ms !H

bbb.bbb.bbb.bbb is the address of my NIC connected to my router. What does this mean? What the next step?

Thanks

Louis
 
Old 08-19-2003, 05:48 PM   #6
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
What are the exact settings of the two nics on Redhat?

You probably don't but for the moment turn off any firewall settings may or may not have set in Red Hat for the moment
 
Old 08-19-2003, 08:45 PM   #7
louisb
Member
 
Registered: Aug 2003
Posts: 199

Original Poster
Rep: Reputation: 15
When I started the first thing I did was to turn off the Firewall. So I don't think that's an issue at this time.

Thanks for the suggestions.

Thanks

louis
 
  


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
ssh connection refused for external IP's Pleonast Linux - Networking 2 11-08-2004 12:00 PM
firewall for 5 external ip's boeing9379 Linux - Networking 2 10-10-2004 12:45 AM
internal box to external IP's? TigZy Linux - Networking 4 09-29-2004 06:39 PM
Fedora: Unable to Reach Gateway umbraeOtheisles Linux - Networking 1 03-27-2004 03:11 PM
2 NICs, 2 external IP's (1 behind a router) yskwong Linux - Networking 5 05-25-2001 07:22 AM

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

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