Q

In a Cisco router how do I configure a specific route and cost for a particular interface?

In a Cisco router how do I configure a specific route and cost for a particular interface?
On a Cisco router go to configuration mode with "Config t" command. And execute the command
Ip route <destination subnet> <destination mask> (outgoing 
interface or next hop IP address> I.E., if I want to send all packets destined for 10.10.10.0 / 24 out of serial
interface serial1/1 with 192.168.10.1/30 I would say
Ip route 10.10.10.0 255.255.255.0 192.168.10.2
Or
Ip route 10.10.10.0 255.255.255.0 serial1/1
Both of the above have same effect. You can add costs (0-255) to these routes by just specifying the number in the last. Ip route 10.10.10.0 255.255.255.0 serial1/1 50
This was first published in December 2003

Dig deeper on Network Administration

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchSDN

SearchEnterpriseWAN

SearchUnifiedCommunications

SearchMobileComputing

SearchDataCenter

SearchITChannel

Close