LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Ubuntu wired connection missing default gateway (https://www.linuxquestions.org/questions/linux-networking-3/ubuntu-wired-connection-missing-default-gateway-751323/)

rioguia 08-30-2009 03:36 PM

Ubuntu wired connection missing default gateway
 
My 9.04 Ubuntu wired connection on my Dell Inspiron appears to be fine when I look at the configuration files and gui interfaces. It will ping my network fine and query dig successfully but no other services work. After I open a terminal and route -n shows no gateway

I added a gateway like below.
sudo route add default gw xxx.xxx.xxx.xxx (my route IP)

Then all services work fine.

What am I doing wrong?

markush 08-30-2009 04:21 PM

Hello rioguia,

I'm not familiar with ubuntu. But please post if you're using DHCP.

Markus

rioguia 08-31-2009 11:22 AM

Sorry for the lack of specifics.
I am using a static IP for this wired connection directly to a Netgear router.

markush 08-31-2009 12:53 PM

Simply spoken, if you don't use DHCP there must be a configurationfile somewhere in your system where the gateway is specified. For example in Slackware there is a /etc/rc.d/rc.inet1.conf with a line:
Code:

gateway=""
where I can insert my gateway (if I didn't use DHCP).

Markus


All times are GMT -5. The time now is 08:17 AM.