In Cisco devices, you can suspend telnet sessions using: CTRL+Shift+6 then X. To kill a session, type "exit". To see a list of suspended sessions, use:
show sessionsYou should see an output like:
Conn Host Address Byte Idle Conn Name * 1 192.168.1.1 192.168.2.2 0 0 192.168.1.1From here, you can resume a connection simply by typing:
resume 1You can also resume a connection simply by typing the connection number:
1Hitting enter without typing anything will resume the most recently accessed session (denoted by a * in "show sessions"). You can open multiple sessions.
To see the users connected to your router, use:
show usersThe "show users" command is also affected by reverse domain-lookup. To disable it, type:
no ip domain-loTo kills one of your open sessions:
disconnect SESSIONTo boot a user connected to your router, use:
clear line LINENUMBERCDP stands for the Cisco Discovery Protocol. CDP allows to see directly connected Cisco Devices. CDP is proprietary and is useful for building accurate network diagrams. CDP is usable by 3Com and HP devices, but treat it as a Cisco-only protocol in the examination.
CDP is allowed in User Mode. To see your neighbors, use:
show cdp neiTo see the IP address of your neighbors, use:
show cdp entry *
show cdp nei detailThese commands lets you detail your ports as well as the ports of the neighbors you're connected to. To continue with the diagram, you'll have to telnet to your neighbors.
CDP tosses out a lot of sensitive information. You would typically want to disable CDP on public interfaces like the internet. To disable CDP on an interface, use:
no cdp enableTo disable CDP on the entire device, use:
no cdp run
No comments:
Post a Comment