NEMO commands -- address

Use address to assign a home address to the mobile router.

Use undo address to restore the default.

Syntax

address ip-address

undo address

Default

The mobile router does not have any home addresses.

Views

Mobile router view

Predefined user roles

network-admin

mdc-admin

Parameters

ip-address: Specifies a home address in dotted decimal notation.

Examples

# Assign the home address 192.168.1.2 to the mobile router.

<Sysname> system-view

[Sysname] ip mobile router

[Sysname-mobile-router] address 192.168.1.2

NEMO commands -- display ip mobile router registration

Use display ip mobile router registration to display registration information for the mobile router.

Syntax

display ip mobile router registration

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Examples

# Display registration information for the mobile router.

<Sysname> display ip mobile router registration

Registration accepted on 01/31/13 at 07:01:24, on GigabitEthernet1/0/1

Care-of addr: 10.52.52.1 HA addr: 10.40.40.1 Home addr: 10.80.80.1

Lifetime requested: 36000 seconds

Granted: 3600 seconds

Remaining: 59 minutes 47 seconds

Flags: sbdmG-t-

Identification: B68B7673.81565B8

Next registration: 59 minutes 27 seconds

Extensions:

Mobile network: 172.16.153.0/24

Mobile network: 172.16.143.0/24

Authentication SPI: 101

Table 1 Command output

Field | Description
Registration accepted | Date and time when the registration reply was accepted.
On | Interface that receives the registration reply.
Care-of addr | Care-of address.
HA addr | IP address of the home agent.
Home addr | Home address of the mobile router.
Lifetime requested | Registration lifetime requested by the mobile router.
Granted | Registration lifetime granted by the home agent.
Remaining | Remaining lifetime before expiration.
Flags | Flags in the registration reply.
Identification | Registration identification in the registration reply.
Next registration | Time that the mobile router waits to send the next registration request.
Extensions | Extensions in the registration reply.
Mobile network | IP address and subnet mask of the mobile network.
Authentication SPI | SPI that identifies authentication between the mobile router and the home agent.

NEMO commands -- home-agent

Use home-agent to specify the IP address of the home agent.

Use undo home-agent to restore the default.

Syntax

home-agent ip-address

undo home-agent

Default

No home agent is specified on the mobile router.

Views

Mobile router view

Predefined user roles

network-admin

mdc-admin

Parameters

ip-address: Specifies the IP address of the home agent, in dotted decimal notation.

Examples

# Specify the IP address of the home agent 192.168.1.3 on the mobile router.

<Sysname> system-view

[Sysname] ip mobile router

[Sysname-mobile-router] home-agent 192.168.1.3

NEMO commands -- interop

Use interop to enable the interoperability mode.

Use undo interop to disable the interoperability mode.

Syntax

interop

undo interop

Default

The interoperability mode is disabled.

Views

Mobile router view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

Use this command when the peer device is from other vendors and does not support RFC 5177.

Examples

# Enable the interoperability mode.

<Sysname> system-view

[Sysname] ip mobile router

[Sysname-mobile-router] interop

NEMO commands -- ip df-bit zero

Use ip df-bit zero to set the DF bit to 0 for outgoing tunneled packets.

Use undo ip df-bit zero to restore the default.

Syntax

ip df-bit zero

undo ip df-bit zero

Default

The DF bit of outgoing tunneled packets is set to 1.

Views

Mobile router view

Predefined user roles

network-admin

mdc-admin

Examples

# Set the DF bit to 0 for outgoing tunneled packets.

<Sysname> system-view

[Sysname] ip mobile router

[Sysname-mobile-router] ip df-bit zero

NEMO commands -- ip mobile router

Use ip mobile router to enable the mobile router feature and enter mobile router view.

Use undo ip mobile router to disable the mobile router feature.

Syntax

ip mobile router

undo ip mobile router

Default

The mobile router feature is disabled.

Views

System view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

When you disable the mobile router feature, all settings in mobile router view are removed.

Examples

# Enable the mobile router feature and enter mobile router view.

<Sysname> system-view

[Sysname] ip mobile router

[Sysname-mobile-router]

NEMO commands -- ip mobile router-service collocated gateway

Use ip mobile router-service collocated gateway to specify the gateway address for a roaming interface.

Use undo ip mobile router-service collocated gateway to restore the default.

Syntax

ip mobile router-service collocated gateway ip-address

undo ip mobile router-service collocated gateway

Default

No gateway address is specified for a roaming interface.

Views

Layer 3 interface view

Predefined user roles

network-admin

mdc-admin

Parameters

ip-address: Specifies a gateway address for the roaming interface, in dotted decimal notation.

Usage guidelines

Before you execute this command on an interface, make sure the interface has been configured as a roaming interface.

Use this command in either of the following situations:

· The interface does not obtain a gateway from the DHCP server.

· The interface has a manually configured IP address.

If the roaming interface obtains an IP address and a gateway from a DHCP server, it automatically uses the gateway as the next hop to send a registration request. In this situation, this command does not take effect.

Examples

# Specify gateway address 192.168.1.23 for GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] ip address 172.21.58.23 255.255.255.0

[Sysname-GigabitEthernet1/0/1] ip mobile router-service roam

[Sysname-GigabitEthernet1/0/1] ip mobile router-service collocated gateway 192.168.1.23

Related commands

ip mobile router-service roam

NEMO commands -- ip mobile router-service collocated registration retry

Use ip mobile router-service collocated registration retry to set the registration retry interval upon registration failure for a roaming interface.

Use undo ip mobile router-service collocated registration retry to restore the default.

Syntax

ip mobile router-service collocated registration retry interval

undo ip mobile router-service collocated registration retry

Default

The registration retry interval is 60 seconds.

Views

Layer 3 interface view

Predefined user roles

network-admin

mdc-admin

Parameters

interval: Sets the registration retry interval in the range of 1 to 65535 seconds. The value 65535 indicates that the registration is not retried.

Usage guidelines

Before you execute this command on an interface, make sure the interface has been configured as a roaming interface.

Examples

# Set the registration retry interval to 100 seconds for the roaming interface GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] ip mobile router-service roam

[Sysname-GigabitEthernet1/0/1] ip mobile router-service collocated registration retry 100

Related commands

ip mobile router-service roam

NEMO commands -- ip mobile router-service roam

Use ip mobile router-service roam to configure a roaming interface.

Use undo ip mobile router-service roam to restore the default.

Syntax

ip mobile router-service roam

undo ip mobile router-service roam

Default

An interface is not a roaming interface.

Views

Layer 3 interface view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

A device can have only one roaming interface. If you configure another roaming interface on the same device, your configuration will fail.

The primary IP address of the roaming interface is automatically chosen as the CCoA address.

Examples

# Configure GigabitEthernet 1/0/1 as a roaming interface.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] ip mobile router-service roam

NEMO commands -- ip mobile secure home-agent

Use ip mobile secure home-agent to configure a security association for authentication to the home agent.

Use undo ip mobile secure home-agent to delete the security association.

Syntax

ip mobile secure home-agent ip-address spi hex-value key ascii { cipher | simple } string

undo ip mobile secure home-agent ip-address spi hex-value

Default

No security association is configured on the router for authentication to the home agent.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

ip-address: Specifies the IP address of the home agent, in dotted decimal notation.

hex-value: Specifies an SPI in hexadecimal notation to identify a security association. The value range is 0x100 to 0xffffffff.

cipher: Specifies a key in encrypted form.

simple: Specifies a key in plaintext form. For security purposes, the key specified in plaintext form will be stored in encrypted form.

string: Specifies the key. Its plaintext form is a case-sensitive string of 1 to 16 characters. Its encrypted form is a case-sensitive string of 33 to 53 characters.

Usage guidelines

To use the HMAC-MD5 algorithm for authentication, configure the same security association parameters on the mobile router and the home agent.

For information about security associations, see Security Configuration Guide.

Examples

# Configure a security association that contains the home agent address 2.2.2.2, SPI 100, and the plaintext key abcdefg.

<Sysname> system-view

[Sysname] ip mobile secure home-agent 2.2.2.2 spi 100 key ascii plaintext abcdefg

NEMO commands -- ipsec policy

Use ipsec policy to apply an IPsec policy to the tunnel interface of a mobile IP tunnel.

Use undo ipsec policy to restore the default.

Syntax

ipsec policy policy-name

undo ipsec policy

Default

No IPsec policy is applied to the tunnel interface of a mobile IP tunnel.

Views

Mobile router view

Predefined user roles

network-admin

mdc-admin

Parameters

policy-name: Specifies an IPsec policy by its name, a case-insensitive string of 1 to 63 characters.

Examples

# Apply IPsec policy policy1 to the tunnel interface of the mobile IP tunnel.

<Sysname> system-view

[Sysname] ip mobile router

[Sysname-mobile-router] ipsec policy policy1

NEMO commands -- mobile-network

Use mobile-network to specify a mobile router interface for connecting to a mobile network.

Use undo mobile-network to remove the configuration.

Syntax

mobile-network interface-type { interface-number | interface-number.subnumber }

undo mobile-network interface-type { interface-number | interface-number.subnumber }

Default

No interface is configured as a mobile router interface.

Views

Mobile router view

Predefined user roles

network-admin

mdc-admin

Parameters

interface-type: Specifies an interface type.

interface-number: Specifies an interface number.

interface-number.subnumber: Specifies a subinterface number. The interface-number argument represents the number of an interface. The subnumber argument represents the number of the subinterface that has been created for the interface. The value range for the subnumber argument is 1 to 4094.

Usage guidelines

The primary IP address of a mobile router interface is contained in the registration request to inform the home agent of the mobile network.

Examples

# Specify GigabitEthernet 1/0/1 as a mobile router interface.

<Sysname> system-view

[Sysname] ip mobile router

[Sysname-mobile-router] mobile-network gigabitethernet 1/0/1

NEMO commands -- preference

Use preference to set a preference for mobile IP routes.

Use undo preference to restore the default.

Syntax

preference preference

undo preference

Default

The preference value is 65.

Views

Mobile IP view

Predefined user roles

network-admin

mdc-admin

Parameters

preference: Specifies a preference for mobile IP routes, in the range of 1 to 255.

Examples

# Set the preference for mobile IP routes to 60.

<Sysname> system-view

[Sysname] router mobile

[Sysname-mip] preference 60

NEMO commands -- register extend

Use register extend to configure registration extension parameters for the mobile router to be kept alive.

Use undo register extend to restore the default.

Syntax

register extend expire seconds retry retries interval interval

undo register extend

Default

The mobile router sends a registration request 60 seconds before the registration expires. The mobile router makes a maximum of 3 retries every 10 seconds if it does not receive a registration reply.

Views

Mobile router view

Predefined user roles

network-admin

mdc-admin

Parameters

expire seconds: Specifies the amount of time before registration expiration. The value range for the seconds argument is 1 to 60 seconds.

retry retries: Specifies the maximum number of retries for sending a registration request. The value range for the retries argument is 0 to 10. The value 0 indicates that the interface does not make any retries.

interval interval: Specifies the retry interval in the range of 1 to 3600 seconds.

Usage guidelines

If the registration lifetime is no longer than the time specified by the expire seconds option, the mobile router sends a registration request when half the registration lifetime elapses.

Examples

# Configure the mobile router to send a registration request 60 seconds before registration expiration. Configure the mobile router to make 3 retries every 5 seconds if no registration reply is received.

<Sysname> system-view

[Sysname] ip mobile router

[Sysname-mobile-router] register extend expire 60 retry 3 interval 5

Related commands

register lifetime

NEMO commands -- register lifetime

Use register lifetime to set the registration lifetime requested by the mobile router.

Use undo register lifetime to restore the default.

Syntax

register lifetime seconds

undo register lifetime

Default

The registration lifetime is 65534 seconds.

Views

Mobile router view

Predefined user roles

network-admin

mdc-admin

Parameters

seconds: Sets the registration lifetime in the range of 3 to 65535 seconds. The value 65535 means that the registration never expires.

Usage guidelines

If the mobile router does not receive any replies from the home agent within the registration lifetime, the router performs the following operations:

· Removes the registration information.

· Sends registration request until a reply is received.

If the registration lifetime is set on both the mobile router and the home agent, the smaller value is used.

Examples

# Set the registration lifetime to 3600 seconds.

<Sysname> system-view

[Sysname] ip mobile router

[Sysname-mobile-router] register lifetime 3600

Related commands

register extend

NEMO commands -- register retransmit

Use register retransmit to set retransmission parameters for the mobile router's registration with the home agent.

Use undo register retransmit to restore the default.

Syntax

register retransmit initial milliseconds maximum milliseconds retry retries

undo register retransmit

Default

The initial waiting time is 1000 milliseconds, the maximum waiting time is 5000 milliseconds, and a maximum of 3 retries is allowed.

Views

Mobile router view

Predefined user roles

network-admin

mdc-admin

Parameters

initial milliseconds: Specifies the initial waiting time in milliseconds for the mobile router to transmit the registration request if no reply is received for the initial request. The value range is 10 to 10000.

maximum milliseconds: Specifies the maximum waiting time in milliseconds for the mobile router to retransmit a registration request. The value range is 10 to 10000.

retry retries: Specifies the maximum number of retries for sending a registration request. The value range is 0 to 10. The value 0 indicates that the mobile router does not retransmit a registration request.

Usage guidelines

The current waiting time is twice the previous waiting time. When the current waiting time exceeds the maximum waiting time, the maximum waiting time applies.

Examples

# Set the initial waiting time to 2000 milliseconds, the maximum waiting time to 10000 milliseconds, and the maximum number of retries to 4.

<Sysname> system-view

[Sysname] ip mobile router

[Sysname-mobile-router] register retransmit initial 2000 maximum 10000 retry 4

NEMO commands -- router mobile

Use router mobile to enable mobile IP and enter its view.

Use undo router mobile to disable mobile IP.

Syntax

router mobile

undo router mobile

Default

Mobile IP is disabled.

Views

System view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

When you disable mobile IP, all NEMO settings are removed.

Examples

# Enable mobile IP and enter its view.

<Sysname> system-view

[Sysname] router mobile

[Sysname-mip]

NEMO commands -- tcp mss

Use tcp mss to set the TCP MSS for the tunnel interface of a mobile IP tunnel.

Use undo tcp mss to restore the default.

Syntax

tcp mss value

undo tcp mss

Default

No TCP MSS is set for the tunnel interface of a mobile IP tunnel.

Views

Mobile router view

Predefined user roles

network-admin

mdc-admin

Parameters

value: Specifies the TCP MSS in the range of 128 to 63960 bytes.

Examples

# Set the TCP MSS to 1024 bytes for the tunnel interface of the mobile IP tunnel.

<Sysname> system-view

[Sysname] ip mobile router

[Sysname-mobile-router] tcp mss 1024

NEMO commands -- tunnel mtu

Use tunnel mtu to set an MTU for the tunnel interface of a mobile IP tunnel.

Use undo tunnel mtu to restore the default.

Syntax

tunnel mtu size

undo tunnel mtu

Default

The MTU for the tunnel interface is 64000 bytes.

Views

Mobile router view

Predefined user roles

network-admin

mdc-admin

Parameters

size: Specifies an MTU in the range of 100 to 64000 bytes.

Examples

# Set the MTU to 1024 bytes for the tunnel interface of the mobile IP tunnel.

<Sysname> system-view

[Sysname] ip mobile router

[Sysname-mobile-router] tunnel mtu 1024

NEMO commands -- tunnel-number

Use tunnel-number to set the tunnel interface number range for automatic tunnel creation.

Use undo tunnel-number to restore the default.

Syntax

tunnel-number min min-number max max-number

undo tunnel-number

Default

The minimum tunnel interface number is 0. The maximum tunnel interface number varies by device model.

Views

Mobile IP view

Predefined user roles

network-admin

mdc-admin

Parameters

min-number: Sets the minimum tunnel interface number. The value range for this argument varies by device model.

max-number: Sets the maximum tunnel interface number. The value range for this argument varies by device model.

Usage guidelines

If a tunnel is used by another protocol, the interface number is not available to the mobile IP tunnel. If no available interface number exists, the mobile router fails to establish the tunnel with the home agent. The mobile router initiates a registration request after the interval set by using the ip mobile router-service collocated registration retry command.

Examples

# Set the tunnel interface number range 5 to 15 for the mobile IP tunnel.

<Sysname> system-view

[Sysname] router mobile

[Sysname-mip] tunnel-number min 5 max 15