LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 09-29-2004, 07:42 AM   #1
fnoyan
LQ Newbie
 
Registered: Sep 2004
Posts: 23

Rep: Reputation: 15
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...
 
Old 09-29-2004, 02:58 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
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.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD 5.3 - Network Problem - DHCP Client KGodwin *BSD 6 03-30-2005 05:55 AM
DHCP client problem marlor Fedora 0 11-26-2004 05:55 PM
dhcp client problem. LinuxRam Linux - Networking 1 11-02-2004 08:37 AM
DHCP client problem dream3r Slackware 8 02-18-2004 10:12 PM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 12:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration