Re: -s /tftpboot path in xinetd.d/tftp file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mark,

Mark Sargent wrote:
Alexander Apprich wrote:



Mark Sargent wrote:

Paul Howarth wrote:

Mark Sargent wrote:

Edwin Dicker wrote:

[snip]

Hi All,

hmmm, not outa the woods yet. Still getting the undefined error.

Switch#copy run tftp
Source filename [running-config]? running-config
Destination IP address or hostname []? 192.168.168.12
Destination filename [running-config]? /tftpboot/running-config
Building configuration...
.....
%Error opening tftp://192.168.168.12//tftpboot/running-config (Undefined error)


Ok, lets run through my set up, again,

dir permissions for tftpboot,

[root@localhost tftpboot]# ls -alh
total 8.0K
drwxr-xr-x   2 root   root   4.0K Mar 24 14:10 .
drwxrwxrwx  24 nobody nobody 4.0K Mar 24 12:55 ..

above tftpboot is owned by nobody:nobody as per this site,

http://www.linux.com/howtos/Clone-HOWTO/setting-up.shtml
is it right..? as wello as it's suggestions below for xinetd.d/tftp

xinetd.d/tftp settings

[root@localhost tftpboot]# cat /etc/xinetd.d/tftp
# default: off
# description: The tftp server serves files using the trivial file transfer # protocol. The tftp protocol is often used to boot diskless # workstations, download configuration files to network-aware printers, # and to start the installation process for some operating systems.
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -c -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
Correct..?


This site below is a little different,

http://www.linuxhomenetworking.com/linux-hn/xinetd.htm
as it suggests creating the destination file prior to the transfer. Ok, some questions, do I create the dest filename b4hand, and if so, what ownership/permissions is required for it.? I'm lost. Anyone..? Cheers.


Mark Sargent.


My directory permissions

root@elmstreet / # ll -d /var/tftpboot/
drwxrwxrwx  3 root root 4096 Mar 24 07:17 /var/tftpboot//


[root@localhost tftpboot]# ll -d /tftpboot/
drwxrwxrwx  2 root root 4096 Mar 24 14:10 /tftpboot/


Here's my /etc/xinetd.d/tftp

root@elmstreet / # cat /etc/xinetd.d/tftp
service tftp
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -c -s /var/tftpboot
        disable                 = no
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}

[root@localhost ~]# cat /etc/xinetd.d/tftp
# default: off
# description: The tftp server serves files using the trivial file transfer # protocol. The tftp protocol is often used to boot diskless # workstations, download configuration files to network-aware printers, # and to start the installation process for some operating systems.
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -c -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}


Make sure no tftpd process is running... (kill it if u find 1)

root@elmstreet / # ps auxwww | grep ftp
nobody 4706 0.0 0.0 5004 572 ? Ss Mar07 0:01 proftpd: (accepting connections)
root 525 0.0 0.0 3928 556 pts/1 R+ 07:17 0:00 grep ftp


[root@localhost tftpboot]# ps auxwww | grep ftp
root      6314  0.0  0.2  4276  680 pts/1    R+   17:15   0:00 grep ftp


Restart xinetd

root@elmstreet / # service xinetd restart
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]

[root@localhost tftpboot]# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd:


Here I copy the startup-config from a cisco 3660 router

gw-lan-1#copy startup-config tftp://10.0.0.129/startup
Address or name of remote host [10.0.0.129]?
Destination filename [startup]?
!!!!!!!!!!!!
53297 bytes copied in 0.208 secs (256236 bytes/sec)


Switch>en
Switch#copy run tftp://192.168.168.12/running-config
Source filename [running-config]?
Destination IP address or hostname [192.168.168.12]?
Destination filename [running-config]?
Building configuration...
.....
%Error opening tftp://192.168.168.12/running-config (Undefined error)


And here we go...


Unfortunately, I ain't goin' nowhere.


root@elmstreet / # ll /var/tftpboot/startup -rw-rw-rw- 1 nobody nobody 53297 Mar 24 07:17 /var/tftpboot/startup

Alex

I'm at a loss with this. Driving me nutz. Cheers.


Hmmm, can you ping 192.168.168.12 from the switch? gw-lan-1#ping 10.0.0.129

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.129, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms

Mark Sargent.


Alex -- Alexander Apprich science + computing ag IT-Services Hagellocher Weg 71-75 phone +49(0)7071 9457-291 D-72070 Tuebingen, Germany fax +49(0)7071 9457-211 www.science-computing.de

s+c certificates via  http://www.science-computing.de/cacert.crt


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux