\chapter{Fichiers de configuration OpenWRT}

\begin{lstlisting}[caption={/etc/config/network}]
config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'
config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1' 
config switch_vlan
        option device 'switch0'
        option vlan '100'
        option ports '0t 5t' 
config switch_vlan
        option device   'switch0'
        option vlan     '101'
        option ports    '0t 5t' 
config interface 'cab_adm'
        option ifname   'eth0'
        option proto    'static'
        option ipaddr   '10.1.5.212'
        option netmask  '255.255.255.0' 
config interface 'cab_priv'
        option type     'bridge'
        option ifname   'eth0.100'
        option proto    'static'
        option ipaddr   '192.168.5.212'
        option netmask  '255.255.255.0'
        option gateway  '192.168.5.254'
        option stp '1' 
config interface 'cab_pub'
        option type     'bridge'
        option ifname   'eth0.101'
        option proto    'static'
        option ipaddr   '10.0.5.212'
        option netmask  '255.255.255.0'
        option stp '1'
\end{lstlisting}
%\color{ElectricMagenta}\noindent\rule{\textwidth}{0.4pt}
