From owner-freebsd-net@FreeBSD.ORG Sat Mar 6 19:47:41 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B5BC16A4CE for ; Sat, 6 Mar 2004 19:47:41 -0800 (PST) Received: from ints.mail.pike.ru (ints.mail.pike.ru [195.9.45.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75E3B43D1D for ; Sat, 6 Mar 2004 19:47:40 -0800 (PST) (envelope-from babolo@cicuta.babolo.ru) Received: (qmail 84057 invoked from network); 7 Mar 2004 04:04:57 -0000 Received: from babolo.ru (HELO cicuta.babolo.ru) (194.58.226.160) by ints.mail.pike.ru with SMTP; 7 Mar 2004 04:04:57 -0000 Received: (nullmailer pid 16336 invoked by uid 136); Sun, 07 Mar 2004 03:48:40 -0000 X-ELM-OSV: (Our standard violations) hdr-charset=KOI8-R; no-hdr-encoding=1 In-Reply-To: <20040306221357.68128.qmail@web41813.mail.yahoo.com> To: Jerry Jensen Date: Sun, 7 Mar 2004 06:48:40 +0300 (MSK) From: "."@babolo.ru X-Mailer: ELM [version 2.4ME+ PL99b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Message-Id: <1078631320.114327.16335.nullmailer@cicuta.babolo.ru> cc: freebsd-net@freebsd.org Subject: Re: multiple logical interfaces X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Mar 2004 03:47:41 -0000 > is it possible in freebsd to have multiple logical > interfaces associated with say the loopback interface? > if so, how does one do this programmatically (as > opposed to from the command line). > > need this for building traffic generators that need to > simulate a bunch of different ip sources. solaris > allows it as does linux i believe. > thx. Is it what you want? > ifconfig -a | grep lo lo0: flags=8049 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0xa lo1: flags=8049 mtu 16384 lo2: flags=8008 mtu 16384 lo3: flags=8008 mtu 16384 If it is, there is from kernel config: > grep loop /sys/i386/conf/garkin pseudo-device loop 4 # Network loopback