|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
dhclient.conf: line 2: expecting a statement?
i edited /etc/dhclient.conf
Code:
sudo nano /etc/dhclient.conf Code:
send host name "openbsd"; Code:
supercede domain-name-servers 8.8.8.8, 8.8.4.4; during rebooting, a kernel message reads: Code:
pf enabled starting network /etc/dhclient.conf line 2: expecting a statement supercede ^ |
|
|||
You have: supercede
It should be: supersede |
|
|||
oh my...my...
thanks a lot i hope what i am about to tell you guys is on topic. you see, while waiting for a reply to my original post, i changed the word supercede to prepend as in Code:
prepend domain-name-servers 8.8.8.8, 8.8.4.4; upon reboot, i tried to ping google.com and was told there was no route to host. what happened? |
|
|||
Quote:
8.8.8.8 is first nameserver 8.8.4.4 is second nameserver so where are the third and fourth? |
|
||||
Because your directive was to prepend two Google nameservers in front of ISP-provided nameservers, I assumed the problem was too many. I was wrong. It was a guess on my part, because we can only see what you post.
Looking again at the error message you reported -- "no route to host" -- I'll make another guess -- your IP configuration may not have been successfully provisioned. Perhaps dhclient(8) complained about your configuration file, if it did not complete the TCP/IP configuration properly. That complaint should be recorded in a file in /var/log; most likely /var/log/daemon or possibly /var/log/messages. You can also start (or rerun) dhclient(8) manually. The command # dhclient -d <your nic> will not only restart dhclient, it will post those complaints right on your console, if any. The -d option says, "do not daemonize, keep this running on my console or in my terminal window."If dhclient has no complaints, look at your current network configuration. That would be the output of an "ifconfig" command, which will show us the configuration of all NICs, real and pseudo, and the output of "route -n show -inet", that will show your routing table. I'll put away the crystal ball and take off the magic hat, if you provide information that can help narrow down the problem. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenBSD New OpenBSD dhclient(8) | J65nko | News | 1 | 7th May 2013 09:41 PM |
dhclient configuration ? | wlm2 | OpenBSD General | 5 | 25th August 2011 02:34 PM |
dhclient at startup | bsdnewbie999 | OpenBSD General | 3 | 31st March 2009 03:55 AM |
dhclient.conf: multiple fixed-address statements | xiphias | FreeBSD General | 14 | 19th June 2008 06:42 AM |