LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   set up (https://www.linuxquestions.org/questions/linux-networking-3/set-up-299159/)

Locura 03-08-2005 09:59 AM

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

acid_kewpie 03-08-2005 10:33 AM

sounds like you've got no gateway. does "route" show any "UG" entries?

Locura 03-08-2005 12:46 PM

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?


All times are GMT -5. The time now is 01:28 AM.