BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old March 8th, 2004, 02:02 PM
0773 0773 is offline
no rotor no motor
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: kentucky
Posts: 10 0773 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to 0773
Newb to BSD, lan-wan problem

Hi, I just installed FreeBSD 5.2.1 and everything works like a charm, except I seem to have a problem getting on the net, or even browsing my lan. I havent changed any files it is a complete default install. I am behind a netgear router; I cant even ping my router, I get a "no route to host"; Nor can I ping anything on the net, I get a "cannot resolve * : hostname lookup failure"

I am a complete newbie to *BSD so im sure this is a simple problem I have done some research on the net but have come up with nothing, any suggestions would be greatly appreciated.


MMc

Last edited by 0773 : March 8th, 2004 at 02:06 PM. Reason: misspelled a word :(

Reply With Quote
  #2  
Old March 8th, 2004, 03:18 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is online now
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 18 m 43 sec
Reputation Power: 797
You probably need to configure your network interfaces. Please paste the output of /sbin/ifconfig and /usr/bin/netstat -ar here and we'll go from there.
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne

Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month

Reply With Quote
  #3  
Old March 8th, 2004, 04:18 PM
0773 0773 is offline
no rotor no motor
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: kentucky
Posts: 10 0773 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to 0773
here they are

/sbin/ifconfig
plip0: flags=8810<pointopoint,simplex,multicast> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
inet6 :: prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
dc0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
ether 00:10:a4:a3:17:e8
media: Ethernet autoselect (10baseT/UTP)
status: active


/usr/bin/netstat -ar
Routing tables

Internet:
Destination Gateway Flags Refs Use Netif Expire
localhost localhost UH 0 84 lo0

Internet6:
Destination Gateway Flags Netif Expire
localhost localhost UH lo0
fe80::%lo0 fe80::%lo0 U lo0
fe80::1%lo0 link#2 UHL lo0
ff01:: localhost U lo0
ff02::%lo0 localhost UC lo0



I had to type all this by hand, as i dont know how to get the file from my laptop, to my desktop, I have FreeBSD on my dell cpx500gt laptop and apparently it doesnt like my fdd it tells me to make sure mtools are installed. but thats another day i just want to get this on the net so can copy and paste :P
thanx in advance
MMc

Reply With Quote
  #4  
Old March 8th, 2004, 04:34 PM
Rather!BHere Rather!BHere is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 3 Rather!BHere User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Interface not configured

dc0 looks like your NIC, it's not configured.

Try

ifconfig dc0 inet ipaddr
ifconfig dc0 up

put a valid ipaddr above (eg: 192.168.1.100).

If that doesn't work, try "dhclient dc0"

If your router is using DHCP, it's easiest to just use that. If you're running FreeBSD, run /stand/sysinstall and choose post-install config, then choose Networking. COnfigure your interface dc0 to be DHCP.

Reply With Quote
  #5  
Old March 8th, 2004, 04:42 PM
0773 0773 is offline
no rotor no motor
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: kentucky
Posts: 10 0773 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to 0773
Quote:
Originally Posted by Rather!BHere
dc0 looks like your NIC, it's not configured.

Try

ifconfig dc0 inet ipaddr
ifconfig dc0 up

put a valid ipaddr above (eg: 192.168.1.100).

If that doesn't work, try "dhclient dc0"

If your router is using DHCP, it's easiest to just use that. If you're running FreeBSD, run /stand/sysinstall and choose post-install config, then choose Networking. COnfigure your interface dc0 to be DHCP.


ifconfig dc0 inet 192.168.0.1
do i want the address of my router there?

Reply With Quote
  #6  
Old March 8th, 2004, 06:13 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is online now
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 18 m 43 sec
Reputation Power: 797
If you want to configure your ip address manually, do this (logged in as root, of course). I'm assuming you want to assign an IP address of 192.168.0.10 to your machine and your router is 192.168.0.1:

1. ifconfig dc0 192.168.0.10
This assigns the IP address to your network card.
2. route add 0.0.0.0 192.168.0.1
This sets your default route to 192.168.0.1
3. Edit /etc/resolv.conf (create the file, if it doesn't exist) and add this line:
nameserver 192.168.0.1
Change the IP address to point to your nameserver.

Now you should be able to ping any domains and go to the internet. If it all works, the next thing to do is edit another file so that the changes are retained on the next bootup. To do this, edit /etc/rc.conf and add the following lines:

ifconfig_dc0="inet 192.168.0.10"
defaultrouter="192.168.0.1"


Hope this helps

Reply With Quote
  #7  
Old March 8th, 2004, 07:42 PM
0773 0773 is offline
no rotor no motor
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: kentucky
Posts: 10 0773 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to 0773
hrmm

Quote:
Thanks guys, I got the networking ironed out..
I was able to startx as root once! now when i startx the last thing it shows is "(==) using config file: "/etc/X11/XF86Config"

then it completely locks up nothing works i have to pull the battery and unplug it...

I just tried startx -probe, and it locks up just like noted above, could this be a hardware issue? I have used linux for about a year now and by no means would i consider myself a "guru" but i dont see what in the world would cause this, im sure i set up my XF86Config properly man this is frustrating...


I think I solved that Problem, For some reason if I try to configure my XF86Config with anything other than "ncurse?" at installation It does'nt work right for some reason, ncurse gives me more options. Maybe it's a bug with this hardware?

Last edited by 0773 : March 9th, 2004 at 08:19 AM. Reason: Solved I think.

Reply With Quote
  #8  
Old March 8th, 2004, 09:17 PM
Rather!BHere Rather!BHere is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 3 Rather!BHere User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
X Config

Well I've only been on here a day, but I'm sure X config has been covered elsewhere, so try a search..

But, I'm assuming you've already configured X? Once again, easiest is to run /stand/sysinstall, then choose post-install config, then X setup.

If it's locking up, it might be an incorrect video driver setting. To verify, change the display card driver to VESA (I'm assuming you have a PCI vid card), go through the X config (use the ncurses based configurator). When it finishes, try startx again.

If that works, you can probably live with VESA unless you're planning on doing major graphics work. If so, it's a matter of picking the right video driver. X is very picky about which driver you choose (eg: you can't just pick any nvidia driver).

Let us know how it goes.

Reply With Quote
  #9  
Old March 8th, 2004, 09:48 PM
0773 0773 is offline
no rotor no motor
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: kentucky
Posts: 10 0773 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to 0773
Quote:
Originally Posted by Rather!BHere
Well I've only been on here a day, but I'm sure X config has been covered elsewhere, so try a search..

But, I'm assuming you've already configured X? Once again, easiest is to run /stand/sysinstall, then choose post-install config, then X setup.

If it's locking up, it might be an incorrect video driver setting. To verify, change the display card driver to VESA (I'm assuming you have a PCI vid card), go through the X config (use the ncurses based configurator). When it finishes, try startx again.

If that works, you can probably live with VESA unless you're planning on doing major graphics work. If so, it's a matter of picking the right video driver. X is very picky about which driver you choose (eg: you can't just pick any nvidia driver).

Let us know how it goes.


I dont have PCI graphics, I have it on a laptop and it has an ATI mobility card, I have just been using the default ati driver, it worked once, but no more . And im pretty sure X is configured correctly, i used /usr/X11R6/bin/xf86config. Im at a loss on this one.. maybe someone else has FreeBSD on their dell laptop, hopefully they do and will see this.

Reply With Quote
  #10  
Old March 8th, 2004, 11:20 PM
0773 0773 is offline
no rotor no motor
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: kentucky
Posts: 10 0773 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to 0773
love it

Quote:
I'm pleased to write that im in FreeBSD right now, it lets me run X as root but when i try as a different user it locks up tighter than windows


I think I solved that Problem, For some reason if I try to configure my XF86Config with anything other than "ncurse?" at installation It does'nt work right for some reason, ncurse gives me more options. Maybe it's a bug with this hardware?

Last edited by 0773 : March 9th, 2004 at 08:22 AM.

Reply With Quote
  #11  
Old March 8th, 2004, 11:40 PM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,332 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Do you get any error message?

Reply With Quote
  #12  
Old March 8th, 2004, 11:48 PM
0773 0773 is offline
no rotor no motor
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: kentucky
Posts: 10 0773 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to 0773
Red face java installation primer?

Quote:
Originally Posted by mttatkns
Do you get any error message?

nope, it just locks up... I was reading somewhere on the net the installing a newer version of X may solve that problem, im gonna look in to this.

Saving a new thread, Does anyone know how to install java?
I found this on FreeBSDs' site
Native JDK on FreeBSD

This is the effort of the Java 2 FreeBSD porting project. By the use of patchsets and the JDK source code released by Sun, this port builds a native JDK for FreeBSD.

cd /usr/ports/java/jdk14
make install clean

I did that and i have the bsd-jdk14-patches-6.tar.gz installed in /usr/ports/distfiles
so now im lost... what do i do next? I know i seem like a annoying newb but im tired of bills spoon :P and since im cheap i have mostly old hardware so i want an OS that will squeeze all that it can from my ancient machines.. I really am grateful for the help, in fact if any of you guys live in kentucky maybe i can buy you a beer, or a soda... :P

ever grateful,
Mike Mc

Reply With Quote
  #13  
Old March 9th, 2004, 12:01 AM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is online now
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 18 m 43 sec
Reputation Power: 797
Quote:
Originally Posted by 0773
By the use of patchsets and the JDK source code released by Sun, this port builds a native JDK for FreeBSD.

cd /usr/ports/java/jdk14
make install clean

I did that and i have the bsd-jdk14-patches-6.tar.gz installed in /usr/ports/distfiles
so now im lost... what do i do next?

Treat yourself to a nice cold beer. I guess that's a pretty good reward for installing your first port . Congratulations! If you want to check what has been installed, type pkg_info and look at the output. You should see jdk1.4 in the list of installed software.

Reply With Quote
  #14  
Old March 9th, 2004, 12:05 AM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,332 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
If you press ctrl+alt+backspace, do you see an error message?

Reply With Quote
  #15  
Old March 9th, 2004, 12:35 AM
0773 0773 is offline
no rotor no motor
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: kentucky
Posts: 10