Configuring LAG virtual interface

A LAG virtual interface allows you to enter the LAG virtual interface mode or multi-LAG virtual interface mode. To configure a LAG virtual interface, enter the following commands. All commands applicable on the physical port is available in the LAG virtual interface mode and the same applies for multi-LAG virtual interface commands as well.

  1. Enter the global configuration mode.
    device# configure terminal
  2. Configure a LAG virtual interface which allows you to enter the LAG virtual interface mode or multi-LAG virtual interface mode.
    device(config)# interface lag 11
    device(config-lag-if-lg11)#
    
    The following example shows multi-LAG virtual interface configuration.
    device(config)# interface lag 1 lag 5 lag 2
    device(config-lag-mif-lg1-lg2,lg5)#
    You can configure the properties of the LAG on the LAG virtual interface and the changes made to the LAG virtual interface is propagated to all ports in the LAG.
    The following options are supported under LAG virtual interface.
    device(config-lag-if-lg111)# acl-logging
    device(config-lag-if-lg11)# acl-mirror-port ethernet 3/1/1
    device(config-lag-if-lg11)# authentication
    device(config-lag-if-lg11)# arp inspection trust
    device(config-lag-if-lg11)# bandwidth 10000
    device(config-lag-if-lg11)# broadcast limit 1000 kbps
    device(config-lag-if-lg11)# dhcp snooping trust
    device(config-lag-if-lg11)# dhcp6 snooping trust
    device(config-lag-if-lg11)# dot1x port-control auto
    device(config-lag-if-lg11)# ethernet loopback
    device(config-lag-if-lg11)# ipv6-neighbor inspection trust     
    device(config-lag-if-lg11)# loop-detection
    device(config-lag-if-lg11)# mac filter-group 1
    device(config-lag-if-lg11)# mac-learn-disable
    device(config-lag-if-lg11)# mac-authentication auth-filter 1
    device(config-lag-if-lg11)# max-vlan 16
    device(config-lag-if-lg11)# monitor both
    device(config-lag-if-lg11)# multicast limit 1000 kbps log
    device(config-lag-if-lg11)# openflow enable
    device(config-lag-if-lg11)# packet-inerror-detect 1000
    device(config-lag-if-lg11)# port-name abc
    device(config-lag-if-lg11)# protected-port
    device(config-lag-if-lg11)# pvst-mode 
    device(config-lag-if-lg11)# pvstplus-protect
    device(config-lag-if-lg11)# restart-vsrp-port 10
    device(config-lag-if-lg11)# route-only
    device(config-lag-if-lg11)# source-guard enable
    device(config-lag-if-lg11)# spanning-tree
    device(config-lag-if-lg11)# spanning-tree 802-1w admin-pt2pt-mac
    device(config-lag-if-lg11)# spanning-tree 802-1w admin-edge-port
    device(config-lag-if-lg11)# spanning-tree root-protect
    device(config-lag-if-lg11)# spanning-tree designated-protect
    device(config-lag-if-lg11)# speed-duplex
    device(config-lag-if-lg11)# stp-bpdu-guard
    device(config-lag-if-lg11)# stp-protect
    device(config-lag-if-lg11)# tag-profile enable
    device(config-lag-if-lg11)# trust dscp
    device(config-lag-if-lg11)# unknown-unicast limit 1000 kbps
    device(config-lag-if-lg11)# vlan-config add all-tagged