Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[network] problema con tftp...
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Tiro
l33t
l33t


Joined: 14 Feb 2003
Posts: 752
Location: italy

PostPosted: Thu Jun 30, 2005 9:25 am    Post subject: [network] problema con tftp... Reply with quote

stò cercando di far funzionare il boot via rete. Ho un portatile che supporta pxeboot. Ho configurato il server dhcp e tftp seguendo la guida ufficiale gentoo diskless ma sembra che il client rifiuti la connessione...
Le configurazioni sono:

Code:
 # sguscia dhcpd.conf
option domain-name-servers 192.168.0.1;
default-lease-time 6000;
max-lease-time 7200;
ddns-update-style ad-hoc;
authoritative;
log-facility local7;
option space PXE;
option PXE.mtftp-ip               code 1 = ip-address;
option PXE.mtftp-cport            code 2 = unsigned integer 16;
option PXE.mtftp-sport            code 3 = unsigned integer 16;
option PXE.mtftp-tmout            code 4 = unsigned integer 8;
option PXE.mtftp-delay            code 5 = unsigned integer 8;
option PXE.discovery-control      code 6 = unsigned integer 8;
option PXE.discovery-mcast-addr   code 7 = ip-address;
        allow bootp;
subnet 192.168.0.0 netmask 255.255.255.0
{
    range dynamic-bootp 192.168.0.10 192.168.0.40;
    option subnet-mask 255.255.255.0;
    option netbios-name-servers 192.168.0.1;
    option broadcast-address 192.168.0.255;
    option routers 192.168.0.1;
    option domain-name-servers 192.168.0.1;
    class "pxeclients"
        {
        match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
        option vendor-class-identifier "PXEClient";
        vendor-option-space PXE; #      option PXE.mtftp-ip 0.0.0.0;
        filename "pxelinux.0";
        next-server 192.168.0.1;
        option PXE.mtftp-ip 0.0.0.0;
        }
    host armada
        {
        hardware ethernet xx:xx:xx:xx:xx;
        fixed-address 192.168.0.17;
        option root-path                 "/mnt/diskless-p3/";
        if substring (option vendor-class-identifier, 0,9) ="PXEClient"
                {
                filename "/mnt/diskless-p3/pxelinux.0";
                }
        }
}

# sguscia /etc/conf.d/in.tftpd
INTFTPD_PATH="/mnt/diskless-p3/"
INTFTPD_USER="nobody"
INTFTPD_OPTS="-u ${INTFTPD_USER} -l -vvvvvv -p -c -s ${INTFTPD_PATH}"



e i log sono:

Quote:
Jun 30 11:09:22 Muletto eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Jun 30 11:09:40 Muletto dhcpd: DHCPDISCOVER from xx:xx:xx:xx:xx via eth0
Jun 30 11:09:40 Muletto dhcpd: DHCPOFFER on 192.168.0.17 to xx:xx:xx:xx:xx via eth0
Jun 30 11:09:41 Muletto dhcpd: Dynamic and static leases present for 192.168.0.17.
Jun 30 11:09:41 Muletto dhcpd: Remove host declaration armada or remove 192.168.0.17
Jun 30 11:09:41 Muletto dhcpd: from the dynamic address pool for 192.168.0.0/24
Jun 30 11:09:41 Muletto dhcpd: DHCPREQUEST for 192.168.0.17 (192.168.0.1) from xx:xx:xx:xx:xx via eth0
Jun 30 11:09:41 Muletto dhcpd: DHCPACK on 192.168.0.17 to xx:xx:xx:xx:xx via eth0
Jun 30 11:09:41 Muletto in.tftpd[12261]: warning: /etc/hosts.allow, line 2: missing ":" separator
Jun 30 11:09:41 Muletto in.tftpd[12261]: warning: /etc/hosts.allow, line 3: missing ":" separator
Jun 30 11:09:41 Muletto in.tftpd[12261]: warning: /etc/hosts.allow, line 4: missing ":" separator
Jun 30 11:09:41 Muletto in.tftpd[12261]: warning: /etc/hosts.allow, line 5: missing ":" separator
Jun 30 11:09:41 Muletto in.tftpd[12261]: connection refused from 192.168.0.17


ho provato anche la via di pxegrub ma il problema è sempre la connessione rifiutata dal client. Qnd immagino che mi sfugge qlc config del dhcp.conf che abiliti il pxe a fare boot alla macchina 192.168.0.1 ... anche se da tcpdump pare il contrario ovvero che sia il server tftp a nn rispondere...

Code:
# tcpdump
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
11:22:04.003646 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from xx:xx:xx:xx:xx:xx, length: 548
11:22:04.004134 IP master.bootps > 255.255.255.255.bootpc: BOOTP/DHCP, Reply, length: 300
11:22:04.987389 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from xx:xx:xx:xx:xx:xx, length: 548
11:22:04.989064 IP master.bootps > 255.255.255.255.bootpc: BOOTP/DHCP, Reply, length: 300
11:22:04.989576 arp who-has master tell armada
11:22:04.989614 arp reply master is-at xx:xx:xx:xx:xx
11:22:04.989672 IP armada.2070 > master.tftp:  44 RRQ "/mnt/diskless-p3/pxelinux.0" octet tsize 0
11:22:08.931922 IP armada.2071 > master.tftp:  44 RRQ "/mnt/diskless-p3/pxelinux.0" octet tsize 0
11:22:16.841751 IP armada.2072 > master.tftp:  44 RRQ "/mnt/diskless-p3/pxelinux.0" octet tsize 0
11:22:28.706498 IP armada.2073 > master.tftp:  44 RRQ "/mnt/diskless-p3/pxelinux.0" octet tsize 0
11:22:44.526164 IP armada.2074 > master.tftp:  44 RRQ "/mnt/diskless-p3/pxelinux.0" octet tsize 0


mmm... :roll:
Back to top
View user's profile Send private message
Tiro
l33t
l33t


Joined: 14 Feb 2003
Posts: 752
Location: italy

PostPosted: Thu Jun 30, 2005 9:57 am    Post subject: Reply with quote

aggiungendo
Quote:
allow booting;
allow bootp;

al dhcpd.conf

togliendo l'opzione -l al demone in.tftpd in modo da utilizzare xinetd ottengo questo:

Quote:
1631.854693 192.168.0.17 -> 192.168.0.1 TFTP Read Request, File: /mnt/diskless-p3/pxelinux.0, Transfer type: octet
1631.854727 192.168.0.1 -> 192.168.0.17 ICMP Destination unreachable (Port unreachable)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum