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

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.