From owner-freebsd-questions@FreeBSD.ORG Thu Jul 9 10:55:49 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 3CAD9106564A for ; Thu, 9 Jul 2009 10:55:49 +0000 (UTC) (envelope-from sagara@tomahawk.com.sg) Received: from us1.tomahawkonline.net (us1.tomahawkonline.net [66.98.178.56]) by mx1.freebsd.org (Postfix) with SMTP id 02A1E8FC19 for ; Thu, 9 Jul 2009 10:55:48 +0000 (UTC) (envelope-from sagara@tomahawk.com.sg) Received: (qmail 2428 invoked by alias); 9 Jul 2009 07:37:41 -0000 Message-ID: <20090709073741.2427.qmail@us1.tomahawkonline.net> References: <20090708123342.22660.qmail@us1.tomahawkonline.net> <3a142e750907081049sc76dfd2o4d13d9ea6a2e983c@mail.gmail.com> In-Reply-To: <3a142e750907081049sc76dfd2o4d13d9ea6a2e983c@mail.gmail.com> From: "Sagara Wijetunga" To: freebsd-questions@freebsd.org Date: Thu, 09 Jul 2009 02:37:41 -0500 Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: How to symlink devfs devices? 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: Thu, 09 Jul 2009 10:55:49 -0000 Paul B. Mahol writes: >> >> Is it possible to create a symlink to a device and use the symlink in place >> of the real device name in FreeBSD, especially in version 7.2? >> >> 1. A disk >> /dev/camera -> /dev/da0s1 > > devfs.conf(5) >> >> 2. A network device >> re0 -> lan0 > > same as above, but there is way to completly hide re0: > # ifconfig re0 name lan0 > Hi FreeBSD community Thank you all for replies. Yes, USB Mass Storage devices could be symlinked (may be others too) but ethernet devices cannot be symlinked but ethernet interfaces can be renamed. I have one more question, how do I know what device is attached to an ethernet interface after it is renamed? Regards Sagara