Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

using variables

Hi,

Is there a way to use variables in IOS? For instance, I want to tftp the same file from several switches to my server and I would like the destination filename to be the same as the hostname. So, is there a way to reference the variable containing the hostname?

Thanks

1 REPLY

Re: using variables

There is an ip to host name mapping table that you can create on the router and then refer to the name rather than ip address. I am not sure if this answers your question.

ip host r1 1.1.1.1

ip host r2 2.2.2.2

89
Views
0
Helpful
1
Replies
CreatePlease login to create content