Monday, March 18, 2019

other ios commands

whats the ip of the device
Router1#show ip dhcp binding
Router1#show ip dhcp conflict
You can view the status of remote database backups with this command:
Router1#show ip dhcp database
And you can see the global DHCP server statistics like this:

Router1#show ip dhcp server statistics

Sh cdp neighbors
Perform a show mac address-table interface <switchport> on the switch that has the device(s) connected to it. Then go to the router for the VLAN specified in the previous command and perform a show ip arp vlan <vlan#> | include <mac-address> . That will give you the IP address for the device.

show ip interface
Even more popular than show interface are show ip interface and show ip interface brief. Theshow ip interface command provides tons of useful information about the configuration and status of the IP protocol and its services, on all interfaces. The show ip interface brief command provides a quick status of the interfaces on the router, including their IP address, Layer 2 status, and Layer 3 status.
show interface
The show interface command displays the status of the router’s interfaces. Among other things, this output provides the following:
  • Interface status (up/down)
  • Protocol status on the interface<
  • Utilization
  • Errors
  • MTU

This command is essential for troubleshooting a router or switch. It can also be used by specifying a certain interface, like shint fa0/0.
show ip route
The show ip route command is used to show the router’s routing table. This is the list of all networks that the router can reach, their metric (the router’s preference for them), and how to get there. This command can be abbreviated shipro and can have parameters after it, likeshiproospf for all OSPF routers. To clear the routing table of all routes, you do clear ip route *. To clear it of just one route, do clear ip route 1.1.1.1 for clearing out that particular network.
show version
The show version command gives you the router’s configuration register (essentially, the router’s firmware settings for booting up), the last time the router was booted, the version of the IOS, the name of the IOS file, the model of the router, and the router’s amount of RAM and Flash. This command can be abbreviated shver.
debug
The debug command has many options and does not work by itself. It provides detailed debugging output on a certain application, protocol, or service. For example, debug ip route will tell you every time a router is added to or removed from the router.

No comments:

Post a Comment