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 last published in December 2003

Dig Deeper on Network Administration

PRO+

Content

Find more PRO+ content and other member only offers, here.

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.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchSDN

SearchEnterpriseWAN

SearchUnifiedCommunications

SearchMobileComputing

SearchDataCenter

SearchITChannel

Close