From owner-freebsd-questions@FreeBSD.ORG Fri Feb 13 01:46:44 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E18B106566C for ; Fri, 13 Feb 2009 01:46:44 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: from mail-qy0-f12.google.com (mail-qy0-f12.google.com [209.85.221.12]) by mx1.freebsd.org (Postfix) with ESMTP id F161F8FC17 for ; Fri, 13 Feb 2009 01:46:43 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: by qyk5 with SMTP id 5so132931qyk.19 for ; Thu, 12 Feb 2009 17:46:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=ZNJujPB6utRplTz49TevDn5+WwzHOsWurpcVYvxdQ64=; b=CYT90T6+PrwxChOCAeTLPgEOt8LyfsaLcZEZqsloz3d/nuOB+ddkE7ZQ72HqPYYpbD mgUs7v9mwUU7kpIPoo3lOkIHCw6U/hobtC1uDcdlalR/LIsxhDhzHMBEOfWv69OsiBxU N9k8UIQhGkNkfmQhXf01aC0n2MAz/7YV3dX8A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:message-id; b=IKUVjCfZNENAVfeuuovgaO/nyBidN6SLsYV/oxEgjSSUgO/iHGEvOe38VcNRIu49dj Iehsh8QomRIjqcQezrx5biwQL3Sv5DcQocZqKhddTNGuBNSgsp5hemqsJn+MDI4e8y1a Ky+mdiSsjYzb0DDtEKTJ5vakhG4a3Y0yz9A9g= Received: by 10.224.3.10 with SMTP id 10mr2328312qal.365.1234489602825; Thu, 12 Feb 2009 17:46:42 -0800 (PST) Received: from ?192.168.1.100? ([190.177.196.52]) by mx.google.com with ESMTPS id 4sm3429267yxq.53.2009.02.12.17.46.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 12 Feb 2009 17:46:42 -0800 (PST) From: Gonzalo Nemmi To: Nikolaj Thygesen Date: Thu, 12 Feb 2009 23:46:37 -0200 User-Agent: KMail/1.9.10 References: <49947FC4.4000400@diamondbox.dk> <200902121916.54861.gnemmi@gmail.com> <4ad871310902121333v7c9a57a6jfc05dfed657df847@mail.gmail.com> In-Reply-To: <4ad871310902121333v7c9a57a6jfc05dfed657df847@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902122346.37886.gnemmi@gmail.com> Cc: Glen Barber , freebsd-questions@freebsd.org Subject: Re: Assigning static ip address X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2009 01:46:44 -0000 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