LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-08-2005, 09:59 AM   #1
Locura
Member
 
Registered: May 2003
Distribution: Ubuntu 6.10 SE, Mac OS 10.4.8
Posts: 370

Rep: Reputation: 30
set up static IP, but can't ping out


*** EDIT: sorry for the nondescript thread title, I never finished typing the full Subject before I posted. ***

I recently set a linux box up with a static IP, since it's being used as an internal dev server for our small company's solutions running on linux/apache. Ever since I switched it from DHCP to static, I can't access any IP outside of our local network.

Here is the output of ifconfig -a:

Code:
eth0      Link encap:Ethernet  HWaddr 00:10:5A:0A:12:5A
          inet addr:192.168.14.22  Bcast:192.168.14.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1921766 errors:0 dropped:0 overruns:0 frame:0
          TX packets:662386 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:359983145 (343.3 Mb)  TX bytes:247998549 (236.5 Mb)
          Interrupt:11 Base address:0xdf00

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:50453 errors:0 dropped:0 overruns:0 frame:0
          TX packets:50453 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15074933 (14.3 Mb)  TX bytes:15074933 (14.3 Mb)
Here is my resolv.conf:

Code:
nameserver 192.168.14.14
nameserver 206.141.192.60
nameserver 206.141.193.55
Here is my hosts file:

Code:
127.0.0.1       linuxweb.mydomain.com     linuxweb

Even though I've been using linux for several years, this is my first experience with static IPs, so I'm a bit of a n00b at this. If there are any other config files I should check, let me know.

Thank you,
Erik

Last edited by Locura; 03-08-2005 at 12:46 PM.
 
Old 03-08-2005, 10:33 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
sounds like you've got no gateway. does "route" show any "UG" entries?
 
Old 03-08-2005, 12:46 PM   #3
Locura
Member
 
Registered: May 2003
Distribution: Ubuntu 6.10 SE, Mac OS 10.4.8
Posts: 370

Original Poster
Rep: Reputation: 30
output of route:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.14.0    *               255.255.255.0   U     0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
I don't see one. Where would I specify the gateway address?

I checked my /etc/sysconfig/network, and found the following:
Code:
NETWORKING=yes
HOSTNAME=linuxweb.mydomain.com
GATEWAY=192.168.14.1
That's the proper gateway address. Is there somewhere else I should be specifying it?

Last edited by Locura; 03-08-2005 at 12:53 PM.
 
  


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
Cannot set LD_LIBRARY_PATH in .cshrc (able to set other env variables) senthilpr_in Linux - Newbie 4 02-26-2007 12:46 PM
lm10.0 gateway is set but when I reboot I have to set the gateway rharvey32 Mandriva 8 02-13-2006 01:35 PM
Set the path systemwide/Set the path for a user with Slackware jayhel Slackware 1 06-12-2005 12:24 AM
xfree86 set to 0. It should be set to -10. jimsac Linux - Newbie 0 05-22-2004 06:08 AM
How to view set-user-ID and set-group-ID Xris718 Linux - General 7 01-10-2004 01:44 PM

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

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