LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 04-15-2005, 11:23 AM   #1
tofu713
LQ Newbie
 
Registered: Apr 2005
Posts: 3

Rep: Reputation: 0
Problem with Linux PC connecting to Internet, but not LAN.


Hello,

I have a linux box that for some reason can't go out to the internet. It can ping and resolve all addresses on the local network... but it can't ping anything out on internet. It gets an IP just fine if I set it up as a DHCP client... but the same thing occurs even if I have it with a static IP.

On the otherhand, all my other Windows and Linux boxes, connect just fine. It's soooooooo wierd.

If anyone could please help... I can't seem to figure this out. Below if my configurations... let me know if maybe something seems incorrect.


My Linux Box
-------------------
hostname: asterisk1.local

/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.10.10.12
NETMASK=255.255.255.0
GATEWAY=10.10.10.1

/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=asterisk1.local
GATEWAY=10.10.10.1

/etc/resolv.conf
; generated by /sbin/dhclient-script
search localdomain
nameserver 10.10.10.1

/etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 asterisk1.local asterisk1 localhost
10.10.10.12 asterisk1.local asterisk1

ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:E0:81:62:25:3A
inet addr:10.10.10.12 Bcast:10.10.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1449667 errors:0 dropped:0 overruns:0 frame:0
TX packets:1341905 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:294565790 (280.9 Mb) TX bytes:287724851 (274.3 Mb)
Interrupt:11 Base address:0xc000 Memory:ec042000-ec042038

eth1 Link encap:Ethernet HWaddr 00:E0:81:62:25:39
inet addr:10.10.10.13 Bcast:10.10.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:309425 errors:0 dropped:0 overruns:0 frame:0
TX packets:178784 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:41504827 (39.5 Mb) TX bytes:38577009 (36.7 Mb)
Interrupt:10 Base address:0xc800 Memory:ec041000-ec041038

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:71270 errors:0 dropped:0 overruns:0 frame:0
TX packets:71270 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11094723 (10.5 Mb) TX bytes:11094723 (10.5 Mb)

route

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.10.10.0 * 255.255.255.0 U 0 0 0 eth1
10.10.10.0 * 255.255.255.0 U 0 0 0 eth0
default 10.10.10.1 0.0.0.0 UG 0 0 0 eth1


Please help, or direct me to someone/something that can....

-tofu
 
Old 04-15-2005, 12:06 PM   #2
rathodr@meeract
LQ Newbie
 
Registered: Dec 2004
Location: USA - Pennsylvania
Posts: 4

Rep: Reputation: 0
Couple of question:

1. when you get the DHCP or static IP, is that from your router?

2. are you trying to ping using www.domain.com? or IP?
try using IP (of your ISP, for example) and see if you get anything.
 
Old 04-15-2005, 01:54 PM   #3
cleidh_mor
Member
 
Registered: Mar 2005
Location: Glasgow, Scotland
Distribution: SuSE
Posts: 70

Rep: Reputation: 15
Quote:
Originally posted by rathodr@meeract
Couple of question:

1. when you get the DHCP or static IP, is that from your router?

2. are you trying to ping using www.domain.com? or IP?
try using IP (of your ISP, for example) and see if you get anything.
Also try configuring your ISP's DNS server addresses in your interface config. It could be that DHCP isn't passing this info on for some reason or you're gateway doesn't have them configured.

Cheers,
Cleidh Mor
 
Old 04-19-2005, 10:33 AM   #4
tofu713
LQ Newbie
 
Registered: Apr 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Post my ISPs DNS servers under /etc/resolv.conf or /etc/sysconfig/network-scripts/ifcfg-eth0.

I've done it under the resolv.conf and had the same result.
If I should do it the other way... how do i define the DNS?

-tofu
 
Old 04-23-2005, 07:14 AM   #5
cleidh_mor
Member
 
Registered: Mar 2005
Location: Glasgow, Scotland
Distribution: SuSE
Posts: 70

Rep: Reputation: 15
Quote:
Originally posted by tofu713

I've done it under the resolv.conf and had the same result.
If I should do it the other way... how do i define the DNS?
Various distro's have various tools to config this stuff for you, e.g. with SuSE, you can use YaST to configure this. resolv.conf should work tho. Can you ping the DNS servers from your box?

Cheers,
Cleidh Mor
 
Old 04-23-2005, 11:54 AM   #6
tofu713
LQ Newbie
 
Registered: Apr 2005
Posts: 3

Original Poster
Rep: Reputation: 0
nm. I just figured out what the problem was. My firewall had an incorrect HOST entry, when I removed it... it cleared up all the problems I was having.

Thanks for all your help, this is an AWESOME forum!

-tofu
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
connecting Linux LAN to internet asahlot Linux - Networking 6 10-14-2005 01:23 PM
Connecting to the internet through my school's LAN Brakki Linux - Networking 1 03-31-2004 02:20 PM
Connecting Linux box to Internet through Windowx XP box over LAN pcd007 Linux - Networking 1 03-14-2004 09:02 AM
Problem with LAN connecting to internet. duffboygrim Linux - Networking 6 02-29-2004 04:50 PM
Problem connecting to LAN in order to get internet J_angel2000 Linux - Networking 7 02-27-2004 05:36 PM


All times are GMT -5. The time now is 01:16 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration