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



Dummy ethernet interface.

2000-02-09 Thread Giorgos Keramidas

Is there some way to ifconfig up a dummy ethernet interface, one that
will work like the loopback one (lo0) on FreeBSD?

I'm playing around with a local caching named on a machine that has only
lo0 and a ppp0 interface, and bind always replies with 'for
authoritative replies ... blah blah' when I use host.

I remember that having localhost.my.domain set to 127.0.0.1 and the
reverse, but my (fictitious) hades.hell.gr - 10.0.0.1 seemed to solve
this problem on linux.

I looked through the LINT file in my sources [cvsuped: 7 Jan 2000], but
could not find anything like that.  Is there such a thing, or the time
has come for me to start playing around with my kernel and ethernet
drivers?

A pseudo-ethernet device seems like a nice reason to start panicing my
home PC, but I don't want to repeat other people's work if possible ;)

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