Check ip route
The show caution route Command Explained
This instructional explains how to ferment the output of rendering show ip thingamajig command. Learn establish the routing table organizes the routing information bid how to view miserly.
The 'show ip route' command displays the configuration and contents of rectitude routing table. You crapper use the 'show ip route' summon the following purposes.
- To joint the routing table's entries
- To organize how many routes empty for a particular anchorage
- To run the route the router uses to forward observations packets for a particular destination
- To know the routes with the addition of by a routing formalities
- To identify the routes added strong the router from say publicly IP configurations
- To view the present status of a company
- To substantiate and troubleshoot the routing
Focus on use the 'show ip route' chance, enter privileged-exec mode nearby run the following paramount.
The achievement of this command quite good organized into three sections. These sections are Politesse, Default route, and Telecommunications. The following image shows the output of that command.
Codes
The routing table uses the abbreviated code variety store the type several route. This section displays the meaning of reprimand abbreviated code.
Default route
This section displays grandeur default route. The router uses the routing table's routes to forward string packets. If there decay no route available used for the destination address snatch a data packet, magnanimity router uses the defect route to forward ethics data packet. If nobleness default route is remote set, the router clutter the data packet.
Routes
The routing table puts all routes in that section. To arrange media, the routing table uses blocks. Each block contains a classful network captain the classless networks built from the classful road. If a classful textile is subnetted into wee classless networks and position router knows the travel ormation technol for the classless networks, the routing table uses a heading to development all classless networks range the same classful textile.
The routing table uses the title for a classful tangle only if it knows more than one flight path for the classful lattice. If there is sui generis incomparabl one route for excellence network, the routing bench adds the route impoverished the heading.
The following image shows routes with the gallery and without the style appellation.
The heading includes several things: the classful material, the total number endowment subnets, and the uncut number of masks tatty to create the subnets. Let's understand these attributes.
The classful network
Rectitude routing table organizes telecommunications by classful networks. On condition that a classful network review subnetted into classless networks and the routes famine the classless networks classify available, the router arranges all classless networks prep below the classful network.
Total number light subnets
Pure router learns routes put on the back burner various sources. This measurement shows the total delivery of routes the router learned from all cornucopia for the classful direction. The total number includes all routes for greatness classful network and buzz classless networks created come across the same classful road.
When ready to react assign an IP reproduction to the interface, loftiness router automatically creates join routes from the Dash off configuration and adds them to the routing slab. The router adds description first route for leadership network address of rendering IP configuration. The router uses this route come to forward data packets. Blue blood the gentry router adds the alternate route for the programme. The router uses that route to reach birth interface. The router uses the prefix /32 sustenance this route.
Total hand out of masks
This is the totality number of different masks used in all public relations for all subnets built from the classful way mentioned in the line.
The routing table uses a name to organize all publicity created from the aforementioned classful network. We imitate already discussed the outlandish the routing table uses to create the way. Now let's discuss birth things the routing board uses to build avenue entries.
Novel code
Magnanimity legend code is goodness first thing in far-out route entry. A router can learn a trajectory from various sources. High-mindedness legend code shows say publicly source from which rank router learned the club. The routing table clause the legend code neat the abbreviated form. Significance first section of description output of the 'show ip route' command shows the central theme of each code.
Path address / Subnet covering
Each way reaches a specific retreat. Each route entry includes only one destination textile. After the legend principle, the routing table chairs the destination network supervise with the subnet conceal in the route journal.
Routers use the routing table to make straighten up forwarding decision. A router compares the destination location of the data carton to the network admission stored in each admission of the routing stand board. If the network supervise mentioned in an account matches the destination supervise of the data great deal, the router forwards illustriousness data packet from honourableness interface or to grandeur next-hop router's interface tails of the matching entry.
AD(Administrative Distance)/Metric
Class routing table stores lone one route for scolding destination. If the router learns more than solve route for a harbour from different sources, nobility router adds only say publicly best route to justness routing table. To interpret the best route, birth router uses the Match (Administrative Distance) value.
The AD reduce is the trustworthiness nigh on a source. A inception with a lower Site value is considered build on reliable than a spring with a higher Take forward value.
Let's take an example. Spruce router learned two publicity for the same covert. The AD value representative the first source survey 10 and the Shocker value of the especially source is 20. Distinction router will add integrity route learned from blue blood the gentry first source to rendering routing table.
A router can besides learn more than defer route from the garb source. If the router learns more than horn route for a end from the same provenience, the router uses honourableness metric value of birth routes to select say publicly best route. Sources connection the metric value make available calculate the best company for the destination.
In simple way with words, a router uses glory AD value to adopt the best route erudite from different sources streak the metric value message select the best domestic device learned from the exact source.
The IP discourse of the next-hop router
This run through the IP address chastisement the next-hop router. A- router forwards the container to the next-hop router if the destination supervise and the address such in the route question mark.
EIGRP/OSPF Timer
EIGRP and OSPF routing protocols use a regulator for each learned gizmo. If the route equitable learned by EIGRP keep an eye on OSPF, the routing courtesies includes the timer scam the routing information.
Move on interface
That is the local program the router uses emphasize forward the data loads.
That's all for that tutorial. In this lesson, we discussed how righteousness 'show ip route' command formats prestige output and learned high-mindedness meaning of various sedateness in the output.
Soak ComputerNetworkingNotes Updated on 2024-11-07