Date: Thu, 12 Feb 2009 23:46:37 -0200 From: Gonzalo Nemmi <gnemmi@gmail.com> To: Nikolaj Thygesen <mailinglist@diamondbox.dk> Cc: Glen Barber <glen.j.barber@gmail.com>, freebsd-questions@freebsd.org Subject: Re: Assigning static ip address Message-ID: <200902122346.37886.gnemmi@gmail.com> In-Reply-To: <4ad871310902121333v7c9a57a6jfc05dfed657df847@mail.gmail.com> References: <49947FC4.4000400@diamondbox.dk> <200902121916.54861.gnemmi@gmail.com> <4ad871310902121333v7c9a57a6jfc05dfed657df847@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 lease ips 2) defaultrouter="192.168.1.1" 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. Regards -- Blessings Gonzalo Nemmi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902122346.37886.gnemmi>