Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[docs] update switch documentation

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33733 3c298f89-4303-0410-b956-a3cf2f4a3e73
  • Loading branch information...
commit 6338f6f44f094e6bb0aff30010d49ddb652ad80e 1 parent f4c5e72
luka authored

Showing 1 changed file with 22 additions and 1 deletion. Show diff stats Hide diff stats

  1. +22 1 docs/network.tex
23 docs/network.tex
@@ -107,7 +107,7 @@ \subsubsection{Setting up static routes}
107 107 \texttt{gateway} options are mandatory.
108 108 Leaving out the \texttt{netmask} option will turn the route into a host route.
109 109
110   -\subsubsection{Setting up the switch (currently broadcom only)}
  110 +\subsubsection{Setting up the switch (broadcom only)}
111 111
112 112 The switch configuration is set by adding a \texttt{'switch'} config section.
113 113 Example:
@@ -152,6 +152,27 @@ \subsubsection{Setting up the switch (currently broadcom only)}
152 152 You can then assign those interfaces to a custom network configuration name
153 153 like \texttt{lan}, \texttt{wan} or \texttt{dmz} for instance.
154 154
  155 +\subsubsection{Setting up the switch (swconfig)}
  156 +
  157 +\emph{swconfig} based configurations have a different structure with one extra
  158 +section per vlan. The example below shows a typical configuration:
  159 +
  160 +\begin{Verbatim}
  161 +config 'switch' 'eth0'
  162 + option 'reset' '1'
  163 + option 'enable_vlan' '1'
  164 +
  165 +config 'switch_vlan' 'eth0_1'
  166 + option 'device' 'eth0'
  167 + option 'vlan' '1'
  168 + option 'ports' '0 1 2 3 5t'
  169 +
  170 +config 'switch_vlan' 'eth0_2'
  171 + option 'device' 'eth0'
  172 + option 'vlan' '2'
  173 + option 'ports' '4 5t'
  174 +\end{Verbatim}
  175 +
155 176 \subsubsection{Setting up IPv6 connectivity}
156 177
157 178 OpenWrt supports IPv6 connectivity using PPP, Tunnel brokers or static

0 comments on commit 6338f6f

Please sign in to comment.
Something went wrong with that request. Please try again.