you are making the right suggestion, i got it but don't know how to fix it.
1. say initially i have ethernet cable in eth0 for this embedded board, after reboot,
arp -n says
? (10.50.182.160) at bc:30:5b:df:b9:25 [ether] on eth0
2. move cable from eth0 to eth1,
# udhcpc --retries 4 -n -q -i eth1
eth1 is up
3. # arp -n
? (10.50.182.160) at <incomplete> on eth0
ping doesn't work for eth1
4. # arp -d 10.50.182.160 -i eth0
it doesn't return error, but the arp entry is still there
5. if i do
ifconfig eth0 down,
now arp table is clean
if i try all these in my desktop linux, arp table gets updated as soon as i move the cable.
so i'm so lost now,
1. why "arp -d" doesn't work ?
2. if i don't want to do "ifconfig eth0 down", it might involved too much
is there an easy way ?
thanks for your help !
Originally Posted by jefro
I guess your lan may have some issue maybe arp. I don't like to use ping myself. Is this between a computer to this board? Does it work on 0 from boot with cable attached?
Use ifconfig to set static ip in your lan subnet. Be sure to flush arp or wait a while until it clears out.