From owner-freebsd-questions@FreeBSD.ORG Sat Jul 7 13:20:26 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 244FD16A468 for ; Sat, 7 Jul 2007 13:20:26 +0000 (UTC) (envelope-from alive@dienub.org) Received: from pfepa.post.tele.dk (pfepa.post.tele.dk [195.41.46.235]) by mx1.freebsd.org (Postfix) with ESMTP id DF16E13C480 for ; Sat, 7 Jul 2007 13:20:25 +0000 (UTC) (envelope-from alive@dienub.org) Received: from m00h.dienub.org (dienub.org [87.48.115.212]) by pfepa.post.tele.dk (Postfix) with ESMTP id 78A7AFAC020; Sat, 7 Jul 2007 15:20:24 +0200 (CEST) Received: from [192.168.0.2] (Radab0x.dienub.org [192.168.0.2]) by m00h.dienub.org (Postfix) with ESMTP id 358FA11432; Sat, 7 Jul 2007 15:20:24 +0200 (CEST) Message-ID: <468F931B.4060505@dienub.org> Date: Sat, 07 Jul 2007 15:20:27 +0200 From: "Daniel A. A." User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Eric Crist References: <200707061144.17748.ray@stilltech.net> <468EDCA5.4050601@dienub.org> <9DF80946-8AC5-469E-B870-2046411DB930@gmail.com> In-Reply-To: <9DF80946-8AC5-469E-B870-2046411DB930@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ray@stilltech.net, freebsd-questions@freebsd.org Subject: Re: one server with two 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: Sat, 07 Jul 2007 13:20:26 -0000 Eric Crist wrote: > > On Jul 6, 2007, at 7:21 PMJul 6, 2007, Daniel A. A. wrote: > >> Ray wrote: >>> Hello all, >>> I have a production server with two network interfaces. The primary >>> interface is up and running. (DHCP from the local Telco) The second >>> interface is installed, but not yet active. It will run on a local >>> network only. Can I do something as simple as ifconfig nfe1 >>> 192.168.0.100 >>> to give myself access to the internal network? As this is a >>> production server, I don't want to just play with it too much. Thanks, >>> Ray >> You'd have to >> ifconfig nfe1 192.168.0.100 netmask ###.###.###.### >> But don't worry - If you mistype, or make some other error (Like >> forgetting to specify the gateway for the connection), nothing >> happens. You'll just get an error printed to stdout and the netif >> will remain untouched. >> > > You can shorten that command using CIDR notation as well: > > ifconfig nfe1 192.168.0.100/24 > > Eric Crist > Showoff :P