Re: Dummy Network Interface

From: Julian Elischer (julian_at_elischer.org)
Date: 01/15/04

  • Next message: David Gilbert: "Re: kern/61215: off-by-one error likely in ip_fragment()"
    Date: Thu, 15 Jan 2004 11:11:41 -0800 (PST)
    To: Vlad Galu <dudu@diaspar.rdsnet.ro>
    
    

    On Thu, 15 Jan 2004, Vlad Galu wrote:

    > Robert Watson <rwatson@freebsd.org> writes:
    >
    > |
    > |On Tue, 13 Jan 2004 ms419@freezone.co.uk wrote:
    > |
    > |> How does one create a dummy network interface in FreeBSD?
    > |
    > |Dummy in what sense? An interface where the packets are simply
    > |dropped? if_tap and if_tun both provide pseudo-device in /dev that a
    > |userspace process can attach to in order to emulate a network interface
    > |(used by VMWare, ppp, various tunneling bits, ...) In the absense of a
    > |process sitting on the device, they simply drop the packets. Although
    > |they may get garbage-collected if unused on -CURRENT... You can also
    > |use netgraph to bring pseudo-interfaces, perhaps without anywhere for
    > |packets to go.
    > |
    > |And, I suppose, create in what sense? Are you looking at this from a
    > |developer perspective, or you just need one from a user perspective.
    > |If writing a device driver (and hence needing a starting point), if_tap
    > |and if_tun are fairly decent models for a pseudo-interface.
    >
    > I think he could use the discard interface smoothly. On Linux (from
    > which the dummy interface notion is taken from) it is simply used for
    > testing purposes, as in routing, or perhaps socket programming. I
    > personally have used it for a while, but then I used interface aliasing,
    > which became a habit.

    ng_iface <-> ng_hole

    would yield a 'black hole' interface if that is what is being looked
    for..
    ng_iface is similar to both tun and tap exceot that it can route the
    packets to arbitrary netgraph moudles or to any subsystem to which
    netgraph has a supported interface. (e.g. userland or a tty)

    >
    > |
    > |Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
    > |robert@fledge.watson.org Senior Research Scientist, McAfee
    > |Research
    > |
    > |
    > |_______________________________________________
    > |freebsd-net@freebsd.org mailing list
    > |http://lists.freebsd.org/mailman/listinfo/freebsd-net
    > |To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
    > |
    >
    >
    > ----
    > If it's there, and you can see it, it's real.
    > If it's not there, and you can see it, it's virtual.
    > If it's there, and you can't see it, it's transparent.
    > If it's not there, and you can't see it, you erased it.
    >

    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


  • Next message: David Gilbert: "Re: kern/61215: off-by-one error likely in ip_fragment()"

    Relevant Pages

    • Re: Dummy Network Interface
      ... |> How does one create a dummy network interface in FreeBSD? ... An interface where the packets are simply ...
      (freebsd-net)
    • Re: Are procedure dummy arguments ignored in generic procedure resolution?
      ... > procedures via an interface block or an external statement, ... > a value of that implicit type or a subroutine if the dummy argument ... > has no declaration in the interface block. ... block or an external statement. ...
      (comp.lang.fortran)
    • multiple dummy interfaces?
      ... I'm moving from an older redhat to FC3 and I had multiple IP addresses ... /sbin/ifconfig dummy0 www.domain0.com up ... I was able to load one dummy interface ...
      (Fedora)
    • Re: Dummy Network Interface
      ... > |> How does one create a dummy network interface in FreeBSD? ... An interface where the packets are simply ...
      (freebsd-net)
    • Re: understanding hacmp5 and IP aliasing
      ... >>I now want to setup a cluster but with using IP aliases.The manual ... >>I need to have boot and service networks on seperate subnets. ... > standby address = dummy address ... > interface at all times and the real service addresses are ...
      (comp.unix.aix)