Unable to reach hosts outside my subnet after
initial installation
Pascal S Clermont
pascal at clermont.cc
Sat Jun 14 12:04:33 UTC 2008
Edward Lay wrote:
>> From: Derek Ragona <derek at 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
More information about the freebsd-questions
mailing list