IP Route Command on CISCO Router/Switch

Command

IP Route

Use

Allows you to set static routes to define how to reach remote networks..

Syntax

Router(config)#ip route <network> <mask> <next hop>

Example

In the below example we will configure R1 to be able to ping R3

R1(config)#ip route 3.3.3.3 255.255.255.255 10.1.1.2
R1(config)#do show ip route | in 3.3.3.3
S 3.3.3.3 [1/0] via 10.1.1.2
R1(config)#do ping 3.3.3.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/57/100 ms
R1(config)#

Related Articles

guest
0 Comments
Inline Feedbacks
View all comments