This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: TAP device not created on running "ping_test"


On Tue, Jul 28, 2009 at 2:42 PM, Sergei
Gavrikov<sergei.gavrikov@gmail.com> wrote:
> On Tue, Jul 28, 2009 at 02:32:35PM +0530, Mandeep Sandhu wrote:
>
> [snip]
>
>> But that did not help. How were you able to get dhcp server running on
>> an interface which did not have an IP for itself? Won't we have to assign
>> a static IP addr for the interface on which the dhcp server is listening?
>> (I assume you were running your server on tap0 i/f?)
>
> I decribed the steps (re-read that post)
>
> 1st) bring up tap0 with static IP address (I did mention how to adopt
> /etc/network/interfaces to control tap0 interface)
>
> sudo ifup tap0
> ifconfig tap0
> ...
>
> You must see a static IP for tap0.
>
> and only then 2nd) you have to bring up dhcpd on tap0 again as was
> decribed there.

But how can we run the server and the client on the same interface?!
(I'm referring
to the test steps you mentioned towards the end...where both
dhcp3-server and the
dhclient use tap0 inetrface). I've not yet gone to configuring ecos
for dhcp since dhcp
is not working.

I configured tap0 with IP 10.1.1.1/24 using the same steps as you mentioned:

$ ifconfig tap0
tap0      Link encap:Ethernet  HWaddr 26:5d:5f:e5:65:1e
          inet addr:10.1.1.1  Bcast:10.1.1.255  Mask:255.255.255.0
          inet6 addr: fe80::245d:5fff:fee5:651e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:39 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Instead of running dhcp3-server, I ran udhcpd with same settings, i.e listening
interface as tap0, and start/end IP as 10.1.1.20 to 30

udhcpd starts fine on tap0.

dhclient on tap0 does not work though

$ sudo dhclient -d tap0
There is already a pid file /var/run/dhclient.pid with pid 9903
removed stale PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/tap0/26:5d:5f:e5:65:1e
Sending on   LPF/tap0/26:5d:5f:e5:65:1e
Sending on   Socket/fallback
DHCPDISCOVER on tap0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on tap0 to 255.255.255.255 port 67 interval 7
^C

Should I try using ecos test prog instead?


>
>
> Sergei
>

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]