NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Problem setting up DHCP with Virtual Box
Hi Dieter,
On 08/06/2011 01:14 PM, dieter roelants wrote:
2) I have configured DHCP:
# grep dhclient /etc/rc.conf
dhclient=YES
(The slightly better way to check this is `/etc/rc.d/dhclient rcvar`.)
Hmm...
# /etc/rc.d/dhclient rcvar
$dhclient=NO
# grep dhclient /etc/rc.conf
dhclient=YES
The easiest way to see what's going on is probably run it as `sh
-x /etc/rc.d/dhclient start`
Output attached. Can you make any sense out of the output? I don't see
anything wrong, but I'm a noob.
Daniel.
--
I'm not overweight, I'm undertall.
+ [ -f /etc/shrc ]
+ . /etc/shrc
+ . /etc/rc.subr
+ : rc.conf(5)
+ : 325
+ export RC_PID
+ _rc_subr_loaded=:
+ name=dhclient
+ rcvar=dhclient
+ command=/sbin/dhclient
+ pidfile=/var/run/dhclient.pid
+ load_rc_config dhclient
+ _command=dhclient
+ [ -z dhclient ]
+ false
+ . /etc/rc.conf
+ dhclient=YES
+ [ -r /etc/defaults/rc.conf ]
+ . /etc/defaults/rc.conf
+ rc_rcorder_flags=
+ do_rcshutdown=YES
+ rcshutdown_rcorder_flags=
+ rcshutdown_timeout=
+ hostname=
+ defaultroute=
+ defaultroute6=
+ domainname=
+ critical_filesystems_local=/var
+ critical_filesystems_remote=/usr
+ no_swap=NO
+ swapoff=YES
+ ccd=YES
+ raidframe=YES
+ cgd=YES
+ lkm=NO
+ savecore=YES savecore_flags=-z
+ savecore_dir=/var/crash
+ per_user_tmp=NO
+ per_user_tmp_dir=/private/tmp
+ clear_tmp=YES
+ update_motd=YES
+ dmesg=YES dmesg_flags=
+ accounting=NO
+ newsyslog=NO newsyslog_flags=
+ quota=YES
+ ldconfig=YES
+ sysdb=YES
+ rndctl=NO rndctl_flags=
+ rtclocaltime=NO
+ fsck_flags=-p
+ securelevel=
+ ipfilter=NO ipfilter_flags=
+ ipnat=NO
+ ipfs=NO ipfs_flags=
+ ipsec=NO
+ ipmon=NO ipmon_flags=-Dns
+ pf=NO pf_rules=/etc/pf.conf
+ pflogd=NO
+ ftp_proxy=NO
+ racoon=NO
+ auto_ifconfig=YES
+ net_interfaces=
+ flushroutes=YES
+ dhcpcd=NO
+ dhcpcd_flags=-q
+ dhclient=NO
+ dhclient_flags=
+ ntpdate=NO ntpdate_flags=-b -s
+ ppp_peers=
+ ip6mode=host
+ ip6uniquelocal=NO
+ rtsol=NO rtsol_flags=-a
+ ifwatchd=NO
+ ifwatchd_flags=-u /etc/ppp/ip-up -d /etc/ppp/ip-down pppoe0
+ altqd=NO altqd_flags=
+ inetd=YES inetd_flags=-l
+ identd=NO identd_flags=-b -l -u nobody
+ rpcbind=NO rpcbind_flags=-l
+ syslogd=YES syslogd_flags=-s
+ cron=YES
+ named=NO named_flags=
+ timed=NO timed_flags=
+ ntpd=NO ntpd_flags=
+ postfix=YES
+ lpd=NO lpd_flags=-s
+ sshd=NO sshd_flags=
+ ssh_keygen_flags=-b 1024
+ ftpd=NO ftpd_flags=-ll
+ httpd=NO httpd_flags=
+ httpd_wwwdir=/var/www
+ httpd_wwwuser=_httpd
+ routed=NO routed_flags=-q
+ gated=NO
+ mrouted=NO mrouted_flags=
+ route6d=NO route6d_flags=
+ rtsold=NO rtsold_flags=-a
+ rarpd=NO rarpd_flags=-a
+ bootparamd=NO bootparamd_flags=
+ dhcpd=NO dhcpd_flags=-q
+ dhcrelay=NO dhcrelay_flags=
+ rbootd=NO rbootd_flags=
+ mopd=NO mopd_flags=-a
+ ndbootd=NO ndbootd_flags=-s /tftpboot /tftpboot/bootyy
+ rtadvd=NO rtadvd_flags=
+ xfs=NO xfs_flags=
+ xdm=NO xdm_flags=
+ ypbind=NO ypbind_flags=
+ ypserv=NO ypserv_flags=-d
+ yppasswdd=NO yppasswdd_flags=
+ mountd=NO mountd_flags=
+ nfs_client=NO
+ nfs_server=NO
+ nfsd_flags=-6tun 4
+ lockd=NO lockd_flags=
+ statd=NO statd_flags=
+ amd=NO amd_flags=-l syslog -x error,noinfo,nostats
+ amd_dir=/amd
+ kdc=NO kdc_flags=--detach
+ iscsi_target=NO iscsi_target_flags=
+ hostapd=NO hostapd_flags=-B /etc/hostapd.conf
+ wpa_supplicant=NO wpa_supplicant_flags=-B
+ isdnd=NO isdnd_flags=
+ btattach=NO
+ btconfig=NO
+ btdevctl=NO
+ bthcid=NO bthcid_flags=
+ sdpd=NO sdpd_flags=
+ rwhod=NO rwhod_flags=-u _rwhod
+ envsys=NO
+ apmd=NO apmd_flags=
+ poffd=NO
+ poffd_flags='shutdown -p now'
+ powerd=NO powerd_flags=
+ screenblank=NO screenblank_flags=
+ moused=NO
+ moused_flags=-p /dev/tty00
+ wdogctl=NO
+ irdaattach=NO
+ irdaattach_flags=tty00
+ wscons=NO wscons_flags=
+ wsmoused=NO wsmoused_flags=
+ tpctl=NO tpctl_flags=
+ mixerctl=NO mixerctl_mixers=
+ virecover=YES
+ veriexec=NO
+ veriexec_strict=0
+ veriexec_verbose=0
+ veriexec_flags=-k
+ rc_configured=YES
+ wscons=YES
+ _rc_conf_loaded=true
+ [ -f /etc/rc.conf.d/dhclient ]
+ run_rc_command start
+ rc_arg=start
+ [ -z dhclient ]
+ _rc_prefix=
+ _keywords=start stop restart rcvar
+ rc_pid=
+ _pidcmd=
+ _procname=/sbin/dhclient
+ [ -z -a -n /sbin/dhclient ]
+ [ -n /var/run/dhclient.pid ]
+ _pidcmd=rc_pid=$(check_pidfile /var/run/dhclient.pid /sbin/dhclient )
+ [ -n rc_pid=$(check_pidfile /var/run/dhclient.pid /sbin/dhclient ) ]
+ _keywords=start stop restart rcvar status poll
+ [ -z start ]
+ [ -n ]
+ eval rc_flags=$dhclient_flags
+ rc_flags=
+ eval _chdir=$dhclient_chdir _chroot=$dhclient_chroot _nice=$dhclient_nice
_user=$dhclient_user _group=$dhclient_group _groups=$dhclient_groups
_env="$dhclient_env"
+ _chdir= _chroot= _nice= _user= _group= _groups= _env=
+ [ -n ]
+ [ -n dhclient -a start != rcvar ]
+ checkyesno dhclient
+ eval _value=$dhclient
+ _value=NO
+ return 1
+ return 0
Home |
Main Index |
Thread Index |
Old Index