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
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
> 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
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
> 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
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
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
> 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