Update to refer to rc.conf instead of sysconfig (including updating
the examples).
This commit is contained in:
parent
a3faddb7ca
commit
5c0e475e10
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=2715
2 changed files with 80 additions and 90 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE linuxdoc PUBLIC "-//FreeBSD//DTD linuxdoc//EN">
|
<!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>
|
<article>
|
||||||
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
url="mailto:SimsS@IBM.NET"
|
url="mailto:SimsS@IBM.NET"
|
||||||
name="<SimsS@IBM.NET>"></tt>
|
name="<SimsS@IBM.NET>"></tt>
|
||||||
|
|
||||||
<date>$Date: 1997-12-31 12:40:59 $
|
<date>$Date: 1998-04-21 00:47:14 $
|
||||||
<abstract>
|
<abstract>
|
||||||
This is a step-by-step guide for configuring FreeBSD systems to act as
|
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
|
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
|
<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
|
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>
|
<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>
|
chances are your system WILL NOT BOOT correctly! Be careful!</bf></em>
|
||||||
|
|
||||||
<p>The configuration file that specifies the FreeBSD system's host
|
<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.
|
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:
|
editor with the following command:
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
# ee /etc/sysconfig
|
# ee /etc/rc.conf
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
|
|
||||||
<p>Using the arrow keys, scroll down until you find the line that
|
<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:
|
section says:
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
---
|
---
|
||||||
# Set to the name of your host - this is pretty important!
|
### Basic network options: ###
|
||||||
hostname=myname.my.domain
|
hostname="myname.my.domain" # Set this!
|
||||||
---
|
---
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
Change this section to say (in our example):
|
Change this section to say (in our example):
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
---
|
---
|
||||||
# Set to the name of your host - this is pretty important!
|
### Basic network options: ###
|
||||||
hostname=curly.my.domain
|
hostname="curly.my.domain" # Set this!
|
||||||
---
|
---
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
|
|
||||||
|
|
@ -286,21 +286,21 @@ system configuration files!</bf></em>
|
||||||
chances are your system WILL NOT BOOT correctly! Be careful!</bf></em>
|
chances are your system WILL NOT BOOT correctly! Be careful!</bf></em>
|
||||||
|
|
||||||
<p>The configuration file that specifies settings for the network
|
<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.
|
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:
|
editor with the following command:
|
||||||
<p>
|
<p>
|
||||||
<tt> # ee /etc/sysconfig</tt>
|
<tt> # ee /etc/rc.conf</tt>
|
||||||
<p>
|
<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
|
that describes which network interfaces should be activated when the
|
||||||
system boots. In the default configuration file the specific line
|
system boots. In the default configuration file the specific line
|
||||||
that controls this is:
|
that controls this is:
|
||||||
|
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
network_interfaces="lo0"
|
network_interfaces="lo0" # List of network interfaces (lo0 is loopback).
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
|
|
||||||
<p>You'll need to amend this line to tell FreeBSD that you want to add
|
<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:
|
read:
|
||||||
|
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
network_interfaces="lo0 ed0"
|
network_interfaces="lo0 ed0" # List of network interfaces (lo0 is loopback).
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
|
|
||||||
<p>(Note the space between the definition for the loopback device
|
<p>(Note the space between the definition for the loopback device
|
||||||
("lo0")
|
("<tt/lo0/")
|
||||||
and the Ethernet device ("<tt/ed0/")!
|
and the Ethernet device ("<tt/ed0/")!
|
||||||
|
|
||||||
<p><em><bf> Reminder: If your Ethernet card isn't named '<tt/ed0/', specify
|
<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
|
<p>Beneath the line that specifies which interfaces should be
|
||||||
activated are the lines that specify the actual settings for each
|
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:
|
line that says:
|
||||||
|
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
ifconfig_lo0="inet localhost"
|
ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration.
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
|
|
||||||
<p>You'll need to add another line after that to specify the settings
|
<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"
|
ifconfig_ed0="inet 192.168.1.1 netmask 255.255.255.0"
|
||||||
</verb></tscreen>
|
</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
|
configure the network interfaces the section should look really close
|
||||||
to:
|
to:
|
||||||
|
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
---
|
---
|
||||||
network_interfaces="lo0 ed0"
|
network_interfaces="ed1 lo0" # List of network interfaces (lo0 is loopback).
|
||||||
ifconfig_lo0="inet localhost"
|
ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration.
|
||||||
ifconfig_ed0="inet 192.168.1.1 netmask 0xffffff00"
|
ifconfig_ed1="inet 192.168.1.1 netmask 255.255.255.0"
|
||||||
---
|
---
|
||||||
</verb></tscreen>
|
</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
|
been made, press the 'Esc' key to invoke the control menu. Select
|
||||||
"leave editor" and be sure to select "save changes" when prompted.
|
"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.
|
forwarding.
|
||||||
|
|
||||||
<p>To enable IP Packet forwarding you'll need to edit the
|
<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:
|
Load this file into your editor with the following command:
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
# ee /etc/sysconfig
|
# ee /etc/rc.conf
|
||||||
</verb></tscreen>
|
</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
|
configuration
|
||||||
section which controls IP forwarding, which will look like:
|
section which controls IP forwarding, which will look like:
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
=====
|
=====
|
||||||
# If you want this host to be a gateway, set to YES.
|
gateway_enable="NO" # Set to YES if this host will be a gateway.
|
||||||
gateway=NO
|
|
||||||
=====
|
=====
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
|
|
||||||
<p>Change this line to read:
|
<p>Change this line to read:
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
=====
|
=====
|
||||||
# If you want this host to be a gateway, set to YES.
|
gateway_enable="YES" # Set to YES if this host will be a gateway.
|
||||||
gateway=YES
|
|
||||||
=====
|
=====
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
|
|
||||||
and exit the editor (saving the changes!).
|
and exit the editor (saving the changes!).
|
||||||
|
|
||||||
<p><em><bf>NOTE: This line may already be set to '<tt/gateway=YES/' if IP
|
<p><em><bf>NOTE: This line may already be set to
|
||||||
forwarding was enabled when the FreeBSD system was installed.</bf></em>
|
'<tt/gateway_enable="YES"/' if IP forwarding was enabled when the
|
||||||
|
FreeBSD system was installed.</bf></em>
|
||||||
|
|
||||||
<sect1>
|
<sect1>
|
||||||
<heading>Creating the List of other LAN Hosts(<tt>/etc/hosts</tt>)</heading>
|
<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
|
<p>Congratulations! Once you've made it to this point, the FreeBSD
|
||||||
system is configured as a network-connected UNIX system! If you made
|
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
|
re-boot your FreeBSD system. This will accomplish two important
|
||||||
objectives:
|
objectives:
|
||||||
<itemize>
|
<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
|
<p>By default the DNS server ('<tt>/usr/sbin/named</tt>') is not
|
||||||
started when the system boots. You can modify this behavior by
|
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
|
<p> Using the '<tt/ee/' editor, load <tt>/etc/rc.conf</tt>. Scroll
|
||||||
down approximately 200 lines until you come to the section that says:
|
down approximately 40 lines until you come to the section that says:
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
---
|
---
|
||||||
# Set to appropriate flags for named, if you have a full-time
|
named_enable="NO" # Run named, the DNS server (or NO).
|
||||||
# connection to the Internet.
|
named_flags="-b /etc/namedb/named.boot" # Flags to named (if enabled).
|
||||||
# For most hosts, flags should be "-b /etc/namedb/named.boot"
|
|
||||||
namedflags="NO"
|
|
||||||
---
|
---
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
Change this section to read:
|
Change this section to read:
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
---
|
---
|
||||||
# Set to appropriate flags for named, if you have a full-time
|
named_enable="YES" # Run named, the DNS server (or NO).
|
||||||
# connection to the Internet.
|
named_flags="-b /etc/namedb/named.boot" # Flags to named (if enabled).
|
||||||
# For most hosts, flags should be "-b /etc/namedb/named.boot"
|
|
||||||
namedflags="-b /etc/namedb/named.boot"
|
|
||||||
---
|
---
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
Save the file and reboot.
|
Save the file and reboot.
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE linuxdoc PUBLIC "-//FreeBSD//DTD linuxdoc//EN">
|
<!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>
|
<article>
|
||||||
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
url="mailto:SimsS@IBM.NET"
|
url="mailto:SimsS@IBM.NET"
|
||||||
name="<SimsS@IBM.NET>"></tt>
|
name="<SimsS@IBM.NET>"></tt>
|
||||||
|
|
||||||
<date>$Date: 1997-12-31 12:40:59 $
|
<date>$Date: 1998-04-21 00:47:14 $
|
||||||
<abstract>
|
<abstract>
|
||||||
This is a step-by-step guide for configuring FreeBSD systems to act as
|
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
|
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
|
<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
|
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>
|
<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>
|
chances are your system WILL NOT BOOT correctly! Be careful!</bf></em>
|
||||||
|
|
||||||
<p>The configuration file that specifies the FreeBSD system's host
|
<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.
|
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:
|
editor with the following command:
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
# ee /etc/sysconfig
|
# ee /etc/rc.conf
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
|
|
||||||
<p>Using the arrow keys, scroll down until you find the line that
|
<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:
|
section says:
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
---
|
---
|
||||||
# Set to the name of your host - this is pretty important!
|
### Basic network options: ###
|
||||||
hostname=myname.my.domain
|
hostname="myname.my.domain" # Set this!
|
||||||
---
|
---
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
Change this section to say (in our example):
|
Change this section to say (in our example):
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
---
|
---
|
||||||
# Set to the name of your host - this is pretty important!
|
### Basic network options: ###
|
||||||
hostname=curly.my.domain
|
hostname="curly.my.domain" # Set this!
|
||||||
---
|
---
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
|
|
||||||
|
|
@ -286,21 +286,21 @@ system configuration files!</bf></em>
|
||||||
chances are your system WILL NOT BOOT correctly! Be careful!</bf></em>
|
chances are your system WILL NOT BOOT correctly! Be careful!</bf></em>
|
||||||
|
|
||||||
<p>The configuration file that specifies settings for the network
|
<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.
|
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:
|
editor with the following command:
|
||||||
<p>
|
<p>
|
||||||
<tt> # ee /etc/sysconfig</tt>
|
<tt> # ee /etc/rc.conf</tt>
|
||||||
<p>
|
<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
|
that describes which network interfaces should be activated when the
|
||||||
system boots. In the default configuration file the specific line
|
system boots. In the default configuration file the specific line
|
||||||
that controls this is:
|
that controls this is:
|
||||||
|
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
network_interfaces="lo0"
|
network_interfaces="lo0" # List of network interfaces (lo0 is loopback).
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
|
|
||||||
<p>You'll need to amend this line to tell FreeBSD that you want to add
|
<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:
|
read:
|
||||||
|
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
network_interfaces="lo0 ed0"
|
network_interfaces="lo0 ed0" # List of network interfaces (lo0 is loopback).
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
|
|
||||||
<p>(Note the space between the definition for the loopback device
|
<p>(Note the space between the definition for the loopback device
|
||||||
("lo0")
|
("<tt/lo0/")
|
||||||
and the Ethernet device ("<tt/ed0/")!
|
and the Ethernet device ("<tt/ed0/")!
|
||||||
|
|
||||||
<p><em><bf> Reminder: If your Ethernet card isn't named '<tt/ed0/', specify
|
<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
|
<p>Beneath the line that specifies which interfaces should be
|
||||||
activated are the lines that specify the actual settings for each
|
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:
|
line that says:
|
||||||
|
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
ifconfig_lo0="inet localhost"
|
ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration.
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
|
|
||||||
<p>You'll need to add another line after that to specify the settings
|
<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"
|
ifconfig_ed0="inet 192.168.1.1 netmask 255.255.255.0"
|
||||||
</verb></tscreen>
|
</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
|
configure the network interfaces the section should look really close
|
||||||
to:
|
to:
|
||||||
|
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
---
|
---
|
||||||
network_interfaces="lo0 ed0"
|
network_interfaces="ed1 lo0" # List of network interfaces (lo0 is loopback).
|
||||||
ifconfig_lo0="inet localhost"
|
ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration.
|
||||||
ifconfig_ed0="inet 192.168.1.1 netmask 0xffffff00"
|
ifconfig_ed1="inet 192.168.1.1 netmask 255.255.255.0"
|
||||||
---
|
---
|
||||||
</verb></tscreen>
|
</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
|
been made, press the 'Esc' key to invoke the control menu. Select
|
||||||
"leave editor" and be sure to select "save changes" when prompted.
|
"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.
|
forwarding.
|
||||||
|
|
||||||
<p>To enable IP Packet forwarding you'll need to edit the
|
<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:
|
Load this file into your editor with the following command:
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
# ee /etc/sysconfig
|
# ee /etc/rc.conf
|
||||||
</verb></tscreen>
|
</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
|
configuration
|
||||||
section which controls IP forwarding, which will look like:
|
section which controls IP forwarding, which will look like:
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
=====
|
=====
|
||||||
# If you want this host to be a gateway, set to YES.
|
gateway_enable="NO" # Set to YES if this host will be a gateway.
|
||||||
gateway=NO
|
|
||||||
=====
|
=====
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
|
|
||||||
<p>Change this line to read:
|
<p>Change this line to read:
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
=====
|
=====
|
||||||
# If you want this host to be a gateway, set to YES.
|
gateway_enable="YES" # Set to YES if this host will be a gateway.
|
||||||
gateway=YES
|
|
||||||
=====
|
=====
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
|
|
||||||
and exit the editor (saving the changes!).
|
and exit the editor (saving the changes!).
|
||||||
|
|
||||||
<p><em><bf>NOTE: This line may already be set to '<tt/gateway=YES/' if IP
|
<p><em><bf>NOTE: This line may already be set to
|
||||||
forwarding was enabled when the FreeBSD system was installed.</bf></em>
|
'<tt/gateway_enable="YES"/' if IP forwarding was enabled when the
|
||||||
|
FreeBSD system was installed.</bf></em>
|
||||||
|
|
||||||
<sect1>
|
<sect1>
|
||||||
<heading>Creating the List of other LAN Hosts(<tt>/etc/hosts</tt>)</heading>
|
<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
|
<p>Congratulations! Once you've made it to this point, the FreeBSD
|
||||||
system is configured as a network-connected UNIX system! If you made
|
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
|
re-boot your FreeBSD system. This will accomplish two important
|
||||||
objectives:
|
objectives:
|
||||||
<itemize>
|
<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
|
<p>By default the DNS server ('<tt>/usr/sbin/named</tt>') is not
|
||||||
started when the system boots. You can modify this behavior by
|
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
|
<p> Using the '<tt/ee/' editor, load <tt>/etc/rc.conf</tt>. Scroll
|
||||||
down approximately 200 lines until you come to the section that says:
|
down approximately 40 lines until you come to the section that says:
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
---
|
---
|
||||||
# Set to appropriate flags for named, if you have a full-time
|
named_enable="NO" # Run named, the DNS server (or NO).
|
||||||
# connection to the Internet.
|
named_flags="-b /etc/namedb/named.boot" # Flags to named (if enabled).
|
||||||
# For most hosts, flags should be "-b /etc/namedb/named.boot"
|
|
||||||
namedflags="NO"
|
|
||||||
---
|
---
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
Change this section to read:
|
Change this section to read:
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
---
|
---
|
||||||
# Set to appropriate flags for named, if you have a full-time
|
named_enable="YES" # Run named, the DNS server (or NO).
|
||||||
# connection to the Internet.
|
named_flags="-b /etc/namedb/named.boot" # Flags to named (if enabled).
|
||||||
# For most hosts, flags should be "-b /etc/namedb/named.boot"
|
|
||||||
namedflags="-b /etc/namedb/named.boot"
|
|
||||||
---
|
---
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
Save the file and reboot.
|
Save the file and reboot.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue