Configuring Mobile IP

Mobile IP Configuration Examples

Mobile nodes are configured with a home agent address 10.0.0.10. When registrations come in, either home agent processes them (depending on routing protocols) and updates the peer home agent. The home agent that receives the registration finds the first HSRP group that is mapped to 10.0.0.10 with a peer in the group and sends the update out that interface. If there is a network problem (for example, the home agent network adapter fails or cable disconnects), HSRP notices the absence of the peer. The home agent does not use that HSRP group and finds another HSRP group to use.

Note All routers must have identical loopback interface addresses, which will be used as the global HA address. However, do not use this address as the router ID for routing protocols.

When the peer home agent receives the registration update, both home agents tunnel the packets to the mobile nodes.

HA1 Configuration

interface ethernet0

ip address 1.0.0.1 255.0.0.0 standby ip 1.0.0.10 standby name SanJoseHANet1

interface ethernet1

ip add 2.0.0.1 255.0.0.0 standby ip 2.0.0.10 standby name SanJoseHANet2

interface loopback0

ip address 10.0.0.10 255.255.255.255

!Specifies

global HA address=loopback address to be used by all mobile nodes

ip mobile

home-agent address 10.0.0.10

 

ip mobile

virtual-network 20.0.0.0 255.0.0.0

! Used to map to the HSRP group SanJoseHANet1

ip mobile

home-agent standby SanJoseHANet1 virtual-network

! Used to map to the HSRP group SanJoseHANet2

ip mobile

home-agent standby SanJoseHANet2 virtual-network

ip mobile

secure home-agent 1.0.0.2 spi 100

key hex 00112233445566778899001122334455

ip mobile

secure home-agent 2.0.0.2 spi 100

key hex 00112233445566778899001122334455

HA2 Configuration

interface ethernet0

ip address 1.0.0.2 255.0.0.0 standby ip 1.0.0.10 standby name SanJoseHANet1

interface ethernet1

ip address 2.0.0.2 255.0.0.0 standby ip 2.0.0.10 standby name SanJoseHANet2

interface loopback0

ip address 10.0.0.10 255.255.255.255

!Specifies global HA address=loopback address to be used by all mobile nodes ip mobile home-agent address 10.0.0.10

ip mobile virtual-network 20.0.0.0 255.0.0.0 ! Used to map to the HSRP group SanJoseHANet1

ip mobile home-agent standby SanJoseHANet1 virtual-network ! Used to map to the HSRP group SanJoseHANet2

ip mobile home-agent standby SanJoseHANet2 virtual-network

Cisco IOS IP Configuration Guide

IPC-184

Page 230
Image 230
Cisco Systems 78-11741-02 manual IPC-184, Interface loopback0 Ip address 10.0.0.10, Ip mobile