multiple logical interfaces
"." at babolo.ru
"." at babolo.ru
Sat Mar 6 19:47:41 PST 2004
> 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<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0xa
lo1: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
lo2: flags=8008<LOOPBACK,MULTICAST> mtu 16384
lo3: flags=8008<LOOPBACK,MULTICAST> mtu 16384
If it is, there is from kernel config:
> grep loop /sys/i386/conf/garkin
pseudo-device loop 4 # Network loopback
More information about the freebsd-net
mailing list