Static Route
To configure a static route, use the command:
ip route <destination-address> <mask> <next-hop>Example
Here we configure a default route:
ip route 0.0.0.0 0.0.0.0 192.168.1.254After this, the result of show ip route will contains:
...
Gateway of last resort is 192.168.1.254 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 192.168.1.254
...S - Static
* - Candidate default
Last updated