beautypg.com

Show ip, Show ip

Page 29: Host s static route g gateway c cloned entry

background image

show ip

Description: This command displays all interfaces on which IP routing has been enabled.

Example:

Router> show ip

Admin.

Oper.

Destination/

IfName State

State IP Address Netmask

Broadcast Addr

-------------------------------------------------------------------

ppp2

Enabled Up

20.0.0.1 255.0.0.0

20.0.0.2

lan

Enabled Up

110.0.0.1 255.0.0.0 110.255.255.255

dlci16

Enabled Up

10.0.0.1 255.0.0.0

10.0.0.2

dlci17 Enabled

Up

(Unnumbered)

show ip

Description: This command displays the IP configuration over the specified interface.

Example:

Router> show ip lan

Interface: lan

----------------------------------------------------------------

IP Address:

192.168.168.230

Netmask:

255.255.255.0

Dest. IP Address: 192.168.168.255

Opr./Admin. State: Up

RIP State:

Active Ver.1

IP Multicast:

Disabled

show ip routing table

Description: This command displays the IP routing table. Each entry in the routing table corresponds
to a network or a host, and contains necessary information that is required for routing data packets to
that network or host. For example, entry 8 means that to send a packet to 110.0.0.1, the packet should
be sent to the next hop router (gateway), whose IP address is 40.0.0.5. The destination is, according to
the table, 5 hops away (where a “hop” is a traversal of a link from one router to another).

Any entry whose Interface Name is lo means the corresponding destination network is locally attached
to one of the serial interfaces. Also, if the Gateway field is empty, it means either the destination IP
network is directly attached to the router (i.e., the destination is on the same LAN the router is
connected to), or the destination is reachable through an unnumbered serial interface.

The meanings of the flags are:

Host

S Static

Route

G Gateway
C Cloned

Entry