w*s 发帖数: 7227 | 1 hi everyone,
we designed embedded board, running basic linux,
no fancy stuff (e.g. network manager).
it has 2 ethernet ports: eth0, eth1
1. plugin cable to eth1, restart board.
it comes back, eth1 is alive, i can ping it.
2. move the cable from eth1 to eth0,
run "udhcpc --reties 4 -n -q -i eth0"
ifconfig shows eth0 now has a valid ip addr, also it's UP.
3. but i cannot ping eth0
4. if i start with eth0, can ping eth0.
move to eth1, then cannot ping eth1.
i'm not familiar with network stuff, can someone walk through me with these
? | a9 发帖数: 21638 | 2 是不是arp的关系?在ping的机器上arp一下试试看?
these
【在 w*s 的大作中提到】 : hi everyone, : we designed embedded board, running basic linux, : no fancy stuff (e.g. network manager). : it has 2 ethernet ports: eth0, eth1 : 1. plugin cable to eth1, restart board. : it comes back, eth1 is alive, i can ping it. : 2. move the cable from eth1 to eth0, : run "udhcpc --reties 4 -n -q -i eth0" : ifconfig shows eth0 now has a valid ip addr, also it's UP. : 3. but i cannot ping eth0
| w*s 发帖数: 7227 | 3 it does look like arp issue.
but in this embedded arm board,
we use busybox for arp,
if i do "arp -d ipaddr -i eth0", the entry is still there.
if i do "ifconfig eth0 down", the entry will be gone.
but this is too heavy.
any suggestions why "arp -d" is not working ?
is this the bug in the ethernet driver ?
(btw, i tried to move cable in linux desktop, the arp entry
is gone as soon as i move the cable.)
【在 a9 的大作中提到】 : 是不是arp的关系?在ping的机器上arp一下试试看? : : these
| w*s 发帖数: 7227 | 4 actually should the network driver clean up the arp table when calbe is
removed, or it's someone else's job ? |
|