cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1353
Views
0
Helpful
2
Replies
Highlighted

How to get the router to monitor the interface

I need to know how to create an applet to monitor an interface and if it recieves a specific IP do a shut no shut on the interface.

Thanks,

-Earl

2 REPLIES 2
Highlighted
Hall of Fame Cisco Employee

You could use ACLs for this.  Apply an inbound ACL on the interface with logging enabled.  It could be as simple as:

access-list 100 permit ip any any log

int gi0/0

ip access-group 100 in

Then, when you get a hit, that will generate a syslog message that your EEM policy can react to:

event manager applet watch-ip

event syslog pattern "list 100 .*10.1.1.1"

action 1.0 cli command "enable"

action 2.0 cli command "config t"

action 3.0 cli command "int gi0/0"

action 4.0 cli command "shut"

action 5.0 cli command "end"

Highlighted

Cool, thanks.  I would need it to do a no shut as well.  Thanks

Content for Community-Ad