Networking ftp?

Forum thread started by 6foot3 on Tue, 2007-01-09 16:19

Hi all,

Been lurking for eons and have been downloading vmware images regularly. I have followed all the instructions on the mailing list as best I can and have got my interface up and configured. I can ping any IP address local or internet succesfully and I can start an ftp session and connect to an ftp server (65.199.121.80). --update-- I can login as user anonymous and have succesfully transferred small files. ftp seems to choke on larger files (progress indicator line ends with "stalled"). --end update--

What I cannot do is ping a URL. I created a /etc/resolve.conf with a "nameserver MY_NAMESERVER_IPADDRESS" in it but "ping www.microsoft.com" returns "error: unknown host: www.microsoft.com". Any suggestions?

Anybody thinking of creating a "ftp.bebits.com/pub/haiku" directory on bebits so we can ftp some haiku stuff to our vmware instances and really start to have some fun ? :wink:

Thanks

Alan

Comments

Re: Networking ftp?

6foot3 wrote:
What I cannot do is ping a URL. I created a /etc/resolve.conf with a "nameserver MY_NAMESERVER_IPADDRESS" in it but "ping www.microsoft.com" returns "error: unknown host: www.microsoft.com". Any suggestions?

I have no problems pinging google.com from my setup...

Are you able to ping your nameserver?

Networking ftp?

Yes, I can ping my nameserver fine. Is there a command I can use to see what DNS server the system is using or to set the DNS server other than through the resolve.conf file?

On the other hand, I've been following the mailing lists and see where Axel seems to be pretty much done with the DHCP client. Anybody have a heads-up on how to use DHCP to configure the interface?

Thanks!

Alan

Networking ftp?

6foot3 wrote:
Yes, I can ping my nameserver fine. Is there a command I can use to see what DNS server the system is using or to set the DNS server other than through the resolve.conf file?

On the other hand, I've been following the mailing lists and see where Axel seems to be pretty much done with the DHCP client. Anybody have a heads-up on how to use DHCP to configure the interface?

Thanks!

Alan

WHOOPS! I didn't notice before, but the file should be called "resolv.conf" (no 'e')

That's probably your issue.

I don't know what command to use to check which nameservers are currently being used - but the above should hopefully solve your problem.

To use DHCP, you can start net_server:

something like:
$ /boot/beos/system/servers/net_server &

Networking ftp?

umccullough wrote:
6foot3 wrote:
Yes, I can ping my nameserver fine. Is there a command I can use to see what DNS server the system is using or to set the DNS server other than through the resolve.conf file?

On the other hand, I've been following the mailing lists and see where Axel seems to be pretty much done with the DHCP client. Anybody have a heads-up on how to use DHCP to configure the interface?

Thanks!

Alan

WHOOPS! I didn't notice before, but the file should be called "resolv.conf" (no 'e')

That's probably your issue.

I don't know what command to use to check which nameservers are currently being used - but the above should hopefully solve your problem.

To use DHCP, you can start net_server:

something like:
$ /boot/beos/system/servers/net_server &

When I tested it before, I still had to configure my route though I think. It can also be loaded after manually configuring your interface if desired - and is required for some net_server-based software.

Networking ftp?

BINGO! That's it.

I also did a bit of poking around and found a file called Netscript in /boot/beos/system/boot that just needed to have the two commands uncommented and the static IP address adjusted. Now when I boot up, I can just enter a ping command at the command prompt and it works.

I can also type "ftp ftp_site_url" and that works! When I try to download a file (eg. the 5.8M sunbird 0.3 windows installer), ftp stalls after 4380 bytes, but hey, it's a start!

Hats off to all the hard working devs out there! This has me wishing I was a real programmer and could dive in and contribute!

Thamks for that second pair of eyes Urias! :oops:

Alan

Networking ftp?

6foot3 wrote:
I can also type "ftp ftp_site_url" and that works! When I try to download a file (eg. the 5.8M sunbird 0.3 windows installer), ftp stalls after 4380 bytes, but hey, it's a start!

What network card out of curiosity?

I've had problems with the rtl8139 driver in the haiku repo where it works ok for some simple stuff at first, but when you really put a load on it, it tends to hang and die.

Networking ftp?

I am actually using two rtl8139 cards in the host machine, one for the LAN and the other to my ISP but, isn't vmware supposed to insulate you from the host hardware by providing virtual devices that mimic certain widely used hardware? If so, how would my NICs affect Haiku when all it is seeing is the virtual ipro1000? I wonder if upgrading to the latest vmware player would help?

I did see the following post on the mailing list but that shouldn't even apply to me.

https://lists.berlios.de/pipermail/haiku-commits/2006-December/009725.html

Thanks

Alan

Networking ftp?

My mistake - i forgot you were using vmware!

Yes, i think it should definitely abstract the hardware enough that you wouldn't have any problems.

I have success with certain networking activities in VMWare using the ipro1000 driver that have failed miserably on my real hardware using rtl8139 - although they were completely different machines in my case anyway.

Networking ftp?

All this talk got me so excited I had to try setting up the network on my Haiku box myself. :D

So I 'borrowed' the Broadcom 570x driver straight from my Zeta install and went through the various steps in Axel's mini how-to and hey! I'm pinging my Windows box right now. What joy! :D

This would mean that I could theoretically ftp from it (judging by the initial thread)?

Would I use an ftp client for this, which?

Slightly off-topic, I copied Pe (R5) and ImagePro stright accross from my R5 install. Amazingly, Pe fired straight up but has since died after the first reboot. Any tips on bringing it back from the dead? :cry:

ImagePro on the other hand survived the reboot albeit with a few quirks.

Yee-Haw! :D

Networking ftp?

El-Al wrote:
All this talk got me so excited I had to try setting up the network on my Haiku box myself. :D

So I 'borrowed' the Broadcom 570x driver straight from my Zeta install and went through the various steps in Axel's mini how-to and hey! I'm pinging my Windows box right now. What joy! :D

doesnt' that driver come with Haiku already?

http://svn.berlios.de/viewcvs/haiku/haiku/trunk/src/add-ons/kernel/drivers/network/

Quote:
This would mean that I could theoretically ftp from it (judging by the initial thread)?

Would I use an ftp client for this, which?

probably just running 'ftp' from the commandline I would guess. Haiku also comes with wget!

Quote:
Slightly off-topic, I copied Pe (R5) and ImagePro stright accross from my R5 install. Amazingly, Pe fired straight up but has since died after the first reboot. Any tips on bringing it back from the dead? :cry:

ImagePro on the other hand survived the reboot albeit with a few quirks.

Not sure about Pe - but make sure you run 'sync' after making changes to the disk - I'm not entirely sure that Haiku's kernel flushes the cache regularly yet - meaning that some disk writes may not physically get written unless you run sync.

Networking ftp?

"doesnt' that driver come with Haiku already?"

AFAICT the Broadcom driver - if it is part of the checkout I do - isn't getting built or installed on my system. My system was bereft of it first time I looked :?

There was definately some discussion about this driver on the Freelists/ openbeos site a while back. Bernd was suggesting that he wanted someone to test the driver, as Iv'e heard nothing since I have assumed it is still untested/un-released. You are right though, it is there in the repository.

"probably just running 'ftp' from the commandline I would guess. Haiku also comes with wget!"

Damn! That means I'll have to commit MORE time over these winter weekend nights with some cans of beer, a roaring fire, learning how to use wget. :D

Networking ftp?

El-Al wrote:
"doesnt' that driver come with Haiku already?"

AFAICT the Broadcom driver - if it is part of the checkout I do - isn't getting built or installed on my system. My system was bereft of it first time I looked :?

There was definately some discussion about this driver on the Freelists/ openbeos site a while back. Bernd was suggesting that he wanted someone to test the driver, as Iv'e heard nothing since I have assumed it is still untested/un-released. You are right though, it is there in the repository.

Ah, i guess maybe it's not part of the default image? -- If you're building the images yourself, you can add it - I'll try to post more info on that later.

But I believe the driver was originally ported by one of the haiku devs - i didn't check. I suspect Bernd simply grabbed it from Haiku's repo.

Quote:
"probably just running 'ftp' from the commandline I would guess. Haiku also comes with wget!"

darn! That means I'll have to commit MORE time over these winter weekend nights with some cans of beer, a roaring fire, learning how to use wget. :D

Yeah :( - Net+ does run on Haiku AFAIK, so you can maybe use wget to transfer it from somewhere to the image... otherwise Firefox is still ... a problem I believe - Seamonkey may be better, but probably suffers from no mouse events.

NetPenguin, last I tried, didn't work - but I haven't tried again recently.

Networking ftp?

"Ah, i guess maybe it's not part of the default image? -- If you're building the images yourself, you can add it - I'll try to post more info on that later. "

I have been looking on the wiki for info on adding targets to the build. As this driver is definately not included, will need to know how to do this when you can find the time to post :)

Networking ftp?

I have this PXE enabled thingamabob that I'm eager to toy around with too! :D

Networking ftp?

Gentlemen (and Ladies?),

I am now happy to report that as of build 19840, networking and ftp work "out of the box"! I grabbed myself the latest vmware image, copied it over the previous one and booted it up. When I get the terminal window, ifconfig reports interfaces up and configured, route displays the current routing and ping www.google.com works! I was able to "ftp ftp.mozilla.org", cd to the relevant directory and succesfuly download all 5.76MB of the sunbird windows installer. As I write this I am downloading the 20 MB BeOS R5 Devtools zip and it's going great at about 15KB/s!

So next question is: am I supposed to be getting sound from Haiku under vmware cause I aint?

Thanks to all the great devs for this fabulous work!

Alan

PS. My Devtools download aborted with a "no space left on device" error, so I just deleted the sunbird installer, logged back in to ftp.bebits.com, issued a reget command and it continued on its merry way. It just completed the ftp transfer, all 19.45MB! WOW!!!

Networking ftp?

I'am gonna try i right now :D

Networking ftp?

So you didn't have to configure your adapter or anything, it just "worked"? That's very cool, can't wait to try this out when I get home tonight.

Networking ftp?

j_freeman wrote:
So you didn't have to configure your adapter or anything, it just "worked"? That's very cool, can't wait to try this out when I get home tonight.

I believe this is due to Axel adding net_server automatically to the Haiku boot process (and removing it's reliance on app_server being loaded first as well)..

net_server was ALREADY handling the DHCP client process IIRC - it just wasn't loaded automatically until recent

Networking ftp?

umccullough wrote:
j_freeman wrote:
So you didn't have to configure your adapter or anything, it just "worked"? That's very cool, can't wait to try this out when I get home tonight.

I believe this is due to Axel adding net_server automatically to the Haiku boot process (and removing it's reliance on app_server being loaded first as well)..

net_server was ALREADY handling the DHCP client process IIRC - it just wasn't loaded automatically until recent

Yes Urias, this only happenned on Monday (Jan 15) see:

https://lists.berlios.de/pipermail/haiku-commits/2007-January/010322.html

and

https://lists.berlios.de/pipermail/haiku-commits/2007-January/010324.html

where Axel modified the boot script and changed the net_server so that it can start before the app_server.

To me, this is what makes open source so great, things get fixed almost "before your very eyes". I almost can't wait to see what's next (vmware graphics drivers were added Sunday)! Rock on!

Alan

Networking ftp?

Last night, I managed to download Firefox for R5. Because I was using the regular image, I didn't have enough space to extract it. The speed was about 15KB/sec... not bad really, though I'm not sure what it would've been in another OS.

I did have an issue while using wget on sites where the content length was unspecified: after the file downloaded, wget would just sit there like it was waiting for more data. Dunno if it's a bug in wget or the netstack or what.

I also FTPed into HaikuHost and downloaded the SVN log for the revision I was running; pretty simple albeit pretty cool.

Edit: I also noticed Haiku was very stable compared to some of the previous versions... was that just me or did anyone else notice it?

Networking ftp?

Heh! One of the things I actually LIKE so much about an OS or Application in its alpha stages is the feeling of trepidation when trying to get something to actually WORK! :?

With Haiku, so many important features are just TANTALIZINGLY close to working its actually both frustrating and rewarding at the same time.

Take my network setup for example. Bearing in mind that this is Haiku running from the HD, not a VM. It's behind a Windows XP box so is sharing an internet connection via broadband. It has a working nic driver, is able to ping the IP of the Windows box, is attempting to connect to URLs with Net Positive, is attempting to resolve ftp requests via wget. It is this close ][ to sucessfully doing ALL of them but failing to do any of them bar pinging the XP box.

All this points to a single setting between the Haiku box and the Windows machine (or ISP) being wrong, I just don't know which one it is! :(

One of these Days....

Bring it on!! Haiku Rocks!

no route to host?

After adding the forcedeth driver for my nForce2 NIC and ifconfig it + writing a resolv.conf, I'm able to ping www.google.com ONE time and then getting "ping: no route to host?" a million times. BeShare or Vision won't connect at all.

Re: Networking ftp?

Hi, here on rev19896, networking is set up automatically under vmware, and i don't have any nameserver issue so far. On the other hand my downloads with wget or ftp randomly stall except on really small files.

Disabling IDE DMA in the boot menu solved it for me!

(Well, i discovered a few days ago that the slow shutdown under VMWare was also due to an IDE DMA problem, it seems to be the same issue. See bug #985 )

cheers

ifconfig problem, can someone offer advice?

I recently shifted my Haiku/BeOS/Zeta system to an entirely different machine. This has freed-up my IBM xSeries205 for use as a linux fileserver as opposed to a Haiku test machine. Anyhow, most everything on the new Haiku box is working sweet (basking in a luxurious 512 Mb ram) except for ethernet :o/

Now, on this machine there is a 3Com networking card that is quite happy using the 3c503 drivers under R5. Naturally, I have hijacked a copy of the R5 driver to test under Haiku.

When using ifconfig in conjunction with IP addresses and the up command, I get 'ifconfig: Setting flags failed: No such file or directory' error message.

ifconfig will then list the device as being present.

Anyone hazard a guess as to what I'm doing wrong?