I have executed the steps for configuring an interface for multiple IP addresses.


Result of ifconfig
eth0    Link encap:Ethernet  HWaddr 00:11:11:10:D2:A7
          inet addr:192.162.9.1  Bcast:192.162.9.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:51920 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15207 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:8612927 (8.2 Mb)  TX bytes:2223507 (2.1 Mb)

eth0:0  Link encap:Ethernet  HWaddr 00:11:11:10:D2:A7
          inet addr:192.162.9.2  Bcast:192.162.9.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth0:1 Link encap:Ethernet  HWaddr 00:11:11:10:D2:A7
          inet addr:192.162.9.3  Bcast:192.162.9.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

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:204 errors:0 dropped:0 overruns:0 frame:0
          TX packets:204 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:18782 (18.3 Kb)  TX bytes:18782 (18.3 Kb)


I restarted the network and started the agent with the IP Address
"snmpd -f -Le 192.162.9.2"

The agent got started. Now in another shell I executed, "snmpd -f -Le 192.162.9.3"

But the message displayed was,
 
Error opening specified endpoint 192.168.9.1:161
Server exiting with error code 1.

So the virtual IP's are there.. But the access is made to the real IP address 192.168.9.1 and the port 161.

Pls let me know how to proceed further



On 11/3/05, aakansha rajvi <[EMAIL PROTECTED]> wrote:
Could anyone pls tell me how to configure virtual IP Address and start the agent using that IP Address.. Is there any related web links which can guide me to accomplish this?

Thanks



On 10/25/05, Thomas Anders <[EMAIL PROTECTED] > wrote:
Dave Shield wrote:
>       $ sudo snmpd -f -Le 10.1.2.3
>       NET-SNMP version 5.2.1.2
>
>       $ sudo snmpd -f -Le 127.0.0.1
>       [init_smux] bind failed: Address already in use
>       NET-SNMP version 5.2.1.2
>
> (in separate windows, of course!)
>
>
> I must admit that I haven't tried it with two virtual IP
> addresses on the same interface, but it's certainly possible
> to run different agents listening on different (real) IP
> addresses.

Sure this'll work with virtual IP addresses also. But you need to be
careful with persistent storage, as has been discussed before on this
list. See   http://www.freesnmp.com/net-snmp/faqs/#persistmulti  for a
suggested config.


+Thomas

--
Thomas Anders (thomas.anders at blue-cable.de)


Reply via email to