Assigning static ip address
gnemmi at gmail.com
Thu Feb 12 17:46:44 PST 2009
On Thursday 12 February 2009 7:33:31 pm Glen Barber wrote:
> > Could you plase configure your /etc/rc.conf file to something like this?
> > ifconfig_ed0="inet 192.168.1.105 netmask 255.255.255.0"
> > defaultrouter="192.168.1.1"
> > Where "defaultrouter" is the IP of your dhcp server and tell me what
> > happens?
> AFAIK, this should really be the default gateway IP, not the DHCP server.
You are absolutely right ... default gateway should really be the default
gateway ... wich in my case it's also my dhco server ( WRT54G Linksys) ...
I think I made way too many assumptions on my post ...
So .. OP, please:
1) ifconfig_ed0="inet 192.168.1.105 netmask 255.255.255.0"
Assign _your_ static ip to "inet" ... 192.168.1.105 is mine and was there
just to set an example.
Same thing applies to "netmask"
As a side note, your static ip, should be out of the range of the valid dhcp
Assing _your_ defaultrouter ip to "defaultrouter" ... 192.168.1.1 is mine and
was there just to set an example.
Thanks Glen for pointing that out.
More information about the freebsd-questions