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:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old August 30th, 2004, 10:36 PM
leonard.shelby leonard.shelby is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Long Island, NY
Posts: 4 leonard.shelby User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Network Configuration Woes.?

hello,

much to many readers chagrin i am quite new to installing and configuring any flavor of linux. my knowledge is limited to the basic user functions that i need at school.

i'm having trouble downloading packages and/or downloading ports via the sysinstall program. for example when doing a post-install configuration of FreeBSD to configure a X desktop (KDE) i attempt to use the "Install from an FTP server" and the "Install from an FTP server through a firewall" options. This yields an error message saying that it cannot resolve host name....

i filled in the network configuration information for my "dc0" ethernet connection (which comes through a linksys router, that i wish to keep as my router/firewall for now) as follows:

host: name.domain.com
domain: domain.com
IPv4 Gateway: 192.168.1.1
Name Server: i took the first DNS server that my router uses
IPv4 Address: i chose an IP outside the range that the router uses for DHCP
Netmask: 255.255.255.0

yes, i have tried searching the forum. google has led me to a lot of pages that gloss over this bit, or only include info on how to make the FreeBSD box into a firewall.

do i have the wrong idea about how this should work?

any help at all is appreciated.
thanks for reading.

Reply With Quote
  #2  
Old August 31st, 2004, 01:15 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,432 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: 4 Weeks 1 Day 22 h 29 m 51 sec
Reputation Power: 784
Here are a few questions for you to answer.
1. Can you ping 192.168.1.1?
2. What are the contents of your /etc/resolv.conf file. To view the contents, type cat /etc/resolv.conf and paste the results here.
3. Can you ping a public site such as yahoo.com?
__________________
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 August 31st, 2004, 07:44 PM
leonard.shelby leonard.shelby is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Long Island, NY
Posts: 4 leonard.shelby User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
1. Can you ping 192.168.1.1?

i can not the message
"ping: sendto: No route to host runs infinitely

2. What are the contents of your /etc/resolv.conf file. To view the contents, type cat /etc/resolv.conf and paste the results here.

i can not locate the file resolv.conf. within /etc the file is just not there.

3. Can you ping a public site such as yahoo.com?[/QUOTE]

i recieve
"ping: cannot resolve yahoo.com: Host name lookup failure"

thanks for responding

Reply With Quote
  #4  
Old September 1st, 2004, 01:39 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,432 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: 4 Weeks 1 Day 22 h 29 m 51 sec
Reputation Power: 784
Ok, this means your network is not set up at all.

Here's what you need to do:

I. Set up an IP on your network card
------------------------------------
1. Type /sbin/ifconfig and look at the output. You should see something like this:
dc0: flags=....
...
lo0: flags=...
inet 127.0.0.1 netmask 0xff000000

2. To set up an IP (say 192.168.1.10), type this:
/sbin/ifconfig dc0 192.168.1.10 netmask 255.255.255.0

3. Now type [b]/sbin/ifconfig
and note the output for dc0 again. It should now say
dc0: flags=...
inet 192.168.1.10 netmask 0xffffff00
4. At this point, you should be able to successfully ping 192.168.1.1. Try it out and make sure you can do this before going to the next stage.


STEP II. Set up the nameserver
-------------------------------
1. Use your favourite text-editor to edit /etc/resolv.conf and add the following line (assuming your nameserver is 192.168.1.1 of course):
nameserver 192.168.1.1

2. Save and close this file. You can add multiple nameserver lines if you have different resolvers. For example:
nameserver 192.168.1.1
nameserver 4.2.2.1


STEP III. Set up your routes
---------------------------
1. Type /usr/bin/netstat -ar and this will show your existing routes. Look for one where the Destination is "default". If it doesn't exist, then we'll need to add it.
2. /sbin/route add 0.0.0.0 192.168.1.1
3. Now type /usr/bin/netstat -ar and you'll see a route called "default" with the gateway set as 192.168.1.1
4. Now you should be able to ping www.yahoo.com as well.


STEP IV. Make your changes permanent
---------------------------------------
If all the above has worked, your network is now configured and working. The next thing to do is make sure that your changes are saved so that they're restored on reboot. To do this:

1. Edit /etc/rc.conf with your favourite text editor.

2. Add the following lines:
ifconfig_dc0="inet 192.168.1.10 netmask 255.255.255.0"
defaultrouter="192.168.1.1"

3. Save and exit.

Reply With Quote
  #5  
Old September 1st, 2004, 11:04 PM
leonard.shelby leonard.shelby is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Long Island, NY
Posts: 4 leonard.shelby User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hello,

With your help there has been some progress. After completing Step II default shows up in my Routing tables with the Gateway set to 192.168.1.1. However I am unable to ping "www.yahoo.com".

I am able to ping 192.168.1.1, the response is:

"PING 192.168.1.1 (192.168.1.1): 56 data bytes
ping: sendto: Host is down
....
ping: sendto: Host is down"

Here is what the routing table looks like:

Internet:
Destination__Gateway______Flags_Refs_Use_Netif_Expire
default______192.168.1.1___UGS__0____36__dc0
localhost_____localhost_____UH___0____0___lo0
192.168.1____link#1________UC___0____0___dc0
192.168.1.1__link#1______UHRLW__1___25___dc0__17

Internet6:
here are many other entries

I don't know if that information is pertinent. What else should I try?

Reply With Quote
  #6  
Old September 10th, 2004, 08:57 AM
leonard.shelby leonard.shelby is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Long Island, NY
Posts: 4 leonard.shelby User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
UPDATE:

it turns out that the CAT 5 cable was bad. silly thing like that held things up. thank you for your help Scorpions4ever.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Network Configuration Woes.?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway