Post on 16-Apr-2017
Boot System Commands
Configure router to boot another IOS
All routers can boot from TFTP Server
router(config)#boot ?
router(config)#boot system ?
router(config)#boot system flash .bin
router(config)#boot system tftp bin
router(config)#boot system rom
router(config)#do show run | include boot system
Backing Up and Restoring Cisco IOS
Make sure you access network server
Ensure that the network server has adequate space for the code image
Verify the file naming and path requirements
Besides:TFTP Server software is running
Ethernet connection between workstation and router is crossover
Workstation and Router interface are on the same subnet
Verify Flash Memory and Back IOS
Router#show flash
Router#show version
Router#ping
Router#copy flash tftpWalk through questions!
Restore / Upgrade IOS
Router#copy tftp flash
Cisco File System
Router#pwd
Router#dir
Router#delete flash:
Router#sh flash
Router#copy tftp:////file name/ flash:/
Router#show file information flash:
Backup Configuration
Verify Stored ConfigurationRouter#show startup-config
Verify Current ConfigurationRouter#show running-config
Coppying Current ConfigurationCopy running-config startup-config
And vice versa!
Copy running-config to TFTP
Router#copy running-config tftp
Restoring running-config
Router#copy tftp running-config
Erasing the Configuration
Router#erasse startup-config
Router#reloadRemember: When you are prompted witht he message, answer: n
What happens if you answer yes?
Cisco File System
Router#show file informationnvram:running-config
R#cd nvram
R#pwd
R#cd system:
R#dir
R#config net
R#copy tftp:/// system://running-config
Cisco CDP
Cisco Discovery Protocol
Show CDP Gives informationCDP Timer: how often CDP packets are transmitted
CDP holdtime: amount of time that device will hold packets received from neighbor devices
R#show cdp
R(config)#cdp ?
Gathering Neighbor Info
R#sho cdp neighbors
R#sho cdp neighbors detail
R#sh cdp nei de
R#sh cdp entry *Same as the previous... but?
R#show cdp entry * ?Protocols
Version
Gathering Interface Traffic
R#sh cdp trafficShows how many CDP packets have been sent and received
Gathering Port and Interface Information
R#sh cdp interfaceGives status on router interfaces or switch ports
To turn off cdp on router:R(config)#no cdp run
Enable CDPR(confi)#cdp enable
Telnet
Posted Online
http://blog.helghareeb.net/2012/01/03/telnet-lab/
R#sh sessionsSee sessions from your router to a remote device
R#sh usersList all active consoles and VTY pots on my router
Exit: Close telnet session
R#disconnect ?Close connection to router
Resolving Hostname
Use hostname rather IP address to connect to Remote Device
Translate hostname to IP
Two ways:Build host table on each router
Build DNS Server (dynamic host table)
Build Host Table
Ip host [tcp-port#]
Default Telnet Port is 23
R(config)#ip host R1
R(config)#do show hosts
R#R1Trying to connect to my telnet... WoW!
Using DNS to Resolve Names
Use DNS Server to resolve names: because we have lots of Names
Any time a Cisco device receives a command it doesn't understand, it will try to resolve it through DNS by default.
R(config)#no ip domain-lookup
What happens here?
Having DNS
Add Commands:R(config)#ip domain-lookup
R(config)#ip name-server
R(config)#ip domain-name
Network Connectivity and Troubleshooting
R#ping
R#traceroute
Debugging
R#debug all
R#no debug all
R#debug ip rip
R#show processes
Further Readings
How to Become Network Administrator?Part 1: http://www.catazinelive.catreloaded.net/2012/02/01/how-to-be-a-network-adminstrator-1/
Part 2: http://www.catazinelive.catreloaded.net/2012/03/18/how-to-be-a-network-adminstrator-2/
Muokkaa otsikon tekstimuotoa napsauttamalla
Muokkaa jsennyksen tekstimuotoa napsauttamallaToinen jsennystasoKolmas jsennystasoNeljs jsennystasoViides jsennystasoKuudes jsennystasoSeitsems jsennystasoKahdeksas jsennystasoYhdekss jsennystaso
Muokkaa otsikon tekstimuotoa napsauttamalla
Muokkaa jsennyksen tekstimuotoa napsauttamallaToinen jsennystasoKolmas jsennystasoNeljs jsennystasoViides jsennystasoKuudes jsennystasoSeitsems jsennystasoKahdeksas jsennystasoYhdekss jsennystaso