[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[microblaze-uclinux] network bad working?
Hello,
I have a problem with the network behaviour.
I don't use DHCPCD, and I set the IP address of the board with ifconfig
so:
#ifconfig eth0 192.168.100.6 netmask 255.255.0.0
after that, ifconfig looks so:
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:00:C0:A3:E5:44
inet addr:192.168.100.6 Bcast:192.168.100.255
Mask:255.255.0.0
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:268 errors:0 dropped:0 overruns:0 frame:0
TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:391104 (381.9 KiB) TX bytes:23828 (23.2 KiB)
Interrupt:4
I try to ping the board from a computer:
[Cent-OS-3 root]#ping 192.168.100.6
PING 192.168.100.6 (192.168.100.6) 56(84) bytes of data.
From 192.168.11.20 icmp_seq=8 Destination Host Unreachable
From 192.168.11.20 icmp_seq=8 Destination Host Unreachable
From 192.168.11.20 icmp_seq=8 Destination Host Unreachable
...
No answer. At the same time I execute tcpdump to see the traffic:
[Cent-OS-3 root]#tcpdump
tcpdump: listening on eth0
...
15:33:37.294086 arp who-has 192.168.100.6 tell 192.168.11.20
15:33:38.294003 arp who-has 192.168.100.6 tell 192.168.11.20
15:33:39.294014 arp who-has 192.168.100.6 tell 192.168.11.20
15:33:40.294109 arp who-has 192.168.100.6 tell 192.168.11.20
...
NO RESPONSE FROM BOARD!!
Now I execute a ping from the board:
# ping 192.168.11.20
PING 192.168.11.20 (192.168.11.20): 56 data bytes
64 bytes from 192.168.11.20: icmp_seq=0 ttl=64 time=1003.2 ms
64 bytes from 192.168.11.20: icmp_seq=1 ttl=64 time=11.1 ms
64 bytes from 192.168.11.20: icmp_seq=2 ttl=64 time=1.0 ms
...
It works! And now I execute the ping from the computer again:
[Cent-OS-3 root]#ping 192.168.100.6
PING 192.168.100.6 (192.168.100.6): 56(84) bytes of data
64 bytes from 192.168.100.6: icmp_seq=0 ttl=64 time=0.813 ms
64 bytes from 192.168.100.6: icmp_seq=1 ttl=64 time=0.669 ms
64 bytes from 192.168.100.6: icmp_seq=0 ttl=64 time=0.660 ms
...
IT WORKS NOW!!! After successful ping to computer, the board gave answer
to ping.
Why didn't it work at the beginning! And I need to make a ping from the
board?
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/