Re: interface renaming of an running interface

From: Robert Watson (rwatson_at_freebsd.org)
Date: 04/07/04

  • Next message: Brooks Davis: "Re: interface renaming of an running interface"
    Date: Wed, 7 Apr 2004 13:52:17 -0400 (EDT)
    To: harti@freebsd.org
    
    

    On Wed, 7 Apr 2004, Harti Brandt wrote:

    > I'm currently trying to teach bsnmp to correctly handle interface
    > renaming. One problem that I encounter is that a process listening on
    > the routing socket sees an interface departure and an interface arrival
    > message. This cause interfaces that run stateful protocols like SNMP on
    > ATM interfaces to drop all connections which isn't really all that nice.
    > The SNMP daemon would also loose all interface state and would report
    > the renamed interface as a new interface with a new ifindex. This
    > directly violates the IF-MIB RFC, because the daemon is required to
    > understand that this is the same interface (the ifindex doesn't really
    > help here, because unloading/loading the driver gives the same
    > behaviour). I would like to do one of the following two things:
    >
    > 1) disallow renaming an interface while it is up, or 2) instead of
    > emiting a departure/arrival pair of routing messages, generate a rename
    > message.
    >
    > Additionally I would like to create new sysctls:
    >
    > net.link.generic.ifdata.<ifindex>.dname
    > net.link.generic.ifdata.<ifindex>.dunit
    >
    > to access the driver's name of an interface.
    >
    > Comments?

    I was actually worried about this issue also -- FWIW, the issue already
    exists even without generic interface renaming because some interfaces
    (specifically, if_sl) already support renumbering on demand using ioctl().
    I agree that what we need is a rename event -- the only real question is
    whether and how to handle compatibility for applications that don't know
    what to do with it. Presumably the only real question is for things like
    SNMP and routing daemons, although we've also talked about event
    monitoring for interfaces using devctl, in which case devd would need to
    learn about the "rename" primitive as well.

    Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
    robert@fledge.watson.org Senior Research Scientist, McAfee Research

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


  • Next message: Brooks Davis: "Re: interface renaming of an running interface"

    Relevant Pages

    • Re: Traffic NOT moving through the correct network interface?
      ... Kernel IP routing table ... loopback interface, but that's not part of this problem. ... Everything is done by the kernel. ... Policy based routing requires you ...
      (alt.os.linux)
    • Re: Fedora as Router - cannot get past gateway
      ... >> command so much, I am suprised any routing works at all. ... Are you using dhcp or is all config manual? ... > This is your interface to ISP? ... we all have that feeling when we can't get routing set up. ...
      (comp.os.linux.networking)
    • Re: Bind Problem - with multihomed
      ... You must add an entry to the routing table. ... See this excerpt under the "Multihoming" section from "Microsoft ... Stack Components and the TDI Interface" at ... to disjoint networks (networks that are separate from and unaware of ...
      (microsoft.public.win32.programmer.networks)
    • Re: problems pinging between FastEthernet and Ethernet interfaces
      ... I'm having some problems with a link between two Cisco routers. ... Ethernet interface. ... routing protocol will not matter. ... The best thing is to post the config of the relevant interfaces. ...
      (comp.dcom.sys.cisco)
    • intervlan routing and policy routing C3750 or C 4948
      ... routing) and for some vlans i need different gateways. ... interface Vlan10 ... route-map, 2) routing table. ... the packet will be routed according to the routing table (standard IOS ...
      (comp.dcom.sys.cisco)