LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   OpenBSD : DHCP Client Problem (https://www.linuxquestions.org/questions/%2Absd-17/openbsd-dhcp-client-problem-236604/)

fnoyan 09-29-2004 07:42 AM

OpenBSD : DHCP Client Problem
 
Hi to all

I am trying to set up my old PC (200MMX) as a router with OpenBSD 3.5.
I edited /etc/hostname.rl0 (I have a Realtek 8139 Card)

# echo dhcp > /etc/hostname.rl0
# route flush

Reset the modem

# sh /etc/netstart rl0

I get nothing! The system does DHCPDISCOVER for a long time and gets nothing.

I also try manual setting.
Edit /etc/hostname.rl0 file

# echo "inet my_ip my_netmask NONE" > /etc/hostname.rl0
# cat > /etc/resolv.conf
nameserver my_dns_1
nameserver my_dns_2
nameserver my_dns_3
# cat my_gateway_address > /etc/mygate
# ifconfig rl0 up
# sh /etc/netstart rl0
# ping any.known.ip
ping : sendto : no route to host

I also tried

# route add default my.gateway.ip

After this, if I type
# route show
or
# netstat -r

The machine hangs (locks!). Nothing is printed!

Thanks for advices...

chort 09-29-2004 02:58 PM

Are you sure that the interface is actually detected and up? The best way is to manually configure first with ifconfig. Once you verify that it works, then edit /etc/hostname.<if> and reboot to make sure everything works as expected.


All times are GMT -5. The time now is 05:14 AM.