From owner-freebsd-questions@FreeBSD.ORG Mon Dec 15 04:35:40 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1BD1216A4CE for ; Mon, 15 Dec 2003 04:35:40 -0800 (PST) Received: from skutsje.san.webweaving.org (skutsje.san.webweaving.org [209.132.96.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58E5C43D1F for ; Mon, 15 Dec 2003 04:35:37 -0800 (PST) (envelope-from dirkx@webweaving.org) Received: from skutsje.san.webweaving.org (localhost [127.0.0.1]) hBFCWvEJ083335 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 15 Dec 2003 04:32:57 -0800 (PST) (envelope-from dirkx@webweaving.org) Received: from localhost (dirkx@localhost)hBFCWv0O083332; Mon, 15 Dec 2003 04:32:57 -0800 (PST) (envelope-from dirkx@webweaving.org) X-Authentication-Warning: skutsje.san.webweaving.org: dirkx owned process doing -bs Date: Mon, 15 Dec 2003 04:32:57 -0800 (PST) From: Dirk-Willem van Gulik X-X-Sender: dirkx@skutsje.san.webweaving.org To: flux In-Reply-To: <1903868068.20031215151634@hotbox.ru> Message-ID: <20031215042954.I83150@skutsje.san.webweaving.org> References: <1903868068.20031215151634@hotbox.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: 2 ip-addr for 1 netcard... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 12:35:40 -0000 On Mon, 15 Dec 2003, flux wrote: > How do I assign two IP addresses for one netcard? Just use the command 'man ifconfig' and check out the section on 'alias'. In general it is somethign like vi /etc/rc.conf and near ifconfig_rl0="10.11.0.2/24" add things like ifconfig_rl0_alias0="10.11.0.66/32" ifconfig_rl0_alias1="10.11.0.67/32" ifconfig_rl0_alias2="10.11.10.1/24" The manual equivalent is: ifconfig fxp0 alias 1.2.3.4 netmask 255.255.255.255 to add an extra IP to the intel fxp0 card with IP address 1.2.3.4 which must be inside the currently assigned netmask for that interface or ifconfig fxp0 alias 1.2.5.4 netmask 255.255.255.0 to assign a second IP and submask. Dw