Static Routes
Summary
This topic describe the command syntax for static routes. Start learning CCNA 200-301 for free right now!!
Table of Contents
Types of Static Routes
Static routes are commonly implemented on a network. This is true even when there is a dynamic routing protocol configured. For instance, an organization could configure a default static route to the service provider and advertise this route to other corporate routers using the dynamic routing protocol.
Static routes can be configured for IPv4 and IPv6. Both protocols support the following types of static routes:
- Standard static route
- Default static route
- Floating static route
- Summary static route
Static routes are configured using the ip route and ipv6 route global configuration commands.
Next-Hop Options
When configuring a static route, the next hop can be identified by an IP address, exit interface, or both. How the destination is specified creates one of the three following types of static route:
- Next-hop route – Only the next-hop IP address is specified
- Directly connected static route – Only the router exit interface is specified
- Fully specified static route – The next-hop IP address and exit interface are specified
IPv4 Static Route Command
IPv4 static routes are configured using the following global configuration command:
Router(config)# ip route network-address subnet-mask { ip-address | exit-intf [ip-address]} [distance]
The table describes the ip route command parameters.
Parameter | Description |
---|---|
network-address |
Identifies the destination IPv4 network address of the remote network to add to the routing table. |
subnet-mask |
|
ip-address |
|
exit-intf |
|
exit-intf ip-address |
Creates a fully specified static route because it specifies the exit interface and next-hop IPv4 address. |
distance |
|
IPv6 Static Route Command
IPv6 static routes are configured using the following global configuration command:
Router(config)# ipv6 route ipv6-prefix/prefix-length {ipv6-address | exit-intf [ipv6-address]} [distance]
Most of parameters are identical to the IPv4 version of the command.
The table shows the various ipv6 route command parameters and their descriptions.
Parameter | Description |
---|---|
ipv6-prefix |
Identifies the destination IPv6 network address of the remote network to add to the routing table. |
/prefix-length |
Identifies the prefix length of the remote network. |
ipv6-address |
|
exit-intf |
|
exit-intf ipv6-address |
Creates a fully specified static route because it specifies the exit interface and next-hop IPv6 address. |
distance |
|
Dual-Stack Topology
The figure shows a dual-stack network topology. Currently, no static routes are configured for either IPv4 or IPv6.
IPv4 Starting Routing Tables
IPv6 Starting Routing Tables
Ready to go! Keep visiting our networking course blog, give Like to our fanpage; and you will find more tools and concepts that will make you a networking professional.