![]() |
Cisco IOS IP Mobility Command Reference
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
aaa authorization ipmobile through ip mobile host
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Contents
aaa authorization ipmobile through ip mobile host aaa authorization ipmobileTo authorize Mobile IP to retrieve security associations from the AAA server using TACACS+ or RADIUS, use the aaa authorization ipmobile command in global configuration mode. To remove authorization, use the no form of this command.
aaa
authorization
ipmobile
{[radius | tacacs | +] | default}
[group server-groupname]
no
aaa
authorization
ipmobile
{[radius | tacacs | +] | default}
[group server-groupname]
Usage GuidelinesMobile IP requires security associations for registration authentication. The security associations are configured on the router or on a AAA server. This command is not needed for the former; but in the latter case, this command authorizes Mobile IP to retrieve the security associations from the AAA server. Once the authorization list is named, it can be used in other areas such as login. You can only use one named authorization list; multiple named authorization lists are not supported. The aaa authorization ipmobile default group server-groupnamecommand is the most commonly used method to retrieve security associations from the AAA server.
ExamplesThe following example uses TACACS+ to retrieve security associations from the AAA server: aaa new-model aaa authorization ipmobile tacacs+ tacacs-server host 1.2.3.4 tacacs-server key mykey ip mobile host 10.0.0.1 10.0.0.5 virtual-network 10.0.0.0 255.0.0.0 aaa The following example uses RADIUS as the default group to retrieve security associations from the AAA server: aaa new-model aaa authentication login default enable aaa authorization ipmobile default group radius aaa session-id common radius-server host 128.107.162.173 auth-port 1645 acct-port 1646 radius-server retransmit 3 radius-server key cisco ip mobile host 10.0.0.1 10.0.0.5 virtual-network 10.0.0.0 255.0.0.0 aaa Related Commands
address (mobile router)To set the home IP address of the mobile router, use the addresscommandinmobile router configuration mode. To remove the address, use the no form of this command. Usage GuidelinesThe address command con figures the home IP address and subnet mask of the mobile router. The address and subnet mask identify the home network of the mobile router and are used to discover when the mobile router is at home. address (proxy mobile IPv6)To configure an IPv4 or an IPv6 address for a Mobile Access Gateway (MAG) or a Local Mobility Anchor (LMA), use the address command in the appropriate configuration mode. To remove the IP address, use the no form of this command. Usage GuidelinesUse this command in MAG configuration mode to configure an IPv4 or IPv6 address for the MAG. Use this command in LMA configuration mode to configure an IPv4 or IPv6 address for the LMA. The MAG or the LMA can have only one IPv4 address and one IPv6 address. ExamplesThe following example shows how to configure an IPv6 address for the MAG: Device(config)# ipv6 mobile pmipv6-domain dn1 Device(config-ipv6-pmipv6-domain)# exit Device(config)# ipv6 mobile pmipv6-mag mag1 domain dn1 Device(config-ipv6-pmipv6-mag)# address ipv6 2001:0DB8:2:5::1 The following example shows how to configure an IPv6 address for the LMA: Device(config)# ipv6 mobile pmipv6-domain dn1 Device(config-ipv6-pmipv6-domain)# exit Device(config)# ipv6 mobile pmipv6-lma lma1 domain dn1 Device(config-ipv6-pmipv6-lma)# address ipv6 2001:0DB8:2:5::1 apn (proxy mobile IPv6)To specify an access point name (APN) to the subscriber of the mobile node (MN) or for the Mobile Access Gateway (MAG) within the Proxy Mobile IPv6 (PMIP) domain, use the apn command in mobile node or MAG configuration mode. To remove the APN specification, use the no form of this command. Command Modes
Usage GuidelinesTo specify the APN identifier for the MN, use the apn command in mobile node configuration mode. To specify the APN identifier for the MAG, use the apn command in MAG configuration mode. ExamplesThe following example shows how to specify the APN for the MN within the PMIP domain: Router(config)# ipv6 mobile pmipv6-domain dn1 Router(config-ipv6-pmipv6-domain)# nai example@abc.com Router(config-ipv6-pmipv6-domain-mn)# apn apn1 The following example shows how to specify the APN for the MAG within the PMIP domain: Router(config)# ipv6 mobile pmipv6-domain dn1 Router(config-ipv6-pmipv6-domain)# exit Router(config)# ipv6 mobile pmipv6-mag mag1 domain dn1 Router(config-ipv6-pmipv6-mag)# apn apn1 auth-optionTo configure authentication for the Proxy Mobile IPv6 (PMIP) domain, the Local Mobility Anchor (LMA) peer entity within the Mobile Access Gateway (MAG), or the MAG peer entity within the LMA, use the auth-option command in the appropriate configuration mode. To disable the authentication, use the no form of this command. Syntax DescriptionCommand ModesMAG-LMA configuration (config-ipv6-pmipv6mag-lma) LMA-MAG configuration (config-ipv6-pmipv6lma-mag) PMIP domain configuration (config-ipv6-pmipv6-domain) Usage GuidelinesUse the auth-option command in PMIP configuration mode to configure the SPI and the key value for the PMIP domain. The LMAs and the MAGs within the PMIP domain use this configuration as the default. Use the auth-option command in MAG-LMA configuration mode to configure the authentication for the LMA within the MAG. Use the auth-option command in LMA-MAG configuration mode to configure the authentication for the MAG within the LMA. ExamplesThe following example shows how to configure the authentication in PMIP configuration mode, with the SPI in hexadecimal format and an ASCII string key value: Device(config)# ipv6 mobile pmipv6-domain dn1 Device(config-ipv6-pmipv6-domain)# auth-option spi 67 key ascii key1 The following example shows how to configure the authentication in MAG-LMA configuration mode, with the SPI in decimal format and a string key value: Device(config)# ipv6 mobile pmipv6-domain dn1 Device(config-ipv6-pmipv6-domain)# exit Device(config)# ipv6 mobile pmipv6-mag mag1 domain dn1 Device(config-ipv6-pmipv6-mag)# lma lma1 dn1 Device(config-ipv6-pmipv6mag-lma)# auth-option spi decimal 258 key hex FFFF The following example shows how to configure the authentication in LMA-MAG configuration mode, with the SPI in decimal format and a string key value: Device(config)# ipv6 mobile pmipv6-domain dn1 Device(config-ipv6-pmipv6-domain)# exit Device(config)# ipv6 mobile pmipv6-lma lma1 domain dn1 Device(config-ipv6-pmipv6-lma)# mag mag1 dn1 Device(config-ipv6-pmipv6lma-mag)# auth-option spi decimal 258 key hex FFFF binding (proxy mobile IPv6)To configure the binding update parameters for the Mobile Access Gateway (MAG), use the binding command in MAG configuration mode. To remove the binding updates configuration, use the no form of this command.
binding
{{init-retx-time | max-retx-time} milliseconds | {lifetime | refresh-time} seconds | maximum number}
no
binding
{init-retx-time | max-retx-time | lifetime | refresh-time | maximum}
Syntax Description
Command DefaultThe default value for the keywords are as follows:
Usage GuidelinesThe value for the init-retx-time keyword should be less than that for the max-retx-time keyword. The no binding max-retx-time command configures the init-retx-time and max-retx-timevalues to the default values. ExamplesThe following example shows how to configure binding update parameters for the MAG: Router(config)# ipv6 mobile pmipv6-domain dn1 Router(config-ipv6-pmipv6-domain)# exit Router(config)# ipv6 mobile pmipv6-mag mag1 domain dn1 Router(config-ipv6-pmipv6-mag)# binding init-retx-time 110 Router(config-ipv6-pmipv6-mag)# binding max-retx-time 4000 Router(config-ipv6-pmipv6-mag)# binding lifetime 5000 Router(config-ipv6-pmipv6-mag)# binding maximum 200 Router(config-ipv6-pmipv6-mag)# binding refresh-time 2000 bce delete-wait-timeTo specify the minimum time the Local Mobility Anchor (LMA) must wait, after receiving the delete notification from the Mobility Access Gateway (MAG), to delete the binding cache entries (BCEs) from the mobile node (MN), use the bce delete-wait-time command in LMA configuration mode. To restore the default value, use the no form of this command. Usage GuidelinesUse the bce delete-wait-time command to specify the minimum time in milliseconds the LMA must wait, after receiving the delete notification from the MAG, to delete a BCE. To display the list of LMA bindings established over the Proxy Mobile IPv6 (PMIPv6) signaling plane, use the show ipv6 mobile pmipv6 lma globals command. The DeleteTime variable field displays the specified time the LMA should wait before it deletes BCEs. ExamplesThe following example shows how to specify the minimum time the LMA must wait before deleting the BCEs. Device(config)# ipv6 mobile pmipv6-domain dn1 Device(config-ipv6-pmipv6-domain)# exit Device(config)# ipv6 mobile pmipv6-lma lma1 domain dn1 Device(config-ipv6-pmipv6-lma)# bce delete-wait-time 10 bce lifetimeTo specify the lifetime of binding cache entries (BCEs) of a mobile node, use the bce lifetime command in LMA configuration mode. To restore to the default value, use the no form of this command. Usage GuidelinesUse the bce lifetime command to specify the lifetime of the BCEs of a mobile node. To display the list of LMA bindings established over the Proxy Mobile IPv6 (PMIP) signaling plane, use the show ipv6 mobile pmipv6 lma globals command. The RegistrationLifeTime field displays the specified lifetime of the BCEs in the LMA. bce maximumTo specify the maximum number of binding cache entries (BCEs) that is allowed in a Local Mobility Anchor (LMA), use the bce maximum command in LMA configuration mode. To restore the default value, use the no form of this command. Usage GuidelinesUse the bce maximum command in LMA configuration mode to specify the maximum number of binding cache entries (BCEs) that is allowed in an LMA. To display the list of LMA bindings established over the Proxy Mobile IPv6 (PMIPv6) signaling plane, use the show ipv6 mobile pmipv6 lma globals command. The MaxBindings field displays the specified maximum number of BCEs allowed for the LMA. briTo configure Binding Revocation Indication (BRI) message parameters, use the bri command in the appropriate configuration mode. To remove BRI message parameters, use the no form of this command. Syntax DescriptionCommand DefaultThe default value for the max keyword is 2000, for the min keyword is 100, and for the retries keyword is 1. Usage GuidelinesUse the bri command in MAG configuration mode to configure BRI message parameters in the MAG. Use the bri command in LMA configuration mode to configure BRI message parameters in the LMA. The max, min, and retries keywords are represent the MAX_BRACK_TIMEOUT, InitMINDelayBRIs, and BRIMaxRetriesNumber variables described in RFC 5846. The no bri delay {max | min} command sets the max and min values to the default values configured in the Proxy Mobile IPv6 domain. ExamplesThe following example shows how to configure BRI retransmission parameters for the MAG: Router(config)# ipv6 mobile pmipv6-domain dn1 Router(config-ipv6-pmipv6-domain)# exit Router(config)# ipv6 mobile pmipv6-mag mag1 domain dn1 Router(config-ipv6-pmipv6-mag)# bri delay max 4500 Router(config-ipv6-pmipv6-mag)# bri delay min 500 Router(config-ipv6-pmipv6-mag)# bri retries 6 The following example shows how to configure BRI retransmission parameters for the LMA: Router(config)# ipv6 mobile pmipv6-domain dn1 Router(config-ipv6-pmipv6-domain)# exit Router(config)# ipv6 mobile pmipv6-lma lma1 domain dn1 Router(config-ipv6-pmipv6-lma)# bri delay max 4500 Router(config-ipv6-pmipv6-lma)# bri delay min 500 Router(config-ipv6-pmipv6-lma)# bri retries 6 clear ip mobile binding
clear
ip
mobile
binding
{all [load standby-group-name] | ip-address [coa care-of-address] | nai string [session-id string] | vrf realm realm}
[synch]
Syntax Description
Command HistoryUsage GuidelinesThe home agent creates a mobility binding for each roaming mobile node. Associated with the mobility binding is the tunnel to the visited network and a host route to forward packets destined for the mobile node. Typically, there should be no need to clear the binding because it expires after the lifetime is reached or when the mobile node deregisters. When the mobility binding is removed through use of this command, the number of users on the tunnel is decremented and the host route is removed from the routing table. The mobile node is not notified. If the nai string session-id string option is specified, only the binding entry with that session identifier is cleared. If the session-idkeyword is not specified, all binding entries (potentially more than one, with different session identifiers) for that NAI are cleared. You can determine the session-id string value by using the show ip mobile binding command. When the synch option is specified, bindings that are administratively cleared on the active home agent are synchronized to the standby home agent, and the bindings will be deleted on the standby home agent. When the redundancy mode is active-standby, the synch option will not take effect if the clear command is issued on the standby home agent. Use this command with care, because it will disrupt any sessions used by the mobile node. After you use this command, the mobile node will need to reregister to continue roaming. ExamplesThe following example administratively stops mobile node 192.168.100.10 from roaming: Router# show ip mobile binding Mobility Binding List: Total 1 192.168.100.10: Care-of Addr 192.168.6.1, Src Addr 192.168.4.2, Lifetime granted 02:46:40 (10000), remaining 02:46:32 Flags SbdmGvt, Identification B750FAC4.C28F56A8, Tunnel100 src 192.168.1.2 dest 192.168.6.1 reverse-allowed Routing Options - (G)GRE Router# clear ip mobile binding 10.2.0.1 Router# show ip mobile binding clear ip mobile host-countersTo clear the mobility counters specific to each mobile node, use the clear ip mobile host-counterscommand in EXEC mode. Usage GuidelinesThis command clears the counters that are displayed when you use the show ip mobile host command. The undo keyword restores the counters (this option is useful for debugging). ExamplesThe following example shows how the counters can be used for debugging: Router# show ip mobile host 10.0.0.1: Allowed lifetime 10:00:00 (36000/default) Roaming status -registered-, Home link on virtual network 20.0.0.0/8 Accepted 2, Last time 04/13/02 19:04:28 Overall service time 00:04:42 Denied 0, Last time -never- Last code '-never- (0)' Total violations 1 Tunnel to MN - pkts 0, bytes 0 Reverse tunnel from MN - pkts 0, bytes 0 . Router# clear ip mobile host-counters Router# show ip mobile host-counters 20.0.0.1: Allowed lifetime 10:00:00 (36000/default) Roaming status -Unregistered-, Home link on virtual network 20.0.0.0/8 Accepted 0, Last time -never- Overall service time -never- Denied 0, Last time -never- Last code '-never- (0)' Total violations 0 Tunnel to MN - pkts 0, bytes 0 Reverse tunnel from MN - pkts 0, bytes 0 clear ip mobile router agentTo delete learned agents and the corresponding care-of address of the foreign agent from the mobile router agent table, use the clear ip mobile router agent command in privileged EXEC mode. Usage GuidelinesThe mobile router maintains an agent table listing active agents and the corresponding care-of address of the foreign agent. The mobile router uses this agent table to decide which foreign agent to register with. The mobile router updates the table when it receives advertisements. If an advertisement expires, its entry is automatically deleted from the table. The clear ip mobile router agent ip-addressoption allows you to remove a specific agent. clear ip mobile router registrationTo delete registration entries from the mobile router registration table, use the clear ip mobile router registrationcommand in privileged EXEC mode. Usage GuidelinesThe m obile router maintains a registration table listing registration entries that are used for retransmissions. For example, a registration request is sent when no reply is received or the lifetime is about to expire. A registration request can be removed from the table to prevent further registration requests from being sent to the agent. The clear ip mobile router registration ip-addressoption allows you to remove a registration to a specific agent. Clearing an active registration will cause the mobile router to attempt to deregister. clear ip mobile router trafficTo clear the counters that the mobile router maintains, use the clear ip mobile router traffic command in privileged EXEC mode. Usage GuidelinesMobile router counters are accumulated during operation. They are useful for debugging and monitoring. ExamplesThe following example shows how the mobile router counters can be used for debugging: Router# show ip mobile router traffic Mobile Router Counters: Agent Discovery: Solicitations sent 90, advertisements received 17 Agent reboots detected 0 Registrations: Register 70, Deregister 0 requests sent Register 70, Deregister 0 replies received Requests accepted 68, denied 1 by HA 1 /FA 0 Denied due to mismatched ID 1 . . . Router# clear ip mobile router traffic Router# show ip mobile router traffic Mobile Router Counters: Agent Discovery: Solicitations sent 0, advertisements received 0 Agent reboots detected 0 Registrations: Register 0, Deregister 0 requests sent Register 0, Deregister 0 replies received Requests accepted 0, denied 0 by HA 0 /FA 0 Denied due to mismatched ID 0 . . . clear ip mobile secureTo clear and retrieve remote security associations, use the clear ip mobile securecommandinEXEC mode. Syntax Description
Usage GuidelinesSecurity associations are required for registration authentication. They can be stored on an AAA server. During registration, they may be stored locally after retrieval from the AAA server. The security association on the router may become stale or out of date when the security association on the AAA server changes. This command clears security associations that have been downloaded from the AAA server.
ExamplesIn the following example, the AAA server has the security association for user 10.2.0.1 after registration:
Router# show ip mobile secure host 10.2.0.1
Security Associations (algorithm,mode,replay protection,key):
10.2.0.1:
SPI 300, MD5, Prefix-suffix, Timestamp +/- 7,
Key 'oldkey' 1230552d39b7c1751f86bae5205ec0c8
If you change the security association stored on the AAA server for this mobile node, the router clears the security association and reloads it from the AAA server: Router# clear ip mobile secure host 10.2.0.1 load Router# show ip mobile secure host 10.2.0.1 10.2.0.1: SPI 300, MD5, Prefix-suffix, Timestamp +/- 7, Key 'newkey' 1230552d39b7c1751f86bae5205ec0c8 clear ip mobile trafficUsage GuidelinesMobile IP counters are accumulated during operation. They are useful for debugging and monitoring. This command clears all Mobile IP counters. The undo keyword restores the counters (which is useful for debugging). See the show ip mobile traffic command for a description of all counters. ExamplesThe following example shows how counters can be used for debugging: Router# show ip mobile traffic IP Mobility traffic: Advertisements: Solicitations received 0 Advertisements sent 0, response to solicitation 0 Home Agent Registrations: Register 8, Deregister 0 requests Register 7, Deregister 0 replied Accepted 6, No simultaneous bindings 0 Denied 1, Ignored 1 Unspecified 0, Unknown HA 0 Administrative prohibited 0, No resource 0 Authentication failed MN 0, FA 0 Bad identification 1, Bad request form 0 . Router# clear ip mobile traffic Router# show ip mobile traffic IP Mobility traffic: Advertisements: Solicitations received 0 Advertisements sent 0, response to solicitation 0 Home Agent Registrations: Register 0, Deregister 0 requests Register 0, Deregister 0 replied Accepted 0, No simultaneous bindings 0 Denied 0, Ignored 0 Unspecified 0, Unknown HA 0 Administrative prohibited 0, No resource 0 Authentication failed MN 0, FA 0 Bad identification 0, Bad request form 0 clear ip mobile visitorSyntax Description
Usage GuidelinesThe foreign agent creates a visitor entry for each accepted visitor. The visitor entry allows the mobile node to receive packets while in a visited network. Associated with the visitor entry is the Address Resolution Protocol (ARP) entry for the visitor. There should be no need to clear the entry because it expires after lifetime is reached or when the mobile node deregisters. When a visitor entry is removed, the number of users on the tunnel is decremented and the ARP entry is removed from the ARP cache. The visitor is not notified. If the nai string session-id string option is specified, only the visitor entry with that session identifier is cleared. If the session-id keyword is not specified, all visitor entries (potentially more than one, with different session identifiers) for that NAI are cleared. You can determine the session-id string value by using the show ip mobile visitor command. Use this command with care because it may terminate any sessions used by the mobile node. After you use this command, the visitor will need to reregister to continue roaming. clear ipv6 mobile pmipv6 lmaTo reset the Proxy Mobile IPv6 (PMIPv6) domain Local Mobility Anchor (LMA) sessions, use the clear ipv6 mobile pmipv6 lma command in privileged EXEC mode.
clear
ipv6
mobile
pmipv6
lma
lma-name
{binding {all | lma lma-v6-address | nai nai-string} | stats [domain domain-name peer peer-name]}
Syntax Description
ExamplesThe following example shows how to clear the binding sessions for the MN: Device(config)# show ipv6 mobile pmipv6 lma lma1 binding ! Total number of bindings: 1 ---------------------------------------- [Binding][MN]: Domain: domain1, NAI: example@example.com [Binding][MN]: ATT: 3, LLID: aabb.cc00.c900 [Binding][MN]: HOA: 192.0.2.7, Prefix: 24 [Binding][MN]: HNP: DDDD:: [Binding][MN][MAG]: Id: mag0 [Binding][MN][MAG]: Lifetime: 3600(sec), Lifetime Remaining: 3500(sec) [Binding][MN][MAG]: Tunnel: Tunnel0 [Binding][MN][MAG]: Default Router: 192.0.2.1 [Binding][MN][GREKEY]: Upstream: 400, Downstream: 100 ! Device# clear ipv6 mobile pmipv6 lma lma1 binding nai example@example.com Device# show ipv6 mobile pmipv6 lma bindings ! Total number of bindings: 0 The following example shows how to clear all LMA statistics:
Device# clear ipv6 mobile pmipv6 lma stats
The following example shows how to clear LMA statistics for the MAG:
Device# clear ipv6 mobile pmipv6 lma stats domain D1 peer mag1
collocated single-tunnelTo configure the number of tunnels between the mobile router and home agent when registering with a collocated care-of address (CCoA), use the collocated single-tunnelcommand in mobile router configuration mode. Usage GuidelinesThis command is used as a "placeholder" only and defaults to single-tunnel enabled. This command can not be unconfigured. In future Cisco IOS releases, a dual-tunnel capability will be needed for IPSec between the mobile router and the home agent. At that time, this command will be optional with dual tunnels (no collocated single-tunnel) being the default. This command is provided now for backward compatibility when the dual-tunnel capablity is implemented. debug ipv6 mobile lmaTo enable debugging the Local Mobility Access (LMA) application programming interface (API), information, or events, use the debug ipv6 mobile lma command in privileged EXEC mode. To disable display of the debugging output, use the no form of this command. ExamplesThe following sample output from the debug ipv6 mobile lma api command displays the APIs that are called during the call setup flow:
Device# debug ipv6 mobile lma api
*Mar 19 08:52:50.989: PMIPV6_LMA_API: pmipv6_lma_should_handle_pkt called
*Mar 19 08:52:50.989: MIP_PDL_API: pmipv6_pdl_get_timestamp API Called
*Mar 19 08:52:50.989: [PMIPV6_BINDING_API]: pmipv6_get_binding API called
*Mar 19 08:52:50.989: [PMIPV6_BINDING_API]: pmipv6_get_binding API called
*Mar 19 08:52:50.989: PMIPV6_LMA_API: pmipv6_lma_mn_do_state_transition called
*Mar 19 08:52:50.989: PMIPV6_LMA_API: lma_bce_state_transition called
*Mar 19 08:52:50.989: [PMIPV6_BINDING_API]: pmipv6_add_binding_entry API called
*Mar 19 08:52:50.989: [PMIPV6_BINDING_API]: pmipv6_get_binding API called
*Mar 19 08:52:50.989: PMIPV6_LMA_API: pmipv6_lma_mn_do_state_transition called
*Mar 19 08:52:50.989: PMIPV6_LMA_API: lma_bce_state_transition called
*Mar 19 08:52:50.989: MIP_PDL_API: mip_pdl_setupv4_tunnel API Called
*Mar 19 08:52:50.990: MIP_PDL_API: mip_pdl_get_handle_for_tunnel API Called
*Mar 19 08:52:50.990: MIP_PDL_API: mip_pdl_get_handle_for_tunnel API Called
*Mar 19 08:52:50.990: MIP_PDL_API: mip_pdl_setupv4_route API Called
*Mar 19 08:52:50.990: MIP_PDL_API: mip_pdl_get_handle_for_tunnel API Called
*Mar 19 08:52:50.990: MIP_PDL_API: mip_pdl_setupv6_route API Called
*Mar 19 08:52:50.990: [PMIPV6_BINDING_API]: pmipv6_update_binding_key API called
The following example shows the output of the debug ipv6 mobile lma events command:
Device# debug ipv6 mobile lma events
*Mar 20 12:08:54.703: PMIPV6_LMA_EVENT: Event (HI_UNKNOWN) received in pmipv6_lma_mn_init_state_hndlr
*Mar 20 12:08:54.703: PMIPV6_LMA_EVENT: MN(name1@example.com) State Transition: MN_INIT -> MN_ACTIVE
*Mar 20 12:08:54.703: PMIPV6_LMA_EVENT: Event (HI_UNKNOWN) received in pmipv6_lma_mn_active_state_entry
*Mar 20 12:08:54.703: PMIPV6_LMA_EVENT: BCE(name1@example.com) With ATT(4) State Transition: BCE_NULL -> BCE_INIT
*Mar 20 12:08:54.703: PMIPV6_LMA_EVENT: Event (HI_UNKNOWN) received in pmipv6_lma_bce_init_state_entry
*Mar 20 12:08:54.703: PMIPV6_LMA_EVENT: Event (LMA_ADDRESS_ALLOC) received in pmipv6_lma_mn_active_state_hndlr
*Mar 20 12:08:54.703: PMIPV6_LMA_EVENT: BCE(name1@example.com) With ATT(4) State Transition: BCE_INIT -> BCE_ACTIVE
*Mar 20 12:08:54.704: PMIPV6_LMA_EVENT: Event (LMA_ADDRESS_ALLOC) received in pmipv6_lma_bce_active_state_entry
The following example shows the output of the debug ipv6 mobile lma info command:
Device# debug ipv6 mobile lma info
*Mar 20 12:10:11.975: [PMIPV6_PDB_INFO]:MN example1 found locally
*Mar 20 12:10:11.975: PMIPV6_LMA_INFO: Default (example1) profile set for this MN
*Mar 20 12:10:11.975: PMIPV6_LMA_INFO: PBU Received: MAG(mag2), MN(name1@example.com), HI(4), Lifetime (3600), ATT (4), LLI(aabb.cc00.c901), HOA(0)
*Mar 20 12:10:11.975: [PMIPV6_BINDING_INFO_KEY]: Keytype as NAI. NAI: name1@example.com
*Mar 20 12:10:11.975: [PMIPV6_BINDING_INFO]: binding not found
*Mar 20 12:10:11.975: [PMIPV6_BINDING_INFO_KEY]: Keytype as NAI. NAI: name1@example.com
*Mar 20 12:10:11.975: [PMIPV6_BINDING_INFO]: binding not found
*Mar 20 12:10:11.975: PMIPV6_LMA_INFO: Network name(n1) taken from MN profile
*Mar 20 12:10:11.975: [PMIPV6_BINDING_INFO_KEY]: Keytype as NAI. NAI: name1@example.com
*Mar 20 12:10:11.975: [PMIPV6_BINDING_INFO]: binding added New NAI AVL node created
*Mar 20 12:10:11.975: PMIPV6_LMA_INFO: Added BCE(name1@example.com), with key(7) to Binding Module
*Mar 20 12:10:11.975: [PMIPV6_BINDING_INFO_KEY]: Keytype as NAI. NAI: name1@example.com
*Mar 20 12:10:11.975: [PMIPV6_BINDING_INFO]: binding found on NAI tree
*Mar 20 12:10:11.976: MIP_PDL_INFO: Route via: Ethernet0/0 (IPv6)
*Mar 20 12:10:11.976: MIP_PDL_INFO: Stopping LineProtoTimer for Tunnel1
*Mar 20 12:10:11.976: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel1, changed state to down
*Mar 20 12:10:11.976: MIP_PDL_INFO: Tunnel1 (IPv6) created with src 2001:DB8::1 dst 2006::4
*Mar 20 12:10:11.976: MIP_PDL_INFO: Successfully added route 172.16.0.0/12 to Tunnel1
*Mar 20 12:10:11.976: PMIPV6_LMA_INFO: Success in Adding IPv4 route (F0F0F06)
*Mar 20 12:10:11.976: MIP_PDL_INFO: Added Route to home addr. 2001:DB8::/64 via Tunnel Tunnel1
*Mar 20 12:10:11.976: MIP_PDL_INFO: route_add success: 2
*Mar 20 12:10:11.976: PMIPV6_LMA_INFO: Added IPv6 route for HNP(2001:DB8::), Prefix Length(64)
*Mar 20 12:10:11.976: [PMIPV6_BINDING_INFO_KEY]: Keytype as HOA. HOA: 0xF0F0F06
*Mar 20 12:10:11.976: [PMIPV6_BINDING_INFO]: pmipv6_update_binding_key, binding inserted into HNP tree
*Mar 20 12:10:11.976: PMIPV6_LMA_INFO: Updated BCE(name1@example.com) with key(17) to Binding Module
*Mar 20 12:10:11.976: PMIPV6_LMA_INFO: Started Lifetime Timer(3600) sec for BCE (name1@example.com)
*Mar 20 12:10:11.976: PMIPV6_LMA_INFO: Updated Lifetime (3600)secs for BCE(name1@example.com)
*Mar 20 12:10:11.976: PMIPV6_LMA_INFO: PBA Message to MAG:mag2 MN:name1@example.com ATT:4 SeqNo:362 Lifetime:3600 Status:0
*Mar 20 12:10:11.977: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel1, changed state to up
debug ipv6 mobile magTo debug the Mobile Access Gateway (MAG) application programming interface (API), information, or events, use the debug ipv6 mobile magcommand in privileged EXEC mode. To disable display of the debugging output, use the no form of this command. ExamplesThe following sample output from the debug ipv6 mobile mag api command displays the APIs that are called during the call setup flow:
Router# debug ipv6 mobile mag api
07:52:08.051: MIP_PDL_API: pmipv6_pdl_get_att API Called
07:52:08.051: [PMIPV6_BINDING_API]: pmipv6_get_binding API called
07:52:08.051: [PMIPV6_BINDING_API]: pmipv6_get_binding API called
07:52:08.051: [PMIPV6_MAG_API]: mag_bul_do_state_transition API called
07:52:08.051: [PMIPV6_MAG_API]: pmipv6_mag_bul_null_state_hndlr API called
07:52:08.051: [PMIPV6_MAG_API]: pmipv6_mag_bul_null_state_exit API called
07:52:08.051: [PMIPV6_MAG_API]: pmipv6_mag_bul_init_state_entry API called
07:52:08.051: [PMIPV6_BINDING_API]: pmipv6_add_binding_entry API called
07:52:08.051: MIP_PDL_API: pmipv6_pdl_get_timestamp API Called
07:52:08.053: [PMIPV6_MAG_API]: pmipv6_mag_should_handle_pkt called
07:52:08.053: [PMIPV6_MAG_API]: pmipv6_mag_message_handler called
07:52:08.053: [PMIPV6_BINDING_API]: pmipv6_get_binding API called
07:52:08.053: [PMIPV6_BINDING_API]: pmipv6_get_binding API called
07:52:08.053: [PMIPV6_MAG_API]: mag_bul_do_state_transition API called
07:52:08.053: [PMIPV6_MAG_API]: pmipv6_mag_bul_init_state_hndlr API called
07:52:08.053: [PMIPV6_MAG_API]: pmipv6_mag_bul_init_state_exit API called
07:52:08.053: MIP_PDL_API: pmipv6_pdl_create_vintf API Called
16 07:52:08.054: MIP_PDL_API: pmipv6_pdl_set_ip4address API Called
16 07:52:08.054: MIP_PDL_API: pmipv6_pdl_set_macaddr API Called
16 07:52:08.054: MIP_PDL_API: mip_pdl_setupv4_route API Called
07:52:08.054: MIP_PDL_API: mip_pdl_setupv6_tunnel API Called
07:52:08.054: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel0, changed state to down
07:52:08.054: MIP_PDL_API: mip_pdl_get_handle_for_tunnel API Called
07:52:08.054: MIP_PDL_API: mip_pdl_populate_rtunnel API Called
07:52:08.054: MIP_PDL_API: mip_pdl_get_handle_for_tunnel API Called
07:52:08.055: [PMIPV6_BINDING_API]: pmipv6_update_binding_key API called
07:52:08.055: [PMIPV6_MAG_API]: pmipv6_mag_bul_active_state_entry API called
The following example shows the output of the debug ipv6 mobile mag events command:
Router# debug ipv6 mobile mag events
PMIPv6 MAG Event debug is turned on
The following line shows that the DHCP Discover trigger is received from the mobile node (MN): 07:48:31.638: [PMIPV6_MAG_EVENT]: Trigger request received (DHCP Discover trigger) from (MN3@cisco.com) The following line shows the MAG machine state change. A new MN attaches to the MAG and the state changes from NULL to INIT: 07:48:31.638: [PMIPV6_MAG_EVENT]: Event received New MN intf attached in state: NULL, new state: INIT The following line shows that the Proxy Binding Update (PBU) message is sent from MAG for an MN: 07:48:31.638: [PMIPV6_MAG_EVENT]: PBU message sent The following lines show that the Proxy Binding Acknowledgment (PBA) is received from the LMA for the MN. The incoming parameters are link layer identifier (lli) length, value, and access technology type (att). The status 0 indicates success. 07:48:31.639: [PMIPV6_MAG_EVENT]: message received: PBA 07:48:31.639: [PMIPV6_MAG_EVENT]: PBA: nai(MN3@cisco.com),nai len: 14, lli (aabb.cc00.ce00), ll len: 16, att:3, status:0 The following line shows that the refresh timer has started: 07:48:31.639: [PMIPV6_MAG_EVENT]: Starting Refresh timer, period (300000) The following lines show that a v4 route is added to the MN, which has a new address assigned. A new v6 tunnel is created and a reverse tunnel entry is added for the MN. 07:48:31.640: [PMIPV6_MAG_EVENT]: Adding V4 route, address (0x11110103), Prefix len (24), handle: (GigabitEthernet0/0/0) ! 07:48:31.640: [PMIPV6_MAG_EVENT]: Adding V6 Tunnel, Handle (Tunnel1), mode: (IPV6_IN_IPV6) 07:48:31.641: [PMIPV6_MAG_EVENT]: Populating Reverse V4 Tunnel entry, l2 address (0xaabb.cc00.ce00), ipv4 add: 0x11110103 phy handle: (GigabitEthernet0/0/0) The following example shows the output of debug ipv6 mobile mag infocommand:
Router# debug ipv6 mobile mag info
PMIPv6 MAG INFO debug is turned on
The following lines show that the new binding is created and added to the AV tree: 07:50:31.714: [PMIPV6_PDB_INFO]: MN entry MN3@cisco.com found in hashset 07:50:31.714: [PMIPV6_BINDING_INFO]: binding added New NAI AVL node created The following line provides more information about the PBUs that are sent: 07:50:31.714: [PMIPV6_MAG_INFO]: PBU message nai(MN3@cisco.com), nai len: 14, hoa(0), att(3) llid(aabb.cc00.ce00) , ll len: 16 The following line shows that a binding for the MN using the Network Access Identifier (NAI) MN3@example.com is found: 07:50:31.717: [PMIPV6_BINDING_INFO_KEY]: Keytype as NAI. NAI: MN3@example.com 07:50:31.717: [PMIPV6_BINDING_INFO]: binding found on NAI tree The following line shows that a virtual interface is created in the MAG and assigned the MAC address aaaa.aaaa.aaaa: 07:50:31.717: [PMIPV6_MAG_EVENT]: Creating virtual interface handle (IFNAME_PMIP_VIF4) 07:50:31.717: [PMIPV6_MAG_INFO]: Setting Mac Address (aaaa.aaaa.aaaa) on (IFNAME_PMIP_VIF4) The following line shows that a route for the MN is added in the MAG: 07:50:31.717: MIP_PDL_INFO: Successfully added route 10.10.1.4/24 to GigabitEthernet0/0/0 07:50:31.717: MIP_PDL_INFO: Route via: GigabitEthernet0/1/0 (IPv6) The following line shows that a tunnel is created with a source address and a destination address: 07:50:31.718: MIP_PDL_INFO: Tunnel0 (IPv6) created with src 2000::4 dst 2001::2 07:50:31.718: MIP_PDL_INFO: Rev. Tunnel acl entry added for subnet (10.10.0.0) debug ipv6 mobile packetsTo debug the Proxy Mobile IPv4 or IPv6 packets, use the debug ipv6 mobile packetscommand in privileged EXEC mode. To disable the debugging output, use the no form of this command. ExamplesThe following example is sample output from the debug ipv6 mobile packets command:
Router# debug ipv6 mobile packets
PMIPv6 PKT debug is turned on
The following lines show the newly allocated packet size and the inner packet details: 07:51:17.693: [PMIPv6-MM]:Allocated packet of size 164 with tlv length 84 07:51:17.693: [PMIPV6_MM] Sending UDP Packet, src: 0x2020202, dst: 0x6060602, sport: 5436, dport:5436 The following lines shows the mobility options, the value, and the length: 07:51:17.693: [PMIPV6_MM] NAI option included len 14 ! 2A986107E0: 4D 4E334063 6973636F MN3@abc 2A986107F0: 2E636F6D 1702 .com.. 07:51:17.693: 07:51:17.693: [PMIPV6_MM] HI option included len 2 val 4 07:51:17.694: [PMIPV6_MM] ATT option included len 2 val 3 07:51:17.694: [PMIPV6_MM] TIMESTAMP option included len 8 value 3517199477 07:51:17.694: [PMIPV6_MM] LLI option included len 16 ! 2A98610810: 61616262 2E636330 302E6365 30300100 aabb.cc00.ce00.. 2A98610820: 24 $ 07:51:17.694: 07:51:17.694: [PMIPV6_MM] V4HOAREQ option included len 6 val 0.0.0.0 07:51:17.694: [PMIPV6_MM] V4DFT_RTR option included len 6 val 0.0.0.0 07:51:17.694: **** Dumping the TLVs **** ! 2A986107E0: 01020000 080E014D 4E334063 6973636F .......MN3@cisco 2A986107F0: 2E636F6D 17020004 18020003 01001B08 .com............ 2A98610800: 00000000 D1A43475 01020000 19100000 ....Q$4u........ 2A98610810: 61616262 2E636330 302E6365 30300100 aabb.cc00.ce00.. 2A98610820: 24060000 00000000 26060000 00000000 $.......&....... 2A98610830: 01020000 .... 07:51:17.694: 07:51:17.695: [PMIPV6_MM] NAI option received len 14 ! 2A97DBE560: 4D 4E334063 6973636F 2E636F6D MN3@cisco.com 2A97DBE570: 0017 .. 07:51:17.696: 07:51:17.696: [PMIPV6_MM] HI option received len 2 val 4 07:51:17.696: [PMIPV6_MM] ATT option received len 2 val 3 07:51:17.696: [PMIPV6_MM] TIMESTAMP option received len 8 value 3517199477 07:51:17.696: [PMIPV6_MM] LLI option received len 16 ! 2A97DBE580: 61616262 aabb 2A97DBE590: 2E636330 302E6365 30300100 00 .cc00.ce00... 07:51:17.696: 07:51:17.696: [PMIPV6_MM] V4HOAREPLY option received len 6 val 10.10.1.5 07:51:17.696: [PMIPV6_MM] V4DFT_RTR option received len 6 val 10.10.1.1 The following lines show the dump of the packet with all the Type Length Values (TLVs): 07:51:17.696: **** Dumping the TLVs **** ! 2A97DBE550: 01020000 .... 2A97DBE560: 080E014D 4E334063 6973636F 2E636F6D ...MN3@cisco.com 2A97DBE570: 00170200 04180200 03001B08 00000000 ................ 2A97DBE580: D1A43475 01020000 19100000 61616262 Q$4u........aabb 2A97DBE590: 2E636330 302E6365 30300100 00000000 .cc00.ce00...... 2A97DBE5A0: 00000000 00000000 00000000 00000000 ................ 2A97DBE5B0: 25060060 11110105 26060000 11110101 %..`....&....... 2A97DBE5C0: 07:51:17.696: default profileTo enable the default profile for the mobile node (MN), use the default profile command in Local Mobility Anchor (LMA) configuration mode. To disable the default profile, use the no form of this command. Command Modes
Usage GuidelinesUse the default profile command, in LMA configuration mode, to enable the default profile for the MN. When you configure the default profile command, if the locally configured profile or the profile that is fetched from the authentication, authorization, and accounting (AAA) server is unavailable in the MN, then the MN uses the default profile. ExamplesThe following example shows how to configure the default profile for the MN: Device(config-ipv6-pmipv6-domain)# nai example1@example.com Device(config-ipv6-pmipv6-domain-mn)# network network1 Device(config-ipv6-pmipv6-domain-mn)# exit Device(config-ipv6-pmipv6-domain)# exit Device(config)# ipv6 mobile pmipv6-lma lma1 domain dn1 Device(config-ipv6-pmipv6-lma)# address ipv6 2001:DB8:0:0:E000::F Device(config-ipv6-pmipv6-lma)# address ipv4 10.2.1.1 Device(config-ipv6-pmipv6-lma)# network network1 Device(config-ipv6-pmipv6lma-network)# pool ipv4 v4pool pfxlen 24 Device(config-ipv6-pmipv6lma-network)# pool ipv6 v6pool pfxlen 24 Device(config-ipv6-pmipv6lma-network)# exit Device(config-ipv6-pmipv6-lma)# default profile example1@example.com description (mobile networks)To add a description to a mobile router configuration, use the descriptioncommand in mobile networks configuration mode. To remove the description, use the no form of this command. Usage GuidelinesThe description command is meant solely as a comment to be put in the configuration to help you remember information about the configured mobile router or its mobile networks. discover-mn-detachTo enable the periodic verification of the mobile node (MN) attachment with the mobile access gateway (MAG)-enabled interface, use the discover-mn-detach command in MAG configuration mode. To disable the periodic verification, use the no form of this command. Syntax DescriptionCommand DefaultThe default value for the interval keyword is 10, for the timeout keyword is 2, and for the retries keyword is 0. Command History
Usage GuidelinesUse the discover-mn-detach command to enable periodic verification of the MN attachment with the MAG-enabled interface. When periodic verification is enabled, the MAG periodically verifies the MN attachment using the Address Resolution Protocol (ARP) request or the neighbor solicitation. When the mobile client responds with the ARP reply or the neighbor advertisement, a trigger attach is generated, thereby confirming that the MN is attached to the interface. ExamplesThe following example shows how to periodically verify the MN attachment with the MAG-enabled interface: Device(config)# ipv6 mobile pmipv6-domain dn1 Device(config-ipv6-pmipv6-domain)# exit Device(config)# ipv6 mobile pmipv6-mag mag1 domain dn1 Device(config-ipv6-pmipv6-mag)# discover-mn-detach poll interval 11 timeout 3 retries 4 eigrp interfaceTo set a threshold value to minimize hysteresis in a router-to-radio configuration, use the eigrp interface command in interface configuration mode. To reset the hysteresis threshold to the default value, use the no form of this command.
eigrp
vmi-interface-number
interface
[dampening-change value]
[dampening-interval value]
no
eigrp
vmi-interface-number
interface
[dampening-change value]
[dampening-interval value]
Syntax Description
Command DefaultDefault for change-based dampening is 50 percent of the computed metric. Default for interval-based dampening is 30 seconds. Command History
Usage GuidelinesThis command advertises routing changes for EIGRP traffic only. The REPLY sent to any QUERY will always contain the latest metric information. Exceptions which will result in immediate UPDATE being sent:
Change-based Dampening The default value for the change tolerance will be 50% of the computed metric. It can be configured in the range from 0 to 100 percent. If the metric change of the interface is not greater (or less) than the current metric plus or minus the specified amount, the change will not result in a routing change, and no update will be sent to other adjacencies. Interval-based Dampening The default value for the update intervals is 30 seconds. It can be configured in the range from 0 to 64535 seconds. If this option is specified, changes in routes learned though this interface, or in the interface metrics, will not be advertised to adjacencies until the specified interval is met. When the timer expires, any changes detected in any routes learned through the interface, or the metric reported by the interfaces will be sent out. Change-based Dampening ExampleThe following example sets the threshold to 50 percent tolerance routing updates involving VMI interfaces and peers: interface vmi1 ip address 10.2.2.1 255.255.255.0 ipv6 address 2001:0DB1:2::1/96 ipv6 enable eigrp 1 interface dampening-change 50 physical-interface Ethernet0/0 Interval-based Dampening ExampleThe following example sets the interval to 30 seconds at which updates occur for topology changes that affect VMI interfaces and peers: interface vmi1 ip address 10.2.2.1 255.255.255.0 ipv6 address 2001:0DB1:2::1/96 ipv6 enable eigrp 1 interface dampening-interval 30 physical-interface Ethernet0/0 enable aaa accountingTo enable authentication, authorization, and accounting (AAA) accounting for mobile node (MN) sessions, use the enable aaa accounting command in LMA configuration mode. To disable AAA accounting, use the no form of this command. Command Modes
Usage GuidelinesUse the enable aaa accounting command to enable AAA accounting for MN sessions. Only when AAA accounting is enabled, the LMA sends start or stop accounting notification to the AAA server when a binding for the MN is created or deleted in the LMA. encap (proxy mobile IPv6)To configure the tunnel encapsulation mode type between the Mobile Access Gateway (MAG) and the Local Mobility Anchor (LMA), use the encap command in the appropriate configuration mode. To disable the tunnel encapsulation mode type, use the no form of this command. Command ModesMAG-LMA configuration (config-ipv6-pmipv6mag-lma) LMA-MAG configuration (config-ipv6-pmipv6lma-mag) PMIP domain configuration (config-ipv6-pmipv6-domain) Usage GuidelinesUse the encap command in PMIP domain configuration mode to configure the tunnel encapsulation type for the PMIP domain. The LMAs and the MAGs within the PMIP domain use this configuration as the default. Use the encap command in MAG-LMA configuration mode to configure the tunnel encapsulation type for the LMA within the MAG. Use the encap command in LMA-MAG configuration mode to configure the tunnel encapsulation type for the MAG within the LMA. ExamplesThe following example shows how to configure the encapsulation type as IPv6_in_IPv6 in MAG-LMA configuration mode: Router(config)# ipv6 mobile pmipv6-domain dn1 Router(config-ipv6-pmipv6-domain)# exit Router(config)# ipv6 mobile pmipv6-mag mag1 domain dn1 Router(config-ipv6-pmipv6-mag)# lma lma1 dn1 Router(config-ipv6-pmipv6mag-lma)# encap ipv6-in-ipv6 The following example shows how to configure an encapsulation type in LMA-MAG configuration mode: Router(config)# ipv6 mobile pmipv6-domain dn1 Router(config-ipv6-pmipv6-domain)# exit Router(config)# ipv6 mobile pmipv6-lma lma1 domain dn1 Router(config-ipv6-pmipv6-lma)# mag mag1 dn1 Router(config-ipv6-pmipv6lma-mag)# encap ipv6-in-ipv6 The following example shows how to configure an encapsulation type PMIP domain configuration mode: Router(config)# ipv6 mobile pmipv6-domain dn1 Router(config-ipv6-pmipv6-domain)# encap ipv6-in-ipv6 fixed-link-layer-addressTo configure the fixed link-layer address (Layer-2 address) for the Mobile Access Gateway (MAG)-enabled interface toward the mobile node (MN), use the fixed-link-layer-address command in PMIP domain or MAG configuration mode. To remove the fixed Layer-2 address for the MAG-enabled interface, use the no form of this command. Command Modes
Usage GuidelinesUse the fixed-link-layer-address command in PMIP domain configuration mode to configure the fixed link-layer address for the MAG-enabled interface within the Proxy Mobile IPv6 (PMIP) domain. If the PMIP domain is configured using the ipv6 mobile pmipv6-domain domain-name load-aaa command, use the fixed-link-layer-address command to override the fixed link-layer address configuration. Use the fixed-link-layer-address command in MAG configuration mode to configure the fixed link-layer address for the MAG-enabled interface. ExamplesThe following example shows how to configure the fixed link-layer address for the MAG-enabled interface toward the MN in PMIP domain configuration mode: Router(config)# ipv6 mobile pmipv6-domain dn1 Router(config-ipv6-pmipv6-domain)# fixed-link-layer-address aaaa.bbbb.cccc The following example shows how to configure the fixed link-layer address for the MAG-enabled interface in MAG configuration mode: Router(config)# ipv6 mobile pmipv6-domain dn1 Router(config-ipv6-pmipv6-domain)# exit Router(config)# ipv6 mobile pmipv6-mag mag1 domain dn1 Router(config-ipv6-pmipv6-mag)# fixed-link-layer-address aaaa.bbbb.cccc fixed-link-local-addressTo configure the fixed link-local address for the Mobile Access Gateway (MAG)-enabled interface toward the mobile node (MN), use the fixed-link-local-address command in PMIP domain or MAG configuration mode. To remove the fixed link-local address on the MAG-enabled interface, use the no form of this command. Command DefaultNo fixed link-local address is configured for the MAG-enabled interface toward the MN. Command Modes
Usage GuidelinesUse the fixed-link-local-address command in the PMIP domain configuration mode to configure the fixed link-local address for the MAG-enabled interface within the Proxy Mobile IPv6 (PMIP) domain. If the PMIP domain is configured using ipv6 mobile pmipv6-domain domain-name load-aaa command, use the fixed-link-local-address command to override the fixed link-local address configuration. Use the fixed-link-local-address command in MAG configuration mode to configure the fixed link-local address for the MAG-enabled interface. ExamplesThe following example shows how to configure the fixed link-local address for the MAG-enabled interface toward the MN in PMIP domain configuration mode: Router(config)# ipv6 mobile pmipv6-domain dn1 Router(config-ipv6-pmipv6-domain)# fixed-link-local-address FE80:0DB8:3333:4::5 The following example shows how to configure the fixed link-local address for the MAG-enabled interface in MAG configuration mode: Router(config)# ipv6 mobile pmipv6-domain dn1 Router(config-ipv6-pmipv6-domain)# exit Router(config)# ipv6 mobile pmipv6-mag mag1 domain dn1 Router(config-ipv6-pmipv6-mag)# fixed-link-local-address FE80:0DB8:3333:4::5 gre-encap-keyTo configure the generic routing encapsulation (GRE) key for the mobile node (MN) within the Proxy Mobile IPv6 (PMIP) domain, use the gre-encap-key command in mobile node configuration mode. To remove the configuration, use the no form of this command. Syntax Description
home-agentTo specify the home agent that the mobile router uses during registration, use the home-agent command in mobile router configuration mode. To disable the home agent, use the no form of this command. Usage GuidelinesThe home-agent command specifies which home agent the mobile router uses for registration and to de tect when it is home. The priority level determines which home agent address to register with, although all addresses are on the same home agent. The mobile router registers with the home agent with the highest priority level. The home agent address list is used to detect when the mobile router is home. The mobile router knows that it is at home when the source of the agent advertisements is an IP source address that exists on the home agent address list. ExamplesThe following example shows that the mobile router will use the home agent address 1.1.1.1 during registration and will detect when it is at home after receiving agent advertisements from either address 1.1.1.1 or 2.2.2.2: router mobile ip mobile router address 10.1.0.1 255.255.0.0 home-agent 1.1.1.1 priority 101 home-agent 2.2.2.2 priority 100 int attTo configure the access technology type (ATT), the interface, and the MAC address of the mobile node (MN) interface within the Proxy Mobile IPv6 (PMIP) domain, use the int att command in mobile node configuration mode. To remove the configuration of the MN, use the no form of this command.
int
att
interface-access-type
l2-addr
mac-address
no
int
att
interface-access-type
l2-addr
mac-address
interface (proxy mobile IPv6)To configure the interface where Mobile Access Gateway (MAG) functionality is enabled, use the interface command in MAG configuration mode. To remove the interface configuration, use the no form of this command. ip dampening-change eigrpTo set a threshold percentage to minimize or dampen the effect of frequent routing changes through an interface in Enhanced Interior Gateway Routing Protocol (EIGRP) for IPv4, use the ip dampening-change eigrpcommand in interface configuration mode. To restore the default value, use the no form of this command. Syntax Description
Usage GuidelinesThe ip dampening-change eigrp command is supported only for Mobile Ad Hoc Networking (MANET) router-to-radio links. When a peer metric changes on an interface that is configured with the ip dampening-change eigrpcommand, EIGRP multiplies the dampening-change percentage with the old peer metric and compares the result (the threshold) to the difference between the old and new metrics. If the metric difference is greater than the calculated threshold, then the new metric is applied and the routes learned from that peer are updated and advertised to other peers. If the metric difference is less than the threshold, the new metric is discarded. The following are the exceptions that will result in an immediate update of the routes regardless of the dampening-change setting:
Peer metric changes that do not exceed a configured change percentage and that do not result in a routing change do not cause an update to be sent to other adjacencies. Peer metric changes are based on the stored last-update of the peer. Peer metric changes that exceed the threshold value are stored and used for future comparisons. ExamplesThe following example shows how to configure the EIGRP to accept a peer metric change if the change is greater than 75 percent of the last updated value: Router(config)# interface fastethernet 0/0 Router(config-if)# ip dampening-change eigrp 1 75 Related Commands
ip dampening-interval eigrpTo set a threshold time interval to minimize or dampen the effect of frequent routing changes through an interface in Enhanced Interior Gateway Routing Protocol (EIGRP) for IPv4, use the ip dampening-interval eigrp command in interface configuration mode. To restore the default value, use the no form of this command. Usage GuidelinesThe ip dampening-interval eigrpcommand is supported only for Mobile Ad Hoc Networking (MANET) Router-to-Radio links. When a peer metric changes on an interface that is configured with a dampening interval, EIGRP for IPv4 will apply the metric change only if the time difference since the last metric change exceeds the specified interval. If the time difference is less than the specified interval, the update is discarded. The following are the exceptions that result in an immediate update of the routes regardless of the dampening interval settings:
ExamplesThe following example shows how to configure EIGRP for IPv4 on a FastEthernet interface 0/0 to limit the metric change frequency to no more than one change in a 45-second interval: Router(config)# interface fastethernet 0/0 Router(config-if)# ip dampening-interval eigrp 1 45 Related Commands
ip dhcp client mobile renewTo configure the number of renewal attempts and the interval between attempts for renewing an IP address acquired by a Dynamic Host Configuration Protocol (DHCP) client, use the ip dhcp client mobile renew command in interface configuration mode. To disable the functionality, use the no form of this command.
ip
dhcp
client
mobile
renew
count
number
interval
ms
no
ip
dhcp
client
mobile
renew
count
number
interval
ms
Usage GuidelinesMobile DHCP clients automatically attempt to renew an existing IP address in response to certain events, such as moving between wireless access points. The number of renewal attempts, and the interval between those attempts, depending on network conditions, can be modified by using the ip dhcp client mobile renew command. ip mobile arpTo enable local-area mobility, use the ip mobile arp command in interface configuration mode. To disable local-area mobility, use the no form of this command. ip mobile arp [timers keepalive hold-time] [access-group access-list-number | name]
no ip mobile arp
Syntax Description
Command History
Usage GuidelinesLocal-area mobility is supported on Ethernet, Token Ring, and FDDI interfaces only. To create larger mobility areas, you must first redistribute the mobile routes into your Interior Gateway Protocol (IGP). The IGP must support host routes. You can use Enhanced IGRP, Open Shortest Path First (OSPF), or Intermediate System-to-Intermediate System (IS-IS); you can also use Routing Information Protocol (RIP), but RIP is not recommended. The mobile area must consist of a contiguous set of subnets. Using an access list to control the list of possible mobile nodes is strongly encouraged. Without an access list, misconfigured hosts can be mistaken for mobile nodes and disrupt normal operations. ExamplesThe following example shows how to configure local-area mobility on Ethernet interface 0: access-list 10 permit 10.92.37.114 interface ethernet 0 ip mobile arp access-group 10 Related Commands
ip mobile authentication ignore-spiTo enable the home agent or foreign agent to accept RFC-2002 based mobile nodes or foreign agents that don't include the security parameter index (SPI) in the authentication extension of the registration message, use the ip mobile authentication ignore-spi command in global configuration mode. To disable this functionality, use the no form of this command. Usage GuidelinesCisco IOS software supports the Mobile-Home Authentication Extension (MHAE). All registration messages between a mobile and a home agent include a mandatory authentication extension. In RFC 2002, the SPI field was not included to calculate the authenticator value in the authentication extension of the registration message. In RFC 3220 and 3344, the SPI field in the authentication extension is used as part of the data over which the authentication algorithm must be computed. The command turns off authentication and allows an RFC-2002 based mobile node and foreign agent to register with the home agent even though the SPI field is not included in the authentication extension of the registration message. The foreign agent will accept both RFC 2002 and RFC 3220/3344 based visitors and the home agent will accept both RFC 2002 and RFC 3220/3344 based mobile nodes and foreign agents. ip mobile bindupdateTo enable a home agent to send a binding update message to a foreign agent, use the ip mobile bindupdate command in global configuration mode. To disable this functionality, use the no form of this command.
ip
mobile
bindupdate
[acknowledge]
[maximum seconds]
[minimum seconds]
[retry number]
no
ip
mobile
bindupdate
[acknowledge]
[maximum seconds]
[minimum seconds]
[retry number]
Syntax Description
Usage GuidelinesThis command enables the home agent to send a binding update message to the previous foreign agent when the mobile node moves to a new care-of address. The binding update message informs the foreign agent that a mobile node has moved and it can reclaim resources associated with that mobile node such as a visitor entry or visitor route. Typically, resources on the foreign agent are not reclaimed until the mobility binding lifetime expires for that mobile node. By using this command, the foreign agent does not have to wait to reclaim resources used by the mobile node when that mobile node is no longer associated with the foreign agent. Without this command configured, when a mobile node moves from foreign agent 1 to foreign agent 2 or when the home agent removes the binding, foreign agent 1 does not know that the mobile node has moved and the resources on foreign agent 1 associated with the mobile node will not be cleared until the lifetime expires for the mobile node. If the acknowledge keyword is specified, the home agent periodically retransmits a binding update message until it receives a binding acknowledgement from the foreign agent or until the number of retries is exceeded. The home agent and foreign agent must share a security association. The binding update message from the home agent and the binding update acknowledgement from the foreign agent must contain a FHAE (Foreign-Home Authentication Extension). If the FHAE is not configured on the home agent with the ip mobile secure command, the home agent will not send a binding update message even if the ip mobile bindupdate command is configured. ExamplesThe following example configures the home agent to wait a maximum of 8 seconds before retransmitting a binding update message to a foreign agent. The foreign agent must send an acknowledgement of this binding update message upon receipt. ip mobile bindupdate acknowledge maximum 8 retry 3 ip mobile secure foreign-agent 10.31.1.1 spi 100 key hex 23456781234567812345678123456781 The following example configures the security association on the foreign agent. Without the security association configured on the home agent and the foreign agent, the binding update message would not be sent or processed. ip mobile secure home-agent 172.31.10.1 spi 100 key hex 23456781234567812345678123456781 ip mobile cdma ha-chap send attributeTo include the Mobile Equipment Identifier (MEID) in the HA-CHAP access request, use the ip mobile cdma ha-chap send attribute command in global configuration mode. To disable this feature, use the no form of the command.
ip
mobile
cdma
ha-chap
send
attribute
[A1 | A2 | A3]
no
ip
mobile
cdma
ha-chap
send
attribute
[A1 | A2 | A3]
Usage GuidelinesThe MEID is a new attribute introduced in IS-835D that will eventually replace the ESN. In the interim, both attributes are supported on the Home Agent. The MEID NVSE will be appended by the PDSN node to the Mobile IP RRQ. When the MEID NVSE is received on the HA, and the ip mobile cdma ha-chap send attribute A3 command is configured, then the MEID value is included in the HA-CHAP access request. ip mobile debug include usernameip mobile foreign-agentTo enable foreign agent service, use the ip mobile foreign-agentcommand inglobal configuration mode. To disable this service, use the no form of this command.
ip
mobile
foreignagent
[careof interface [interface-only] [transmit-only] | reg-wait seconds | local-timezone | reverse-tunnel private-address]
no
ip
mobile
foreignagent
[careof interface [interface-only] [transmit-only] | reg-wait | local-timezone | reverse-tunnel private-address]
Syntax Description
Usage GuidelinesThis command enables foreign agent service when at least one care-of address is configured. When no care-of address exists, foreign agent service is disabled. The foreign agent is responsible for relaying the registration request to the home agent, setting up a tunnel to the home agent, and forwarding packets to the mobile node. The show commands used to display relevant information are shown in parentheses in the following paragraph. When a registration request comes in, the foreign agent will ignore requests when foreign agent service is not enabled on an interface or when no care-of address is advertised. If a security association exists for a visiting mobile node, the visitor is authenticated. The registration bitflag is handled as described in Table 3. The foreign agent checks the validity of the request. If successful, the foreign agent relays the request to the home agent, appending an FH authentication extension if a security association for the home agent exists. The pending registration timer of 15 seconds is started (show ip mobile visitor pendingcommand). At most, five outstanding pending requests per mobile node are allowed. If a validity check fails, the foreign agent sends a reply with error code to the mobile node (reply codes are listed in Table 4). A security violation is logged when visiting mobile node authentication fails (show ip mobile violationcommand). When a registration reply comes in, the home agent is authenticated (show ip mobile secure home-agentcommand) if a security association exists for the home agent (IP source address or home agent address in reply). The reply is relayed to the mobile node. When registration is accepted, the foreign agent creates or updates the visitor table, which contains the expiration timer. If no binding existed before this registration, a virtual tunnel is created, a host route to the mobile node via the interface (of the incoming request) is added to the routing table (show ip route mobilecommand), and an ARP entry is added to avoid the sendingof ARP requests for the visiting mobile node. Visitor binding is removed (along with its associated host route, tunnel, and ARP entry) when the registration lifetime expires or deregistration is accepted. When registration is denied, the foreign agent will remove the request from the pending registration table. The table and timers of the visitor will be unaffected. When a packet destined for the mobile node arrives on the foreign agent, the foreign agent deencapsulates the packet and forwards it out its interface to the visiting mobile node, without sending ARP requests. The care-of address must be advertised by the foreign agent. This adddress is used by the mobile node to register with the home agent. The foreign agent and home agent use this address as the source and destination point of tunnel, respectively. The foreign agent is not enabled until at least one care-of address is available. The foreign agent will advertise on interfaces configured with the ip mobile foreign-servicecommand. Only care-of addresses with interfaces that are up are considered available. The interface-onlyand transmit-only keywords are used in an aysmmetric link environment, such as satellite communications, where separate uplinks and downlinks exist. The ip mobile foreign-agent care-of interface interface-onlycommandenables the specified interface to advertise only its own address as the care-of address. All other care-of addresses are not advertised. Other foreign agent interfaces configured for foreign-service will not advertise interface-only care-of addresses. The ip mobile foreign-agent care-of interface transmit-onlycommand informs Mobile IP that the interface acts as an uplink. Registration requests and replies received for this care-of address are treated as transmit-only. This interface will not hear any solicitations. Any care-of address can be configured with the interface-only keyword, but only serial interfaces can be configured with the transmit-only keyword. Use the reverse-tunnel private-address keywords to force a mobile node with a private address to register with reverse tunnel. Private addresses are IP addresses in the following ranges:
The table below lists mobile node registration request service bitflags.
The table below lists foreign agent reply codes.
ExamplesThe following example enables foreign agent service on Ethernet interface 1, advertising 10.0.0.1 as the care-of address: ip mobile foreign-agent care-of Ethernet0 interface Ethernet0 ip address 10.0.0.1 255.0.0.0 interface Ethernet1 ip mobile foreign-service The following example enables foreign agent service on serial interface 4, advertising 10.0.0.2 as the only care-of address. The uplink interface is configured as a transmit-only interface. ip mobile foreign-agent care-of Serial4 interface-only transmit-only interface Serial4 ! Uplink interface ip address 10.0.0.2 255.255.255.0 ip irdp ! ip mobile foreign-service ! Related Commands
ip mobile foreign-agent inject-mobile-networksTo enable direct routing to mobile networks via the foreign agent, use the ip mobile foreign-agent inject-mobile-networks command inglobal configuration mode. To disable this functionality, use the no form of this command.
ip
mobile
foreign-agent
inject-mobile-networks
[mobnetacl access-list-identifier]
no
ip
mobile
foreign-agent
inject-mobile-networks
[mobnetacl access-list-identifier]
Syntax Description
Usage GuidelinesConfigure the ip mobile foreign-agent inject-mobile-networkscommand on the foreign agent to enable direct routing. The value entered for the access-list-identifier argument must match the name of an access list defined using the ip access-list command or the number of an access list defined using the access-listcommand. ExamplesThe following example configures the access list named mobile-net-list and enables direct routing via the foreign agent for mobile networks specified on that access list. ip access-list standard mobile-net-list permit any ! ip mobile foreign-agent inject-mobile-networks mobnetacl mobile-net-list ip mobile foreign-serviceTo enable foreign agent service on if care-of addresses are configured, use the ip mobile foreign-servicecommand in interface or global configuration mode. To disable this service, use the no form of this command.
ip
mobile
foreignservice
[challenge [forwardmfce] [timeout value] [window number] | [homeaccess accesslist] [limit number] [registrationrequired] [reversetunnel [mandatory] ]]
no
ip
mobile
foreignservice
[challenge [forwardmfce] [timeout value] [window number] | [homeaccess accesslist | limit number | registrationrequired | reversetunnel]]
Syntax Description
Command DefaultForeign agent service is not enabled. There is no limit to the number of visitors allowed on an interface.window number: 2 Foreign agent reverse tunneling is not enabled. When foreign agent reverse tunneling is enabled, it is not mandatory by default. Command History
Usage GuidelinesThis command enables foreign agent service on the interface or all interfaces (global configuration). The foreign agent (F) bit will be set in the agent advertisement, which is appended to the IRDP router advertisement whenever the foreign agent or home agent service is enabled on the interface. When you use the reverse-tunnel keyword to enable foreign agent reverse tunneling on an interface, the reverse tunneling support (T) bit is set in the agent advertisement. Cisco Express Forwarding (CEF) switching is currently not supported on a foreign agent when reverse tunneling is enabled. If reverse tunneling is enabled at the foreign agent, disable CEF on the foreign agent, using the no ip cef global configuration command. If the foreign agent does not support reverse tunneling, then there is no need to disable CEF at the global configuration level. Below table lists the advertised bitflags.
ExamplesThe following example shows how to enable foreign agent service for up to 100 visitors: interface Ethernet 0 ip mobile foreign-service limit 100 registration-required The following example shows how to enable foreign agent reverse tunneling: interface ethernet 0 ip mobile foreign-service reverse-tunnel The following example shows how to configure foreign agent challenge parameters: interface ethernet 0 ip mobile foreign-service challenge window 2 ip mobile home-agentTo enable and control home agent (HA) services, use the ip mobile home-agent command in global configuration mode. To disable these services, use the no form of this command.
ip
mobile
homeagent
[address ip-address]
[broadcast]
[care-of-access access-list]
[lifetime seconds]
[nat-detect]
[replay seconds]
[reverse-tunnel {off | private-address}]
[roam-access access-list]
[strip-realm]
[suppress-unreachable]
[local-timezone]
[unknown-ha [accept [reply] | deny]]
[send-mn-address]
no
ip
mobile
home-agent
[address ip-address]
[broadcast]
[care-of-access accessl-ist]
[lifetime seconds]
[nat-detect]
[replay seconds]
[reverse-tunnel {off | private-address}]
[roam-access access-list]
[strip-realm]
[suppress-unreachable]
[local-time-zone]
[unknown-ha [accept [reply] | deny]]
[send-mn-address]
Syntax DescriptionCommand DefaultThe command is disabled. Broadcasting is disabled. Reverse tunnel support is enabled. ICMP unreachable messages are sent. NAT detection is disabled. Usage GuidelinesThis command enables and controls HA services on a router. Changes to service take effect immediately; however, broadcast and lifetime settings for previously registered MNs are unaffected. Tunnels are shared by MNs registered with the same endpoints, so the reverse-tunnel-off keyword also affects registered MNs. The HA processes registration requests from the MN and sets up tunnels and routes to the CoA. Packets to the MN are forwarded to the visited network. The HA will forward broadcast packets to MNs if the MNs are registered with the service. However, heavy broadcast traffic uses the CPU of the router. The HA can control where the MNs roam by the care-of-access keyword, and which MN is allowed to roam by the roam-access keyword. When a registration request comes in, the HA ignores requests when HA service is not enabled or the security association of the MN is not configured. The latter condition occurs because the security association must be available for the MH authentication extension in the reply. If a security association exists for the FA (IP source address or CoA in the request), the FA is authenticated, and then the MN is authenticated. The Identification field is verified to protect against replay attack. The HA checks the validity of the request (see Table 3) and sends a reply. (Reply codes are listed in Table 4.) A security violation is logged when FA authentication, MH authentication, or identification verification fails. (The violation reasons are listed in Table 5.) After registration is accepted, the HA creates or updates the mobility binding of the MN, which contains the expiration timer. If no binding existed before this registration, a virtual tunnel is created, a host route to the MN via the care-of address is added to the routing table, and gratuitous ARPs are sent out. For deregistration, the host route is removed from the routing table, the virtual tunnel interface is removed (if no MNs are using it), and gratuitous ARP messages are sent out if the MN is back home. Mobility binding is removed (along with its associated host route and tunnel) when registration lifetime expires or deregistration is accepted. By default, the HA uses the entire NAI string as the username for authentication (which may be with local security association or retrieved from the AAA server). The strip-nai-realm keyword instructs the HA to strip off the realm part of NAI (if it exists) before performing authentication. Basically, the MN is identified by only the user name part of the NAI. This option is useful if the majority of MNs belong to the same realm, for example, in the case of enterprise networks. When the packet destined for the MN arrives on the HA, the HA encapsulates the packet and tunnels it to the care-of address. If the Don't Fragment (DF) bit is set in the packet via the ip mobile tunnel path-mtu-discovery global configuration command, the HA will copy the DF bit from the original packet to the new tunnel IP header. This allows the path MTU discovery to set the MTU of the tunnel. Subsequent packets greater than the MTU of the tunnel will be dropped and an ICMP datagram too big message will be sent to the source (correspondent node). If the HA loses the route to the tunnel endpoint, the host route to the MN will be removed from the routing table until the tunnel route is available. Packets destined for the MN without a host route will be sent out the interface (home network) or to the virtual network (see the description of the suppress-unreachable keyword). For subnet-directed broadcasts to the home link, the HA will send a copy to all MNs registered with the broadcast routing option. Some companies block ICMP datagram too big messages. If the message does not reach the original correspondent node sending the packet, the correspondent node will simply resend the same size packet. To work around this problem, turn off Path MTU Discovery with the no ip mobile tunnel path-mtu-discovery command. The DF bit will not be copied from the original packet and the tunnel packet can be fragmented. The ip mobile home-agent nat-detect option is supported for MNs using a collocated care-of address and registering through the FA. The MN will use the NAT inside address as the collocated care-of address used in its registration requests. If a MN is using a FA CoA address, the MN can be detected behind a NAT gateway. The ip mobile home-agent unknown-haoption can be useful in a testing environment when the HA is using a private address behind a NAT gateway. A MN would need to access the HA through the NAT box while it is on a public network domain. However, NAT will translate the destination IP address of the registration request to the private address of the HA. When the HA checks the HA field in the registration request, it does not match one of the interfaces. The packet can not be processed properly and the tunnels are not set up properly. The ip mobile home-agent unknown-ha command allows the HA to accept the unknown (translated) address and process the registration request. The send-mn-address keyword is available only on PDSN platforms running specific PDSN code images; consult Feature Navigator for your Cisco IOS software release. The MN requests services from the HA by setting bits in the registration request. The table below shows the services the MN can request.
The table below lists the HA registration reply codes. The codes tell the MN whether the registration was accepted or denied. If registration is denied, the reply code gives the reason.
Below table lists security violation codes. ip mobile home-agent aaa user-passwordTo configure an authentication password for the downloading of security associations from a AAA server, use the ip mobile home-agent aaa user-password command in global configuration mode. To remove the password requirement, use the noform of this command.
ip
mobile
home-agent
aaa
user-password
{0 password | 7 encrypted-password | password}
no
ip
mobile
home-agent
aaa
user-password
Usage GuidelinesWhen a mobile node sends a registration request packet to the home agent, Mobile IP requires a security association for registration authentication. Security associations for a mobile node can be configured on the home agent or retrieved by the home agent from a AAA server. If security associations are retrieved from a AAA server, the AAA access-request packets used to retrieve the security associations require a challenge and response. If the registration request of the mobile node does not contain a challenge and response, the home agent auto-generates a challenge and creates a response using the default password "cisco" unless you specify a different password using the ip mobile home-agent aaa user-password command. In either case, a single password is used for all mobile nodes. The AAA server will read the challenge in the access-request packet of the mobile node, and using the password of the mobile node that is stored on the AAA server, create the response to the challenge. It then authenticates the mobile node, identified by its IP address (or network access identifier), by comparing the two responses to ensure they are identical. For this reason, the password configured by the ip mobile home-agent aaa user-password command must match the user password in the user profile on the AAA server. Mobile nodes that include a challenge and response in their registration request, such as in the case of dynamic security association and key distribution, do not use the defined password. Instead, the home agent copies the challenge/response from the registration request into the AAA access-request packet. Thus, a mobile node in this scenario can have a "unique" password. You can enable or disable password encryption with the service password-encryption command. If thiscommand is enabled, even if the ip mobile home-agent aaa user-password 0 password is used, the password will be encrypted. ExamplesThe following example enables the encrypted password " $1$i5Rkls3L0yxzS8t9" for authenticating the downloading of security associations from the AAA server: ip mobile home-agent aaa user-password 7 $1$i5Rkls3L0yxzS8t9 The following example enables the unencrypted password " pswd2" for authenticating the downloading of security associations from the AAA server: ip mobile home-agent aaa user-password 0 pwsd2 The following example enables the unencrypted password " pswdmobile" for authenticating the downloading of security associations from the AAA server: ip mobile home-agent aaa user-password pswdmobile ip mobile home-agent accountingTo enable home agent accounting services on the router, use the ip mobile home-agent accounting command in global configuration mode. To disable these services, use the no form of this command.
ip
mobile
home-agent
accounting
{default | list-name}
no
ip
mobile
home-agent
accounting
{default | list-name}
Usage GuidelinesThis command enables and controls home agent accounting services on the router. First, use the aaa accounting global configuration command to define the accounting method list. Next, apply the same accounting method list on the home agent using the ip mobile home-agent accounting global configuration command. ip mobile home-agent dynamic-addressTo set the home agent address field in a Registration Response packet, use the ip mobile home-agent dynamic-address command in global configuration. To disable this functionality, or to reset the field use the no form of this command. Command DefaultThe Home Agent Address field will be set to the values specified by the ip-address argument. ip mobile home-agent multi-pathTo enable the home agent to process registration requests with multiple path support for all mobile routers, use the ip mobile home-agent multi-pathcommand in global configuration mode. To disable multipath support on the home agent, use the no form of this command.
ip
mobile
home-agent
multi-path
[metric {bandwidth | hopcount}]
no
ip
mobile
home-agent
multi-path
[metric {bandwidth | hopcount}]
Usage GuidelinesMultiple path support is enabled by default on the mobile router but disabled by default on the home agent. The multi-path command in mobile networks configuration mode overrides the global setting. ip mobile home-agent nat traversalTo enable NAT traversal support for Mobile IP home agents (HAs), use the ip mobile home-agent nat traversal command in global configuration mode. To disable Network Address Translation (NAT) traversal support for Mobile IP for the HA, use the no form of this command.
ip
mobile
home-agent
nat
traversal
[keepalive keepalive-time]
[forced {accept | reject}]
no
ip
mobile
home-agent
nat
traversal
[keepalive keepalive-time]
[forced {accept | reject}]
Syntax Description
ExamplesThe following example shows an HA configured with a keepalive timer set to 56 seconds and forced to accept UDP tunneling. ip mobile home-agent nat traversal 56 forced accept ip mobile home-agent replay 255 ip mobile home-agent redundancy Phy1 virtual-network Related Commands
ip mobile home-agent redundancyTo configure the home agent for redundancy by using the Hot Standby Router Protocol (HSRP) group name, use the ip mobile home-agent redundancy command in global configuration mode. To remove the address, use the no form of this command.
ip
mobile
home-agent
redundancy
hsrp-group-name
[ [virtual-network] address address]
[mode active-standby]
[swact-notification]
no
ip
mobile
home-agent
redundancy
hsrp-group-name
[ [virtual-network] address address]
[mode active-standby]
[swact-notification]
Syntax Description
Usage GuidelinesThe virtual-network keyword specifies that the HSRP group supports virtual networks.
When Mobile IP standby is configured, the home agent can request mobility bindings from the peer home agent. When Mobile IP standby is deconfigured, the home agent can remove mobility bindings. Operation of home agent redundancy on physical and virtual networks is described as follows:
ip mobile home-agent redundancy periodic-syncTo synchronize the byte and packet counters for each binding to the standby unit using an accounting update event, use the ip mobile home-agent redundancy periodic-sync command in global configuration mode. To disable this functionality, use the no form of this command.
ip
mobile
home-agent
redundancy
hsrp-group-name
[ [virtual-network] address address]
periodic-sync
no
ip
mobile
home-agent
redundancy
hsrp-group-name
[ [virtual-network] address address]
periodic-sync
ip mobile home-agent reject-static-addrTo configure the HA to reject Registration Requests from MNs under certain conditions, use the ip mobile home-agent reject-static-addr sub-command under the ip mobile home-agent global configuration command. ip mobile home-agent resync-saTo configure the home agent to clear out the old cached security associations and requery the AAA server for a new security association when the mobile node fails authentication, use the ip mobile home-agent resync-sa command in global configuration mode. To disable this functionality, use the no form of this command. Command DefaultThis command is off by default. The normal behavior of the home agent is to never requery the AAA server for a new security association. Usage GuidelinesYou must enable security association caching for the ip mobile home-agent resync-sa command to work. Use the ip mobile host aaa load-sa global configuration command to enable caching of security associations retrieved from a AAA server. When a security association is downloaded for a mobile node from a AAA server, the security association is time stamped. If the mobile node fails reregistration and the time interval since the security association was cached is greater than sec seconds, the home agent will clear out the old security association and requery the AAA server. If the time period is less than the sec value, the home agent will not requery the AAA server for the security association of the mobile node. The sec value represents the number of seconds the home agent will consider the downloaded security association synchronized with the AAA server. After that time period, it is considered old and can be replaced by a new security association from the AAA server. This time-based resynchronization process helps prevent denial-of-service attacks on the AAA server and provides a way to synchronize the home agent's cached security association entry when a change to the security association for the mobile node is made at the AAA server and on the mobile node. By using this process, once the mobile node fails reregistration with the old cached security association, the home agent will clear the cache for that mobile node, and resynchronize with the AAA server. ip mobile home-agent revocationTo enable support for MIPv4 registration revocation on the home agent, use the ip mobile home-agent revocation command in global configuration mode. To disable support for registration revocation, use the no form of the command.
ip
mobile
home-agent
revocation
[timeout seconds]
[retransmit retries]
[timestamp msec]
no
ip
mobile
home-agent
revocation
[timeout seconds]
[retransmit retries]
[timestamp msec]
Syntax Description
ip mobile home-agent template tunnelTo configure a home agent to use the template tunnel, use the ip mobile home-agent template tunnel command in global configuration. To disable the use of the template tunnel, use the no form of the command.
ip
mobile
home-agent
template
tunnel
interface-id
address
ha-address
no
ip
mobile
home-agent
template
tunnel
interface-id
address
ha-address
ip mobile hostTo configure the mobile host or mobile node group, use the ip mobile host command in global configuration mode. To disable these services, use the no form of this command.
ip
mobile
host
{lower [upper] | nai string [static-address {addr1 [addr2] [addr3] [addr4] [addr5] | local-pool name}] [address {addr | pool {local name | dhcp-proxy-client [dhcp-server addr]}}] {interface name | virtual-network networkaddress mask} [aaa [load-sa [permanent] ]] [authorized-pool name] [skip-aaa-reauthentication] [care-of-access access-list] [lifetime seconds]}
no
ip
mobile
host
{lower [upper] | nai string [static-address {addr1 [addr2] [addr3] [addr4] [addr5] | local-pool name}] [address {addr | pool {local name | dhcp-proxy-client [dhcp-server addr]}}] {interface name | virtual-network networkaddress mask} [aaa [loadsa [permanent] ]] [authorized-pool name] [skip-aaa-reauthentication] [care-of-access accesslist] [lifetime seconds]}
Syntax Description
Command History
Usage GuidelinesThis command configures the mobile host or mobile node group (ranging from lower address to upper address) to be supported by the home agent. These mobile nodes belong to the network on an interface or a virtual network (via the ip mobile virtual-network command). The security association for each mobile host must be configured using the ip mobile secure command or downloaded from a AAA server. All hosts must have security associations for registration authentication. Mobile nodes can have more than one security association. The memory consumption calculations shown in the first table below are based on the assumption of one security association per mobile node. Caching behavior of security associations differs between NAI and non-NAI hosts as described in the second table below. The nai keyword allows you to specify a particular mobile node or range of mobile nodes. The mobile node can request a static IP address (static-address keyword), which is configured using the addr1 variable (for a specific address) or the local-pool keyword (for an IP address from an address pool; the requested address must be in the pool). Or, the mobile node can request a dynamic address (address keyword), which is configured using the addr variable (for a specific address) or the pool keyword (for an IP address from a pool or DHCP server). If this command is used with the Packet Data Serving Node (PDSN) proxy Mobile IP feature and a realm is specified in the ip mobile proxy-host nai command, then only a pool of addresses can be specified in this command. The address pool can be defined by a local pool or by use of a DHCP proxy client. For DHCP, the interface name keyword and argument combination specifies the gateway address from which the DHCP server should select the address and the dhcp-server keyword specifies the DHCP server address. The NAI is sent in the client-id option of the DHCP packet and can be used to provide dynamic DNS services. You can also use this command to configure the static IP address or address pool for multiple flows with the same NAI. A flow is a set of {NAI, IP address}. Security associations can be stored by using one of three methods:
Each method has advantages and disadvantages, which are described in the table below.
The caching behavior of security associations for NAI hosts and non-NAI hosts is described in in the below table.
ExamplesThe following example configures a mobile node group to reside on virtual network 20.0.0.0 and retrieve mobile node security associations from a AAA server every time the mobile node registers: ip mobile host 20.0.0.1 20.0.0.3 virtual-network 20.0.0.0 aaa The following example configures a mobile node group to reside on virtual network 10.99.1.0 and retrieve and cache mobile node security associations from a AAA server. The cached security association is then used for subsequent registrations. ip mobile host 10.99.1.1 10.99.1.100 virtual-network 10.99.1.0 aaa load-sa The following example configures a local pool of dynamic addresses to be used in assigning IP addresses to mobile nodes in the cisco.com domain: ip mobile host nai @cisco.com address pool local mobilenodes virtual-network 9.0.0.0 255.0.0.0 aaa lifetime 180 The following example configures a local pool of dynamic addresses to be used in assigning IP addresses to mobile nodes in the cisco.com domain. The security associations that are retrieved from the AAA server are cached as long as the binding is present and are deleted on the home agent when the binding is removed (due to manual clearing of the binding or lifetime expiration). ip mobile host nai @cisco.com address pool local mobilenodes virtual-network 10.2.0.0 255.255.0.0 aaa load-sa lifetime 180 The following example configures a local pool of static addresses to be used in assigning IP addresses to mobile nodes in the cisco.com domain: ip mobile host nai @cisco.com static-address local-pool mobilenodes The following example configures a local pool of dynamic addresses to be used in assigning IP addresses to mobile nodes in the cisco.com domain. The security associations that are retrieved from the AAA server are cached permanently until cleared manually. ip mobile host nai @cisco.com address pool local mobilenodes virtual network 10.2.0.0 255.255.0.0 aaa load-sa permanent lifetime 180 The following example configures the DHCP proxy client to use a DHCP server located at 10.1.2.3 to allocate a dynamic home address: ip mobile host nai @dhcppool.com address pool dhcp-proxy-client dhcp-server 10.1.2.3 interface FastEthernet 0/0 Related Commands
© 2012 Cisco Systems, Inc. All rights reserved.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|