Making a Router a Mobile Node
Problem
You want to configure a router to act as a Mobile Node.
Solution
The configuration required to make a router act as a Mobile Node must specify the Home Agent and match its authentication parameters:
RouterMobile#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. RouterMobile(config)#router mobile
RouterMobile(config-router)#exit
RouterMobile(config)#ip mobile secure home-agent
192.168.9.1
spi
100
key ascii
RouterMobile(config)#
cookbook
ip mobile router
RouterMobile(mobile-router)#address
RouterMobile(mobile-router)#
192.168.10.112 255.255.255.0
home-agent
RouterMobile(mobile-router)#
192.168.9.1
exit
RouterMobile(config)#interface
RouterMobile(config-if)#
FastEthernet0/0
ip address
RouterMobile(config-if)#
192.168.10.112 255.255.255.0
ip irdp
RouterMobile(config-if)#ip mobile router-service roam
RouterMobile(config-if)#ip mobile router-service solicit
RouterMobile(config-if)#exit
RouterMobile(config)#end
RouterMobile#
Discussion
Starting in IOS Version 12.2(4)T, Cisco introduced the ability for a router to act as a Mobile Node. This may sound somewhat strange because routers don’t generally get up and roam around the network. But, in fact, it makes a great deal of sense to have this capability. For example, in the Introduction to this chapter we mentioned the idea of putting a mobile network on a train. In this example, users on the train can connect to a local network segment and let the router handle the task of roaming ...
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.