[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Why packets from local interface to local interface get in lo0?
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Why packets from local interface to local interface get in lo0?
- From: Sylvain Falardeau <sf-openbsd_(_at_)_xsoli_(_dot_)_com>
- Date: Thu, 15 Sep 2005 15:37:56 -0400
I am currently testing dhcping 1.2 on OpenBSD 3.5 and have some problems
to get it to work on the same machine (works fine when dhcpinging other
machines). The dhcpd is on the machine on interface em0 IP 172.21.50.41.
# dhcping -v -c 172.21.50.41 -s 172.21.50.41 -h 00:D0:59:83:A0:62
And I got: no answer.
When I sniff with tcpdump -n -i em0... I see nothing!!! If I do tpcdump
-n -i lo0... I see the dhcp request coming but no answer (the dhcpd is
configured for em0 only).
1. Is this normal that OpenBSD send the packet through lo0 when I use
an IP address of another interface?
2. Is there a way to make it recognised by dhcpd to be coming from em0?
I thought it was special packet crafting it this case that was the problem but
I tried with nc (netcat) with a source address of em0 and got the same thing:
it pass through lo0 with 172.21.50.41 address.
Thanks for your help.