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:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old September 27th, 2004, 04:04 PM
fnoyan fnoyan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 2 fnoyan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
OpenBSD : DHCP Client Problem

Hi
First of all I read the FAQ and man pages related with this topic.
I have two network adapters and I will use one of the for internet connection (rl0).
I first edit /etc/hostname.rl0
#echo "dhcp" > /etc/hostname.rl0
then
#route flush
#dhclient rl0
This assigns IP adresses as follows...
DHCPOFFER from 192.168.100.1
DHCPREQUEST on rl0 to 255.255.255.255 on port 67
DHCPACK from 192.168.100.1
New Network Number : 192.168.100.0
New Broadcast Address : 192.168.100.255
And the "ifconfig rl0" gives
...
status : active
..
..
inet : 192.168.100.2
Then I try to ping somewhere (ie google), the system caanot "route"!
The /etc/resolv.conf includes
nameserver 192.168.100.1

I also tried
#sh /etc/netstart

If I give "netstat -r" or "route show" and then type "ifconfig rl0" the inet address will change to 0.0.0.0!

But, when I try to connect to internet with the same modem in Windows 98 (I do no changes in TCP/IP configuration, all the settings are untouched) I just connect the cable modem to my ethernet card and connect to internet.

I tried to reset the modem several times. Edit /etc/dhclient.conf file and prevent the system to get the DNS address from DHCP (but not gave an address myself, I am not sure!)

Why do the addreses given to me are in 192.168.*.* format (LAN format) !?!? The addreses in Windows 98 are like 62.248.*.*!
How can I configure my system? I, actually want to use it as an gateway.

Thanks....
Fehmi Noyan ISI

Reply With Quote
  #2  
Old September 27th, 2004, 06:06 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
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 2 h 5 m 45 sec
Reputation Power: 797
Can you ping the IP address of google?
ping 64.233.161.99

See if that works 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 September 28th, 2004, 03:53 PM
fnoyan fnoyan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 2 fnoyan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hi
I could not get anything from DHCP. It just DHCPDISCOVERs for a while and gives nothing!
Then I try to set it manually.
1) Edit resolv.conf
write the DNS adresses in it.

2) Edit hostname.vr0 (changed the etherhet card, VIA)
write
inet my_ip my_mask NONE

3) edit /etc/mygate
echo my_gateway_ip > mygate

# route flush
# ifconfig vr0 up
# sh /etc/netstart vr0

then try to ping an IP ADDRESS.
ping : sendto: no route to host

I can see the IP address, netmask and broadcast address from "ifconfig vr0".
What is wrong here!

Thanks...

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > OpenBSD : DHCP Client Problem


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 4 hosted by Hostway