There are three basic pieces of information that must be known to the FreeBSD box before you can proceed with integrating the sample Local Area Network:
The Host Name of the FreeBSD system; in our example it's "Curly",
The Network configuration,
The /etc/hosts file (which lists the names and IP addresses of the other systems in your network)
If you performed the installation of FreeBSD over a network connection some of this information may already be configured into your FreeBSD system.
Even if you believe that the FreeBSD system was properly configured when it was installed you should at least verify each of these bits of information to prevent trouble in subsequent steps.
It's possible that the FreeBSD host name was specified and saved when the system was initially installed. To verify that it was, enter the following command at a prompt:
The name of the host FreeBSD system will be displayed on a single line. If the name looks correct (this is very subjective :-) skip ahead to Section 2.2.
For example, in our sample network, we would see 'curly.my.domain' as a result of the `hostname` command if the name had been set correctly during, or after, installation. (At this point, don't worry too much about the ".my.domain" part, we'll sort this out later. The important part is the name up to the first dot.)
If a host name wasn't specified when FreeBSD was installed you'll probably see 'myname.my.domain` as a response. You'll need to edit /etc/rc.conf to set the name of the machine.
Reminder: You must be logged in as 'root' to edit the system configuration files!
CAUTION: If you mangle the system configuration files, chances are your system WILL NOT BOOT correctly! Be careful!
The configuration file that specifies the FreeBSD system's host name when the system boots is in /etc/rc.conf. Use the default text editor ('ee') to edit this file.
Logged in as user 'root' load /etc/rc.conf into the editor with the following command:
Using the arrow keys, scroll down until you find the line that specifies the host name of the FreeBSD system. By default, this section says:
Once the change to the host name has been made, press the 'Esc' key to access the command menu. Select "leave editor" and make sure to specify "save changes" when prompted.
|Assumptions about the Local Area Network||Verifying the Ethernet Interface Configuration|
For questions about FreeBSD, e-mail
For questions about this documentation, e-mail <doc@FreeBSD.org>.
Закладки на сайте
Проследить за страницей
Created 1996-2021 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру