Changeset 032be17 for networking/netprogs/bridgeutils-systemd.xml
- Timestamp:
- 10/26/2014 01:39:58 PM (10 years ago)
- Branches:
- krejzi/svn
- Children:
- b71b5c8
- Parents:
- 8ddd9c79
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
networking/netprogs/bridgeutils-systemd.xml
r8ddd9c79 r032be17 119 119 </sect2> 120 120 121 <sect2 role="configuration">122 <title>Configuring bridge-utils</title>123 124 <sect3 id='bridgeutils-init'>125 <title>Configuration Information</title>126 127 <para>To automate bridge creation and configuration,128 install the <filename>/lib/services/etc/bridge</filename>129 service script included in the <xref linkend="bootscripts"/>130 package.</para>131 132 <indexterm zone="bridgeutils bridgeutils-init">133 <primary sortas="f-bridgeutils">bridge-utils</primary>134 </indexterm>135 136 <screen role="root"><userinput>make install-service-bridge</userinput></screen>137 138 <note><para>The <filename>bridge</filename> script depends139 on the commands <command>/sbin/ifup</command> and140 <command>/sbin/ifdown</command> and the service script141 <emphasis>ipv4-static</emphasis> from the <emphasis>LFS</emphasis>142 bootscripts dated January 27, 2012 or later.</para></note>143 144 <para>The following configuration file will create a bridge device at145 boot time and attach the eth0 device to it. If more than one device is146 desired, use a space separated list of INTERFACE_COMPONENTS. This147 configuration is useful when planning to run a virtual machine such as148 kvm/qemu.</para>149 150 <para>Other SERVICE combinations are possible, for example,151 SERVICES="bridge dhcp". In that case, the address parameters152 are not needed, but do not interfere if present. The153 bridge service may also be used alone, but will require154 additional subsequent configuration.</para>155 156 <caution><para>Do not run a parallel configuration for a device in the157 INTERFACE_COMPONENTS list. For instance, in the example below, do not158 configure <filename>/etc/sysconfig/ifconfig.eth0</filename> to run at159 boot time. The command <command>ifdown br0</command> followed by160 command <command>ifup eth0</command> will work, but don't try to have161 both up at the same time.</para></caution>162 163 <screen role="root"><userinput>cat > /etc/sysconfig/ifconfig.br0 << "EOF"164 <literal>ONBOOT=yes165 IFACE=br0166 SERVICE="bridge ipv4-static" # Space separated167 IP=192.168.1.32168 GATEWAY=192.168.1.1169 PREFIX=24170 BROADCAST=192.168.1.255171 CHECK_LINK=no # Don't check before bridge is created172 STP=no # Spanning tree protocol, default no173 INTERFACE_COMPONENTS="eth0" # Add to IFACE, space separated devices174 IP_FORWARD=true</literal>175 EOF</userinput></screen>176 177 <para>All addresses should be changed to meet your circumstance.</para>178 179 </sect3>180 181 </sect2>182 183 184 121 <sect2 role="content"> 185 122 <title>Contents</title>
Note:
See TracChangeset
for help on using the changeset viewer.