IP Routing Commands
4-247
4

Example

show ip host-route

This command displays the interface associated with known routes.

Command Mode

Privileged Exec

Example

Console#show ip route
Ip Address Netmask Next Ho p Protocol Metric Interface
--------------- --------------- -------------- - ---------- ------ ---------
0.0.0.0 0.0.0.0 10.2.48.102 static 0 1
10.2.48.2 255.255.252.0 10.2.48.16 local 0 1
10.2.5.6 255.255.255.0 10.2.8.12 RIP 1 2
10.3.9.1 255.255.255.0 10.2.9.254 OSPF-intra 2 3
Total entry: 4
Console#

Table4-80 show ip route - di splay description

Field Description
Ip Address IP address of the destination network, subnetwork, or host. Note that t he address 0.0.0.0
indicates the default gateway for this router.
Netmask Network mask for the associated IP subnet.
Next Hop IP address of the next hop (or gateway) used for this route.
Protocol The protocol which generated this route information. (Values: static, local, RIP, OSPF)
Metric Cost for this interface.
Interface VLAN interface through which this address can be reached.
Console#show ip host-route
Total count: 0
IP address Mac address VLAN Port
-------------------- -------------------- ------ ------
192.168.1.250 00-00-30-01-01-01 3 1
10.2.48.2 00-00-30-01-01-02 1 1
10.2.5.6 00-00-30-01-01-03 1 2
10.3.9.1 00-00-30-01-01-04 2 3
Console#

Table4-81 show ip host-rout e - display description

Field Description
Ip address IP address of the destination network, subnetwork, or host.
Mac address The physical layer address associated with the IP address.
VLAN The VLAN that connects to this IP address.
Port The port that connects to this IP address.