|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
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 :( |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
Quote:
ifconfig dc0 inet 192.168.0.1 do i want the address of my router there? |
|
#6
|
||||
|
||||
|
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 ![]() |
|
#7
|
|||
|
|||
|
hrmm
Quote:
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. |
|
#8
|
|||
|
|||
|
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. |
|
#9
|
|||
|
|||
|
Quote:
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. |
|
#10
|
|||
|
|||
|
love it
Quote:
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. |
|
#11
|
|||
|
|||
|
Do you get any error message?
|
|
#12
|
|||
|
|||
|
Quote:
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 |
|
#13
|
||||
|
||||
|
Quote:
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. |
|
#14
|
|||
|
|||
|
If you press ctrl+alt+backspace, do you see an error message?
|
|
#15
|
|||
|