need help on the network problem,tftp timeout

Help
sunflower
2012-09-14
2013-05-09
  • sunflower
    sunflower
    2012-09-14

    I have installed colinux 0.7.9 on windows xp sp3, the system is Debian-6.0.1-squeeze.there are two network adapters on windows,
    the first is wireless network adapter, the second is the tap adapter that connect to colinux. I have turned off functionality of windows fireall
    and iptables and I have turned on the functionalty of ip routing on windows.
    network configuration are as follows.
    ###################
    Ethernet adapter wireless:         //this is physical wireless adapter

            Connection-specific DNS Suffix  . :
            IP Address. . . . . . . . . . . . : 192.168.1.110
            Subnet Mask . . . . . . . . . . . : 255.255.255.0
            Default Gateway . . . . . . . . . : 192.168.1.1           // this is my router

    Ethernet adapter TAP01:            //this is the tap adapter that connect to colinux //  eth0=tuntap,"TAP01"

            Connection-specific DNS Suffix  . :
            IP Address. . . . . . . . . . . . : 192.168.0.1
            Subnet Mask . . . . . . . . . . . : 255.255.255.0
            Default Gateway . . . . . . . . . :
    ########
    configuration on colinux
    root@LinuxSir:~ # ifconfig
    eth0      Link encap:Ethernet  HWaddr 00:ff:a3:08:56:00
              inet addr:192.168.0.17  Bcast:192.168.0.255  Mask:255.255.255.0
              inet6 addr: fe80::2ff:a3ff:fe08:5600/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:1440 errors:0 dropped:0 overruns:0 frame:0
              TX packets:935 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:1979268 (1.8 MiB)  TX bytes:74521 (72.7 KiB)
              Interrupt:10
    ######################
    I can access internet from colinux and can login to debian system using ssh from windows and samba server works well, but the tftp server does not work,
    it gives some tips saying "timeout: retrying…",I do not known what is wrong with it, I did some tests and found out that it maybe a network problem,
    but I have not figure out how to sovle this problem. I need some help.

    the first test, I run the tftp server on windows and run the tftp client on debian and capture the packets on the interfaces, the messages are as follows.
    ###################################################
    No.     Time           Source                Destination           Protocol Length Info
          1 0.000000000    00:ff:a3:08:56:00     Broadcast             ARP      60     Who has 192.168.0.1?  Tell 192.168.0.17

    Frame 1: 60 bytes on wire (480 bits), 60 bytes captured (480 bits) on interface 1
    Ethernet II, Src: 00:ff:a3:08:56:00 (00:ff:a3:08:56:00), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
    Address Resolution Protocol (request)
        Hardware type: Ethernet (1)
        Protocol type: IP (0x0800)
        Hardware size: 6
        Protocol size: 4
        Opcode: request (1)
        Sender MAC address: 00:ff:a3:08:56:00 (00:ff:a3:08:56:00)
        Sender IP address: 192.168.0.17 (192.168.0.17)
        Target MAC address: 00:00:00_00:00:00 (00:00:00:00:00:00)
        Target IP address: 192.168.0.1 (192.168.0.1)

    No.     Time           Source                Destination           Protocol Length Info
          2 0.000029000    00:ff:90:11:8d:fb     00:ff:a3:08:56:00     ARP      42     192.168.0.1 is at 00:ff:90:11:8d:fb

    Frame 2: 42 bytes on wire (336 bits), 42 bytes captured (336 bits) on interface 1
    Ethernet II, Src: 00:ff:90:11:8d:fb (00:ff:90:11:8d:fb), Dst: 00:ff:a3:08:56:00 (00:ff:a3:08:56:00)
    Address Resolution Protocol (reply)
        Hardware type: Ethernet (1)
        Protocol type: IP (0x0800)
        Hardware size: 6
        Protocol size: 4
        Opcode: reply (2)
        Sender MAC address: 00:ff:90:11:8d:fb (00:ff:90:11:8d:fb)
        Sender IP address: 192.168.0.1 (192.168.0.1)
        Target MAC address: 00:ff:a3:08:56:00 (00:ff:a3:08:56:00)
        Target IP address: 192.168.0.17 (192.168.0.17)

    No.     Time           Source                Destination           Protocol Length Info
          3 0.000215000    192.168.0.17          192.168.1.110         TFTP     60     Read Request, File: iar.txt, Transfer type: octet

    Frame 3: 60 bytes on wire (480 bits), 60 bytes captured (480 bits) on interface 1
    Ethernet II, Src: 00:ff:a3:08:56:00 (00:ff:a3:08:56:00), Dst: 00:ff:90:11:8d:fb (00:ff:90:11:8d:fb)
    Internet Protocol Version 4, Src: 192.168.0.17 (192.168.0.17), Dst: 192.168.1.110 (192.168.1.110)
    User Datagram Protocol, Src Port: 49946 (49946), Dst Port: tftp (69)
    Trivial File Transfer Protocol

    No.     Time           Source                Destination           Protocol Length Info
          4 5.000892000    192.168.0.17          192.168.1.110         TFTP     60     Read Request, File: iar.txt, Transfer type: octet

    Frame 4: 60 bytes on wire (480 bits), 60 bytes captured (480 bits) on interface 1
    Ethernet II, Src: 00:ff:a3:08:56:00 (00:ff:a3:08:56:00), Dst: 00:ff:90:11:8d:fb (00:ff:90:11:8d:fb)
    Internet Protocol Version 4, Src: 192.168.0.17 (192.168.0.17), Dst: 192.168.1.110 (192.168.1.110)
    User Datagram Protocol, Src Port: 49946 (49946), Dst Port: tftp (69)
    Trivial File Transfer Protocol

    No.     Time           Source                Destination           Protocol Length Info
          5 10.017010000   192.168.0.17          192.168.1.110         TFTP     60     Read Request, File: iar.txt, Transfer type: octet
    …repeated…
    ###################################################
    it seemed that the server did not response. but the tftp server can work when I run the client on the same system that the server is running and
    I tested a different tftp server and nothing changed, therefore I think the server configuration has no problem.

    the second test, I run the tftp server on colinux and run the tftp client on windows and capture the packets on the interfaces, this way nothing
    can be captured. therefore I think that windows can not send the packets to the colinux from the tap adapter but other applications can,
    I am confused about this problem. windows firewall and iptables are turned off.
    any help will be appreciated.
    thanks