error getting netmask for interface

[email protected]
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi. Thank you in advance for any help and/or suggestion.

I keep getting this error after I ifup an interface alias on my gentoo
2007.0 box running 64bitlinux-2.6.20-gentoo-r8 kernel. relevant log
entries with debug mode turned on is at the bottom.

10:47:58 snmpd[344]: error getting netmask for interface 1
10:48:28 snmpd[344]: error getting netmask for interface 1
10:48:58 snmpd[344]: error getting netmask for interface 1
10:49:28 snmpd[344]: error getting netmask for interface 1
10:49:58 snmpd[344]: error getting netmask for interface 1
10:50:28 snmpd[344]: error getting netmask for interface 1
10:50:58 snmpd[344]: error getting netmask for interface 1


# sbin/snmpd -v

NET-SNMP version:  5.4
Web:               http://www.net-snmp.org/
Email:             [email protected]

# cat etc/snmpd.conf
rouser public noauth
rocommunity public
syslocation someplace
syscontact  not_me

# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:E0:81:47:59:0E
          inet addr:10.158.100.41  Bcast:10.158.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:262682 errors:0 dropped:0 overruns:0 frame:0
          TX packets:53048 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:122596020 (116.9 MiB)  TX bytes:5109427 (4.8 MiB)
          Base address:0x2000 Memory:dd200000-dd220000

eth1      Link encap:Ethernet  HWaddr 00:E0:81:47:59:0F
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12892 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19132 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:929682 (907.8 KiB)  TX bytes:1353558 (1.2 MiB)
          Base address:0x2040 Memory:dd220000-dd240000

eth1:1    Link encap:Ethernet  HWaddr 00:E0:81:47:59:0F
          inet addr:10.100.162.4  Bcast:10.100.162.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Base address:0x2040 Memory:dd220000-dd240000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:12184 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12184 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1399031 (1.3 MiB)  TX bytes:1399031 (1.3 MiB)


*** debug log ***
13:31:56 snmpd[344]: trace:
13:31:56 snmpd[344]: _netsnmp_ioctl_ipaddress_container_load_v4():
ip-mib/data_access/ipaddress_ioctl.c, 159:
13:31:56 snmpd[344]: access:ipaddress:container:
13:31:56 snmpd[344]:  interface 0, eth0
13:31:56 snmpd[344]: trace:
13:31:56 snmpd[344]: netsnmp_access_interface_ioctl_ifindex_get():
if-mib/data_access/interface_ioctl.c, 402:
13:31:56 snmpd[344]: access:interface:ioctl:
13:31:56 snmpd[344]: mtu_get
13:31:56 snmpd[344]: trace:
13:31:56 snmpd[344]: _ioctl_get(): if-mib/data_access/interface_ioctl.c, 49:
13:31:56 snmpd[344]: verbose:access:interface:ioctl:
13:31:56 snmpd[344]: ioctl 35123 for eth0
13:31:56 snmpd[344]: access:ipaddress:container:
13:31:56 snmpd[344]:  if 0: addr len 4, index 0x1
13:31:56 snmpd[344]: access:ipaddress:container:
13:31:56 snmpd[344]:  address 0x12964c80a
13:31:56 snmpd[344]: access:ipaddress:container:
13:31:56 snmpd[344]: flags 0x1043
13:31:56 snmpd[344]: access:ipaddress:container:
13:31:56 snmpd[344]:   interface is up
13:31:56 snmpd[344]: access:ipaddress:container:
13:31:56 snmpd[344]:   broadcast address valid
13:31:56 snmpd[344]: access:ipaddress:container:
13:31:56 snmpd[344]:   resources allocated
13:31:56 snmpd[344]: access:ipaddress:container:
13:31:56 snmpd[344]:   Supports multicast
13:31:56 snmpd[344]: trace:
13:31:56 snmpd[344]: _netsnmp_ioctl_ipaddress_container_load_v4():
ip-mib/data_access/ipaddress_ioctl.c, 159:
13:31:56 snmpd[344]: access:ipaddress:container:
13:31:56 snmpd[344]:  interface 1, eth1:1
13:31:56 snmpd[344]: trace:
13:31:56 snmpd[344]: netsnmp_access_interface_ioctl_ifindex_get():
if-mib/data_access/interface_ioctl.c, 402:
13:31:56 snmpd[344]: access:interface:ioctl:
13:31:56 snmpd[344]: mtu_get
13:31:56 snmpd[344]: trace:
13:31:56 snmpd[344]: _ioctl_get(): if-mib/data_access/interface_ioctl.c, 49:
13:31:56 snmpd[344]: verbose:access:interface:ioctl:
13:31:56 snmpd[344]: ioctl 35123 for eth1
13:31:56 snmpd[344]: error getting netmask for interface 1
13:31:56 snmpd[344]: trace:
13:31:56 snmpd[344]: _netsnmp_ioctl_ipaddress_container_load_v4():
ip-mib/data_access/ipaddress_ioctl.c, 159:
13:31:56 snmpd[344]: access:ipaddress:container:
13:31:56 snmpd[344]:  interface 2, lo
13:31:56 snmpd[344]: trace:
13:31:56 snmpd[344]: netsnmp_access_interface_ioctl_ifindex_get():
if-mib/data_access/interface_ioctl.c, 402:
13:31:56 snmpd[344]: access:interface:ioctl:
13:31:56 snmpd[344]: mtu_get
13:31:56 snmpd[344]: trace:
13:31:56 snmpd[344]: _ioctl_get(): if-mib/data_access/interface_ioctl.c, 49:
13:31:56 snmpd[344]: verbose:access:interface:ioctl:
13:31:56 snmpd[344]: ioctl 35123 for lo
13:31:56 snmpd[344]: access:ipaddress:container:
13:31:56 snmpd[344]:  if 2: addr len 4, index 0x3
13:31:56 snmpd[344]: access:ipaddress:container:
13:31:56 snmpd[344]:  address 0x30100007f
13:31:56 snmpd[344]: access:ipaddress:container:
13:31:56 snmpd[344]: flags 0x49
13:31:56 snmpd[344]: access:ipaddress:container:
13:31:56 snmpd[344]:   interface is up
13:31:56 snmpd[344]: access:ipaddress:container:
13:31:56 snmpd[344]:   is a loopback net
13:31:56 snmpd[344]: access:ipaddress:container:
13:31:56 snmpd[344]:   resources allocated

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.