cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
355
Views
0
Helpful
1
Replies

using variables

mnewnam01
Level 1
Level 1

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 1

thisisshanky
Level 11
Level 11

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

Sankar Nair
UC Solutions Architect
Pacific Northwest | CDW
CCIE Collaboration #17135 Emeritus