User Tools

Site Tools


flex_links_are_a_pair_of_a_layer_2_interfaces

Flex Links

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3550/software/release/12-2_25_see/configuration/guide/swflink.html

Flex links are Layer-2 interfaces manually configured in primary/failover pairs. The Spanning Tree Protocol (STP, discussed in Chapter 8) normally provides primary/failover functionality, but it was designed for the sole purpose of preventing loops. Flex links ensure that there are backup links for primary links. Only one of the links in a flex-link pair will be forwarding traffic at any time.

Flex links are designed for, and should be used only on, switches that do not run spanning tree. Should flex links be configured on a switch running spanning tree, the flex links will not participate in STP.

Flex links are configured on the primary interface by specifying the backup interface with the switchport backup interface command:

  • interface GigabitEthernet1/0/20
  • switchport access vlan 10
  • switchport backup interface Gi1/0/21
  • !
  • interface GigabitEthernet1/0/21
  • switchport access vlan 10
  • No configuration is necessary on the backup interface.

Neither of the links can be an interface that is a member of an EtherChannel. An EtherChannel can be a flex-link backup for another port channel. A single physical interface can be a backup to an EtherChannel as well. The backup link does not need to be the same type of interface as the primary. For example, a 100 Mbps interface can be a backup for a 1 Gbps interface.

Monitor flex links with the show interface switchport backup command:

ws-c2960s-24ts-l Live example as below :

Flex Links are a pair of a Layer 2 interfaces (ports or port channels), where one interface is configured to act as a backup to the other. Flex Links are typically configured in service-provider or enterprise networks where customers do not want to run STP.

  • interface GigabitEthernet1/0/3
  • description ISN_PRIMARY_PORT
  • switchport access vlan 98
  • switchport mode access
  • switchport backup interface Gi1/0/4
  • switchport backup interface Gi1/0/4 preemption mode forced
  • switchport backup interface Gi1/0/4 preemption delay 30
  • spanning-tree bpdufilter enable
  • !
  • interface GigabitEthernet1/0/4
  • description ISN_BACKUP_PORT
  • switchport access vlan 98
  • switchport mode access
  • spanning-tree bpdufilter enable

Spanning Tree

flex_links_are_a_pair_of_a_layer_2_interfaces.txt · Last modified: 2023/03/06 11:31 by 127.0.0.1