diff --git a/ru_RU.KOI8-R/books/handbook/advanced-networking/chapter.sgml b/ru_RU.KOI8-R/books/handbook/advanced-networking/chapter.sgml index 9b663bac49..bfffcebe32 100644 --- a/ru_RU.KOI8-R/books/handbook/advanced-networking/chapter.sgml +++ b/ru_RU.KOI8-R/books/handbook/advanced-networking/chapter.sgml @@ -2,9 +2,9 @@ The FreeBSD Russian Documentation Project $FreeBSD$ - $FreeBSDru: frdp/doc/ru_RU.KOI8-R/books/handbook/advanced-networking/chapter.sgml,v 1.91 2004/04/13 06:55:14 den Exp $ + $FreeBSDru: frdp/doc/ru_RU.KOI8-R/books/handbook/advanced-networking/chapter.sgml,v 1.101 2004/07/19 17:02:48 den Exp $ - Original revision: 1.324 + Original revision: 1.329 --> <chapter id="advanced-networking"> @@ -14,8 +14,7 @@ <title>������� �����</title> <para>��� ����� ���������� ��������� ��������� ������� ������� - ���������� ���������. ����� ����� ������� ��������� ��������� - ������� ��������� � ����������.</para> + ���������� ���������.</para> <para>����� ������ ���� ����� �� ������ �����:</para> @@ -65,6 +64,17 @@ <listitem> <para>�������� ������� ��������� �������� ���������.</para> </listitem> + + <listitem> + <para>����� ��� ����������� � ������������� ����� ���� FreeBSD + (<xref linkend="kernelconfig">).</para> + </listitem> + + <listitem> + <para>����� ��� ������������� �������������� ����������� + ����������� ��������� ������������� + (<xref linkend="ports">).</para> + </listitem> </itemizedlist> </sect1> @@ -457,9 +467,138 @@ host2.example.com link#1 UC 0 0 </sect2> <sect2> - <title>Setting Up Static Routes *</title> + <sect2info> + <authorgroup> + <author> + <firstname>Al</firstname> + <surname>Hoang</surname> + <contrib>����������� </contrib> + </author> + </authorgroup> + </sect2info> + <!-- Feb 2004 --> + <title>��������� ����������� ���������</title> - <para>���� ������ �� ���������.</para> + <sect3> + <title>������ ���������</title> + + <para>�����������, ��� � ��� ���� ��������� ����:</para> + + <mediaobject> + <imageobject> + <imagedata fileref="advanced-networking/static-routes"> + </imageobject> + + <textobject> + <literallayout class="monospaced"> + INTERNET + | (10.0.0.1/24) Default Router to Internet + | + |Interface xl0 + |10.0.0.10/24 + +------+ + | | RouterA + | | (FreeBSD gateway) + +------+ + | Interface xl1 + | 192.168.1.1/24 + | + +--------------------------------+ + Internal Net 1 | 192.168.1.2/24 + | + +------+ + | | RouterB + | | + +------+ + | 192.168.2.1/24 + | + Internal Net 2 + </literallayout> + </textobject> + </mediaobject> + + <para>� ���� ��������, <hostid>RouterA</hostid> ��� ��� + ��������� � &os;, ������� ��������� � �������� + �������������� � ���� ��������. ��� ������� �� ��������� + �������� �� <hostid + role="ipaddr">10.0.0.1</hostid>, ��� ��������� ��� + ����������� � ������� �����. �� ����� ������������, ��� + <hostid>RouterB</hostid> ��� ��������� �������� � + ����� ��� ����������� �������� (�� ���� ������� ��� + ������; �������� �� <hostid>RouterB</hostid> ������� + �� ���������, ��������� <hostid + role="ipaddr">192.168.1.1</hostid> � �������� �����).</para> + + <para>���� �� ��������� �� ������� ������������� + <hostid>RouterA</hostid>, �� ������ �������� ���������:</para> + + <screen>&prompt.user; <userinput>netstat -nr</userinput> +Routing tables + +Internet: +Destination Gateway Flags Refs Use Netif Expire +default 10.0.0.1 UGS 0 49378 xl0 +127.0.0.1 127.0.0.1 UH 0 6 lo0 +10.0.0/24 link#1 UC 0 0 xl0 +192.168.1/24 link#2 UC 0 0 xl1</screen> + + <para>� ������� �������� ������������� <hostid>RouterA</hostid> + �� ������ ������� ���������� ���� 2 (Internal Net 2). + ���� �� �������� ������ ���� �������� — ���������� + �������� �������. ��������� ������� ��������� + ���������� ���� 2 � ������� ������������� + <hostid>RouterA</hostid> � <hostid + role="ipaddr">192.168.1.2</hostid> � �������� ���������� + ����:</para> + + <screen>&prompt.root; <userinput>route add -net 192.168.2.0/24 192.168.1.2</userinput></screen> + + <para>������ <hostid>RouterA</hostid> ������ ������� ������ ����� + � ���� + <hostid role="ipaddr">192.168.2.0/24</hostid>.</para> + </sect3> + + <sect3> + <title>���������� ������������</title> + + <para>���������� ������ ��������� �������� ��� ��������� ������������ + �������� � ���������� �������. ������, �������� ����������� � + ���, ��� ���������� ���������� �� ���������� ����� ������������ + &os;. ������ ���������� ������������ �������� ����������� � + ���������� ��� � ���� <filename>/etc/rc.conf</filename>:</para> + + <programlisting># ���������� ������������ �������� � Internal Net 2 +static_routes="internalnet2" +route_internalnet2="-net 192.168.2.0/24 192.168.1.2"</programlisting> + + <para>� ���������� <literal>static_routes</literal> ��������� + ������, ����������� ���������. ������ ������ �������� ��� + ��������. � ������� ���� � <literal>static_routes</literal> + ���� ������ ���� ������, ��� + <replaceable>internalnet2</replaceable>. ����� �� �������� + ���������� + <literal>route_<replaceable>internalnet2</replaceable></literal>, + ���� �������� ��� ���������, ������� ���������� �������� + ������� &man.route.8;. � ������� ���� ���� ������������ + �������:</para> + + <screen>&prompt.root; <userinput>route add -net 192.168.2.0/24 192.168.1.2</userinput></screen> + + <para>������� ��� ����������� + <literal>"-net 192.168.2.0/24 192.168.1.2"</literal>.</para> + + <para>��� ���� ������� ����, �� ����� �������� � + <literal>static_routes</literal> ����� ��� ���� ������. + ��� �������� ������� ��������� ����������� ���������. + � ��������� ������� �������� ���������� ��������� ��� ����� <hostid + role="ipaddr">192.168.0.0/24</hostid> � <hostid + role="ipaddr">192.168.1.0/24</hostid> (���� ������������� �� + ������� �� ������� ����:</para> + + <programlisting>static_routes="net1 net2" +route_net1="-net 192.168.0.0/24 192.168.0.1" +route_net2="-net 192.168.1.0/24 192.168.1.1"</programlisting> + </sect3> </sect2> <sect2> @@ -1905,17 +2044,17 @@ net.link.ether.bridge.ipfw=1</programlisting> <itemizedlist> <listitem> <para>����������� ������� ������� ��������� ���������� - <filename>��������</filename> �������� ������� � ������ ������ + �������� ������� <filename>/</filename> � ������ ������ ������, � ����� ���������� <filename>/usr</filename> ��������� ���� � ������ ������ ������.</para> - <para><filename>��������</filename> �������� ������� �������� ������ + <para>�������� �������� ������� �������� ������ ����������� �������� ������� FreeBSD (������ �������), � ���������� ������������ �������, ����������� ���-�� ���������� ��� ����������� �������� ���, ��������, ��� ������� �������, ������� ��� �������������.</para> - <para>����� <filename>��������</filename> �������� �������, ������� + <para>����� �������� �������� �������, ������� ������ ���� �������� ��� ������, ������������� ��������� ��������� &man.mfs.8; (&os; 4.X) ��� &man.md.4; (&os; 5.X). ����� ��������� ����� �������� ��� ������������� @@ -1942,9 +2081,111 @@ net.link.ether.bridge.ipfw=1</programlisting> ��� 5.X ����������� �����.</para> <sect2> - <title>Background Information *</title> + <title>����� ����������</title> - <para>���� ������ �� ���������.</para> + <para>��������� ����������� ������� ������� ������������ ������, + �� � �� �� ����� ����� ������� ������. ������ ������ + ��������������� ��� ������ �� ���������� ��������. + ��������:</para> + + <itemizedlist> + <listitem> + <para>��������� ���������� ����� ��-������� ��������� + ���� �� ����� ������.</para> + </listitem> + + <listitem> + <para>��������� �� ������� ������ ��������� ��� ����� + �����������.</para> + </listitem> + </itemizedlist> + + <para>� ������ �������� ��������� ������, ���������� ������������ + ���������� ����������, ����� ������� ��� ���������� �������, + ������� ����� ����������.</para> + + <para>��� ���������� �������� �������� ���������� ���������� + ��������� ��������:</para> + + <itemizedlist> + <listitem> + <para>���������� ���������� �������� ��������� ���������, ����� + ��� ����������� IP �����, ��� ������������ �����, �������� + �������. ��� ����� ������������ ��������� <acronym>DHCP</acronym> + ��� BOOTP. <acronym>DHCP</acronym> ��� ����������� ���������� + BOOTP, ������������ �� �� ������ ������ � �������� ������ + �������.</para> + + <para>�������� ��������� ������� ��� ������������� ������ BOOTP. + ��������� ��������� &man.bootpd.8; �������� � �������� ������� + &os;.</para> + + <para>��� �� �����, � <acronym>DHCP</acronym> ���� ��������� + ����������� ��� BOOTP (����� ����� ���������, ����������� + ������������� <acronym>PXE</acronym>, ���� ������ ������ + ������������, �� ����������� ��������������� � ����������� + ���������), � �� � �������� ����� ��������� ��������� + <acronym>DHCP</acronym>, � �������������� ��������� + ��� &man.bootpd.8;, ����� ��� ��������. ������ + ������������ ����� ������������ ����� + <application>ISC DHCP</application> (����� + 3.0.1.r12 ��� ���������� �� �������� �������).</para> + </listitem> + + <listitem> + <para>���������� ��������� ��������� � ��������� ������ ���� + ��� ��������� ��������. ������������ <acronym>TFTP</acronym> + ��� <acronym>NFS</acronym>. ����� ����� + <acronym>TFTP</acronym> ��� <acronym>NFS</acronym> + ������������ �� ����� �������������� � ���������� ������. + ����� ������������� ������ ��� �������� ���� ������ ��� + ������� ���������: <acronym>TFTP</acronym> ������ + ��������� ��� ����� � ������ �������� �������, � ��������� + ����� ������ ������������ ����� ��������. <acronym>NFS</acronym> + ����� ���������� ���� � ������.</para> + </listitem> + + <listitem> + <para>���������� ���������������� � ��������� ��������� + ������������� ��������� �������� � ����. � ���� ������� + ���������� ��������� ������ ��������:</para> + + <itemizedlist> + <listitem> + <para><acronym>PXE</acronym> �������� &man.pxeboot.8;, + ���������� ���������������� ������� ���������� + ������� ������ &os;. &man.loader.8; ������� ����������� + ����������, ����������� ��� ������ �������, � ������� + �� � ��������� ���� �� �������� ��������. � ���� + ������ �������� ������������� ���� + <filename>GENERIC</filename>.</para> + </listitem> + + <listitem> + <para><application>etherboot</application>, ��������������� + �������� ����, � ������� �����������. ��� ����������� + ������� ���� �� ������������ �����������.</para> + </listitem> + </itemizedlist> + + <para><acronym>PXE</acronym> � <application>etherboot</application> + �������� ��������� ������ � ��������� 4.X. ��������� ���� + 5.X ������ ��������� &man.loader.8; ��������� ������ + ��������������� ������, ����� <acronym>PXE</acronym> �� �������� + 5.X ��������������.</para> + + <para>���� ��� <acronym>BIOS</acronym> � ������� ����� ������������ + <acronym>PXE</acronym>, ����������� ���. ������, ��� �� �������� + ������ ������� 5.X � <application>etherboot</application>.</para> + </listitem> + + <listitem> + <para>�������, ���������� ��������� ������ � �������� ��������. + <acronym>NFS</acronym> ������������ �� ���� �������.</para> + </listitem> + </itemizedlist> + + <para>���������� ����� � �������� ����������� &man.diskless.8;.</para> </sect2> <sect2> @@ -1965,9 +2206,7 @@ net.link.ether.bridge.ipfw=1</programlisting> �� ���������� � �������� �������. ������� ��� ����� ����� ���������� ���� <filename role="package">net/isc-dhcp3-server</filename> - ��� ��������������� �����. ����������, ���������� � <xref - linkend="ports"> ��� ��������� ������ ������������� � ������ � - �������.</para> + ��� ��������������� �����.</para> <para>����� ��������� <application>ISC DHCP</application> ��� ��� ������ ��������� ���������������� ���� (������ ���������� @@ -2144,9 +2383,29 @@ margaux:ha=0123456789ab:tc=.def100 </sect3> <sect3> - <title>Booting with <acronym>PXE</acronym> *</title> + <title>�������� � <acronym>PXE</acronym></title> - <para>���� ������ �� ���������.</para> + <para>�� ���������, &man.pxeboot.8; ��������� ���� ����� + <acronym>NFS</acronym>. �� ����� ���� ������������� ��� + ������������� ������ ���� <acronym>TFTP</acronym> ����� + �������� ��������� <literal>LOADER_TFTP_SUPPORT</literal> � + <filename>/etc/make.conf</filename>. �������� ����������� � + <filename>/etc/defaults/make.conf</filename> (��� + <filename>/usr/share/examples/etc/make.conf</filename> ������ + 5.X) � ������������.</para> + + <para>���� ��� �� ����������������� ��������� + <filename>make.conf</filename>, ������� ����� ���� ������� ��� + ��������� ������������ ���������� � ���������������� ��������: + <literal>BOOT_PXELDR_PROBE_KEYBOARD</literal>, � + <literal>BOOT_PXELDR_ALWAYS_SERIAL</literal> (��������� ���������� + ������ � &os; 5.X).</para> + + <para>��� ������������� <acronym>PXE</acronym> ��� �������� ���������� + ��� ������ ����������� ������� �������� <literal>Boot from + network</literal> (�������� �� ����) � ���������� + <acronym>BIOS</acronym>, ��� ������ �������������� ������� �� + ����� �������� PC.</para> </sect3> <sect3> @@ -2341,10 +2600,25 @@ options BOOTP_NFSROOT # NFS mount root filesystem using BOOTP info </sect4> <sect4> - <title>Using the Standard <command>make world</command> - Procedure *</title> + <title>������������� ����������� ��������� + <command>make world</command></title> - <para>���� ������ �� ���������.</para> + <para>���� ����� ����� ���� �������� � &os; 4.X ��� 5.X � + ��������� ����� ������� (�� ������ ��������) � + <envar>DESTDIR</envar>. ���, ��� ��� ����������� �������, + ��� ������ ��������� ��������� ������:</para> + + <programlisting>#!/bin/sh +export DESTDIR=/data/misc/diskless +mkdir -p ${DESTDIR} +cd /usr/src; make world && make kernel +cd /usr/src/etc; make distribution</programlisting> + + <para>��� ������ ��� ����� �������, ��� ����� ������������� + ��������� <filename>/etc/rc.conf</filename> � + <filename>/etc/fstab</filename>, ���������� � + <envar>DESTDIR</envar>, � ������������ � ������ + �������������.</para> </sect4> </sect3> @@ -2431,9 +2705,70 @@ host margaux { </sect4> <sect4> - <title><acronym>NFS</acronym> Swap with &os 5.X *</title> + <title>�������� �� <acronym>NFS</acronym> � &os; 4.X</title> - <para>���� ������ �� ���������.</para> + <para>��������� � ������ ����� �������� ����� ���� ������� � + &os;-����������� ���������� BOOTP/<acronym>DHCP</acronym> + � �������� 128 � 129. ���� ��������� ������� ������ + ��������� ��� <application>ISC DHCP 3.0</application> ��� + <application>bootpd</application>:</para> + + <procedure> + <step><para>�������� ��������� ������ � + <filename>dhcpd.conf</filename>:</para> + <programlisting> +# Global section +option swap-path code 128 = string; +option swap-size code 129 = integer 32; + +host margaux { + ... # Standard lines, see above + option swap-path <replaceable>"192.168.4.4:/netswapvolume/netswap"</replaceable>; + option swap-size <replaceable>64000</replaceable>; +} + </programlisting> + + <para><literal>swap-path</literal> ��� ���� � ��������, ��� + ����������� ����� ��������. ����� ���������� + <filename>swap.<replaceable>client-ip</replaceable></filename>.</para> + + <para>������ ������ <application>dhcpd</application> ���������� + ��������� <literal>option option-128 "...</literal>, ������� + ����� �� ��������������.</para> + <para><filename>/etc/bootptab</filename> ������ ����� ���������� + ��������� ���������:</para> + + <programlisting>T128="192.168.4.4:/netswapvolume/netswap":T129=0000fa00</programlisting> + + <note><para>� <filename>/etc/bootptab</filename>, ������ + �������� ������ ����������� � ����������������� + �������.</para></note> + </step> + + <step> + <para>�������� �� <acronym>NFS</acronym> ������� � ������� �������� + �����:</para> + <screen> +&prompt.root; <userinput>mkdir <replaceable>/netswapvolume/netswap</replaceable></userinput> +&prompt.root; <userinput>cd <replaceable>/netswapvolume/netswap</replaceable></userinput> +&prompt.root; <userinput>dd if=/dev/zero bs=1024 count=<replaceable>64000</replaceable> of=swap.<replaceable>192.168.4.6</replaceable></userinput> +&prompt.root; <userinput>chmod 0600 swap.<replaceable>192.168.4.6</replaceable></userinput> + </screen> + <para><replaceable>192.168.4.6</replaceable> ��� IP ����� + ������������ �������.</para> + </step> + + <step> + <para>�� �������� ������� <acronym>NFS</acronym> � ������� + �������� �������� ��������� ������ � + <filename>/etc/exports</filename>:</para> + <programlisting> +<replaceable>/netswapvolume</replaceable> -maproot=0:10 -alldirs <replaceable>margaux corbieres</replaceable> + </programlisting> + <para>����� ��������� <application>mountd</application> ���������� + ���������������� ����� ��� ���� �������� ����.</para> + </step> + </procedure> </sect4> </sect3> @@ -3757,22 +4092,285 @@ gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 </sect2> <sect2> - <title>Applying the needed changes to <filename>/etc/rc.conf</filename> *</title> + <title>�������� ����������� ��������� � + <filename>/etc/rc.conf</filename></title> - <para>���� ������ �� ���������.</para> + <sect3> + <title>��������� �������� IPv6</title> + + <para>��� ��������� ������� ��� ��������� ���������, ������� + ����� �������� � ���� ��� ������, � �� ��� �������������. + ��� ��������� ��������� ����������� ����� &man.rtsol.8; + ��� ��������, ���, ��� ��� �����������, ��� �������� + ��������� ������:</para> + + <programlisting>ipv6_enable="YES"</programlisting> + + <para>��� ������������ ���������� IP ������, ������ ��� <hostid + role="ip6addr">2001:471:1f11:251:290:27ff:fee0:2093</hostid>, + ���������� <devicename>fxp0</devicename>, ��������:</para> + + <programlisting>ipv6_ifconfig_fxp0="2001:471:1f11:251:290:27ff:fee0:2093"</programlisting> + + <para>��� ���������� ��������������� �� ��������� + <hostid role="ip6addr">2001:471:1f11:251::1</hostid>, + �������� ��������� ������ � + <filename>/etc/rc.conf</filename>:</para> + + <programlisting>ipv6_defaultrouter="2001:471:1f11:251::1"</programlisting> + + </sect3> + + <sect3> + <title>��������� ��������������/����� IPv6</title> + + <para>���� ������ ������� ��� ������������ ����������, ������� ����� + ��������� �������, ��������, <ulink + url="http://www.6bone.net/">6bone</ulink>, � ������� ��� ��������� + �����������. ��� �������������� ������� ��� �������� ������� + ����������� � <filename>/etc/rc.conf</filename> ��������������� + ���������.</para> + + <para>������� ������ ���������� ����������� (Generic Tunneling + interfaces), ������� ���������� ���������, �������� + <devicename>gif0</devicename>:</para> + + <programlisting>gif_interfaces="gif0"</programlisting> + + <para>��� ��������� ���������� � ��������� ������������ �� + <replaceable>MY_IPv4_ADDR</replaceable> � ��������� ����� + <replaceable>REMOTE_IPv4_ADDR</replaceable>:</para> + + <programlisting>gif_config_gif0="<replaceable>MY_IPv4_ADDR REMOTE_IPv4_ADDR</replaceable>"</programlisting> + + <para>��� ��������� IPv6 ������, ������� ��� ��� �������� ��� + ������������� � ����������� � ������� IPv6, ��������:</para> + + <programlisting>ipv6_ifconfig_gif0="<replaceable>MY_ASSIGNED_IPv6_TUNNEL_ENDPOINT_ADDR</replaceable>"</programlisting> + + <para>����� ���, ��� ��� ����������� �������, ��� �������� ������� + �� ��������� ��� IPv6. ��� ������ ������� ������� IPv6:</para> + + <programlisting>ipv6_defaultrouter="<replaceable>MY_IPv6_REMOTE_TUNNEL_ENDPOINT_ADDR</replaceable>"</programlisting> + + </sect3> </sect2> <sect2> - <title>Router Advertisement and Host Auto Configuration *</title> + <title>��������������� ��������� � �������������� ��������� + ������</title> - <para>���� ������ �� ���������.</para> - </sect2> + <para>���� ������ ������� ��� ��������� &man.rtadvd.8; ��� + ��������������� �������� IPv6 �� ���������.</para> + + <para>��� ��������� &man.rtadvd.8; ��� ����������� �������� � + <filename>/etc/rc.conf</filename> ��������� ������:</para> + + <programlisting>rtadvd_enable="YES"</programlisting> + + <para>����� ������� ���������, �� ������� ����������� ������ + �������������� IPv6. ��������, ��� �������� &man.rtadvd.8; + ������������ <devicename>fxp0</devicename>:</para> + + <programlisting>rtadvd_interfaces="fxp0"</programlisting> + + <para>������ �� ������ ������� ���� ���������, + <filename>/etc/rtadvd.conf</filename>. ��� ������:</para> + + <programlisting>fxp0:\ + :addrs#1:addr="2001:471:1f11:246::":prefixlen#64:tc=ether:</programlisting> + + <para>�������� <devicename>fxp0</devicename> �� ���������, ������� �� + ������ ������������.</para> + + <para>�����, �������� <hostid + role="ip6addr">2001:471:1f11:246::</hostid> �� ������� ������ + ����������.</para> + + <para>���� � ��� ���������� ������� <hostid + role="netmask">/64</hostid>, ������ ������ ������ �� �����������. + �����, ��� ����������� �������� <literal>prefixlen#</literal> + �� ���������� ��������.</para> + </sect2> </sect1> <sect1 id="network-atm"> - <title>ATM on &os; 5.X *</title> + <sect1info> + <authorgroup> + <author> + <firstname>Harti</firstname> + <surname>Brandt</surname> + <contrib>����������� </contrib> + </author> + </authorgroup> + </sect1info> - <para>���� ������ �� ���������.</para> + <title>ATM � &os; 5.X</title> + + <sect2> + <title>������������ ��������� IP ����� ATM (PVC)</title> + + <para>������������ IP ����� ATM (<acronym>CLIP</acronym>) + ��� ���������� ����� ������������� ATM � IP. �� ����� + ���� ����������� � �������������� ������������� + (switched connections, SVC) � � ����������� ������������� + (permanent connections, PVC). � ���� ������� ����� ������� + ��� ��������� ���� �� ������ PVC.</para> + + <sect3> + <title>��������� ������������ ������������</title> + + <para>������ ����� ��� ��������� <acronym>CLIP</acronym> � + PVC ��� ����������� ������� ���������� � ������� � ���� � + ���������� PVC. ���� ��������� ������, ��� ����������� + ��� �������� ���������� �����������. � ������� ��������������, + ��� � ���� ���� ������ ����������, ������ ������������ � + ATM ���� � ������� ����� ATM ��������. ������ ��� ��� + ������������ IP ������� � ATM ����������� ����� + ������������. �� ����������:</para> + + <informaltable frame="none"> + <tgroup cols="2"> + <colspec colwidth="1*"> + <colspec colwidth="1*"> + <thead> + <row> + <entry>����</entry> + <entry>IP �����</entry> + </row> + </thead> + + <tbody> + <row> + <entry><hostid>hostA</hostid></entry> + <entry><hostid role="ipaddr">192.168.173.1</hostid></entry> + </row> + + <row> + <entry><hostid>hostB</hostid></entry> + <entry><hostid role="ipaddr">192.168.173.2</hostid></entry> + </row> + + <row> + <entry><hostid>hostC</hostid></entry> + <entry><hostid role="ipaddr">192.168.173.3</hostid></entry> + </row> + + <row> + <entry><hostid>hostD</hostid></entry> + <entry><hostid role="ipaddr">192.168.173.4</hostid></entry> + </row> + </tbody> + </tgroup> + </informaltable> + + <para>��� ������ ��������� ������������ ���� ��� ����������� �� + ������ ATM ���������� ����� ������ ����� �����������:</para> + + <informaltable frame="none"> + <tgroup cols="2"> + <colspec colwidth="1*"> + <colspec colwidth="1*"> + <thead> + <row> + <entry>����������</entry> + <entry>VPI.VCI ����������</entry> + </row> + </thead> + + <tbody> + <row> + <entry><hostid>hostA</hostid> - <hostid>hostB</hostid></entry> + <entry>0.100</entry> + </row> + + <row> + <entry><hostid>hostA</hostid> - <hostid>hostC</hostid></entry> + <entry>0.101</entry> + </row> + + <row> + <entry><hostid>hostA</hostid> - <hostid>hostD</hostid></entry> + <entry>0.102</entry> + </row> + + <row> + <entry><hostid>hostB</hostid> - <hostid>hostC</hostid></entry> + <entry>0.103</entry> + </row> + + <row> + <entry><hostid>hostB</hostid> - <hostid>hostD</hostid></entry> + <entry>0.104</entry> + </row> + + <row> + <entry><hostid>hostC</hostid> - <hostid>hostD</hostid></entry> + <entry>0.105</entry> + </row> + </tbody> + </tgroup> + </informaltable> + + <para>�������� VPI � VCI �� ������ ����� ���������� ������� ����� + ����������, �� ��� ��������� �� ������������, ��� ��� ���������. + ����� ��� ����������� ��������� ATM ���������� �� ������ + �����:</para> + + <screen>hostA&prompt.root; ifconfig hatm0 192.168.173.1 up +hostB&prompt.root; ifconfig hatm0 192.168.173.2 up +hostC&prompt.root; ifconfig hatm0 192.168.173.3 up +hostD&prompt.root; ifconfig hatm0 192.168.173.4 up</screen> + + <para>�����������, ��� ATM ��������� ���������� + <devicename>hatm0</devicename> �� ���� ������. ������ PVC + ���������� ��������� �� <hostid>hostA</hostid> (�� ������������, + ��� ATM ����������� ��� ���������, ��� ���������� ��������� + � ������������ �� ���������� �� ����������� �� + ���������).</para> + + <screen>hostA&prompt.root; atmconfig natm add 192.168.173.2 hatm0 0 100 llc/snap ubr +hostA&prompt.root; atmconfig natm add 192.168.173.3 hatm0 0 101 llc/snap ubr +hostA&prompt.root; atmconfig natm add 192.168.173.4 hatm0 0 102 llc/snap ubr + +hostB&prompt.root; atmconfig natm add 192.168.173.1 hatm0 0 100 llc/snap ubr +hostB&prompt.root; atmconfig natm add 192.168.173.3 hatm0 0 103 llc/snap ubr +hostB&prompt.root; atmconfig natm add 192.168.173.4 hatm0 0 104 llc/snap ubr + +hostC&prompt.root; atmconfig natm add 192.168.173.1 hatm0 0 101 llc/snap ubr +hostC&prompt.root; atmconfig natm add 192.168.173.2 hatm0 0 103 llc/snap ubr +hostC&prompt.root; atmconfig natm add 192.168.173.4 hatm0 0 105 llc/snap ubr + +hostD&prompt.root; atmconfig natm add 192.168.173.1 hatm0 0 102 llc/snap ubr +hostD&prompt.root; atmconfig natm add 192.168.173.2 hatm0 0 104 llc/snap ubr +hostD&prompt.root; atmconfig natm add 192.168.173.3 hatm0 0 105 llc/snap ubr</screen> + + <para>�������, ������ UBR ����� ���� ����������� ������ ���,<!--traffic + contracts--> ���� ATM ������� ������������ ���. � ���� ������ + ��� ���� ����������� ����������� �������. ������ �� + &man.atmconfig.8; ����� ���� �������� ��������:</para> + + <screen>&prompt.root; <userinput>atmconfig help natm add</userinput></screen> + + <para>��� �� �������� ����������� &man.atmconfig.8;.</para> + + <para>�� �� ��������� ����� ���� ��������� ����� + <filename>/etc/rc.conf</filename>. ��� <hostid>hostA</hostid> + ��� ����� ��������� �������� ���:</para> + +<programlisting>network_interfaces="lo0 hatm0" +ifconfig_hatm0="inet 192.168.173.1 up" +natm_static_routes="hostB hostC hostD" +route_hostB="192.168.173.2 hatm0 0 100 llc/snap ubr" +route_hostC="192.168.173.3 hatm0 0 101 llc/snap ubr" +route_hostD="192.168.173.4 hatm0 0 102 llc/snap ubr"</programlisting> + + <para>������� ������ ���� ��������� <acronym>CLIP</acronym> + ����� ���� ������� ��������:</para> + + <screen>hostA&prompt.root; <userinput>atmconfig natm show</userinput></screen> + </sect3> + </sect2> </sect1> </chapter>