From: Fran Firman (fran_at_netgate.net.nz)
Date: Sun 01 Dec 2002 - 19:45:24 GMT
>From my understanding it has to do with the net_raw cap. Ie when the
perl lib creates the snmp packet, it uses a net_raw type creation, which
gets the ROOTDEV instead of the vserver's sub interface.
The same happens when you use cricket, and ping.
For cricket we were able to tell the snmp lib what ip address to use,
and set that directly to the ip address of the vserver.
BTW. We have been testing using vservers to collect data using cricket
onto one nfs array, so that the collection can be farmed out, and one
frontend (grapher) can access all of the data.
Fran Firman.
SSG
Telecom Advanced Solutions
New Zealand.
On Sat, 2002-11-16 at 04:08, Dinu Zabrauteanu wrote:
> We are trying to run mrtg under vserver to colect snmp
> informations from a CISCO router.
> We enabled debug snmp on router. We are connecting to
> router from inside vserver. When we are using snmpget
> command on the router the messages contains the
> vserver IP. When we are using cfgmaker the the router
> messages shows the system IP. Why ? Does cfgmaker
> inside vserver knows about IP address of the eth0 ?
>
> eth0 Link encap:Ethernet HWaddr
> 00:04:76:9E:79:A6
> inet addr:172.16.20.13 Bcast:172.16.255.255
> Mask:255.255.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500
> Metric:1
> RX packets:6799603 errors:0 dropped:0
> overruns:0 frame:0
> TX packets:7491908 errors:0 dropped:0
> overruns:0 carrier:0
> collisions:0 txqueuelen:100
> RX bytes:2118660371 (2020.5 Mb) TX
> bytes:877424657 (836.7 Mb)
> Interrupt:11 Base address:0x6000
>
> eth0:00C5 Link encap:Ethernet HWaddr
> 00:04:76:9E:79:A6
> inet addr:172.16.1.188 Bcast:172.16.255.255
> Mask:255.255.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500
> Metric:1
> Interrupt:11 Base address:0x6000
>
> eth0:00C7 Link encap:Ethernet HWaddr
> 00:04:76:9E:79:A6
> inet addr:172.16.1.189 Bcast:172.16.255.255
> Mask:255.255.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500
> Metric:1
> Interrupt:11 Base address:0x6000
>
> 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:68786 errors:0 dropped:0
> overruns:0 frame:0
> TX packets:68786 errors:0 dropped:0
> overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:12254525 (11.6 Mb) TX
> bytes:12254525 (11.6 Mb)
>
>
>
> =====
>
> Dinu Zabrauteanu
>
> "Attempt the impossible in order to improve your work. " - Bette Davis.
>
>
> __________________________________________________
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com