O'Reilly logo

Cisco IOS Cookbook, 2nd Edition by Ian Brown, Kevin Dooley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 99
RouterForeign(config-router)#network 192.168.110.0
RouterForeign(config-router)#no auto-summary
RouterForeign(config-router)#exit
RouterForeign(config)#interface Ethernet0/0
RouterForeign(config-if)#ip address 192.168.110.1 255.255.255.0
RouterForeign(config-if)#ip irdp
RouterForeign(config-if)#ip mobile foreign-service
RouterForeign(config-if)#exit
RouterForeign(config)#ip mobile foreign-agent care-of Ethernet0/0
RouterForeign(config)#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)# ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required