Static Routes
The default administrative distance (AD) for a static route is 1.
Description
Enter into global configuration mode
Enable routing (L3)
Default route
Route with a manually configured administrative distance (Target network - Subnet mask - Next hop address - AD)
Route to another network (Target network - Subnet mask - Next hop address)
Route to another network (Target network - Subnet mask - Outgoing interface)
Host route
Exit grom the configuration mode
Display the configured default gateway
Display the routing table
CLI Commands
configure terminal
ip routing
ip route 0.0.0.0 0.0.0.0 192.168.1.1
ip route 172.16.1.0 255.255.255.0 192.168.18.1 10
ip route 10.1.1.0 255.255.255.0 192.168.0.1
ip route 10.1.1.0 255.255.255.0 gi0/1
ip route 10.10.10.1 255.255.255.255 192.168.0.5
end
show ip default-gateway
show ip route