<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: Configure IP SLA + PBR in ExtremeSwitching (EXOS/Switch Engine)</title>
    <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/configure-ip-sla-pbr/m-p/37495#M7931</link>
    <description>Let me know if you want to get this posted on our GitHub.&lt;BR /&gt;</description>
    <pubDate>Wed, 05 Apr 2017 23:49:00 GMT</pubDate>
    <dc:creator>Drew_C</dc:creator>
    <dc:date>2017-04-05T23:49:00Z</dc:date>
    <item>
      <title>Configure IP SLA + PBR</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/configure-ip-sla-pbr/m-p/37486#M7922</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I have to migrate from CISCO routers 1941 to Extreme X670, the routing configuration is as follows:&lt;BR /&gt;
We have two outputs, one is for the business flow and the other is for the internet, if one link falls the other will replace it, for this we have to configure a PBR + SLA.&lt;BR /&gt;
Here is the CISCO configuration:&lt;BR /&gt;
&lt;BR /&gt;
************* Config Tracking *******************&lt;BR /&gt;
&lt;BR /&gt;
track 100 ip sla 100&lt;BR /&gt;
track 101 ip sla 101&lt;BR /&gt;
track 150 list boolean or&lt;BR /&gt;
 object 100&lt;BR /&gt;
 object 101&lt;BR /&gt;
track 300 ip sla 300&lt;BR /&gt;
track 301 ip sla 301&lt;BR /&gt;
track 350 list boolean or&lt;BR /&gt;
 object 300&lt;BR /&gt;
 object 301&lt;BR /&gt;
&lt;BR /&gt;
************** Config SLA *********************&lt;BR /&gt;
&lt;BR /&gt;
ip sla 100&lt;BR /&gt;
 icmp-echo 10.x.x.x source-interface Loopback2&lt;BR /&gt;
 threshold 1500&lt;BR /&gt;
 timeout 1500&lt;BR /&gt;
 frequency 2&lt;BR /&gt;
ip sla schedule 100 life forever start-time now&lt;BR /&gt;
ip sla 101&lt;BR /&gt;
 icmp-echo 10.x.x.x source-interface Loopback2&lt;BR /&gt;
 threshold 1500&lt;BR /&gt;
 timeout 1500&lt;BR /&gt;
 frequency 2&lt;BR /&gt;
ip sla schedule 101 life forever start-time now&lt;BR /&gt;
ip sla 300&lt;BR /&gt;
 icmp-echo 10.x.x.x source-interface Loopback1&lt;BR /&gt;
 threshold 1500&lt;BR /&gt;
 timeout 1500&lt;BR /&gt;
 frequency 2&lt;BR /&gt;
ip sla schedule 300 life forever start-time now&lt;BR /&gt;
ip sla 301&lt;BR /&gt;
 icmp-echo 10.x.x.x source-interface Loopback1&lt;BR /&gt;
 threshold 1500&lt;BR /&gt;
 timeout 1500&lt;BR /&gt;
 frequency 2&lt;BR /&gt;
ip sla schedule 301 life forever start-time now&lt;BR /&gt;
&lt;BR /&gt;
******************* Config Route-Map ********************&lt;BR /&gt;
&lt;BR /&gt;
route-map FluxMetier deny 5&lt;BR /&gt;
 match ip address flux-intra-UP&lt;BR /&gt;
!&lt;BR /&gt;
route-map FluxMetier permit 10&lt;BR /&gt;
 match ip address DSCP-IN-D1INP&lt;BR /&gt;
 set ip next-hop verify-availability 172.x.x.x 1 track 350&lt;BR /&gt;
!&lt;BR /&gt;
route-map FluxMetier permit 20&lt;BR /&gt;
 match ip address DSCP-IN-D2INP&lt;BR /&gt;
 set ip next-hop verify-availability 172.x.x.x 1 track 350&lt;BR /&gt;
!&lt;BR /&gt;
route-map FluxMetier permit 40&lt;BR /&gt;
 match ip address inter-UP&lt;BR /&gt;
 set ip next-hop verify-availability 172.x.x.x 1 track 350&lt;BR /&gt;
!&lt;BR /&gt;
route-map FluxMetier permit 50&lt;BR /&gt;
 match ip address meca-up-LUG&lt;BR /&gt;
 set ip next-hop verify-availability 172.x.x.x 1 track 350&lt;BR /&gt;
!&lt;BR /&gt;
route-map STATIC-TO-OSPF permit 40&lt;BR /&gt;
 match tag 201&lt;BR /&gt;
!&lt;BR /&gt;
&lt;BR /&gt;
****************** Config Routage statique ****************&lt;BR /&gt;
&lt;BR /&gt;
ip route 0.0.0.0 0.0.0.0 172.x.x.x 10 name Cxxx track 150&lt;BR /&gt;
ip route 0.0.0.0 0.0.0.0 172.x.x.x 20 name Oxx track 350&lt;BR /&gt;
ip route 10.x.x.x 255.255.255.255 172.x.x.x name UP-PBR-Mxxxxxx&lt;BR /&gt;
ip route 10.x.x.x 255.255.255.255 172.x.x.x name UP-PBR-Mxxxxxx&lt;BR /&gt;
ip route 10.x.x.x 255.255.255.255 172.x.x.x name UP-PBR-Cxxxxxxxx&lt;BR /&gt;
ip route 10.x.x.x 255.255.255.255 172.x.x.x name UP-PBR-Cxxxxxxxx&lt;BR /&gt;
ip route 172.x.x.x 255.255.255.0 172.x.x.x tag 201 name Ixxxxxx-Pxxxxxxxxxxx&lt;BR /&gt;
!&lt;BR /&gt;
&lt;BR /&gt;
My questions :&lt;BR /&gt;
&lt;BR /&gt;
I am a beginner on ExtremeNetworks, and on the internet, I learned that to do this I have to write scripts, can you help me to write this script knowing that I never Written Scripts before (except ACL)&lt;BR /&gt;
&lt;BR /&gt;
Thank you sincerely for your help, my situation is really critical and urgent.&lt;BR /&gt;
&lt;BR /&gt;
Best regards.</description>
      <pubDate>Thu, 23 Feb 2017 14:29:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/configure-ip-sla-pbr/m-p/37486#M7922</guid>
      <dc:creator>SOUILAH_Mohamed</dc:creator>
      <dc:date>2017-02-23T14:29:00Z</dc:date>
    </item>
    <item>
      <title>RE: Configure IP SLA + PBR</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/configure-ip-sla-pbr/m-p/37487#M7923</link>
      <description>Were it sufficient to simply use ICMP to the next-hop to verify the static route, one could avoid using scripting and instead use the ping-protection feature found in 16.2. &lt;A href="https://www.dropbox.com/s/6m9lltccuym6fxy/ExtremeXOS_16.2.2_RelNotes.pdf?dl=0" target="_blank" rel="nofollow noreferrer noopener"&gt;Here&lt;/A&gt; is a link to the release notes.&lt;BR /&gt;
&lt;BR /&gt;
It appears, however, that the SLA for each route is more complex, and that latency is used in addition to ICMP packet loss to determine that a static route is invalid. Is this true?&lt;BR /&gt;
&lt;BR /&gt;
I can help with a script, but I need you to verify the exact conditions under which you need to determine that a static route is invalid.</description>
      <pubDate>Fri, 24 Feb 2017 00:49:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/configure-ip-sla-pbr/m-p/37487#M7923</guid>
      <dc:creator>Matthew_Helm1</dc:creator>
      <dc:date>2017-02-24T00:49:00Z</dc:date>
    </item>
    <item>
      <title>RE: Configure IP SLA + PBR</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/configure-ip-sla-pbr/m-p/37488#M7924</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
Thank you for your reply.&lt;BR /&gt;
&lt;BR /&gt;
After verification, I do not think the Ping-Protection feature can meet our needs, in addition to that, we use XOS 16.1.3.&lt;BR /&gt;
&lt;BR /&gt;
For the Script, I will explain how it was configured on CISCO:&lt;BR /&gt;
&lt;BR /&gt;
Two Loopback addresses were determined for each stream type (business stream and internet confore stream)&lt;BR /&gt;
&lt;BR /&gt;
Both addresses are mentioned in the "IP SLA" commands (two addresses correspond to two routers in our Data Center).&lt;BR /&gt;
&lt;BR /&gt;
Track 150 and 350 determine the conditions: if one of the two static routes falls, the connection is switched.&lt;BR /&gt;
&lt;BR /&gt;
(This is the result of track 150 for example which brings together the 100 or the 101)&lt;BR /&gt;
&lt;BR /&gt;
Afterwards, nothing obliged to follow the CISCO concept, we can propose an alternative solution that works well too.&lt;BR /&gt;
&lt;BR /&gt;
Last remark: We have no precise conditions determining what the loss of a static route means, we can fix this in the script&lt;BR /&gt;
&lt;BR /&gt;
Thank you again for your help.&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Feb 2017 15:25:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/configure-ip-sla-pbr/m-p/37488#M7924</guid>
      <dc:creator>SOUILAH_Mohamed</dc:creator>
      <dc:date>2017-02-24T15:25:00Z</dc:date>
    </item>
    <item>
      <title>RE: Configure IP SLA + PBR</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/configure-ip-sla-pbr/m-p/37489#M7925</link>
      <description>Can any one help me please&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Feb 2017 14:51:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/configure-ip-sla-pbr/m-p/37489#M7925</guid>
      <dc:creator>SOUILAH_Mohamed</dc:creator>
      <dc:date>2017-02-28T14:51:00Z</dc:date>
    </item>
    <item>
      <title>RE: Configure IP SLA + PBR</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/configure-ip-sla-pbr/m-p/37490#M7926</link>
      <description>Here is an example where the switch has two paths and if the target address is not reachable for anyone path, that path is removed (the port is disabled). The mechanics should be very similar to what you want to do with the exception that routes would be deleted.&lt;BR /&gt;
&lt;BR /&gt;
While this does not do exactly with what you need, please take a look at this as an example of how scripting like this would work (including the UPM timer mechanism).&lt;BR /&gt;
&lt;BR /&gt;
create upm profile pingchk1set var target 10.0.0.1&lt;BR /&gt;
set var source 10.0.10.1&lt;BR /&gt;
set var gw 10.0.10.2&lt;BR /&gt;
set var gwp 3&lt;BR /&gt;
disable clip&lt;BR /&gt;
set var cli.out 0&lt;BR /&gt;
ping count 2 $target from $source&lt;BR /&gt;
set var s $TCL(split ${cli.out} "\n")&lt;BR /&gt;
set var i $TCL(lsearch $s *0\ packets\ received,*)&lt;BR /&gt;
if ($i &amp;lt; 0) then&lt;BR /&gt;
   disable port $gwp&lt;BR /&gt;
   set var msg $TCL(concat "\"" ""Route failed via gateway"" $gw ""! Disabled port "" $gwp \"" \"")&lt;BR /&gt;
   create log message $msg&lt;BR /&gt;
   unconfig upm timer pingchk1&lt;BR /&gt;
endif&lt;BR /&gt;
.&lt;BR /&gt;
create upm profile pingchk2&lt;BR /&gt;
set var target 10.0.0.1&lt;BR /&gt;
set var source 10.0.20.1&lt;BR /&gt;
set var gw 10.0.20.2&lt;BR /&gt;
set var gwp 2&lt;BR /&gt;
set var cli.out 0&lt;BR /&gt;
ping count 2 $target from $source&lt;BR /&gt;
set var s $TCL(split ${cli.out} ""\n"")&lt;BR /&gt;
set var i $TCL(lsearch $s *0\ packets\ received,*)&lt;BR /&gt;
if ($i &amp;lt; 0) then&lt;BR /&gt;
   disable port $gwp&lt;BR /&gt;
   set var msg $TCL(concat \"" \"" ""Route failed via gateway"" $gw ""! Disabled port "" $gwp \"" \"")&lt;BR /&gt;
   create log message $msg&lt;BR /&gt;
   unconfig upm timer pingchk2&lt;BR /&gt;
endif&lt;BR /&gt;
.&lt;BR /&gt;
create upm timer pingchk1&lt;BR /&gt;
configure upm timer pingchk1 profile pingchk1&lt;BR /&gt;
configure upm timer pingchk1 after 1 every 3&lt;BR /&gt;
create upm timer pingchk2&lt;BR /&gt;
configure upm timer pingchk2 profile pingchk2&lt;BR /&gt;
configure upm timer pingchk2 after 1 every 3&lt;BR /&gt;
&lt;BR /&gt;
"</description>
      <pubDate>Tue, 28 Feb 2017 23:24:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/configure-ip-sla-pbr/m-p/37490#M7926</guid>
      <dc:creator>Matthew_Helm1</dc:creator>
      <dc:date>2017-02-28T23:24:00Z</dc:date>
    </item>
    <item>
      <title>RE: Configure IP SLA + PBR</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/configure-ip-sla-pbr/m-p/37491#M7927</link>
      <description>I can work on a more thorough example that more closely resembles your use case later today.</description>
      <pubDate>Tue, 28 Feb 2017 23:28:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/configure-ip-sla-pbr/m-p/37491#M7927</guid>
      <dc:creator>Matthew_Helm1</dc:creator>
      <dc:date>2017-02-28T23:28:00Z</dc:date>
    </item>
    <item>
      <title>RE: Configure IP SLA + PBR</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/configure-ip-sla-pbr/m-p/37492#M7928</link>
      <description>thanks a lot for your help  I'll try to understand your script and adapt it to my need.  I will come back to you in case of need</description>
      <pubDate>Wed, 01 Mar 2017 22:54:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/configure-ip-sla-pbr/m-p/37492#M7928</guid>
      <dc:creator>SOUILAH_Mohamed</dc:creator>
      <dc:date>2017-03-01T22:54:00Z</dc:date>
    </item>
    <item>
      <title>RE: Configure IP SLA + PBR</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/configure-ip-sla-pbr/m-p/37493#M7929</link>
      <description>Matthew : Can I show you my Script?</description>
      <pubDate>Wed, 05 Apr 2017 15:10:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/configure-ip-sla-pbr/m-p/37493#M7929</guid>
      <dc:creator>SOUILAH_Mohamed</dc:creator>
      <dc:date>2017-04-05T15:10:00Z</dc:date>
    </item>
    <item>
      <title>RE: Configure IP SLA + PBR</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/configure-ip-sla-pbr/m-p/37494#M7930</link>
      <description>My script above needs to be fixed with the $t &amp;lt; 0 changed to $t &amp;gt; -1.&lt;BR /&gt;
&lt;BR /&gt;
This is the script modified for use with routes. Please test this as I have not had a chance to.&lt;BR /&gt;
&lt;BR /&gt;
#pingcheckroute&lt;BR /&gt;
create upm profile pingchk1&lt;BR /&gt;
set var target 10.0.0.1&lt;BR /&gt;
set var source 10.0.10.1&lt;BR /&gt;
set var gw 10.0.10.2&lt;BR /&gt;
disable clip&lt;BR /&gt;
set var cli.out 0&lt;BR /&gt;
ping count 2 $target from $source&lt;BR /&gt;
set var s $TCL(split ${cli.out} "\n")&lt;BR /&gt;
set var i $TCL(lsearch $s *0\ packets\ received,*)&lt;BR /&gt;
if ($i &amp;gt; -1) then&lt;BR /&gt;
   show iproute&lt;BR /&gt;
   set var s $TCL(split ${cli.out} "\n")&lt;BR /&gt;
   set var i $TCL(lsearch $s *Ori*)&lt;BR /&gt;
   set var i ($i + 1)&lt;BR /&gt;
   set var e $TCL(lsearch $s *MOSPF*)&lt;BR /&gt;
   set var e ($e - 1)&lt;BR /&gt;
   while ($i &amp;lt; $e) do&lt;BR /&gt;
      set var l $TCL(lindex $s $i)&lt;BR /&gt;
      set var r $TCL(lindex $l 0)&lt;BR /&gt;
      set var n $TCL(lindex $l 1)&lt;BR /&gt;
      set var g $TCL(lindex $l 2)&lt;BR /&gt;
      set var t $TCL(regexp $g {Route})&lt;BR /&gt;
      if ($t) then&lt;BR /&gt;
         set var g $TCL(lindex $l 3)&lt;BR /&gt;
      endif&lt;BR /&gt;
      set var t $TCL(regexp $g ${gw})&lt;BR /&gt;
      if ($t) then&lt;BR /&gt;
         set var t $TCL(regexp $r {\#\d})&lt;BR /&gt;
         if ($t == 0) then&lt;BR /&gt;
            config iproute delete $n $g&lt;BR /&gt;
         endif&lt;BR /&gt;
      endif&lt;BR /&gt;
      set var i ($i + 1)&lt;BR /&gt;
   endwhile&lt;BR /&gt;
   set var msg $TCL(concat "\"" ""Route failed via gateway"" $gw ""! Removed Routes through this gateway to "" $target \"" \"")&lt;BR /&gt;
   create log message $msg&lt;BR /&gt;
   unconfig upm timer pingchk1&lt;BR /&gt;
endif&lt;BR /&gt;
.&lt;BR /&gt;
create upm profile pingchk2&lt;BR /&gt;
set var target 10.0.0.1&lt;BR /&gt;
set var source 10.0.20.1&lt;BR /&gt;
set var gw 10.0.20.2&lt;BR /&gt;
disable clip&lt;BR /&gt;
set var cli.out 0&lt;BR /&gt;
ping count 2 $target from $source&lt;BR /&gt;
set var s $TCL(split ${cli.out} ""\n"")&lt;BR /&gt;
set var i $TCL(lsearch $s *0\ packets\ received,*)&lt;BR /&gt;
if ($i &amp;gt; -1) then&lt;BR /&gt;
   show iproute&lt;BR /&gt;
   set var s $TCL(split ${cli.out} ""\n"")&lt;BR /&gt;
   set var i $TCL(lsearch $s *Ori*)&lt;BR /&gt;
   set var i ($i + 1)&lt;BR /&gt;
   set var e $TCL(lsearch $s *MOSPF*)&lt;BR /&gt;
   set var e ($e - 1)&lt;BR /&gt;
   while ($i &amp;lt; $e) do&lt;BR /&gt;
      set var l $TCL(lindex $s $i)&lt;BR /&gt;
      set var r $TCL(lindex $l 0)&lt;BR /&gt;
      set var n $TCL(lindex $l 1)&lt;BR /&gt;
      set var g $TCL(lindex $l 2)&lt;BR /&gt;
      set var t $TCL(regexp $g {Route})&lt;BR /&gt;
      if ($t) then&lt;BR /&gt;
         set var g $TCL(lindex $l 3)&lt;BR /&gt;
      endif&lt;BR /&gt;
      set var t $TCL(regexp $g ${gw})&lt;BR /&gt;
      if ($t) then&lt;BR /&gt;
         set var t $TCL(regexp $r {\#\d})&lt;BR /&gt;
         if ($t == 0) then&lt;BR /&gt;
            config iproute delete $n $g&lt;BR /&gt;
         endif&lt;BR /&gt;
      endif&lt;BR /&gt;
      set var i ($i + 1)&lt;BR /&gt;
   endwhile&lt;BR /&gt;
   set var msg $TCL(concat \"" \"" ""Route failed via gateway"" $gw ""! Removed Routes through this gateway to "" $target \"" \"")&lt;BR /&gt;
   create log message $msg&lt;BR /&gt;
   unconfig upm timer pingchk1&lt;BR /&gt;
endif&lt;BR /&gt;
.&lt;BR /&gt;
create upm timer pingchk1&lt;BR /&gt;
configure upm timer pingchk1 profile pingchk1&lt;BR /&gt;
configure upm timer pingchk1 after 1 every 3&lt;BR /&gt;
create upm timer pingchk2&lt;BR /&gt;
configure upm timer pingchk2 profile pingchk2&lt;BR /&gt;
configure upm timer pingchk2 after 1 every 3&lt;BR /&gt;
&lt;BR /&gt;
"</description>
      <pubDate>Wed, 05 Apr 2017 23:49:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/configure-ip-sla-pbr/m-p/37494#M7930</guid>
      <dc:creator>Matthew_Helm1</dc:creator>
      <dc:date>2017-04-05T23:49:00Z</dc:date>
    </item>
    <item>
      <title>RE: Configure IP SLA + PBR</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/configure-ip-sla-pbr/m-p/37495#M7931</link>
      <description>Let me know if you want to get this posted on our GitHub.&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Apr 2017 23:49:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/configure-ip-sla-pbr/m-p/37495#M7931</guid>
      <dc:creator>Drew_C</dc:creator>
      <dc:date>2017-04-05T23:49:00Z</dc:date>
    </item>
    <item>
      <title>RE: Configure IP SLA + PBR</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/configure-ip-sla-pbr/m-p/37496#M7932</link>
      <description>That would benefit to be converted into Python. Can't do it right now, but I'll look into it.</description>
      <pubDate>Wed, 05 Apr 2017 23:49:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/configure-ip-sla-pbr/m-p/37496#M7932</guid>
      <dc:creator>Stephane_Grosj1</dc:creator>
      <dc:date>2017-04-05T23:49:00Z</dc:date>
    </item>
  </channel>
</rss>

