Re: multiple logical interfaces

2004-03-08 Thread Bruce M Simpson
On Mon, Mar 08, 2004 at 01:19:35AM -0800, Jerry Jensen wrote: > How can this be done programmatically rather than from > the command line? Code snippets would be handy. This should contain the snippets you need for instantiating cloneable interfaces, including ds(4) and lo(4). BMS /* $Free

Re: multiple logical interfaces

2004-03-08 Thread Bruce M Simpson
On Sat, Mar 06, 2004 at 02:13:57PM -0800, Jerry Jensen wrote: > 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). You can have multiple instances of lo

Re: multiple logical interfaces

2004-03-08 Thread .
> How can this be done programmatically rather than from > the command line? Code snippets would be handy. What "this" is? ifconfig? execlp("ifconfig", "ifconfig", "lo0", "inet", inetxt); I never ifconfigured from C. Sorry. > --- [EMAIL PROTECTED] wrote: > > > Actually, what I want is the equi

Re: multiple logical interfaces

2004-03-08 Thread Jerry Jensen
How can this be done programmatically rather than from the command line? Code snippets would be handy. Thanks --- [EMAIL PROTECTED] wrote: > > Actually, what I want is the equivalent of this > (which > > is in Linux) on FreeBSD. Note the ip address > > associated with each of the logical inter

Re: multiple logical interfaces

2004-03-06 Thread .
> Actually, what I want is the equivalent of this (which > is in Linux) on FreeBSD. Note the ip address > associated with each of the logical interfaces > (lo:XX). And what? 0cicuta~(11)#ifconfig lo0 lo0: flags=8049 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64

Re: multiple logical interfaces

2004-03-06 Thread Julian Elischer
On Sat, 6 Mar 2004, Jerry Jensen wrote: > Actually, what I want is the equivalent of this (which > is in Linux) on FreeBSD. Note the ip address > associated with each of the logical interfaces > (lo:XX). how is this different from what was showed below? > > > loLink encap:Local Loo

Re: multiple logical interfaces

2004-03-06 Thread Jerry Jensen
Actually, what I want is the equivalent of this (which is in Linux) on FreeBSD. Note the ip address associated with each of the logical interfaces (lo:XX). eth0 Link encap:Ethernet HWaddr 00:06:5B:19:55:EE inet addr:10.2.1.122 Bcast:10.255.255.255 Mask:255.0.0.0 UP B

Re: multiple logical interfaces

2004-03-06 Thread .
> 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 sourc