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

From: Mark Sargent (powderkeg_at_snow.email.ne.jp)
Date: 03/24/05

  • Next message: pvsnraju: "How to set Asia/Calcutta as default in Time Zone Screen?"
    Date: Thu, 24 Mar 2005 18:05:54 +0900
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    Alexander Apprich wrote:

    > 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

    Hi All,

    yes, Alex, it's pingable from the switch,

    Switch>ping 192.168.168.12

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

    Mark Sargent.

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: pvsnraju: "How to set Asia/Calcutta as default in Time Zone Screen?"