|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
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... |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > OpenBSD : DHCP Client Problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|