Subscriber Management Procedure
Figure 15 shows a subscriber management environment that includes an external DHCP server, a RADIUS server, the SRC software, and the DHCP external server application running on the E-series router.
The E-series router DHCP external server application is used with other JUNOSe features to provide subscriber management. Using the router's DHCP external server application for subscriber management enables you to take advantage of the following features:
- Profile assignmentA dynamic subscriber interface profile is associated with a specific source address by the router's packet detect feature.
- Dynamic subscriber interface packet detection and inactivity timerSubscriber interfaces are dynamically created based on packet information that is identified by the packet detection feature. The inactivity timer determines when a dynamic subscriber interface expires and needs to be deleted.
- DHCP external server applicationDHCP packets are examined to determine the state of subscribers.
![]()
In Figure 15, the subscriber requests an address from the DHCP server. The E-series router DHCP external server application monitors all DHCP communications between the subscriber and the DHCP server. After the subscriber receives an IP address, the subscriber can access the Internet and use the value-added services provided by the SRC software. The following list describes the various procedures performed in the subscriber management environment:
- Identifies the subscriber's IP address, MAC address, giaddr, and client identifier
- Extracts the lease time, creates a shadow lease, and starts its own lease timer that is associated with the subscriber
- Determines the subscriber is active when the subscriber sends a packet after receiving an IP address from DHCP. The router then:
- Processes the subscriber's IP address by using a route map
- Extracts the dynamic subscriber interface profile (optional)
The router uses the profile to provide authentication, authorization, accounting, and address assignment. RADIUS uses the profile to obtain information for the subscriber's IP interface.
- If the SRC software is configured, the router also alerts the SRC software that the subscriber's DSI and address exist.
- The DHCP external server application continues to monitor all traffic between the subscriber and the DHCP server, and periodically resets the shadow lease it originally created when the subscriber first requested an IP address. When the subscriber disconnects, the shadow lease eventually expires, at which time the E-series router performs the following:
- Deletes the DSI
- Alerts the SRC software that the DSI has been deleted
- Alerts the SRC software that the subscriber's address has been deleted
Configuring Subscriber Management with an External DHCP Server
To configure subscriber management for clients by using an external DHCP server, as in Figure 15, use the following procedure on E-series routers:
- Enable the DHCP external server application.
host1(config)#service dhcp-external- Specify each DHCP server for which to monitor traffic. You can specify a maximum of four DHCP servers.
host1(config)#ip dhcp-external server-address 10.10.10.1- Configure a default policy for subscribers, using a previously configured classifier group.
host1(config)#ip policy-list filterAllhost1(config-policy-list)#classifier-group filterGroupAhost1(config-policy-list-classifier-group)#filterhost1(config-policy-list-classifier-group)#exithost1(config-policy-list)#exit- Configure a dynamic subscriber interface policy.
host1(config)#profile disableUserhost1(config-profile)#ip policy input filterAllhost1(config-profile)#ip policy output filterAllhost1(config-profile)#exit- Configure a route map.
host1(config)#route-map routeMapWest21host1(config-route-map)#set ip interface-profile disableUserhost1(config-route-map)#exit- Enable autoconfiguration mode.
host1(config)#interface gigabitEthernet 12/0host1(config-if)#ip address 192.168.1.1 255.255.255.0host1(config-if)#ip auto-configure ip-subscriber include-primaryhost1(config-if)#ip route-map ip-subscriber routeMapWest21host1(config-if)#ip auto-detect ip-subscriberhost1(config-profile)#exit