Source string Read only

(itstool) path: sect1/title
53/530
Context English State
To configure <acronym>VLANs</acronym> at run time, with a <acronym>NIC</acronym> of <literal>em0</literal> and a <acronym>VLAN</acronym> tag of <systemitem>5</systemitem> the command would look like this:
<prompt>#</prompt> <userinput>ifconfig <replaceable>em0.5</replaceable> create vlan <replaceable>5</replaceable> vlandev <replaceable>em0</replaceable> inet 192.168.20.20/24</userinput>
See how the interface name includes the <acronym>NIC</acronym> driver name and the <acronym>VLAN</acronym> tag, separated by a period? This is a best practice to make maintaining the <acronym>VLAN</acronym> configuration easy when many <acronym>VLANs</acronym> are present on a machine.
To configure <acronym>VLANs</acronym> at boot time, <filename>/etc/rc.conf</filename> must be updated. To duplicate the configuration above, the following will need to be added:
vlans_<replaceable>em0</replaceable>="<replaceable>5</replaceable>"
ifconfig_<replaceable>em0</replaceable>_<replaceable>5</replaceable>="inet 192.168.20.20/24"
Additional <acronym>VLANs</acronym> may be added, by simply adding the tag to the <literal>vlans_<replaceable>em0</replaceable></literal> field and adding an additional line configuring the network on that <acronym>VLAN</acronym> tag's interface.
It is useful to assign a symbolic name to an interface so that when the associated hardware is changed, only a few configuration variables need to be updated. For example, security cameras need to be run over VLAN 1 on <literal>em0</literal>. Later, if the <literal>em0</literal> card is replaced with a card that uses the <citerefentry><refentrytitle>ixgb</refentrytitle><manvolnum>4</manvolnum></citerefentry> driver, all references to <literal>em0.1</literal> will not have to change to <literal>ixgb0.1</literal>.
To configure <acronym>VLAN</acronym> <systemitem>5</systemitem>, on the <acronym>NIC</acronym> <literal>em0</literal>, assign the interface name <literal>cameras</literal>, and assign the interface an IP address of <systemitem class="ipaddress"><replaceable>192.168.20.20</replaceable></systemitem> with a <systemitem class="netmask">24</systemitem>-bit prefix, use this command:
<prompt>#</prompt> <userinput>ifconfig <replaceable>em0.5</replaceable> create vlan <replaceable>5</replaceable> vlandev <replaceable>em0</replaceable> name <replaceable>cameras</replaceable> inet <replaceable>192.168.20.20/24</replaceable></userinput>
For an interface named <literal>video</literal>, use the following:
<prompt>#</prompt> <userinput>ifconfig <replaceable>video.5</replaceable> create vlan <replaceable>5</replaceable> vlandev <replaceable>video</replaceable> name <replaceable>cameras inet 192.168.20.20/24</replaceable></userinput>
To apply the changes at boot time, add the following lines to <filename>/etc/rc.conf</filename>:
vlans_<replaceable>video</replaceable>="<replaceable>cameras</replaceable>"
create_args_<replaceable>cameras</replaceable>="vlan <replaceable>5</replaceable>"
ifconfig_<replaceable>cameras</replaceable>="inet <replaceable>192.168.20.20/24</replaceable>"
Appendices
Obtaining FreeBSD
<acronym>CD</acronym> and <acronym>DVD</acronym> Sets
FreeBSD <acronym>CD</acronym> and <acronym>DVD</acronym> sets are available from several online retailers:
FreeBSD Mall, Inc.
<street>2420 Sand Creek Rd C-1 #347</street>
<city>Brentwood</city>, <state>CA</state>
<postcode>94513</postcode>
<country>USA</country>
Phone: <phone>+1 925 240-6652</phone>
Fax: <fax>+1 925 674-0821</fax>
Email: <email>info@freebsdmall.com</email>
WWW: <otheraddr xlink:href="https://www.freebsdmall.com">https://www.freebsdmall.com</otheraddr>
Getlinux
<street>78 Rue de la Croix Rochopt</street>
<city>Épinay-sous-Sénart</city>
<postcode>91860</postcode>
<country>France</country>
Email: <email>contact@getlinux.fr</email>
WWW: <otheraddr xlink:href="http://www.getlinux.fr">http://www.getlinux.fr/</otheraddr>
Dr. Hinner EDV
<street>Kochelseestr. 11</street>
<postcode>D-81371</postcode> <city>München</city>
<country>Germany</country>
Phone: <phone>(0177) 428 419 0</phone>
Email: <email>infow@hinner.de</email>
WWW: <otheraddr xlink:href="http://www.hinner.de/linux/freebsd.html">http://www.hinner.de/linux/freebsd.html</otheraddr>
Linux Center
<street>Galernaya Street, 55</street>
<city>Saint-Petersburg</city>
<postcode>190000</postcode>
<country>Russia</country>
Phone: <phone>+7-812-309-06-86</phone>
Email: <email>info@linuxcenter.ru</email>
WWW: <otheraddr xlink:href="http://linuxcenter.ru/shop/freebsd">http://linuxcenter.ru/shop/freebsd</otheraddr>
<acronym>FTP</acronym> Sites
The official sources for FreeBSD are available via anonymous <acronym>FTP</acronym> from a worldwide set of mirror sites. The site <uri xlink:href="ftp://ftp.FreeBSD.org/pub/FreeBSD/">ftp://ftp.FreeBSD.org/pub/FreeBSD/</uri> is available via <acronym>HTTP</acronym> and <acronym>FTP</acronym>. It is made up of many machines operated by the project cluster administrators and behind GeoDNS to direct users to the closest available mirror.
Additionally, FreeBSD is available via anonymous <acronym>FTP</acronym> from the following mirror sites. When obtaining FreeBSD via anonymous <acronym>FTP</acronym>, please try to use a nearby site. The mirror sites listed as <quote>Primary Mirror Sites</quote> typically have the entire FreeBSD archive (all the currently available versions for each of the architectures) but faster download speeds are probably available from a site that is in your country or region. The regional sites carry the most recent versions for the most popular architecture(s) but might not carry the entire FreeBSD archive. All sites provide access via anonymous <acronym>FTP</acronym> but some sites also provide access via other methods. The access methods available for each site are provided in parentheses after the hostname.
<link linkend="central-ftp">Central Servers</link>, <link linkend="mirrors-primary-ftp">Primary Mirror Sites</link>, <link linkend="mirrors-am-ftp">Armenia</link>, <link linkend="mirrors-au-ftp">Australia</link>, <link linkend="mirrors-at-ftp">Austria</link>, <link linkend="mirrors-br-ftp">Brazil</link>, <link linkend="mirrors-cz-ftp">Czech Republic</link>, <link linkend="mirrors-dk-ftp">Denmark</link>, <link linkend="mirrors-ee-ftp">Estonia</link>, <link linkend="mirrors-fi-ftp">Finland</link>, <link linkend="mirrors-fr-ftp">France</link>, <link linkend="mirrors-de-ftp">Germany</link>, <link linkend="mirrors-gr-ftp">Greece</link>, <link linkend="mirrors-hk-ftp">Hong Kong</link>, <link linkend="mirrors-ie-ftp">Ireland</link>, <link linkend="mirrors-jp-ftp">Japan</link>, <link linkend="mirrors-kr-ftp">Korea</link>, <link linkend="mirrors-lv-ftp">Latvia</link>, <link linkend="mirrors-lt-ftp">Lithuania</link>, <link linkend="mirrors-nl-ftp">Netherlands</link>, <link linkend="mirrors-nz-ftp">New Zealand</link>, <link linkend="mirrors-no-ftp">Norway</link>, <link linkend="mirrors-pl-ftp">Poland</link>, <link linkend="mirrors-ru-ftp">Russia</link>, <link linkend="mirrors-sa-ftp">Saudi Arabia</link>, <link linkend="mirrors-si-ftp">Slovenia</link>, <link linkend="mirrors-za-ftp">South Africa</link>, <link linkend="mirrors-es-ftp">Spain</link>, <link linkend="mirrors-se-ftp">Sweden</link>, <link linkend="mirrors-ch-ftp">Switzerland</link>, <link linkend="mirrors-tw-ftp">Taiwan</link>, <link linkend="mirrors-ua-ftp">Ukraine</link>, <link linkend="mirrors-uk-ftp">United Kingdom</link>, <link linkend="mirrors-us-ftp">USA</link>.
(as of UTC)
<anchor xml:id="central-ftp"/>Central Servers
<link xlink:href="ftp://ftp.FreeBSD.org/pub/FreeBSD/">ftp://ftp.FreeBSD.org/pub/FreeBSD/</link> (ftp / ftpv6 / <link xlink:href="http://ftp.FreeBSD.org/pub/FreeBSD/">http://ftp.FreeBSD.org/pub/FreeBSD/</link> / <link xlink:href="http://ftp.FreeBSD.org/pub/FreeBSD/">http://ftp.FreeBSD.org/pub/FreeBSD/</link>)
<anchor xml:id="mirrors-primary-ftp"/>Primary Mirror Sites
In case of problems, please contact the hostmaster <email>mirror-admin@FreeBSD.org</email> for this domain.
<link xlink:href="ftp://ftp1.FreeBSD.org/pub/FreeBSD/">ftp://ftp1.FreeBSD.org/pub/FreeBSD/</link> (ftp)

Loading…

No matching activity found.

Browse all component changes

Glossary

English English
No related strings found in the glossary.

Source information

Source string comment
(itstool) path: sect1/title
Flags
read-only
Source string location
book.translate.xml:65535
String age
a year ago
Source string age
a year ago
Translation file
books/handbook.pot, string 11332