Static routes are configured using the ip route global configuration command. The syntax of the command is:

Router(config)# ip route network-address subnet-mask { ip-address | interface-type interface-number [ ip-address ]} [ distance ] [ name name ] [ permanent ] [ tag tag ]

The following parameters are required to configure static routing:

One or both of the following parameters must also be used:

As shown in the figure, the command syntax commonly used is ip route network-address subnet-mask {ip-address | exit-intf}.

Thedistance parameter is used to create a floating static route by setting an administrative distance that is higher than a dynamically learned route.

Note: The remaining parameters are not relevant for this chapter or for CCNA studies.