Changeset View
Changeset View
Standalone View
Standalone View
head/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml
Show First 20 Lines • Show All 5,346 Lines • ▼ Show 20 Lines | ifconfig_<replaceable>em0</replaceable>_<replaceable>5</replaceable>="inet 192.168.20.20/24"</programlisting> | ||||
<para>For an interface named <literal>video</literal>, use the | <para>For an interface named <literal>video</literal>, use the | ||||
following:</para> | following:</para> | ||||
<screen>&prompt.root; <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></screen> | <screen>&prompt.root; <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></screen> | ||||
<para>To apply the changes at boot time, add the following lines to | <para>To apply the changes at boot time, add the following lines to | ||||
<filename>/etc/rc.conf</filename>:</para> | <filename>/etc/rc.conf</filename>:</para> | ||||
<programlisting>vlans_<replaceable>video</replaceable>="<replaceable>camera</replaceable>" | <programlisting>vlans_<replaceable>video</replaceable>="<replaceable>cameras</replaceable>" | ||||
create_args_<replaceable>camera</replaceable>="vlan <replaceable>5</replaceable>" | create_args_<replaceable>cameras</replaceable>="vlan <replaceable>5</replaceable>" | ||||
ifconfig_<replaceable>camera</replaceable>="inet <replaceable>192.168.20.20/24</replaceable>"</programlisting> | ifconfig_<replaceable>cameras</replaceable>="inet <replaceable>192.168.20.20/24</replaceable>"</programlisting> | ||||
</sect1> | </sect1> | ||||
</chapter> | </chapter> |