ip route

To configure the static routes, use the ip route command in Configuration mode. To remove static routes, use the no form of this command.

Static routes are manually configured, which makes them inflexible (they cannot dynamically adapt to network topology changes), but extremely stable. Static routes optimize bandwidth utilization, because no routing updates need to be sent to maintain them. They also make it easy to enforce routing policy.

ip route prefix mask gateway ip-address

no ip route prefix mask

Syntax Description

ip route

The command to configure IP routes.

prefix

IP route prefix for the destination.

mask

Prefix mask for the destination.

ip-address

IP address of the next hop that can be used to reach that network.

Defaults

No default behavior or values.

Command Modes

Configuration

Examples

/admin(config)# ip route 192.168.0.0 255.255.0.0 gateway 172.23.90.2

/admin(config)#