# Limiting Active Subscribers

You can limit the number of active subscribers on a port or virtual router.

aaa subscriber limit per-port

- Use to limit the number of active subscribers permitted on a port.
- Example
  host1(config)#aaa subscriber limit per-port 2/0 20
- Use the no version to return to the default value, 0 (zero).
- See aaa subscriber limit per-port

aaa subscriber limit per-vr

- Use to limit the number of active subscribers permitted on a virtual router.
- Because profiles are applied to subscribers after the PPP authentication phase, subscribers that have their VR context specified by profiles are not denied access. Instead, when IP notifies AAA of the subscribers VR context, AAA checks limits. If the subscriber exceeds the VR limit, AAA revokes the subscriber’s access and logs out the subscriber.
- Example
  host1:vr17(config)#aaa subscriber limit per-vr 20
- Use the no version to return to the default value, 0 (zero).
- See aaa subscriber limit per-vr