Saturday, April 12, 2014

Using a Cisco Router as a TFTP Server

I got a security license key from Cisco that I need to TFTP and install on a remote router (for work). The only problem was the distance and I was also quite lazy to travel since it was on a Friday. I've found a convenient way of transferring files between two routers by configuring one of them to act as a TFTP server. FTP was supported on older IOS train but was removed due to security exploits.


First, I transferred the license key file from my PC to a local router. Since we've got public IP address assigned to the WAN interface, it's easy to transfer the file over the Internet.

2811#copy tftp://172.27.110.121/FGL1748115S_201404032246233900.lic flash
Destination filename [FGL1748115S_201404032246233900.lic]?
Accessing tftp://172.27.110.121/FGL1748115S_201404032246233900.lic...
Loading FGL1748115S_201404032246233900.lic from 172.27.110.121 (via FastEthernet0/1): !
[OK - 1154 bytes]

1154 bytes copied in 1.380 secs (836 bytes/sec)

2811#show flash
-#- --length-- -----date/time------ path
1       130552 Mar 15 2010 07:04:52 P00308010200.bin
2         1648 Sep 21 2005 15:13:32 sdmconfig-2811.cfg
3         3492 Jul 21 2011 01:44:24 eDonkey.pdlm
4       763392 Sep 21 2005 15:14:16 es.tar
5       820224 Sep 21 2005 15:14:40 common.tar
6         1038 Sep 21 2005 15:14:56 home.shtml
7       113152 Sep 21 2005 15:15:14 home.tar
8       504643 Sep 21 2005 15:15:32 128MB.sdf
9      1208320 Sep 21 2005 15:15:50 ips.tar
10        3100 Nov 30 2007 07:57:56 bittorrent.pldm
11        9411 Jul 11 2009 02:59:10 startup-config
12    57694284 Sep 09 2009 07:09:10 c2800nm-advipservicesk9-mz.124-24.T1.bin
13      130956 Mar 15 2010 07:05:28 P00308010200.sbn
14      708448 Mar 15 2010 07:05:48 P00308010200.sb2
15         461 Mar 15 2010 07:06:06 P00308010200.loads
16        3100 Jul 21 2011 01:43:50 bittorrent.pdlm
17        2251 Jul 21 2011 01:44:06 directconnect.pdlm
18        2377 Jul 21 2011 01:44:40 gnutella.pdlm
19        1752 Jul 21 2011 01:44:58 kazaa2.pdlm
20        1154 Apr 04 2014 06:43:48 FGL1748115S_201404032246233900.lic


We use the tftp-server command to function as a TFTP server and specify the location and filename that can be downloaded.

2811(config)#tftp-server flash:FGL1748115S_201404032246233900.lic


The remote Cisco 2911 router doesn't have the permanent security license installed yet. We verify this using the show version command.


2911#show version
Cisco IOS Software, C2900 Software (C2900-UNIVERSALK9-M), Version 15.2(4)M4, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2013 by Cisco Systems, Inc.
Compiled Thu 20-Jun-13 13:06 by prod_rel_team

ROM: System Bootstrap, Version 15.0(1r)M16, RELEASE SOFTWARE (fc1)

2811 uptime is 1 day, 3 hours, 21 minutes
System returned to ROM by power-on
System restarted at 03:22:36 UTC Thu Apr 3 2014
System image file is "flash0:c2900-universalk9-mz.SPA.152-4.M4.bin"
Last reload type: Normal Reload
Last reload reason: power-on



This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.

Cisco CISCO2911/K9 (revision 1.0) with 483328K/40960K bytes of memory.
Processor board ID FGL1748115S
3 Gigabit Ethernet interfaces
1 terminal line
DRAM configuration is 64 bits wide with parity enabled.
255K bytes of non-volatile configuration memory.
250880K bytes of ATA System CompactFlash 0 (Read/Write)


License Info:

License UDI:

-------------------------------------------------
Device#   PID                   SN
-------------------------------------------------
*0        CISCO2911/K9          FGL1748115S    



Technology Package License Information for Module:'c2900'

-----------------------------------------------------------------
Technology    Technology-package           Technology-package
              Current       Type           Next reboot 
------------------------------------------------------------------
ipbase        ipbasek9      Permanent      ipbasek9
security      None          None           None  
uc            uck9          Permanent      uck9
data          None          None           None

Configuration register is 0x2102


We use the copy tftp flash command to transfer the file. Next, we issue the license install command from privileged EXEC prompt and perform a reload afterwards to take effect.

2911#copy tftp://202.79.18.25 flash
Source filename []? FGL1748115S_201404032246233900.lic
Destination filename [FGL1748115S_201404032246233900.lic]?
Accessing tftp://202.79.18.25/FGL1748115S_201404032246233900.lic...
Loading FGL1748117J_201404032246233900.lic from 202.78.17.250 (via GigabitEthernet0/1): !
[OK - 1154 bytes]

1154 bytes copied in 0.452 secs (2553 bytes/sec)


2911#show flash | inc .lic                

241       1154 Apr 4 2014 06:47:56 +00:00 FGL1748115S_201404032246233900.lic


2911#license install flash:FGL1748115S_201404032246233900.lic
Installing licenses from "flash:FGL1748115S_201404032246233900.lic"
Installing...Feature:securityk9...Successful:Supported
1/1 licenses were successfully installed
0/1 licenses were existing licenses
0/1 licenses were failed to install

2911#reload
Proceed with reload? [confirm]
Connection closed by foreign host.


2911#show version
Cisco IOS Software, C2900 Software (C2900-UNIVERSALK9-M), Version 15.2(4)M4, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2013 by Cisco Systems, Inc.
Compiled Thu 20-Jun-13 13:06 by prod_rel_team

ROM: System Bootstrap, Version 15.0(1r)M16, RELEASE SOFTWARE (fc1)

2911 uptime is 1 minute
System returned to ROM by reload at 06:50:36 UTC Fri Apr 4 2014
System image file is "flash0:c2900-universalk9-mz.SPA.152-4.M4.bin"
Last reload type: Normal Reload
Last reload reason: Reload Command



This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.

Cisco CISCO2911/K9 (revision 1.0) with 483328K/40960K bytes of memory.
Processor board ID FGL1748115S
3 Gigabit Ethernet interfaces
1 terminal line
1 Virtual Private Network (VPN) Module
DRAM configuration is 64 bits wide with parity enabled.
255K bytes of non-volatile configuration memory.
250880K bytes of ATA System CompactFlash 0 (Read/Write)


License Info:

License UDI:

-------------------------------------------------
Device#   PID                   SN
-------------------------------------------------
*0        CISCO2911/K9          FGL1748115S   



Technology Package License Information for Module:'c2900'

-----------------------------------------------------------------
Technology    Technology-package           Technology-package
              Current       Type           Next reboot 
------------------------------------------------------------------
ipbase        ipbasek9      Permanent      ipbasek9
security      securityk9    Permanent      securityk9
uc            uck9          Permanent      uck9
data          None          None           None

Configuration register is 0x2102


We do a clean up on the local router config if  the TFTP function and other files are no longer needed.

2811(config)#no tftp-server flash:FGL1748115S_201404032246233900.lic
2811(config)#end
2811#delete flash:FGL1748115S_201404032246233900.lic
Delete filename [FGL1748115S_201404032246233900.lic]?
Delete flash:/FGL1748115S_201404032246233900.lic? [confirm]

My Cisco 2511 Router IOS Upgrade

I bought a really cheap Cisco 2511 router to function as my terminal server. This legacy router (even the 2511-RJ model) is sold at a premium price on Ebay since it can be used as a terminal server/access server in both lab and production environment.



I also bought an AUI Ethernet adapter which is needed to connect the 2511 with an RJ45 cable to my PC when upgrading the IOS via TFTP (the router was sold operating in ROMmon mode).

                                                          

So I gave the router an IP address and performed the IOS upgrade. I plan to use AUI adapter in order for the 2511 to join my network lab later on. This would allow me to access my rack remotely using my iPad or laptop via wireless inside my room (rack is sitting at my living room).


System Bootstrap, Version 11.0(10c), SOFTWARE
Copyright (c) 1986-1996 by cisco Systems
2500 processor with 14336 Kbytes of main memory

              Restricted Rights Legend

Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.

           cisco Systems, Inc.
           170 West Tasman Drive
           San Jose, California 95134-1706



Cisco Internetwork Operating System Software
IOS (tm) 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-1996 by cisco Systems, Inc.
Compiled Fri 27-Dec-96 17:33 by loreilly
Image text-base: 0x01010000, data-base: 0x00001000

cisco 2511 (68030) processor (revision M) with 14336K/2048K bytes of memory.
Processor board ID 16240666, with hardware revision 00000000
X.25 software, Version 2.0, NET2, BFE and GOSIP compliant.
1 Ethernet/IEEE 802.3 interface.
2 Serial network interfaces.
16 terminal lines.
32K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read/Write)

Notice: NVRAM invalid, possibly due to write erase.
         --- System Configuration Dialog ---

At any point you may enter a question mark '?' for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets '[]'.
Would you like to enter the initial configuration dialog? [yes]: no

Would you like to terminate autoinstall? [yes]:


Press RETURN to get started!


%LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to down
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
%LINK-3-UPDOWN: Interface Serial0, changed state to down
%LINK-3-UPDOWN: Interface Serial1, changed state to down
%SYS-5-RESTART: System restarted --
Cisco Internetwork Operating System Software
IOS (tm) 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-1996 by cisco Systems, Inc.
Compiled Fri 27-Dec-96 17:33 by loreilly
%LINK-5-CHANGED: Interface Serial0, changed state to administratively down
%LINK-5-CHANGED: Interface Ethernet0, changed state to administratively down
%LINK-5-CHANGED: Interface Serial1, changed state to administratively down
Router(boot)>enable
Router(boot)#show ip interface brief
Interface        IP-Address      OK?  Method    Status                 Protocol
Ethernet0        unassigned      YES  not set   administratively down  down
Serial0          unassigned      YES  not set   administratively down  down
Serial1          unassigned      YES  not set   administratively down  down
Router(boot)#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(boot)(config)#interface Ethernet0       // AUI PORT
Router(boot)(config-if)#ip address 192.168.1.1 255.255.255.0
Router(boot)(config-if)#no shutdown
Router(boot)(config-if)#end
Router(boot)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0, changed state to up
%SYS-5-CONFIG_I: Configured from console by console
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
Router(boot)#ping 192.168.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/204/1004 ms
Router(boot)#copy tftp://192.168.1.2/c2500-is-l.122-15.T17.bin flash
                      ^
% Invalid input detected at '^' marker.

Router(boot)#copy ?
  tftp
  rcp
  flash
  mop
  running-config
  startup-config
  flh-log

Router(boot)#copy tftp?
tftp

Router(boot)#copy tftp ?
  flash
  running-config
  startup-config

Router(boot)#copy tftp flash

System flash directory:
No files in System flash
[0 bytes used, 16777216 available, 16777216 total]
Address or name of remote host [255.255.255.255]? 192.168.1.2
Source file name? c2500-is-l.122-15.T17.bin
Destination file name [c2500-is-l.122-15.T17.bin]?
Accessing file 'c2500-is-l.122-15.T17.bin' on 192.168.1.2...
Loading c2500-is-l.122-15.T17.bin from 192.168.1.2 (via Ethernet0): ! [OK]

Device needs erasure before copying new file
Erase flash device before writing? [confirm]

Copy 'c2500-is-l.122-15.T17.bin' from server
  as 'c2500-is-l.122-15.T17.bin' into Flash WITH erase? [yes/no]yes
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased
Loading c2500-is-l.122-15.T17.bin from 192.168.1.2 (via Ethernet0):

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

<OUTPUT TRUNCATED>

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 16425536/16777216 bytes]

Verifying checksum...  OK (0x2AF7)
Flash copy took 0:08:05 [hh:mm:ss]

Router(boot)#show version
Cisco Internetwork Operating System Software
IOS (tm) 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-1996 by cisco Systems, Inc.
Compiled Fri 27-Dec-96 17:33 by loreilly
Image text-base: 0x01010000, data-base: 0x00001000

ROM: System Bootstrap, Version 11.0(10c), SOFTWARE

Router uptime is 17 minutes
System restarted by power-on
Running default software

cisco 2511 (68030) processor (revision M) with 14336K/2048K bytes of memory.
Processor board ID 16240666, with hardware revision 00000000
X.25 software, Version 2.0, NET2, BFE and GOSIP compliant.
1 Ethernet/IEEE 802.3 interface.
2 Serial network interfaces.
16 terminal lines.
32K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read/Write)

Configuration register is 0x2101     // DIDN'T NOTICE CONFREG RIGHT AWAY (BOOTS INTO BOOTSTRAP)

Router(boot)#reload

System configuration has been modified. Save? [yes/no]: yes
Building configuration...
[OK]
Proceed with reload? [confirm]

%SYS-5-RELOAD: Reload requested
System Bootstrap, Version 11.0(10c), SOFTWARE
Copyright (c) 1986-1996 by cisco Systems
2500 processor with 14336 Kbytes of main memory

              Restricted Rights Legend

Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.

           cisco Systems, Inc.
           170 West Tasman Drive
           San Jose, California 95134-1706



Cisco Internetwork Operating System Software
IOS (tm) 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-1996 by cisco Systems, Inc.
Compiled Fri 27-Dec-96 17:33 by loreilly
Image text-base: 0x01010000, data-base: 0x00001000

cisco 2511 (68030) processor (revision M) with 14336K/2048K bytes of memory.
Processor board ID 16240666, with hardware revision 00000000
X.25 software, Version 2.0, NET2, BFE and GOSIP compliant.
1 Ethernet/IEEE 802.3 interface.
2 Serial network interfaces.
16 terminal lines.
32K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read/Write)



Press RETURN to get started!


%LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to down
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
%LINK-3-UPDOWN: Interface Serial0, changed state to down
%LINK-3-UPDOWN: Interface Serial1, changed state to down
%SYS-5-CONFIG_I: Configured from memory by console
%SYS-5-RESTART: System restarted --
Cisco Internetwork Operating System Software
IOS (tm) 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-1996 by cisco Systems, Inc.
Compiled Fri 27-Dec-96 17:33 by loreilly
%LINK-5-CHANGED: Interface Serial0, changed state to administratively down
%LINK-5-CHANGED: Interface Serial1, changed state to administratively down
Router(boot)>show version
Cisco Internetwork Operating System Software
IOS (tm) 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-1996 by cisco Systems, Inc.
Compiled Fri 27-Dec-96 17:33 by loreilly
Image text-base: 0x01010000, data-base: 0x00001000

ROM: System Bootstrap, Version 11.0(10c), SOFTWARE

Router uptime is 0 minutes
System restarted by reload
Running default software

cisco 2511 (68030) processor (revision M) with 14336K/2048K bytes of memory.
Processor board ID 16240666, with hardware revision 00000000
X.25 software, Version 2.0, NET2, BFE and GOSIP compliant.
1 Ethernet/IEEE 802.3 interface.
2 Serial network interfaces.
16 terminal lines.
32K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read/Write)

Configuration register is 0x2101

Router(boot)>enable
Router(boot)#show flash

System flash directory:
File  Length   Name/status
  1   16425536  c2500-is-l.122-15.T17.bin
[16425600 bytes used, 351616 available, 16777216 total]
16384K bytes of processor board System flash (Read/Write)
Router(boot)#co?
configure  connect  copy

Router(boot)#config-register 0x2102       
Translating "config-register"...domain server (255.255.255.255)   
% Unknown command or computer name, or unable to find computer address
Router(boot)#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(boot)(config)#co?
config-register

Router(boot)(config)#config-register ?     
  <0x0-0xFFFFFFFF>

Router(boot)(config)#config-register 0x2102
Router(boot)(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
Router(boot)#reload

System configuration has been modified. Save? [yes/no]: yes
Building configuration...
[OK]
Proceed with reload? [confirm]

%SYS-5-RELOAD: Reload requested
System Bootstrap, Version 11.0(10c), SOFTWARE
Copyright (c) 1986-1996 by cisco Systems
2500 processor with 14336 Kbytes of main memory

F3: 15535804+889700+1236752 at 0x3000060

              Restricted Rights Legend

Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.

           cisco Systems, Inc.
           170 West Tasman Drive
           San Jose, California 95134-1706



Cisco Internetwork Operating System Software
IOS (tm) 2500 Software (C2500-IS-L), Version 12.2(15)T17, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Sat 13-Aug-05 15:26 by kehsiao
Image text-base: 0x0308038C, data-base: 0x00001000


cisco 2511 (68030) processor (revision M) with 14336K/2048K bytes of memory.
Processor board ID 16240666, with hardware revision 00000000
Bridging software.
X.25 software, Version 3.0.0.
1 Ethernet/IEEE 802.3 interface(s)
2 Serial network interface(s)
16 terminal line(s)
32K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read ONLY)



Press RETURN to get started!


*Mar  1 00:00:10.983: %LINK-3-UPDOWN: Interface Ethernet0, changed state to up
*Mar  1 00:00:10.987: %LINK-3-UPDOWN: Interface Serial0, changed state to down
*Mar  1 00:00:11.355: %LINK-3-UPDOWN: Interface Serial1, changed state to down
*Mar  1 00:00:30.823: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0, changed state to down
*Mar  1 00:00:34.527: %SYS-5-CONFIG_I: Configured from memory by console
*Mar  1 00:00:34.535: %LINK-5-CHANGED: Interface Serial0, changed state to administratively down
*Mar  1 00:00:37.759: %LINK-5-CHANGED: Interface Serial1, changed state to administratively down
*Mar  1 00:00:37.763: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down
*Mar  1 00:00:40.459: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to down
*Mar  1 00:01:18.251: %SYS-5-RESTART: System restarted --
Cisco Internetwork Operating System Software
IOS (tm) 2500 Software (C2500-IS-L), Version 12.2(15)T17, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Sat 13-Aug-05 15:26 by kehsiao
*Mar  1 00:01:18.255: %SNMP-5-COLDSTART: SNMP agent on host Router is undergoing a cold start
*Mar  1 00:01:18.379: %LINK-3-UPDOWN: Interface Virtual-Access1, changed state to up
*Mar  1 00:01:19.379: %LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access1, changed state to up
Router>enable
Router#show version
Cisco Internetwork Operating System Software
IOS (tm) 2500 Software (C2500-IS-L), Version 12.2(15)T17, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Sat 13-Aug-05 15:26 by kehsiao
Image text-base: 0x0308038C, data-base: 0x00001000

ROM: System Bootstrap, Version 11.0(10c), SOFTWARE
BOOTLDR: 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c), RELEASE SOFTWARE (fc1)

Router uptime is 1 minute
System returned to ROM by reload
System image file is "flash:c2500-is-l.122-15.T17.bin"

cisco 2511 (68030) processor (revision M) with 14336K/2048K bytes of memory.
Processor board ID 16240666, with hardware revision 00000000
Bridging software.
X.25 software, Version 3.0.0.
1 Ethernet/IEEE 802.3 interface(s)
2 Serial network interface(s)
16 terminal line(s)
32K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read ONLY)

Configuration register is 0x2102

Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname 2511-TS
511-TS(config)#end
2511-TS#show run
*Mar  1 00:05:12.075: %SYS-5-CONFIG_I: Configured from console by consolerun
Building configuration...

Current configuration : 689 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service udp-small-servers
service tcp-small-servers
!
hostname 2511-TS
!
logging queue-limit 100
!
ip subnet-zero
!
!
!
!
interface Ethernet0
 ip address 192.168.1.1 255.255.255.0
 no ip route-cache
 no ip mroute-cache
!
interface Serial0
 no ip address
 no ip route-cache
 no ip mroute-cache
 shutdown
 no fair-queue
!
interface Serial1
 no ip address
 no ip route-cache
 no ip mroute-cache
 shutdown
!
no ip http server
ip classless
!
!
!
!
!
line con 0
line 1 16
 flush-at-activation
 transport input all
line aux 0
 transport input all
line vty 0 4
 login
!
end