bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dummy interface for pfinet


From: Jeff Sheinberg
Subject: Re: dummy interface for pfinet
Date: Sun, 1 Oct 2000 17:14:48 -0400 (EDT)

Marcus Brinkmann writes:
[snip]
 > settrans /servers/socket/2 /hurd/pfinet -i dummy \
 > -a 192.168.0.1 -m 255.255.255.0 -g 192.168.0.2
 >
 > The dummy interface is the same as the dummy interface in
 > linux:  A bottomless pit. You don't get a single packet out of
   ^^^^^^^^^^^^^^^^^^^^^^^^
 > it, and everything you send to it is lost.
 >
 > Note that the above local address 192.168.0.1 is recognized as
 > local.  Stuff sent to this address is not lost, of course.
[snip]

Perhaps I misunderstand what you mean by `dummy interface', but on
my linux box, the `dummy interface' is a loopback, not a bit
bucket. 

    23 jeff ~ $ ifconfig -i dummy0
    dummy0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00  
              inet addr:172.16.0.1  Bcast:172.16.255.255  Mask:255.255.0.0
              UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 

    24 jeff ~ $ telnet dummy0 smtp
    Trying 172.16.0.1...
    Connected to eden-hda7.my.local.
    Escape character is '^]'.
    220 eden-hda7.my.local ESMTP Postfix (Postfix-20000531-Snapshot)
    helo dude
    250 eden-hda7.my.local
    quit
    221 Bye
    Connection closed by foreign host.

    25 jeff ~ $ cat /etc/network/interfaces
    # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

    # The loopback interface - lo on localnet.
    iface lo inet loopback

    # The first network card - eth0 on homenet.
    iface eth0 inet static
            address 192.168.1.22
            netmask 255.255.255.0
            network 192.168.1.0
            broadcast 192.168.1.255

    # The dummy interface - dummy0 on dummynet.
    iface dummy0 inet static
            address 172.16.0.1
            netmask 255.255.0.0
            network 172.16.0.0
            broadcast 172.16.255.255
    #
    # /etc/network/interfaces - end of file.

    26 jeff ~ $ uname -a
    Linux eden-hda7.my.local 2.2.17 #1 Mon Aug 28 20:29:19 EDT
2000 i586 unknown 

-- 
Jeff Sheinberg  <jeffsh@erols.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]