March, 2009

Effect of redistributed connected on RIP metrics

Came across an interesting post on Groupstudy awhile back (sorry I don’t have the link to it)

==========================================================

RIP speakers tell their neighbors what metric to install in their routing tables.  So, for example, if a RIP speaker advertises some directly connected interface, it doesn’t advertise a metric of zero – it advertises a metric of one.  And since on the router on which you’re configuring the redistribution already has the redistributed routes via whatever it is you’re redistributing from, the metric value you use in the ‘redistribute’ command has no local significance.  So the value that you configure is the value you want to tell your RIP “neighbors” to install in their routing
tables.

—–Original Message—–
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of ccie preparation
Sent: Saturday, February 14, 2009 12:28 PM
To: Cisco certification
Subject: RIP metric

Folks,
I have 4 lookbacks that i created on one router. I redistribute the loopbacks in the rip process with a metric of 3. When I go to the adjoinging router which is also running RIP, I see that the metric is still 3. Shouldn’t the router redistributing the loopbacks into RIP increment the metric by 1 before forwarding the updates to the adjoining router?

Any help would be appreciated?
Thanks

Blogs and organic groups at http://www.ccie.net

=========================================================

Now this is interesting because as we know, a router running RIP normally will increment the metric of a route by 1 before sending it to a neighbor.
However when a router is redistributing a connected route into RIP, as mentioned above, the metric specified in the redistribute command does look to be what is advertised to a neighboring RIP router.

Let’s refer back to my original simple topology:

Now for R1, instead of having a RIP network statement for Lo0 (1.1.1.1), let§s remove it and instead redistribute it into RIP with a metric of 3.

  • R1(config-router)#no net 1.0.0.0
    R1(config-router)#redistribute connected metric 3
  • R1#sh ip rip d 1.1.1.1 255.255.255.255
    1.1.1.1/32    redistributed
    [3] via 0.0.0.0,

Now lets see what metric R1 advertises to R2:

  • R1#
    *Mar  1 01:45:17.031: RIP: sending v2 update to 224.0.0.9 via FastEthernet0/0 (10.0.12.1)
    *Mar  1 01:45:17.031: RIP: build update entries
    *Mar  1 01:45:17.031:   1.1.1.1/32 via 0.0.0.0, metric 3, tag 0

Cool.

Now we can have R2 request a full routing table (RIP routes) from its neighbors by issuing clear ip route *.
This is a very useful command whenever you want to quicken the receipt of updated RIP routing info, rather than waiting :)

  • R2#clear ip route *
    R2#sh ip ro 1.1.1.1
    Routing entry for 1.1.1.1/32
    Known via “rip”, distance 120, metric 3
    Redistributing via rip
    Last update from 10.0.12.1 on FastEthernet0/0, 00:00:08 ago
    Routing Descriptor Blocks:
    * 10.0.12.1, from 10.0.12.1, 00:00:08 ago, via FastEthernet0/0
    Route metric is 3, traffic share count is 1

Sure enough, R2 has a metric of 3 for 1.1.1.1/32.
Normal rules apply when R3 then advertises 1.1.1.1/32 to R3:

  • R3#sh ip ro 1.1.1.1
    Routing entry for 1.1.1.1/32
    Known via “rip”, distance 120, metric 4
    Redistributing via rip
    Last update from 10.0.23.2 on FastEthernet0/0, 00:00:09 ago
    Routing Descriptor Blocks:
    * 10.0.23.2, from 10.0.23.2, 00:00:09 ago, via FastEthernet0/0
    Route metric is 4, traffic share count is 1

Naturally, if we also apply an offset-list to R1 to increase the metric of all routes R1 advertises to R2 by 7, then R2 will have the route to 1.1.1.1/32 with metric 10:

  • R1(config-router)#offset-list 0 out 7 f0/0
    R1(config-router)#^Z
  • R2#clear ip route *
    R2#sh ip ro 1.1.1.1
    Routing entry for 1.1.1.1/32
    Known via “rip”, distance 120, metric 10
    Redistributing via rip
    Last update from 10.0.12.1 on FastEthernet0/0, 00:00:04 ago
    Routing Descriptor Blocks:
    * 10.0.12.1, from 10.0.12.1, 00:00:04 ago, via FastEthernet0/0
    Route metric is 10, traffic share count is 1

Now you may ask: what if NO metric is specified  in the redistribute connected statement? What metric does R1 advertise to R2 then?
The answer is 1 :)

  • R1(config)#router rip
    R1(config-router)#no offset-list 0 out 7 f0/0
    R1(config-router)#no redistribute connected metric 3
    R1(config-router)#redistribute connected
    R1(config-router)#^Z
  • R2#sh ip ro 1.1.1.1
    Routing entry for 1.1.1.1/32
    Known via “rip”, distance 120, metric 1
    Redistributing via rip
    Last update from 10.0.12.1 on FastEthernet0/0, 00:00:27 ago
    Routing Descriptor Blocks:
    * 10.0.12.1, from 10.0.12.1, 00:00:27 ago, via FastEthernet0/0
    Route metric is 1, traffic share count is 1

Thats it :)
The above behaviour is important to bear in mind if you are ever asked in a lab task to ensure that R2 eg, receives a route from R1 with a specific RIP metric, and the route in question is one that R1 redistributed into RIP.

Hope this helps.

Simple RIP metrics & offset-list scenario

Was having a discussion with a colleague of mine (Chirag) who thought that a RIP router increments the metric of a route upon receipt of said route from a neighbor.
This one is for you man :)

Consider the following simple topology:

To save time, apply the following config to all routers:

  • router rip
  • no auto
  • ver 2
  • net 10.0.0.0
  • net 1.0.0.0
  • net 2.0.0.0
  • net 3.0.0.0

The net 1.0.0.0 only applies to R1, as it has no interfaces in 2.0.0.0 & 3.0.0.0, etc for R2 and R3.

Now R1 advertises its directly connected network 1.1.1.1/32 to R2 with a metric of 1.
R2 receives this route from R1, and when it comes time to advertise it to R3, R2 increments the metric by 1, so R2 is advertising 1.1.1.1/32 to R3 with metric of 3.

A debug ip rip on R1 and R2 shows this:

  • R1#
    *Mar  1 00:31:15.671: RIP: sending v2 update to 224.0.0.9 via FastEthernet0/0 (10.0.12.1) <== sending to R2
    *Mar  1 00:31:15.671: RIP: build update entries
    *Mar  1 00:31:15.671:   1.1.1.1/32 via 0.0.0.0, metric 1, tag 0
  • R2#
    *Mar  1 00:32:36.407: RIP: received v2 update from 10.0.12.1 on FastEthernet0/0
    *Mar  1 00:32:36.407:      1.1.1.1/32 via 0.0.0.0 in 1 hops
    R2#
    *Mar  1 00:32:43.675: RIP: sending v2 update to 224.0.0.9 via FastEthernet0/1 (10.0.23.2) <== sending to R3
    *Mar  1 00:32:43.675: RIP: build update entries
    *Mar  1 00:32:43.675:   1.1.1.1/32 via 0.0.0.0, metric 2, tag 0
    *Mar  1 00:32:43.679:   2.2.2.2/32 via 0.0.0.0, metric 1, tag 0
    *Mar  1 00:32:43.679:   10.0.12.0/24 via 0.0.0.0, metric 1, tag 0

Hence R3 sees the metric to reach 1.1.1.1/32 as 2:

  • R3#sh ip ro 1.1.1.1
    Routing entry for 1.1.1.1/32
    Known via “rip”, distance 120, metric 2
    Redistributing via rip
    Last update from 10.0.23.2 on FastEthernet0/0, 00:00:24 ago
    Routing Descriptor Blocks:
    * 10.0.23.2, from 10.0.23.2, 00:00:24 ago, via FastEthernet0/0
    Route metric is 2, traffic share count is 1

    R3#sh ip rip d 1.1.1.1 255.255.255.255
    1.1.1.1/32
    [2] via 10.0.23.2, 00:00:07, FastEthernet0/0

Now a quick look at offset lists.
If we apply an offset list on R1 out f0/0 to R2 with an offset metric of, say 14, and apply it to ACL 0  (i.e ALL routes).
What will happen is that R1 will add the offset metric of 14 to the metric of 1 for the route 1.1.1.1/32 that it is advertising out f0/0, so R1 will advertise a metric of 15 for 1.1.1.1/32.
Lets see this in operation:

  • R1(config-router)#offset-list ?
    <0-99>       Access list of networks to apply offset (0 selects all networks)
    <1300-1999>  Access list of networks to apply offset (expanded range)
    WORD         Access-list name

    R1(config-router)#offset-list 0 out 14 f0/0

Now checking the output of debug ip rip on R1:

  • R1#
    *Mar  1 00:40:58.871: RIP: sending v2 update to 224.0.0.9 via FastEthernet0/0 (10.0.12.1)
    *Mar  1 00:40:58.871: RIP: build update entries
    *Mar  1 00:40:58.871:   1.1.1.1/32 via 0.0.0.0, metric 15, tag 0

R2 will hence install 1.1.1.1/32 into its RIB with a metric of 15:

  • R2#sh ip ro 1.1.1.1
    Routing entry for 1.1.1.1/32
    Known via “rip”, distance 120, metric 15
    Redistributing via rip
    Last update from 10.0.12.1 on FastEthernet0/0, 00:00:27 ago
    Routing Descriptor Blocks:
    * 10.0.12.1, from 10.0.12.1, 00:00:27 ago, via FastEthernet0/0
    Route metric is 15, traffic share count is 1

R2 will then increment the metric by 1 when advertising 1.1.1.1/32 to R3, in essence advertising an inaccessible route (metric 16) to R3:

  • R2#
    *Mar  1 00:42:49.083: RIP: sending v2 update to 224.0.0.9 via FastEthernet0/1 (10.0.23.2)
    *Mar  1 00:42:49.083: RIP: build update entries
    *Mar  1 00:42:49.083:   1.1.1.1/32 via 0.0.0.0, metric 16, tag 0

R3 sends a poison reverse back to R2 for 1.1.1.1/32 with metric of 16, & removes the route from its RIB:

  • R3#
    *Mar  1 00:47:49.459: RIP: received v2 update from 10.0.23.2 on FastEthernet0/0
    *Mar  1 00:47:49.459:      1.1.1.1/32 via 0.0.0.0 in 16 hops  (inaccessible)
    R3#debug ip
    *Mar  1 00:47:51.463: RIP: sending v2 flash update to 224.0.0.9 via Loopback3 (3.3.3.3)
    *Mar  1 00:47:51.463: RIP: build flash update entries
    *Mar  1 00:47:51.463:   1.1.1.1/32 via 0.0.0.0, metric 16, tag 0
  • R3#sh ip ro 1.1.1.1
    % Network not in table

That concludes with tutorial.

Flex Links Scenario

Well I’m back with another post to prove that I am in fact, still alive :)
I have been busy studying pretty much…it’s a long road, but I’m starting to see some light at the end of the tunnel.
Anyway, enough waffling and onto flex links.
Consider the following simple topology:
R1 f0/0 (155.1.100.1) — f0/1 SW1 == f0/13 & f0/14 == SW2 f0/2 — (155.1.100.2) f0/0 R2
SW1 & SW2 are trunked using 802.1q
R1 f0/0 & R2 f0/0 are both in VLAN 1.
R1 f0/0 has configured MAC address: 0000.0000.0001 (to make life easier)

Basic Configuration

The scenario here will be:
  • Configure flex link on SW1, with f0/14 backing up f0/13.
  • Should f0/13 fail, f0/14 is to immediately take over the forwarding of traffic between R1 & R2
Now currently whenever you have 2 trunk links between the same 2 switches, one of the 2 interfaces will be blocking to avoid an STP loop.
SW1 is the Root Bridge for all currently active VLANs:
  • Rack1SW1#sh span sum | i Root
    Root bridge for: VLAN0001, VLAN0100-VLAN0102
Hence SW1 f0/13 & f0/14 will be forwarding for all vlans:
  • Rack1SW1#sh span int f0/13

    Vlan                Role Sts Cost      Prio.Nbr Type
    ——————- —- — ——— ——– ——————————–
    VLAN0001            Desg FWD 19        128.15   P2p
    VLAN0100            Desg FWD 19        128.15   P2p
    VLAN0101            Desg FWD 19        128.15   P2p
    VLAN0102            Desg FWD 19        128.15   P2p
    Rack1SW1#sh span int f0/14

    Vlan                Role Sts Cost      Prio.Nbr Type
    ——————- —- — ——— ——– ——————————–
    VLAN0001            Desg FWD 100       128.16   P2p
    VLAN0100            Desg FWD 100       128.16   P2p
    VLAN0101            Desg FWD 100       128.16   P2p
    VLAN0102            Desg FWD 100       128.16   P2p

SW2 is blocking all vlans on port f0/14:
  • Rack1SW2#sh span int f0/13

    Vlan                Role Sts Cost      Prio.Nbr Type
    ——————- —- — ——— ——– ——————————–
    VLAN0001            Root FWD 19        128.15   P2p
    VLAN0100            Root FWD 19        128.15   P2p
    VLAN0101            Root FWD 19        128.15   P2p
    VLAN0102            Root FWD 19        128.15   P2p
    Rack1SW2#sh span int f0/14

    Vlan                Role Sts Cost      Prio.Nbr Type
    ——————- —- — ——— ——– ——————————–
    VLAN0001            Altn BLK 19        128.16   P2p
    VLAN0100            Altn BLK 19        128.16   P2p
    VLAN0101            Altn BLK 19        128.16   P2p
    VLAN0102            Altn BLK 19        128.16   P2p

Lets issue a ping from R1 to R2 for SW2 to learn R1s mac address:

  • Rack1R1#ping 155.1.100.2

    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 155.1.100.2, timeout is 2 seconds:
    .!!!!
    Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/4 ms

As a result of SW2 f0/14 blocking, SW2 learns the MAC address of R1 on SW2 f0/13:

  • Rack1SW2#sh mac address-table | i 0000.0000.0001
    1    0000.0000.0001    DYNAMIC     Fa0/13
Ok, now pay attention to the fact that SW2 f0/14 is blocking for all vlans. This status will change soon enough once we configure flex links.
We will configure flex link feature on SW1
  • Rack1SW1(config-if)#switchport backup interface f0/14
    *Mar  1 01:11:00.531: %SPANTREE-6-PORTDEL_ALL_VLANS: FastEthernet0/13 deleted from all Vlans
    *Mar  1 01:11:00.531: %SPANTREE-6-PORTDEL_ALL_VLANS: FastEthernet0/14 deleted from all Vlans
    Rack1SW1(config)#mac address-table move update ?
    receive   Receive keyword
    transmit  Transmit keyword

    Rack1SW1(config)#mac address-table move update transmit

Note above the vlan deletion…f0/13 & f0/14 no longer participate in STP.
If SW1 f0/13 goes down, the mac address-table move update transmit is needed on SW1 to notify SW2 that the mac address of R1 should straight away be learned on SW2 f0/14 rather than F0/13.
Note, we also need to enable mac address-table move update receive on SW2 for SW2 to be able to process the transmitted move update from SW1:
  • Rack1SW2(config)#mac address-table move update receive
Now if we check SW2 we see that int f0/14 is now forwarding.
  • Rack1SW2#sh span int f0/13

    Vlan                Role Sts Cost      Prio.Nbr Type
    ——————- —- — ——— ——– ——————————–
    VLAN0001            Desg FWD 19        128.15   P2p
    VLAN0100            Desg FWD 19        128.15   P2p
    VLAN0101            Desg FWD 19        128.15   P2p
    VLAN0102            Desg FWD 19        128.15   P2p
    Rack1SW2#sh span int f0/14

    Vlan                Role Sts Cost      Prio.Nbr Type
    ——————- —- — ——— ——– ——————————–
    VLAN0001            Desg FWD 19        128.16   P2p
    VLAN0100            Desg FWD 19        128.16   P2p
    VLAN0101            Desg FWD 19        128.16   P2p
    VLAN0102            Desg FWD 19        128.16   P2p

We have effectively disabled STP from running when we configured flex links on SW1, so no worries about an STP loop.
OK cool, now to test whether things work.
Lets do the following test:
  • Run an extended ping from R1 to R2
  • Shut down SW1 f0/13
  • See how long it takes for SW2 to learn R1s mac address on SW2 f0/14
Extended ping:
  • Rack1R1#ping ip 155.1.100.2 repeat 1000000000
  • Type escape sequence to abort.
    Sending 1000000000, 100-byte ICMP Echos to 155.1.100.2, timeout is 2 seconds:
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Now while this was running, I shut fown SW1 f0/13.
  • Rack1SW1(config)#int f0/13
    Rack1SW1(config-if)#sh
IMMEDIATELY, SW2 learned the MAC address of R1 on F0/14, even before SW2 f0/13 had a chance to go down :)
  • Rack1SW2#sh mac address-table | i 0000.0000.0001
    1    0000.0000.0001    DYNAMIC     Fa0/13
    Rack1SW2#sh mac address-table | i 0000.0000.0001
    1    0000.0000.0001    DYNAMIC     Fa0/14
    Rack1SW2#
    *Mar  1 01:39:38.980: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/13, changed state to down
    Rack1SW2#
    *Mar  1 01:39:39.995: %LINK-3-UPDOWN: Interface FastEthernet0/13, changed state to down
There was 1 ping dropped this transition, but that was it…
  • !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Sweet feature :)
Rechecking the current status of flex link:
  • Rack1SW1#sh int switchport backup det
  • Switch Backup Interface Pairs:
  • Active Interface        Backup Interface        State
    ————————————————————————
    FastEthernet0/13        FastEthernet0/14        Active Down/Backup Up
    Preemption Mode  : off
    Multicast Fast Convergence  : Off
    Bandwidth : 100000 Kbit (Fa0/13), 100000 Kbit (Fa0/14)
    Mac Address Move Update Vlan : auto

Preemption

Now the problem with flex links in their default state is that there is no preemption, as seen by the “Preemption Mode  : off” above.
Say we wanted SW1 f0/13 to resume its active role a certain time after f0/13 restored.
Our options are as follows:
  • Rack1SW1(config)#int f0/13
    Rack1SW1(config-if)#switchport backup interface f0/14 preemption mode ?
    bandwidth  higher bandwidth interface preferred
    forced     active interface preferred
    off        turn off preemption
Now f0/13 & f0/14 have the same bandwidth (100Meg), so unless we modify the interface bandwidth of f0/13 to be higher than f0/14 that option wont work.
What we can do without bandwidth modification is use the forced option, with a preemption delay of 20 secs:
  • Rack1SW1(config-if)#switchport backup interface f0/14 preemption mode forced
  • Rack1SW1(config-if)#switchport backup interface f0/14 preemption delay ?
    <1-300>  preemption delay in seconds
  • Rack1SW1(config-if)#switchport backup interface f0/14 preemption delay 20
On SW1 we can see that 20 secs after we bring up F0/13, the preemption kicks in:
  • Rack1SW1(config-if)#int f0/13
    Rack1SW1(config-if)#no sh
    Rack1SW1(config-if)#
    *Mar  1 02:03:17.653: %LINK-3-UPDOWN: Interface FastEthernet0/13, changed state to up
    Rack1SW1(config-if)#
    *Mar  1 02:03:21.201: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/13, changed state to up
    Rack1SW1(config-if)#
    *Mar  1 02:03:37.215: %BACKUP_INTERFACE-5-PREEMPT: Preempting interface Fa0/14 in backup pair (Fa0/13, Fa0/14), preemption mode is forced
Of course, checking SW2 we see that its now learning R1’s mac address on f0/13 again:
  • Rack1SW2#sh mac address-table | i 0000.0000.0001
    1    0000.0000.0001    DYNAMIC     Fa0/13

VLAN Load Balancing

If we check SW1 we see that only f0/13 is forwarding traffic for all vlans:
  • Rack1SW1#sh int tru | b span
    Port        Vlans in spanning tree forwarding state and not pruned
    Fa0/13      1,100-102
    Fa0/14      none
Say we wanted to load balance across f0/13 & f0/14, with:
  • vlans 1 & 100 using f0/13
  • vlans 101 & 102 using f0/14
We can do this with flex links:
  • Rack1SW1(config-if)#switchport backup interface f0/14 prefer ?
    vlan  Preferred vlans on the backup interface for load-balancing
  • Rack1SW1(config-if)#switchport backup interface f0/14 prefer vlan ?
    WORD  VLAN IDs 1-4094
  • Rack1SW1(config-if)#switchport backup interface f0/14 prefer vlan 101-102
    %Warning: Flexlink Vlan Load-Balancing is not allowed on non-trunk ports. Please configure Fa0/13 to be a trunk port.
  • %Warning: Flexlink Vlan Load-Balancing is not allowed on non-trunk ports. Please configure Fa0/14 to be a trunk port.
Ah…I didnt configure SW1 F0/13 & F0/14 as static trunk links…
Lets do that now:
  • Rack1SW1(config)#int range f0/13-14
    Rack1SW1(config-if-range)#sw trunk encapsulation dot1q
    Rack1SW1(config-if-range)#sw mode trunk
Now can we configure load balancing?
  • Rack1SW1(config)#int f0/13
    Rack1SW1(config-if)#switchport backup interface f0/14 prefer vlan 101-102
    %ERROR: Vlan load-balancing cannot co-exist with Premmption.
    %ERROR: Please unconfigure Preemption before enabling again.
Nope :)
The reason preemption cant coexist with load balancing is because with load balancing, if f0/13 was to fail, ALL vlans 1,100-102 would run over f0/14.
If f0/13 comes back up, then vlans 1 & 100 would resume running over f0/13, without any preemption configured.
So lets disable preemption & enable load balancing:
  • Rack1SW1(config-if)#no switchport backup interface f0/14 preemption mode forced
  • Rack1SW1(config-if)#no switchport backup interface Fa0/14 preemption delay 20
  • Rack1SW1(config-if)#switchport backup interface f0/14 prefer vlan 101-102
    Rack1SW1(config-if)#
Now checking trunking we see that f0/14 is now forwarding for vlans 101 & 102:
  • Rack1SW1#sh int tru | b span
    Port        Vlans in spanning tree forwarding state and not pruned
    Fa0/13      1,100
    Fa0/14      101-102
I assume VLB stands for VLAN Load balancing below:
  • Rack1SW1#sh int switchport backup det
  • Switch Backup Interface Pairs:
  • Active Interface        Backup Interface        State
    ————————————————————————
    FastEthernet0/13        FastEthernet0/14        Active VLB cfg/Backup VLB cfg
    Vlans Preferred on Active Interface: 1-100,103-4094
    Vlans Preferred on Backup Interface: 101-102
    Preemption Mode  : off
    Preemption Delay : 35 seconds (default)
    Multicast Fast Convergence  : Off
    Bandwidth : 100000 Kbit (Fa0/13), 100000 Kbit (Fa0/14)
    Mac Address Move Update Vlan : auto
Now lets admin down SW1 f0/13 & check status:
  • Rack1SW1(config)#int f0/13
    Rack1SW1(config-if)#sh
SW1 f0/14 is now forwarding for vlans 1,100 (taken from f0/13), in addition to 101 & 102:
  • Rack1SW1#sh int tru | b span
    Port        Vlans in spanning tree forwarding state and not pruned
    Fa0/14      1,100-102
And of course SW2 learns the MAC address of R1 on f0/14:
  • Rack1SW2#sh mac address-table | i 0000.0000.0001
    1    0000.0000.0001    DYNAMIC     Fa0/14
And thats that.
There are some other config options for switchport backup interface: multicast fast-convergence & mmu primary vlan, so refer to the config guide & command reference for explanation into those commands.
Navigation
  • Catalyst 3560 Command Reference – switchport backup interface <=== has a lot of examples on flex links
  • Cat 3560 Config Guide – Configuring Flex Links and the MAC Address-Table Move Update Feature