The command you use to add a static route to a routing table:

, |

Command :

ip route [destination_network] [mask] [next-hop_address or exitinterface [administrative_distance] [permanent]

This list describes each command in the string:

ip route :    The command used to create the static route.

destination_network :  The network you’re placing in the routing table.

mask :   The subnet mask being used on the network.

Next-Hop Address :   The address of the next-hop router that will receive the packet and forward it to the remote network. This is a router interface that’s on a directly connected network. You must be able to ping the router interface before you add the route. If you type in the wrong next-hop  the address, or the interface to that router is down, static route shows up in the router’s configuration, but not in the routing table.
                    

Exitinterface :    You can use this in place of the next-hop address if you want, but it’s got to   
                            be on a point-to-point link, like a WAN. This command won’t  work on a
                            LAN like Ethernet. By default, static routes have an administrative
                            distance of 1.
                  
Administrative_Distance :    By default, static routes have an administrative distance of 1. You
                                               can change the default value by adding an administrative weight
                                               at the end of the Command.                          
                     

Permanent :    If the interface is shut down or the router can’t communicate to the next-hop
                        router, the route is automatically discarded from the routing table. Choosing
                        the permanent option keeps the entry in the routing table no matter
                        what happens.

0 comments:

Post a Comment

hi friends, pls post ur software problems i will surely help you

 
2009 portfolio site. All right reserved. Template by DryIcons.com follow me on twitter