Etherchannel via ISP / Etherchannel over 3rd party switches

14/06/2013

The following was used as an EEM script on a 10Gbps link across a 3rd party providers network to provide resilience and disable an interface to alleviate the issue of black holing the traffic. This is based on a 3750x running the relevant code. I now have to look at the 6500 and see what it can/cant do, I dont doubt a code upgrade will be needed

!

cdp timer 5

cdp hold time 30

!

event manager applet EventNeighbor-Te2/1/1-DOWN

event neighbor-discovery interface TenGigabitEthernet2/1/1 cdp delete

action 1.0 syslog msg “Applet EventNeighbor Te2/1/1-DOWN”

action 1.1  cli interface Te2/1/1

action 1.2 cli shut

!

event manager applet EventNeighbor-Te2/1/1-UP

event neighbor-discovery interface TenGigabitEthernet2/1/1 cdp add

action 1.0 syslog msg “Applet EventNeighbor Te2/1/1-UP”

action 1.1  cli interface Te2/1/1

action 1.2 cli no shut

!

event manager applet EventNeighbor-Te2/1/2-DOWN

event neighbor-discovery interface TenGigabitEthernet2/1/2 cdp delete

action 1.0 syslog msg “Applet EventNeighbor Te2/1/2-DOWN”

action 1.1  cli interface Te2/1/2

action 1.2 cli shut

!

event manager applet EventNeighbor-Te2/1/2-UP

event neighbor-discovery interface TenGigabitEthernet2/1/2 cdp add

action 1.0 syslog msg “Applet EventNeighbor Te2/1/2UP”

action 1.1  cli interface Te2/1/1

action 1.2 cli no shut

!

Advertisements