# Before You Configure the Mobile IP Home Agent

Before you can configure the Mobile IP home agent on a virtual router, perform the following tasks:

1. Create a virtual router to enable the Mobile IP license.
2. (Optional) Configure the access list for filtering foreign agents.
3. Configure an IP interface, which is used as the care-of address.
4. Configure the router ID of the virtual router, which becomes the home agent IP address.
5. (Optional) Configure the B-RAS license.
6. (Optional) Configure a RADIUS authentication server on the router.
7. (Optional) Configure a RADIUS accounting server on the router.
8. Configure a loopback interface to be used as the primary interface for a tunnel.
9. Configure an interface profile for mobile host associations.
10. Configure a destination profile for dynamic GRE or DVMRP tunnels, as described in Configuring Dynamic IP Tunnels .

The following example illustrates this procedure:

! Create a virtual router.host1(config)#virtual-router test ! Configure an access list.host1:test(config)#access-list test deny ip host 100.1.1.3 any log ! Configure an IP interface.host1:test(config)#interface loopback 0 host1:test(config-if)#ip address 10.10.10.1 255.255.255.255 ! Configure the IP router ID.host1:test(config)#ip router-id 10.10.10.1 ! Configure the B-RAS license.host1:test(config)#license b-ras demo ! Configure an authentication server.host1:test(config)#radius authentication server 10.209.13.234 host1:test(config-radius)#key secret host1:test(config-radius)#udp-port 1812 host1:test(config-radius)#radius update-source-addr 10.209.12.2 ! Configure an accounting server.host1:test(config-radius)#radius accounting server 10.209.13.234 host1:test(config-radius)#key secret host1:test(config-radius)#udp-port 1813 ! Create the primary interface for the tunnel.host1:test(config)#interface loopback 1 ! Configure a profile for mobile host associations.host1:test(config)#profile virDefault

For information about configuring virtual routers and access lists, see the JunosE System Basics Configuration Guide. For information about configuring IP interfaces, see the JunosE IP, IPv6, and IGP Configuration Guide.

For information about configuring B-RAS licenses, RADIUS authentication servers, and RADIUS accounting servers, see the JunosE Broadband Access Configuration Guide.