Foreign Agent Configuration
Problem
You want to configure a Foreign Agent router for IP Mobility to support one or more roaming Mobile Nodes.
Solution
Here is a minimal configuration for a Foreign Agent to support Mobile Nodes:
RouterForeign#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. RouterForeign(config)#router mobile
RouterForeign(config-router)#exit
RouterForeign(config)#router eigrp
RouterForeign(config-router)#
99
network
RouterForeign(config-router)#
192.168.110.0
no auto-summary
RouterForeign(config-router)#exit
RouterForeign(config)#interface
RouterForeign(config-if)#
Ethernet0/0
ip address
RouterForeign(config-if)#
192.168.110.1 255.255.255.0
ip irdp
RouterForeign(config-if)#ip mobile foreign-service
RouterForeign(config-if)#exit
RouterForeign(config)#ip mobile foreign-agent care-of
RouterForeign(config)#
Ethernet0/0
end
RouterForeign#
Discussion
Throughout this recipe, when we refer to the Home Agent, we mean the configuration shown in the previous recipe. The Discussion in this recipe follows directly from Recipe 24.2.
The configuration for a Foreign Agent router is considerably simpler than what we saw in Recipe 24.2 for a Home Agent, but there are several points that you have to make sure to cover. The first thing that we have done in the configuration in the Solution section is enable IP Mobility support and configure this router to take part in the same routing protocol as the Home Agent:
RouterForeign(config)#router mobile
RouterForeign(config-router)# ...
Get Cisco IOS Cookbook, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.