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 <iosname>.bin router(config)#boot system tftp <iosname>bin <ip> router(config)#boot system rom router(config)#do show run | include boot system
Backing Up and RestoringCisco 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 andBack IOS Router#show flash Router#show version Router#ping <tftpserverip> Router#copy flash tftp Walk through questions!
Erasing the Configuration Router#erasse startupconfig Router#reload Remember: When you are prompted witht he message, answer: n What happens if you answer yes?
Cisco File System Router#show file informationnvram:runningconfig R#cd nvram R#pwd R#cd system: R#dir R#config net R#copy tftp://<ip>/<file> system://runningconfig
Cisco CDP Cisco Discovery Protocol Show CDP Gives information CDP 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 traffic Shows how many CDP packets have been sent and received
Gathering Port andInterface Information R#sh cdp interface Gives status on router interfaces or switch ports To turn off cdp on router: R(config)#no cdp run Enable CDP R(confi)#cdp enable
Telnet Posted Online http://blog.helghareeb.net/2012/01/03/telnetlab/ R#sh sessions See sessions from your router to a remote device R#sh users List 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 <hostname> [tcpport#] <ipaddress> Default Telnet Port is 23 R(config)#ip host R1 <ip> R(config)#do show hosts R#R1 Trying to connect to my telnet... WoW!
Using DNS to ResolveNames Use DNS Server to resolve names: because we have lots of Names Any time a Cisco device receives a command it doesnt understand, it will try to resolve it through DNS by default. R(config)#no ip domainlookup What happens here?
Having DNS Add Commands: R(config)#ip domainlookup R(config)#ip nameserver R(config)#ip domainname