Re: Dummy ethernet interface.

2000-02-11 Thread Giorgos Keramidas

On Fri, Feb 11, 2000 at 03:24:15PM +0100, Alexander Leidinger wrote:
 On 10 Feb, Archie Cobbs wrote:
 
  If you want an interface that discards everthing, you can create
  a netgraph interface ("ngctl mkpeer iface foo inet") and leave it
  unconnected.
 
 Or just add "pseude-device disc" to your kernel.

I know, I tried adding disc0, and lo1.  But it seems that the *real*
problem with my named answering that he's not authoritative for his own
domains is elsewhere.

Thanks everyone for replying.  I have found in the mean time that disc0
can be used for an interface that discards packets, and that one can
have as many loopback interfaces as needed [although I suspect that one
would suffice most of the time].

-- 
Giorgos Keramidas,  keramida @ ceid . upatras . gr 
For my public PGP key: finger [EMAIL PROTECTED]
PGP fingerprint, phone and address in the headers of this message.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Dummy ethernet interface.

2000-02-11 Thread Rodney W. Grimes

 Giorgos Keramidas writes:
  Is there some way to ifconfig up a dummy ethernet interface, one that
  will work like the loopback one (lo0) on FreeBSD?
 
 If you want an interface that loops back, you can have more than
 one loopback interface (lo0, lo1, lo2, ...).
 
 If you want an interface that discards everthing, you can create
 a netgraph interface ("ngctl mkpeer iface foo inet") and leave it
 unconnected.

Or do it with the proper BSD pseudo-device:
#  The `disc' pseudo-device implements a minimal network interface,
#  which throws away all packets sent and never receives any.  It is
#  included for testing purposes.


-- 
Rod Grimes - KD7CAX @ CN85sl - (RWG25)   [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message