Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jun 2008 08:05:01 +0000
From:      Pascal S Clermont <pascal@clermont.cc>
To:        Edward Lay <ehl@dewey.soe.berkeley.edu>,  freebsd-questions@freebsd.org
Subject:   Re: Unable to reach hosts outside my subnet after initial	installation
Message-ID:  <48537BAD.6020308@clermont.cc>
In-Reply-To: <200806140735.m5E7Zr2t019325@dewey.soe.berkeley.edu>
References:  <200806140735.m5E7Zr2t019325@dewey.soe.berkeley.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Edward Lay wrote:
>> From: Derek Ragona <derek@computinginnovations.com>
>>     
>
>   
>> Check and/or create /etc/nsswitch.conf so you are looking in files and
>> dns for hosts.
>>     
>
>   
>> Check or create /etc/resolv.conf make sure your upsteam DNS servers
>> are listed in this file along with any local caching DNS servers.
>>     
>
> Thanks for the suggestion.  Those files already exist with valid
> entries though.  In any event, it doesn't seem like a hostname problem
> as I can nslookup arbitrary hosts and then try and then ping the IP
> numbers directly which fails for hosts beyond the local subnet.  
>
> It seems more like a router/gateway network configuration type of
> problem. I've just discovered that when I ping the gateway's IP
> address, I get no answer.  Now I know the gateway is functioning as
> every other host on the network can reach the rest of the internet and
> in fact, I've just successfully ping'd the gateway from the machine
> where I'm writing this message. So I'm wondering what could cause this
> or at least some way of approaching the problem. 
>
> thanks
>
> ed
>
>   
There are 3 things that need to be configured in order to have a network 
connection on an initial start, the IP, Gateway and Route.
I am ruling out the fact that it might be the firewall, cause you state 
that this on an an initial install  and I would try another ether cable 
if after this setup it still doesn't work.

make sure both these entry are in your rc.conf :
ifconfig_vr0="inet 192.168.0.100 netmask 255.255.255.0"
defaultrouter="192.168.0.1"

You will need to replace "vr0" by your network card, and replace all IPs 
for your own. if you modify the settings in the rc.conf you can execute 
/etc/netstart in order for the settings to take effect.

Pascal S. Clermont



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48537BAD.6020308>