Configuring an Ethernet Segment

Ethernet Segment (ES) type, redundancy mode, and a LAG type can be configured for an ES for a Layer 2 Virtual Private Network (L2VPN) using Ethernet Virtual Private Network (EVPN).

The following task configures an ES as type 0, with a dynamic LAG, to operate in all-active mode (so that all links within the ES are operational).

  1. Enter global configuration mode.
    device# configure terminal
  2. Configure a dynamic LAG.
    device(config)# lag 100 dynamic id 100
    A dynamic LAG with an ID of 100 is created.
  3. Return to global configuration mode.
    device(config-lag-100)# exit
  4. Enter EVPN configuration mode.
    device(config)# l2vpn evpn
  5. Configure an ES.
    device(config-evpn)# ethernet-segment 1
    device(config-evpn-es-1)#
    An ES is configured and ES configuration mode is enabled.
  6. Configure an ES type.
    device(config-evpn-es-1)# es-type type-0 11:22:33:44:55:66:77:88:99 4444.5555.6666 100
    An ES type 0 is configured. A local discriminator (11:22:33:44:55:66:77:88:99) is configured, and a MAC address (4444.5555.6666) is specified. The local discriminator value for ES value is set to 100. These identifiers uniquely identify the ES type 0 within the network configuration.
  7. Associate a LAG with the ES.
    device(config-evpn-es-1)# lag 100
    Associates the ES with the previously configured dynamic LAG.
  8. Configure the redundancy mode for the ES.
    device(config-evpn-es-1)# redundancy-mode all-active
    The ES is configured to operate in all-active mode so that all links within the ES are operational.

The following example configures ES as ES type 0. A dynamic LAG is configured for the ES and the ES is configured to operate in all-active mode so that all links within the ES are operational.

device# configure terminal
device(config)# lag 100 dynamic id 100
device(config-lag-100)# exit
device(config)# l2vpn evpn
device(config-evpn)# ethernet-segment 1
device(config-evpn-es-1)# es-type type-0 11:22:33:44:55:66:77:88:99 4444.5555.6666 100
device(config-evpn-es-1)# lag 100
device(config-evpn-es-1)# redundancy-mode all-active