Show Ip Route - Command Reference
Có thể bạn quan tâm
Use the show ip route EXEC command to display the current state of the routing table.
show ip route [address [mask] [longer-prefixes]] | [protocol [process-id]]Syntax Description
address | (Optional) Address about which routing information should be displayed. |
mask | (Optional) Argument for a subnet mask. |
longer-prefixes | (Optional) The address and mask pair becomes a prefix and any routes that match that prefix are displayed. |
protocol | (Optional) Name of a routing protocol; or the keyword connected, static, or summary. If you specify a routing protocol, use one of the following keywords: bgp, egp, eigrp, hello, igrp, isis, ospf, or rip. |
process-id | (Optional) Number used to identify a process of the specified protocol. |
Command Mode
EXEC
Usage Guidelines
This command first appeared in Cisco IOS Release 10.0. The longer-prefixes keyword first appeared in IOS Release 11.0. The process-id argument first appeared in IOS Release 10.3.
Sample Displays
The following is sample output from the show ip route command when entered without an address:
Router# show ip route Codes: I - IGRP derived, R - RIP derived, O - OSPF derived C - connected, S - static, E - EGP derived, B - BGP derived * - candidate default route, IA - OSPF inter area route E1 - OSPF external type 1 route, E2 - OSPF external type 2 route Gateway of last resort is 131.119.254.240 to network 129.140.0.0 O E2 150.150.0.0 [160/5] via 131.119.254.6, 0:01:00, Ethernet2 E 192.67.131.0 [200/128] via 131.119.254.244, 0:02:22, Ethernet2 O E2 192.68.132.0 [160/5] via 131.119.254.6, 0:00:59, Ethernet2 O E2 130.130.0.0 [160/5] via 131.119.254.6, 0:00:59, Ethernet2 E 128.128.0.0 [200/128] via 131.119.254.244, 0:02:22, Ethernet2 E 129.129.0.0 [200/129] via 131.119.254.240, 0:02:22, Ethernet2 E 192.65.129.0 [200/128] via 131.119.254.244, 0:02:22, Ethernet2 E 131.131.0.0 [200/128] via 131.119.254.244, 0:02:22, Ethernet2 E 192.75.139.0 [200/129] via 131.119.254.240, 0:02:23, Ethernet2 E 192.16.208.0 [200/128] via 131.119.254.244, 0:02:22, Ethernet2 E 192.84.148.0 [200/129] via 131.119.254.240, 0:02:23, Ethernet2 E 192.31.223.0 [200/128] via 131.119.254.244, 0:02:22, Ethernet2 E 192.44.236.0 [200/129] via 131.119.254.240, 0:02:23, Ethernet2 E 140.141.0.0 [200/129] via 131.119.254.240, 0:02:22, Ethernet2 E 141.140.0.0 [200/129] via 131.119.254.240, 0:02:23, Ethernet2The following is sample output that includes some IS-IS Level 2 routes learned:
Router# show ip route Codes: I - IGRP derived, R - RIP derived, O - OSPF derived C - connected, S - static, E - EGP derived, B - BGP derived i - IS-IS derived * - candidate default route, IA - OSPF inter area route E1 - OSPF external type 1 route, E2 - OSPF external type 2 route L1 - IS-IS level-1 route, L2 - IS-IS level-2 route Gateway of last resort is not set 160.89.0.0 is subnetted (mask is 255.255.255.0), 3 subnets C 160.89.64.0 255.255.255.0 is possibly down, routing via 0.0.0.0, Ethernet0 i L2 160.89.67.0 [115/20] via 160.89.64.240, 0:00:12, Ethernet0 i L2 160.89.66.0 [115/20] via 160.89.64.240, 0:00:12, Ethernet0Table 68 describes significant fields shown in these two displays.
Field | Description |
---|---|
O | Indicates protocol that derived the route. Possible values include the following:
|
E2 | Type of route. Possible values include the following:
|
150.150.0.0 | Indicates the address of the remote network. |
[160/5] | The first number in the brackets is the administrative distance of the information source; the second number is the metric for the route. |
via 131.119.254.6 | Specifies the address of the next router to the remote network. |
0:01:00 | Specifies the last time the route was updated in hours:minutes:seconds. |
Ethernet 2 | Specifies the interface through which the specified network can be reached. |
When you specify that you want information about a specific network displayed, more detailed statistics are shown. The following is sample output from the show ip route command when entered with the address 131.119.0.0.
Router# show ip route 131.119.0.0 Routing entry for 131.119.0.0 (mask 255.255.0.0) Known via "igrp 109", distance 100, metric 10989 Tag 0 Redistributing via igrp 109 Last update from 131.108.35.13 on TokenRing0, 0:00:58 ago Routing Descriptor Blocks: * 131.108.35.13, from 131.108.35.13, 0:00:58 ago, via TokenRing0 Route metric is 10989, traffic share count is 1 Total delay is 45130 microseconds, minimum bandwidth is 1544 Kbit Reliability 255/255, minimum MTU 1500 bytes Loading 2/255, Hops 4Table 69 describes significant fields shown in the display.
Field | Description |
---|---|
Routing entry for 131.119.0.0 (mask 255.255.0.0) | Network number and mask. |
Known via "igrp 109" | Indicates how the route was derived. |
distance 100 | Administrative distance of the information source. |
Tag 0 | Integer that is used to implement the route. |
Redistributing via igrp 109 | Indicates redistribution protocol. |
Last update from 131.108.35.13 on TokenRing0 | Indicates the IP address of a router that is the next hop to the remote network and the router interface on which the last update arrived. |
0:00:58 ago | Specifies the last time the route was updated in hours:minutes:seconds. |
131.108.35.13, from 131.108.35.13, 0:00:58 ago | Indicates the next hop address, the address of the gateway that sent the update, and the time that has elapsed since this update was received in hours:minutes:seconds. |
via TokenRing0 | Interface for this route. |
Route metric is 10989 | This value is the best metric for this routing descriptor block. |
traffic share count is 1 | Number of uses for this routing descriptor block. |
Total delay is 45130 microseconds | Total propagation delay in microseconds. |
minimum bandwidth is 1544 Kbit | Minimum bandwidth encountered when transmitting data along this route. |
Reliability 255/255 | Likelihood of successful packet transmission expressed as a number between 0 and 255 (255 is 100 percent reliability). |
minimum MTU 1500 bytes | Smallest MTU along the path. |
Loading 2/255 | Effective bandwidth of the route in kilobits per second/255 is saturation. |
Hops 4 | Hops to the destination or to the router where the route first enters IGRP. |
The following is sample output using the longer-prefixes keyword. When the longer-prefixes keyword is included, the address and mask pair becomes the prefix, and any address that matches that prefix is displayed. Therefore, multiple addresses are displayed.
In the following example, the logical AND operation is performed on the source address 128.0.0.0 and the mask 128.0.0.0, resulting in 128.0.0.0. Each destination in the routing table is also logically ANDed with the mask and compared to that result of 128.0.0.0. Any destinations that fall into that range are displayed in the output.
Router# show ip route 128.0.0.0 128.0.0.0 longer-prefixes Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default Gateway of last resort is not set S 134.134.0.0 is directly connected, Ethernet0 S 131.131.0.0 is directly connected, Ethernet0 S 129.129.0.0 is directly connected, Ethernet0 S 128.128.0.0 is directly connected, Ethernet0 S 198.49.246.0 is directly connected, Ethernet0 S 192.160.97.0 is directly connected, Ethernet0 S 192.153.88.0 is directly connected, Ethernet0 S 192.76.141.0 is directly connected, Ethernet0 S 192.75.138.0 is directly connected, Ethernet0 S 192.44.237.0 is directly connected, Ethernet0 S 192.31.222.0 is directly connected, Ethernet0 S 192.16.209.0 is directly connected, Ethernet0 S 144.145.0.0 is directly connected, Ethernet0 S 140.141.0.0 is directly connected, Ethernet0 S 139.138.0.0 is directly connected, Ethernet0 S 129.128.0.0 is directly connected, Ethernet0 172.19.0.0 255.255.255.0 is subnetted, 1 subnets C 172.19.64.0 is directly connected, Ethernet0 171.69.0.0 is variably subnetted, 2 subnets, 2 masks C 171.69.232.32 255.255.255.240 is directly connected, Ethernet0 S 171.69.0.0 255.255.0.0 is directly connected, Ethernet0 Router#Related Commands
A dagger (+) indicates that the command is documented outside this chapter.
show interfaces tunnel + show ip route summary
Từ khóa » Câu Lệnh Show Ip Route
-
10 Lệnh Cần Thành Thạo Khi Làm Việc Với Cisco IOS
-
Tìm Hiểu Về Lệnh Show IP Route Và Bảng định Tuyến (Routing Table ...
-
Các Câu Lệnh “SHOW” Thường Dùng Trong CCNA - Athena
-
Ý Nghĩa Của Lệnh " Show Ip Route " - VnPro Forum
-
Các Câu Lệnh Cơ Bản Trên Cisco Router
-
BÀI 1: ĐỊNH TUYẾN TĨNH - Vnnet
-
10 Lệnh Cần Thành Thạo Khi Làm Việc Với Cisco IOS - BIT.VN
-
Hướng Dẫn Cấu Hình Router Cisco
-
Lệnh Cấu Hình Router Cisco | TRUNGTHIENIT
-
SHOW IP Tiếng Việt Là Gì - Trong Tiếng Việt Dịch - Tr-ex
-
[PDF] LAB IP SLA – Bài 1 | VnPro
-
Chương 10: GIAO THỨC ĐỊNH TUYẾN OSPF (PHẦN 4) - - VnPro
-
Cấu Hình định Tuyến Mặc định (Default Route) P2 - An Ninh Mạng
-
Định Nghĩa Ip Route Là Gì ? Khái Niệm Và Cấu Hình Định Tuyến Tĩnh