# Configuring Router to Start Mirroring When User Logs On

To configure the router to support user-initiated mirroring, which starts when the user logs in:

1. Configure RADIUS server authentication information in the router. See JunosE Broadband Access Configuration Guide for information.
2. Configure the analyzer interface to send the mirrored traffic to the analyzer device.
   host1(config)#interface fastEthernet 4/0 host1(config-if)#ip analyzer

   Alternatively, for increased security, create the analyzer interface at one end of an IPSec tunnel to the analyzer device.

   host1(config)# interface tunnel ipsec:mirror3 transport-virtual-router default host1(config-if)#ip analyzer host1(config-if)#exit host1(config)#ip route 192.168.99.2 255.255.255.255 tunnel ipsec:mirror3