Ask the Expert

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?

    Requires Free Membership to View

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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
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
Sort by: OldestNewest

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: