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"


> May be the below will be useful (cut from my old notes for myself :-) It
> is the very minimalist sandbox (for tests purposes only). But, it worked
> for me.
>
> 1) Bring up tap0 (refer to snip the above)
>
> ?$ sudo ifup tap0
>
> 2) Run DHCP server as
>
> ?$ sudo env INTERFACES="tap0" dhcpd3 -d -f -cf mydhcpd.conf tap0
>
> # mydhcpd.conf --
> default-lease-time 30;
> max-lease-time 30;
> subnet 10.1.1.0 netmask 255.255.255.0 {
> ? ? ? ?range 10.1.1.20 10.1.1.30;
> }
>

Very strange, I get this error!

# dhcpd3 -d -f -cf /tmp/mydhcpd.conf tap0
Internet Systems Consortium DHCP Server V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Can't open /tmp/mydhcpd.conf: Permission denied

# ls -l /tmp/mydhcpd.conf
-rwxrwxrwx 1 mandeep mandeep 119 2009-07-28 13:09 /tmp/mydhcpd.conf

I've tried with 666 perms for /tmp/mydhcpd.conf too, but I get the same error.

Will try udhcpd now.

> 3) Check that server offers IP (run dhclient in another window), when
> you'll see that the server offered IP, hit ^C
>
> ?$ sudo dhclient3 -d tap0
>
> If you have success with point 3 (only then!), rebuild synth net tests
> with the defaults network settings (No static IP addresses!) with alone
> tweak
>
> cdl_option CYGPKG_NET_BUILD_HW_TESTS {
> ? ?user_value 1
> };
>
> and run ping test as
>
> ?$ ping_test -nw -io -t my.tdf
>
> (be sure that that dhcp server is running still)
>
> # my.tdf --
> synth_device ethernet {
> ? ?eth0 ethertap tap0
> }
> # EOF
>
>

--
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]