RE: IP redirection

"Mike Ayers" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <83E753BE7B6A324ABB336245BAF1DAAC08BD5E23@mailserver.metatv-ds.metatv.com>
> From: [email protected] 
> [mailto:[email protected]] On 
> Behalf Of Ron Rader
> Sent: Tuesday, June 17, 2008 2:39 PM

> > From: dan anderson [mailto:[email protected]]
> 
> > On a somewhat related note, is there a way to force link up/downs to
> > occur on Linux, to test these traps?
> 
>   If you actually have interfaces on the platform, the answer is yes.
> Try something along these lines:
> 
> ip link set eth2 up
> ip link set eth2 down

	Or just pull the freakin' cable!

	Yeah, I had to say it...

	Alternatively, use IP aliasing and mess with a network that doesn't have anything connected to it, like (not tested):

$ ifconfig eth0:0 1172.16.1.27 netmask 255.255.255.0   # linkUp
$ ifconfig eth0:0 down                                 # linkDown
$ ifconfig eth0:0 up                                   # linkUp

	Then again, you could go to even *more* trouble...

	Or you could just use snmpcmd and have absolute control over the trap contents.  What's wrong with absolute control?

> The information contained in this message may be privileged 
> and confidential and protected from disclosure. If the reader 
> of this message is not the intended recipient, or an employee 
> or agent responsible for delivering this message to the 
> intended recipient, you are hereby notified that any 
> dissemination, distribution or copying of this communication 
> is strictly prohibited. If you have received this 
> communication in error, please notify us immediately by 
> replying to the message and deleting all copies. Thank you.

	Feh!  I'm forwarding this message to someone.. anyone!  Whatcha gonna do about it... punk?!


Mike

I'm all in favor of freedom and self-determination, so long as it never happens on my network.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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.