Re: [RFC] Stable interface index option

2015-12-02 Thread Marcelo Ricardo Leitner
Hi, On Wed, Dec 02, 2015 at 12:58:58AM +0100, Hannes Frederic Sowa wrote: > Hello, > > On Tue, Dec 1, 2015, at 23:43, Maximilian Wilhelm wrote: > > How should net-snmp handle cases where new interfaces come up on old > > and now unused numbers? What should it report? That would escalate the > > p

Re: [RFC] Stable interface index option

2015-12-01 Thread Andrew Lunn
> In general the ifindexes are designed to not be reused very fast. Some parts of multicast group management rely on this. You need to remove group memberships from a socket when an interface has disappeared, e.g. a VPN interface has gone away. You can pass the ifindex of the no longer existing in

Re: [RFC] Stable interface index option

2015-12-01 Thread Hannes Frederic Sowa
Hello, On Tue, Dec 1, 2015, at 23:43, Maximilian Wilhelm wrote: > Anno domini 2015 Hannes Frederic Sowa scripsit: > > > On Tue, Dec 1, 2015, at 20:27, David Miller wrote: > > > From: Hannes Frederic Sowa > > > Date: Tue, 01 Dec 2015 17:02:23 +0100 > > > > > > > On Tue, Dec 1, 2015, at 16:50, Ma

Re: [RFC] Stable interface index option

2015-12-01 Thread Maximilian Wilhelm
Anno domini 2015 Hannes Frederic Sowa scripsit: > On Tue, Dec 1, 2015, at 20:27, David Miller wrote: > > From: Hannes Frederic Sowa > > Date: Tue, 01 Dec 2015 17:02:23 +0100 > > > > > On Tue, Dec 1, 2015, at 16:50, Maximilian Wilhelm wrote: > > >> > I'm not sure I understand how this would work-

Re: [RFC] Stable interface index option

2015-12-01 Thread Stephen Hemminger
On Tue, 01 Dec 2015 22:54:54 +0100 Hannes Frederic Sowa wrote: > > On Tue, Dec 1, 2015, at 22:44, Stephen Hemminger wrote: > > On Tue, 01 Dec 2015 22:14:59 +0100 > > Hannes Frederic Sowa wrote: > > > I had several snmp installations with net-snmp and munin, cacti and so > > > on and all had the

Re: [RFC] Stable interface index option

2015-12-01 Thread Hannes Frederic Sowa
On Tue, Dec 1, 2015, at 22:44, Stephen Hemminger wrote: > On Tue, 01 Dec 2015 22:14:59 +0100 > Hannes Frederic Sowa wrote: > > I had several snmp installations with net-snmp and munin, cacti and so > > on and all had the interface name in ifDescription already some years > > back. > > In net-snm

Re: [RFC] Stable interface index option

2015-12-01 Thread Stephen Hemminger
On Tue, 01 Dec 2015 22:14:59 +0100 Hannes Frederic Sowa wrote: > On Tue, Dec 1, 2015, at 21:57, David Miller wrote: > > From: Stephen Hemminger > > Date: Tue, 1 Dec 2015 12:20:38 -0800 > > > > > On Tue, 01 Dec 2015 14:28:47 -0500 (EST) > > > David Miller wrote: > > > > > >> From: Stephen Hemm

Re: [RFC] Stable interface index option

2015-12-01 Thread Hannes Frederic Sowa
On Tue, Dec 1, 2015, at 21:57, David Miller wrote: > From: Stephen Hemminger > Date: Tue, 1 Dec 2015 12:20:38 -0800 > > > On Tue, 01 Dec 2015 14:28:47 -0500 (EST) > > David Miller wrote: > > > >> From: Stephen Hemminger > >> Date: Tue, 1 Dec 2015 08:06:52 -0800 > >> > >> > On Tue, 01 Dec 2015

Re: [RFC] Stable interface index option

2015-12-01 Thread Sowmini Varadhan
On (12/01/15 15:57), David Miller wrote: > >> > Also current versions of SNMP provide more useful information about > >> > network interface slot information in ifDescription > >> > >> Well if they do provide strings, then that is probably a better way > >> forward than messing with the kernel. >

Re: [RFC] Stable interface index option

2015-12-01 Thread David Miller
From: Stephen Hemminger Date: Tue, 1 Dec 2015 12:20:38 -0800 > On Tue, 01 Dec 2015 14:28:47 -0500 (EST) > David Miller wrote: > >> From: Stephen Hemminger >> Date: Tue, 1 Dec 2015 08:06:52 -0800 >> >> > On Tue, 01 Dec 2015 17:02:23 +0100 >> > Hannes Frederic Sowa wrote: >> > >> >> On Tue, D

Re: [RFC] Stable interface index option

2015-12-01 Thread Hannes Frederic Sowa
On Tue, Dec 1, 2015, at 20:27, David Miller wrote: > From: Hannes Frederic Sowa > Date: Tue, 01 Dec 2015 17:02:23 +0100 > > > On Tue, Dec 1, 2015, at 16:50, Maximilian Wilhelm wrote: > >> > I'm not sure I understand how this would work- are we going to > >> > pin down the ifindex for some subset

Re: [RFC] Stable interface index option

2015-12-01 Thread Stephen Hemminger
On Tue, 01 Dec 2015 14:28:47 -0500 (EST) David Miller wrote: > From: Stephen Hemminger > Date: Tue, 1 Dec 2015 08:06:52 -0800 > > > On Tue, 01 Dec 2015 17:02:23 +0100 > > Hannes Frederic Sowa wrote: > > > >> On Tue, Dec 1, 2015, at 16:50, Maximilian Wilhelm wrote: > >> > > I'm not sure I unde

Re: [RFC] Stable interface index option

2015-12-01 Thread David Miller
From: Stephen Hemminger Date: Tue, 1 Dec 2015 08:06:52 -0800 > On Tue, 01 Dec 2015 17:02:23 +0100 > Hannes Frederic Sowa wrote: > >> On Tue, Dec 1, 2015, at 16:50, Maximilian Wilhelm wrote: >> > > I'm not sure I understand how this would work- are we going to >> > > pin down the ifindex for so

Re: [RFC] Stable interface index option

2015-12-01 Thread David Miller
From: Hannes Frederic Sowa Date: Tue, 01 Dec 2015 17:02:23 +0100 > On Tue, Dec 1, 2015, at 16:50, Maximilian Wilhelm wrote: >> > I'm not sure I understand how this would work- are we going to >> > pin down the ifindex for some subset of interfaces? >> >> I'm not sure what your idea is, but I gu

Re: [RFC] Stable interface index option

2015-12-01 Thread Maximilian Wilhelm
Anno domini 2015 Hannes Frederic Sowa scripsit: > On Tue, Dec 1, 2015, at 16:50, Maximilian Wilhelm wrote: > > > I'm not sure I understand how this would work- are we going to > > > pin down the ifindex for some subset of interfaces? > > > > I'm not sure what your idea is, but I guess we might m

Re: [RFC] Stable interface index option

2015-12-01 Thread Sowmini Varadhan
On (12/01/15 16:50), Maximilian Wilhelm wrote: > What I have in mind is that the user can supply a list of (ifname -> > ifindex) entries via a sysfs/procfs interface and if such a list is > present, the kernel will search the list for every ifname which is Having the user supply such a list is haz

Re: [RFC] Stable interface index option

2015-12-01 Thread Stephen Hemminger
On Tue, 01 Dec 2015 17:02:23 +0100 Hannes Frederic Sowa wrote: > On Tue, Dec 1, 2015, at 16:50, Maximilian Wilhelm wrote: > > > I'm not sure I understand how this would work- are we going to > > > pin down the ifindex for some subset of interfaces? > > > > I'm not sure what your idea is, but I

Re: [RFC] Stable interface index option

2015-12-01 Thread Hannes Frederic Sowa
On Tue, Dec 1, 2015, at 16:50, Maximilian Wilhelm wrote: > > I'm not sure I understand how this would work- are we going to > > pin down the ifindex for some subset of interfaces? > > I'm not sure what your idea is, but I guess we might mean the same > thing: > > What I have in mind is that the

Re: [RFC] Stable interface index option

2015-12-01 Thread Maximilian Wilhelm
Anno domini 2015 Sowmini Varadhan scripsit: > On (12/01/15 13:04), Maximilian Wilhelm wrote: > > The reason we would like to have those is quite simple: As we operate > > a somewhat larger network we would like to monitor it accordingly and > > see when links get saturated etc. Therefore we used

Re: [RFC] Stable interface index option

2015-12-01 Thread Sowmini Varadhan
On (12/01/15 13:04), Maximilian Wilhelm wrote: > > The reason we would like to have those is quite simple: As we operate > a somewhat larger network we would like to monitor it accordingly and > see when links get saturated etc. Therefore we used snmp based > solutions and the net-snmp daemon on a

[RFC] Stable interface index option

2015-12-01 Thread Maximilian Wilhelm
Hi, we are operating some free wifi networks (»Freifunk« in Germany) including a backbone in the DFZ all running on Linux boxes, thanks to all the cool stuff available there! :) For a while now we are struggling with unstable/random interface indexes as our interfaces (GRE tunnels, OpenVPN/Tinc t