Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Cisco > TCL script for changing interfaces

Reply
Thread Tools

TCL script for changing interfaces

 
 
calin_cri calin_cri is offline
Junior Member
Join Date: Apr 2010
Posts: 2
 
      04-16-2010
Hello,

I need some help. Does anyone has an example of a TCL script for a cisco 1800 series running ios 12.4 how can switch between interfaces if one fails

To be more specific, i have 2 ISP configured on 2 Fast Ethernet ports.
If one fails i want the ip route to switch to the other interface.
I don`t want to manually switch ip route 0.0.0.0 0.0.0.0 fast ethernet...

Thanks in advance !
 
Reply With Quote
 
 
 
 
Jemmer Jemmer is offline
Junior Member
Join Date: Apr 2010
Posts: 3
 
      04-16-2010
Hmm

You are saying that if the interface fails

What about makeing 2 0.0.0.0 routes, 1 for each interface. List one of them a higher local preff. And when the interface goes down it will remoe the route that belongs to the interface.

You must know that TCL is unsupported and it is a big risk for the IOS.

An other way is to do an IP SLA ping from the interface to the gateway.. if the ping fails then execute shut on the interface.

/Jemmer
 
Reply With Quote
 
 
 
 
blanken79 blanken79 is offline
Junior Member
Join Date: Apr 2010
Location: Greenville,SC
Posts: 8
 
      04-17-2010
The secondary default route with a higher metric would be the easiest solution, at least IMO.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to build a loadable tcl dll with visual studio (microsoft C compiler)?[crosspost in comp.lang.tcl and comp.lang.c++] Michael Reichenbach C++ 5 02-08-2010 02:38 PM
how to call user defined TCL procedures from python script? comp.lang.python Python 1 11-21-2006 10:41 AM
Inline::Tcl vs. Inline::Tcl Mumia W. Perl Misc 0 08-23-2006 04:09 PM
Assertion file update problem in ModeSim (via Tcl script) Alex VHDL 5 11-24-2005 06:27 PM
IVR Tcl script and multilanguage support Primoz Jeroncic Cisco 1 10-25-2003 02:03 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57