My experience is similar to another user's post : I installed FreeBSD 9.0 using DHCP, then tried to switch to a static IP address witout success.
In rc.conf I commented out the
line and added
and
The DNS servers are the same for DHCP and static IP addresses, so resolv.conf was unchanged.
After the changes, pinging the default gateway reults in "Host is down". Using the same cable and a windows machine and the static address and gateway, one can successfully ping the gateway and access the internet. Using the dynamically assigned address in freeBSD, the gateway does respond to pings.
I also used
One additional, possibly irrelevant fact: When I first tried the change to static IP, the gateway was actually down, couldn't be pinged from any machine.
I have used FreeBSD since verion 3.something, and this is the first time I have had such a perplexing problem. I'm hoping for enlightenment.
Thanks.
In rc.conf I commented out the
Code:
ifconfig_dc0="DHCP"
Code:
ifconfig_dc0="inet a.b.c.d netmask 255,255,255,0"
Code:
defaultrouter="e.f.g.h"
After the changes, pinging the default gateway reults in "Host is down". Using the same cable and a windows machine and the static address and gateway, one can successfully ping the gateway and access the internet. Using the dynamically assigned address in freeBSD, the gateway does respond to pings.
I also used
# sysinstall
to change to the static address and got no better results.One additional, possibly irrelevant fact: When I first tried the change to static IP, the gateway was actually down, couldn't be pinged from any machine.
I have used FreeBSD since verion 3.something, and this is the first time I have had such a perplexing problem. I'm hoping for enlightenment.
Thanks.