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... |
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. |