# Grouping ICR Subscribers Based on S-VLAN IDs

You can group ICR subscribers based on S-VLAN IDs. When you configure an S-VLAN list or S-VLAN range or an S-VLAN and VLAN subinterface pair, you can include any or all of the following keywords:

- Use the control-interface keyword to control the state of the corresponding subinterfaces (up/AdminDown) based on the state of the partition (master or backup). If the subinterfaces are part of the backup partition, the router changes the state of all the subinterfaces to AdminDown.
- Use the use-default-mac keyword to enable the subinterfaces to use the default MAC address instead of the VRRP MAC address. By default, subinterfaces use the virtual MAC address of the associated VRRP instance.
- Use the advertise-mac keyword to enable the subinterfaces to transmit gratuitous ARP (GARP) advertisements when the ICR partition moves from the backup state to the master state.

| Note: If you attempt to bring up tunneled subscribers on ACI-based VLAN subinterfaces on LAC devices with subscriber groups that are based on S-VLAN IDs (using the ip vrrp vrid icr-partition group svlan command on S-VLAN subinterfaces), the VLAN subinterface does not come up and a log message to denote its down state is not generated. If you attempt to bring up tunneled subscribers on ACI-based VLAN subinterfaces on LAC devices with subscriber groups that are based on VLAN IDs (using the ip vrrp vrid icr-partition group vlan command on VLAN subinterfaces), the subscribers over tunnels are brought up. However, on the LAC device, the subscribers are logged in outside of the ICR partition. This behavior is expected when attempts are made to log in tunneled subscribers over ACI-based VLAN subinterfaces configured with ICR partitions with VLAN-based grouping or S-VLAN based grouping.

To group ICR subscribers based on S-VLAN IDs:

1. Specify svlan as the grouping type.
   host1(config-if)#ip vrrp 1 icr-partition group svlan

   The default grouping option is S-VLAN. If you do not explicitly specify the grouping option, the subscribers are grouped based on S-VLAN.

2. Add S-VLAN subinterfaces to the ICR partition by doing either of the following:
   - Specify the S-VLAN IDs individually by using the svlan-list keyword. In the following example, you add individual S-VLAN subinterfaces by specifying each S-VLAN ID.
     host1(config-if)#ip vrrp 1 icr-partition svlan-list 100 102 105 108 114 125 control-interface advertise-mac
   - Specify the starting ID and ending ID of the range of S-VLAN subinterfaces. In the following example, you specify the first and the last ID of the range because the IDs are in sequential order.
     host1(config-if)#ip vrrp 1 icr-partition svlan-range 100 110 control-interface advertise-mac
3. (Optional) Add an S-VLAN and VLAN subinterface pair to the ICR partition.
   host1(config-if)#ip vrrp 1 icr-partition svlan-list-explicit 120 1 120 2 control-interface advertise-mac

   | Note: To enable the new master router to send PPPoE Active Discovery Termination (PADT) packets to the clients and create new sessions for the PPPoE subscribers, you must create a dummy IP interface for each S-VLAN that is part of the ICR partition.

4. (Optional) Configure additional S-VLAN subinterfaces by completing Steps 2 and 3 using unique numbering.

#### Related Documentation

- Grouping ICR Subscribers Based on VLAN IDs
- Monitoring the Configuration of an ICR Partition Attached to an Interface
- ip vrrp icr-partition group
- ip vrrp icr-partition svlan-list
- ip vrrp icr-partition svlan-list explicit
- ip vrrp icr-partition svlan-range