Understanding how TFTP Server works
I have a Ubuntu machine which acts as a TFTP Server. I want to configure my cisco ios routers to take configuration from this TFTP server at boot time.
I have a few doubts- Where do I store the configuration file for my cisco router in the TFTP Server? Currently, I have created two temp folders in /var/lib/tftpboot-
automation@automation:/var/lib/tftpboot$ ls -l
total 8
drwx------ 2 tftp tftp 4096 Mar 31 15:37 ExrZHRa-incoming
drwxr-xr-x 2 root root 4096 Mar 31 15:52 TXJla-outgoing
automation@automation:/var/lib/tftpboot$ tree
.
├── ExrZHRa-incoming [error opening dir]
└── TXJla-outgoing
└── R1.txt
2 directories, 1 file
As per Cisco's documentation, this is the syntax to get a file from TFTP server-
copy tftp: [[[//location ]/directory ]/filename ] nvram:startup-config
Example:
Device# copy tftp://server1/dir10/datasource nvram:startup-config
As per my understanding, the location will be IP of my TFTP Server and filename will be the actual config file to be loaded. But what should be configured in the directory? I tried /var/lib/tftpboot/TXJla-outgoing but it didn't work.
enter image description here
14.04 cisco tftp
add a comment |
I have a Ubuntu machine which acts as a TFTP Server. I want to configure my cisco ios routers to take configuration from this TFTP server at boot time.
I have a few doubts- Where do I store the configuration file for my cisco router in the TFTP Server? Currently, I have created two temp folders in /var/lib/tftpboot-
automation@automation:/var/lib/tftpboot$ ls -l
total 8
drwx------ 2 tftp tftp 4096 Mar 31 15:37 ExrZHRa-incoming
drwxr-xr-x 2 root root 4096 Mar 31 15:52 TXJla-outgoing
automation@automation:/var/lib/tftpboot$ tree
.
├── ExrZHRa-incoming [error opening dir]
└── TXJla-outgoing
└── R1.txt
2 directories, 1 file
As per Cisco's documentation, this is the syntax to get a file from TFTP server-
copy tftp: [[[//location ]/directory ]/filename ] nvram:startup-config
Example:
Device# copy tftp://server1/dir10/datasource nvram:startup-config
As per my understanding, the location will be IP of my TFTP Server and filename will be the actual config file to be loaded. But what should be configured in the directory? I tried /var/lib/tftpboot/TXJla-outgoing but it didn't work.
enter image description here
14.04 cisco tftp
add a comment |
I have a Ubuntu machine which acts as a TFTP Server. I want to configure my cisco ios routers to take configuration from this TFTP server at boot time.
I have a few doubts- Where do I store the configuration file for my cisco router in the TFTP Server? Currently, I have created two temp folders in /var/lib/tftpboot-
automation@automation:/var/lib/tftpboot$ ls -l
total 8
drwx------ 2 tftp tftp 4096 Mar 31 15:37 ExrZHRa-incoming
drwxr-xr-x 2 root root 4096 Mar 31 15:52 TXJla-outgoing
automation@automation:/var/lib/tftpboot$ tree
.
├── ExrZHRa-incoming [error opening dir]
└── TXJla-outgoing
└── R1.txt
2 directories, 1 file
As per Cisco's documentation, this is the syntax to get a file from TFTP server-
copy tftp: [[[//location ]/directory ]/filename ] nvram:startup-config
Example:
Device# copy tftp://server1/dir10/datasource nvram:startup-config
As per my understanding, the location will be IP of my TFTP Server and filename will be the actual config file to be loaded. But what should be configured in the directory? I tried /var/lib/tftpboot/TXJla-outgoing but it didn't work.
enter image description here
14.04 cisco tftp
I have a Ubuntu machine which acts as a TFTP Server. I want to configure my cisco ios routers to take configuration from this TFTP server at boot time.
I have a few doubts- Where do I store the configuration file for my cisco router in the TFTP Server? Currently, I have created two temp folders in /var/lib/tftpboot-
automation@automation:/var/lib/tftpboot$ ls -l
total 8
drwx------ 2 tftp tftp 4096 Mar 31 15:37 ExrZHRa-incoming
drwxr-xr-x 2 root root 4096 Mar 31 15:52 TXJla-outgoing
automation@automation:/var/lib/tftpboot$ tree
.
├── ExrZHRa-incoming [error opening dir]
└── TXJla-outgoing
└── R1.txt
2 directories, 1 file
As per Cisco's documentation, this is the syntax to get a file from TFTP server-
copy tftp: [[[//location ]/directory ]/filename ] nvram:startup-config
Example:
Device# copy tftp://server1/dir10/datasource nvram:startup-config
As per my understanding, the location will be IP of my TFTP Server and filename will be the actual config file to be loaded. But what should be configured in the directory? I tried /var/lib/tftpboot/TXJla-outgoing but it didn't work.
enter image description here
14.04 cisco tftp
14.04 cisco tftp
asked 32 mins ago
Prarthana ShedgePrarthana Shedge
61
61
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Assuming you use something like this configuration guide, the root of the TFTP server is /var/lib/tftpboot/.
If this is the root, and the file is directly in there then your tftp command will look like this:
copy tftp://ip.add.re.ss/FILENAME nvram:startup-config
LIke a web server, the 'root' of the TFTP server's config is the root directory on-disk that your server will serve from; this is omitted in the remote system that's doing the copying.
add a comment |
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1130222%2funderstanding-how-tftp-server-works%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Assuming you use something like this configuration guide, the root of the TFTP server is /var/lib/tftpboot/.
If this is the root, and the file is directly in there then your tftp command will look like this:
copy tftp://ip.add.re.ss/FILENAME nvram:startup-config
LIke a web server, the 'root' of the TFTP server's config is the root directory on-disk that your server will serve from; this is omitted in the remote system that's doing the copying.
add a comment |
Assuming you use something like this configuration guide, the root of the TFTP server is /var/lib/tftpboot/.
If this is the root, and the file is directly in there then your tftp command will look like this:
copy tftp://ip.add.re.ss/FILENAME nvram:startup-config
LIke a web server, the 'root' of the TFTP server's config is the root directory on-disk that your server will serve from; this is omitted in the remote system that's doing the copying.
add a comment |
Assuming you use something like this configuration guide, the root of the TFTP server is /var/lib/tftpboot/.
If this is the root, and the file is directly in there then your tftp command will look like this:
copy tftp://ip.add.re.ss/FILENAME nvram:startup-config
LIke a web server, the 'root' of the TFTP server's config is the root directory on-disk that your server will serve from; this is omitted in the remote system that's doing the copying.
Assuming you use something like this configuration guide, the root of the TFTP server is /var/lib/tftpboot/.
If this is the root, and the file is directly in there then your tftp command will look like this:
copy tftp://ip.add.re.ss/FILENAME nvram:startup-config
LIke a web server, the 'root' of the TFTP server's config is the root directory on-disk that your server will serve from; this is omitted in the remote system that's doing the copying.
answered 26 mins ago
Thomas Ward♦Thomas Ward
45k23125178
45k23125178
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1130222%2funderstanding-how-tftp-server-works%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
