Configure Replication

Procedure

  1. Enter the global configuration mode.
    device# configure terminal
    device (config)# 
  2. Create an egress port.
    device (config)# egress name
  3. Associate the egress ports or LAG with the egress.
    device(config-egress)# egress name
    device(config-egress)# precedence number interface port-channel number
  4. Configure the egress group within the route-map.
    device(conf)# route-map name permit sequence_number
    device(conf-route-map)# set egress-group name
  5. Add an egress object to the egress-group, pointing to a LAG.
    device (conf-egress-group)# set egress egress-one
    Traffic is forwarded to the LAG and load balanced within the LAG.
  6. Add or remove LAG members as required for load balancing.
    device# configure terminal 
    device(config)# interface ethernet 1/1 
    device(config-if)# channel-group 1 mode on
    device(config-if)# no channel-group 1
  7. Add another egress object to the egress-group.
    device (config)# egress-group name
    device(conf-egress-group)# set egress egress-two
    Traffic is replicated and copies are sent to both egress objects.
  8. Create the required listener policy.
    device (config)# listener-policy { name sequence-id }
  9. Add the required listener policy.
    device (conf-egress-group)# set listener-policy name
    The listener policy is applied based on the egress object.
  10. Configure the encap type.
    encap-type gre
  11. Add a new egress object with single port to the egress-group.
    device (config)# egress-group name
    device (conf-egress-group)# egress egress-three
    This egress object receives plain frames unmodified.

Example

egress toolA

# conf 
(conf)# egress egressA 
(conf-egress)# precedence 10 interface ethernet 0/10 
(conf-egress)# set encap encap-100 
(conf-egress)# set listener-policy lp-100

egress toolB

# conf
(conf)# egress egressB
(conf-egress)# precedence 10 interface ethernet 0/20
(conf-egress)# set encap encap-200
(conf-egress)# set listener-policy lp-100

egress toolC

# conf
(conf)#egress egressC
(conf-egress)# precedence 10 interface ethernet 0/30
(conf-egress)# set encap encap-100
(conf-egress)# set listener-policy lp-200

egress-group (replication)

# conf
(conf)# egress-group groupABC
(conf-egress-group)# egress egressA
(conf-egress-group)# egress egressB
(conf-egress-group)# egress egressC

route-map

(conf)# route-map rmap1 permit 10
(conf-route-map)# match ipv4-acl ipv4_acl1
(conf-route-map)# set egress-group groupABC

ingress-group

device(config)# ingress-group group-1  
device(config-group-1)# set route-map rmap1
show running-config
device# show running-config egress-group 
egress-group groupABC 
  egress egressA 
  egress egressB 
  egress egressC

show egress-group

device# show egress-group groupABC 
    Name : groupABC 
     Description : - 
          egress : egressA  
          egress : egressB 
          egress : egressC