*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: FreeBSD, Fedora, RHEL, Ubuntu; OS X, Win; have used Slackware, Mandrake, SuSE, Xandros
Posts: 448
Rep:
domainname problem, MAC question
I have two network-related questions about my FreeBSD 5.1-CURRENT system:
1) When I do an "ifconfig -a" or "arp -a" to determine my NIC card's MAC address, a 'spoofed' MAC shows up (or at least it looks spoofed to me):
ether 0a:00:0a:00:0a:00
Is there another way to discover the "true" MAC address, or to correct this one? As far as I know, I've not done anything purposely to alter the address.
2) On boot, the system reports an error from /etc/rc in determining my local domain name, even though I've set it both in /etc/hosts and /etc/rc.conf (domainname="mydomain.com") and /etc/resolv.conf (domain mydomain.com). Is this correct? If so, why is it that when I type "domainname" the system returns no result, until I manually run "domainname <mydomain>"? How do I set the value and keep the system from complaining?
Distribution: FreeBSD, Fedora, RHEL, Ubuntu; OS X, Win; have used Slackware, Mandrake, SuSE, Xandros
Posts: 448
Original Poster
Rep:
Quote:
Originally posted by RJW Regarding your MAC address: if that's what the system says it is, then that is what it is.
You'd think, but I find it highly difficult to believe the MAC address "0a:00:0a:00:0a:00" would be unique, which is a requirement for a valid MAC address.
In addition, "arp"s from this box and other boxes with other OSes return the same MAC.
Quote:
Originally posted by RJW Your problem is in your `/etc/rc.conf' file. It's not `domainname', but `hostname':
Code:
hostname="mydomain.com"
Yes; in addition to having set domainname, I've also got hostname set in /etc/rc.conf as well: hostname="host.mydomain.com"
Any other ideas?
Distribution: FreeBSD, Fedora, RHEL, Ubuntu; OS X, Win; have used Slackware, Mandrake, SuSE, Xandros
Posts: 448
Original Poster
Rep:
Even though it appears on the screen during each boot, it's not being stored in 'dmesg'... where would I look to find it?
Regardless, I believe the error is "domainname not set", on two successive lines, if I'm not mistaken.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
By the way, that MAC address looks like it might be a multicast MAC addr. I'll look it up later today if I get a chance, but you might want to look into that.
Distribution: FreeBSD, Fedora, RHEL, Ubuntu; OS X, Win; have used Slackware, Mandrake, SuSE, Xandros
Posts: 448
Original Poster
Rep:
Thanks...here's the error:
Dec 17 12:20:29 <host> root: /etc/rc: WARNING: domainname(1) is not set.
Dec 17 12:20:29 <host> root: /etc/rc: WARNING: domainname(1) is not set.
I haven't tried commenting-out the domainname entry. I'l give it a try.
Thank you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.