Update to refer to rc.conf instead of sysconfig (including updating
the examples).
This commit is contained in:
parent
45d7673a5d
commit
02069b194a
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=2715
1 changed files with 40 additions and 45 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE linuxdoc PUBLIC "-//FreeBSD//DTD linuxdoc//EN">
|
||||
<!-- $Id: ppp.sgml,v 1.5 1997-12-31 12:40:59 brian Exp $ -->
|
||||
<!-- $Id: ppp.sgml,v 1.6 1998-04-21 00:47:14 eivind Exp $ -->
|
||||
|
||||
<article>
|
||||
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
url="mailto:SimsS@IBM.NET"
|
||||
name="<SimsS@IBM.NET>"></tt>
|
||||
|
||||
<date>$Date: 1997-12-31 12:40:59 $
|
||||
<date>$Date: 1998-04-21 00:47:14 $
|
||||
<abstract>
|
||||
This is a step-by-step guide for configuring FreeBSD systems to act as
|
||||
a dial-up router/gateway in a Local Area Environment. All entries may
|
||||
|
|
@ -164,7 +164,7 @@ important part is the name up to the first dot.)
|
|||
|
||||
<p>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
|
||||
<tt>/etc/sysconfig</tt> to set the name of the machine.
|
||||
<tt>/etc/rc.conf</tt> to set the name of the machine.
|
||||
|
||||
<sect2><heading>Configuring the FreeBSD Host Name</heading>
|
||||
|
||||
|
|
@ -175,13 +175,13 @@ system configuration files!</bf></em>
|
|||
chances are your system WILL NOT BOOT correctly! Be careful!</bf></em>
|
||||
|
||||
<p>The configuration file that specifies the FreeBSD system's host
|
||||
name when the system boots is in <tt>/etc/sysconfig</tt>. Use the
|
||||
name when the system boots is in <tt>/etc/rc.conf</tt>. Use the
|
||||
default text editor ('<tt/ee/') to edit this file.
|
||||
|
||||
<p>Logged in as user 'root' load <tt>/etc/sysconfig</tt> into the
|
||||
<p>Logged in as user 'root' load <tt>/etc/rc.conf</tt> into the
|
||||
editor with the following command:
|
||||
<tscreen><verb>
|
||||
# ee /etc/sysconfig
|
||||
# ee /etc/rc.conf
|
||||
</verb></tscreen>
|
||||
|
||||
<p>Using the arrow keys, scroll down until you find the line that
|
||||
|
|
@ -189,15 +189,15 @@ specifies the host name of the FreeBSD system. By default, this
|
|||
section says:
|
||||
<tscreen><verb>
|
||||
---
|
||||
# Set to the name of your host - this is pretty important!
|
||||
hostname=myname.my.domain
|
||||
### Basic network options: ###
|
||||
hostname="myname.my.domain" # Set this!
|
||||
---
|
||||
</verb></tscreen>
|
||||
Change this section to say (in our example):
|
||||
<tscreen><verb>
|
||||
---
|
||||
# Set to the name of your host - this is pretty important!
|
||||
hostname=curly.my.domain
|
||||
### Basic network options: ###
|
||||
hostname="curly.my.domain" # Set this!
|
||||
---
|
||||
</verb></tscreen>
|
||||
|
||||
|
|
@ -286,21 +286,21 @@ system configuration files!</bf></em>
|
|||
chances are your system WILL NOT BOOT correctly! Be careful!</bf></em>
|
||||
|
||||
<p>The configuration file that specifies settings for the network
|
||||
interfaces when the system boots is in <tt>/etc/sysconfig</tt>. Use
|
||||
interfaces when the system boots is in <tt>/etc/rc.conf</tt>. Use
|
||||
the default text editor ('ee') to edit this file.
|
||||
|
||||
<p>Logged in as user 'root' load <tt>/etc/sysconfig</tt> into the
|
||||
<p>Logged in as user 'root' load <tt>/etc/rc.conf</tt> into the
|
||||
editor with the following command:
|
||||
<p>
|
||||
<tt> # ee /etc/sysconfig</tt>
|
||||
<tt> # ee /etc/rc.conf</tt>
|
||||
<p>
|
||||
About 100 lines from the top of <tt>/etc/sysconfig</tt> is the section
|
||||
About 20 lines from the top of <tt>/etc/rc.conf</tt> is the section
|
||||
that describes which network interfaces should be activated when the
|
||||
system boots. In the default configuration file the specific line
|
||||
that controls this is:
|
||||
|
||||
<tscreen><verb>
|
||||
network_interfaces="lo0"
|
||||
network_interfaces="lo0" # List of network interfaces (lo0 is loopback).
|
||||
</verb></tscreen>
|
||||
|
||||
<p>You'll need to amend this line to tell FreeBSD that you want to add
|
||||
|
|
@ -308,11 +308,11 @@ another device, namely the '<tt/ed0/' device. Change this line to
|
|||
read:
|
||||
|
||||
<tscreen><verb>
|
||||
network_interfaces="lo0 ed0"
|
||||
network_interfaces="lo0 ed0" # List of network interfaces (lo0 is loopback).
|
||||
</verb></tscreen>
|
||||
|
||||
<p>(Note the space between the definition for the loopback device
|
||||
("lo0")
|
||||
("<tt/lo0/")
|
||||
and the Ethernet device ("<tt/ed0/")!
|
||||
|
||||
<p><em><bf> Reminder: If your Ethernet card isn't named '<tt/ed0/', specify
|
||||
|
|
@ -328,11 +328,11 @@ it is the correct device name.
|
|||
|
||||
<p>Beneath the line that specifies which interfaces should be
|
||||
activated are the lines that specify the actual settings for each
|
||||
interface. In the default <tt>/etc/sysconfig</tt> file is a single
|
||||
interface. In the default <tt>/etc/rc.conf</tt> file is a single
|
||||
line that says:
|
||||
|
||||
<tscreen><verb>
|
||||
ifconfig_lo0="inet localhost"
|
||||
ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration.
|
||||
</verb></tscreen>
|
||||
|
||||
<p>You'll need to add another line after that to specify the settings
|
||||
|
|
@ -350,19 +350,19 @@ the loopback device definition that says:
|
|||
ifconfig_ed0="inet 192.168.1.1 netmask 255.255.255.0"
|
||||
</verb></tscreen>
|
||||
|
||||
<p>When you've finished editing <tt>/etc/sysconfig</tt> to specify and
|
||||
<p>When you've finished editing <tt>/etc/rc.conf</tt> to specify and
|
||||
configure the network interfaces the section should look really close
|
||||
to:
|
||||
|
||||
<tscreen><verb>
|
||||
---
|
||||
network_interfaces="lo0 ed0"
|
||||
ifconfig_lo0="inet localhost"
|
||||
ifconfig_ed0="inet 192.168.1.1 netmask 0xffffff00"
|
||||
network_interfaces="ed1 lo0" # List of network interfaces (lo0 is loopback).
|
||||
ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration.
|
||||
ifconfig_ed1="inet 192.168.1.1 netmask 255.255.255.0"
|
||||
---
|
||||
</verb></tscreen>
|
||||
|
||||
<p>Once all of the necessary changes to <tt>/etc/sysconfig</tt> have
|
||||
<p>Once all of the necessary changes to <tt>/etc/rc.conf</tt> have
|
||||
been made, press the 'Esc' key to invoke the control menu. Select
|
||||
"leave editor" and be sure to select "save changes" when prompted.
|
||||
|
||||
|
|
@ -383,34 +383,33 @@ as well as LAN workstations (as a router) you'll need to enable IP
|
|||
forwarding.
|
||||
|
||||
<p>To enable IP Packet forwarding you'll need to edit the
|
||||
<tt>/etc/sysconfig</tt> file.
|
||||
<tt>/etc/rc.conf</tt> file.
|
||||
Load this file into your editor with the following command:
|
||||
<tscreen><verb>
|
||||
# ee /etc/sysconfig
|
||||
# ee /etc/rc.conf
|
||||
</verb></tscreen>
|
||||
|
||||
<p>About 250 lines down from the top of the file will be the
|
||||
<p>About 85 lines down from the top of the file will be the
|
||||
configuration
|
||||
section which controls IP forwarding, which will look like:
|
||||
<tscreen><verb>
|
||||
=====
|
||||
# If you want this host to be a gateway, set to YES.
|
||||
gateway=NO
|
||||
gateway_enable="NO" # Set to YES if this host will be a gateway.
|
||||
=====
|
||||
</verb></tscreen>
|
||||
|
||||
<p>Change this line to read:
|
||||
<tscreen><verb>
|
||||
=====
|
||||
# If you want this host to be a gateway, set to YES.
|
||||
gateway=YES
|
||||
gateway_enable="YES" # Set to YES if this host will be a gateway.
|
||||
=====
|
||||
</verb></tscreen>
|
||||
|
||||
and exit the editor (saving the changes!).
|
||||
|
||||
<p><em><bf>NOTE: This line may already be set to '<tt/gateway=YES/' if IP
|
||||
forwarding was enabled when the FreeBSD system was installed.</bf></em>
|
||||
<p><em><bf>NOTE: This line may already be set to
|
||||
'<tt/gateway_enable="YES"/' if IP forwarding was enabled when the
|
||||
FreeBSD system was installed.</bf></em>
|
||||
|
||||
<sect1>
|
||||
<heading>Creating the List of other LAN Hosts(<tt>/etc/hosts</tt>)</heading>
|
||||
|
|
@ -453,7 +452,7 @@ changes" when prompted.
|
|||
|
||||
<p>Congratulations! Once you've made it to this point, the FreeBSD
|
||||
system is configured as a network-connected UNIX system! If you made
|
||||
any changes to the <tt>/etc/sysconfig</tt> file you should probably
|
||||
any changes to the <tt>/etc/rc.conf</tt> file you should probably
|
||||
re-boot your FreeBSD system. This will accomplish two important
|
||||
objectives:
|
||||
<itemize>
|
||||
|
|
@ -1561,25 +1560,21 @@ the addresses back into names in the <tt>$ORIGIN
|
|||
|
||||
<p>By default the DNS server ('<tt>/usr/sbin/named</tt>') is not
|
||||
started when the system boots. You can modify this behavior by
|
||||
changing a single line in '<tt>/etc/sysconfig</tt>' as follows:
|
||||
changing a single line in '<tt>/etc/rc.conf</tt>' as follows:
|
||||
|
||||
<p> Using the '<tt/ee/' editor, load <tt>/etc/sysconfig</tt>. Scroll
|
||||
down approximately 200 lines until you come to the section that says:
|
||||
<p> Using the '<tt/ee/' editor, load <tt>/etc/rc.conf</tt>. Scroll
|
||||
down approximately 40 lines until you come to the section that says:
|
||||
<tscreen><verb>
|
||||
---
|
||||
# Set to appropriate flags for named, if you have a full-time
|
||||
# connection to the Internet.
|
||||
# For most hosts, flags should be "-b /etc/namedb/named.boot"
|
||||
namedflags="NO"
|
||||
named_enable="NO" # Run named, the DNS server (or NO).
|
||||
named_flags="-b /etc/namedb/named.boot" # Flags to named (if enabled).
|
||||
---
|
||||
</verb></tscreen>
|
||||
Change this section to read:
|
||||
<tscreen><verb>
|
||||
---
|
||||
# Set to appropriate flags for named, if you have a full-time
|
||||
# connection to the Internet.
|
||||
# For most hosts, flags should be "-b /etc/namedb/named.boot"
|
||||
namedflags="-b /etc/namedb/named.boot"
|
||||
named_enable="YES" # Run named, the DNS server (or NO).
|
||||
named_flags="-b /etc/namedb/named.boot" # Flags to named (if enabled).
|
||||
---
|
||||
</verb></tscreen>
|
||||
Save the file and reboot.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue