You are here: Home > CLI Commands > Just_CLI_Topics > ip route

ip route

ip route <destip> <destmask> {ipsec <name> [<cost>]|null <0-0>|<nexthop> [<cost>]}

Description

This command configures a static route on Mobility Master or the managed device.

Syntax

Parameter

Description

<destip>

Enter the destination IP address prefix in dotted decimal format (A.B.C.D).

<destmask>

Enter the destination netmaskNetmask is a 32-bit mask used for segregating IP address into subnets. Netmask defines the class and range of IP addresses. in dotted decimal format (A.B.C.D).

ipsec <name>

Enter the IPsecInternet Protocol security. IPsec is a protocol suite for secure IP communications that authenticates and encrypts each IP packet in a communication session. map name to use a static IPsecInternet Protocol security. IPsec is a protocol suite for secure IP communications that authenticates and encrypts each IP packet in a communication session. route map.

null <0-0>

Enter the key word null 0 to designate a null interface.

<nexthop> [<cost>]

Enter the forwarding router address in dotted decimal format (A.B.C.D). Optionally, enter the distance metric (cost) for this route. The cost prioritizes routing to the destination. The lower the cost, the higher the priority.

Usage Guidelines

This command configures a static route on Mobility Master or the managed device other than the default gatewayGateway is a network node that allows traffic to flow in and out of the network.. Use the ip default-gateway command to set the default gatewayGateway is a network node that allows traffic to flow in and out of the network. to the IP address of the interface on the upstream router or switch to which you connect Mobility Master or the managed device.

Example

The following command configures a static route:

(host) [mynode] (config) #ip route 172.16.0.0 255.255.0.0 10.1.1.1

Related Commands

Command

Description

ip nexthop-list

Configure next hop list settings for policy-based routing.

Command History

Release

Modification

ArubaOS 8.0.0.0

Command introduced.

Command Information

Platform

License

Command Mode

All platforms

Base Operating System.

 

Config mode on Mobility Master.

/*]]>*/