09.12.2012 Views

Understanding the network.pdf - Back to Home

Understanding the network.pdf - Back to Home

Understanding the network.pdf - Back to Home

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

When copying any file, unless no previous file exists, copied<br />

information is appended <strong>to</strong> <strong>the</strong> existing file.<br />

Using with TFTP<br />

Even though later IOS releases have added copy support for TCP/IP,<br />

FTP, and RCP, <strong>the</strong> standard used for offloading and uploading IOS<br />

images and configuration files has been TFTP. TFTP is a UNIX routine<br />

used in conjunction with BOOTP, which provides a file transfer<br />

mechanism for loading OS and configuration information for disk less<br />

workstations. TFTP has no security, and files can be copied back and<br />

forth with no au<strong>the</strong>ntication. It uses IP's UDP port (69) for transport.<br />

On UNIX systems, TFTP is run from /etc/inetd.conf or as a boot<br />

service started from /etc/rc or equivalent. With both methods, <strong>the</strong><br />

TFTP root direc<strong>to</strong>ry must be indicated and must be world readable and<br />

writable. A file must exist in <strong>the</strong> TFTP root direc<strong>to</strong>ry with <strong>the</strong> same<br />

name as <strong>the</strong> file you want <strong>to</strong> write.<br />

After <strong>the</strong> router has an IP address, TFTP can be used <strong>to</strong> load <strong>the</strong> rest<br />

of <strong>the</strong> router's configuration, and if needed you can boot your router<br />

off an IOS image s<strong>to</strong>red on <strong>the</strong> server. Using with a TFTP<br />

server works <strong>the</strong> same as copying from a memory file system. Here<br />

are some command examples. To copy <strong>the</strong> running configuration <strong>to</strong> a<br />

TFTP server, type <strong>the</strong> following:<br />

Router#copy running-config tftp<br />

Remote host []? 192.168.0.2<br />

Name of configuration file <strong>to</strong> write [router-config]?<br />

Write file router-confg on host 192.168.0.2? [confirm]<br />

Building configuration…<br />

Writing router-config !! [OK]<br />

Router#<br />

Keep in mind that if you want <strong>to</strong> save different versions of <strong>the</strong> same<br />

router's configuration (a good idea) or save a different router's<br />

configuration on <strong>the</strong> same TFTP server, you should change <strong>the</strong> name<br />

of configuration file <strong>to</strong> write accordingly. Here is an example of using<br />

TFTP with <strong>the</strong> privileged EXEC command :

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!