2 // vim: set syntax=asciidoc:
4 [[network-configuration]]
11 Example for loopback device configuration:
15 iface lo inet loopback
18 static network configuration
19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 Example for an ethernet network card:
25 iface eth0 inet static
32 The DNS resolver must be manually configured in /etc/resolv.conf.
33 The plus for the broadcast value, will calculate the correct broadcast address for the network.
35 dynamic network configuration
36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38 Example for an ethernet network card:
48 Example for a network bridge with two ethernet network interfaces and an ip address:
56 bridge-ports eth0 eth1
59 Just a bridge without an ip address:
63 bridge-ports eth0 eth1
66 You need to install either Busybox brctl applet or the bridge-utils package. The required kernel modules will be automatically selected.
68 VLAN network interfaces
69 ^^^^^^^^^^^^^^^^^^^^^^^
71 Example configuration of a network interface with VLAN ID 8 without any ip configuration:
75 iface eth0.8 inet manual
78 You need to install Busybox vconfig applet. The required kernel modules will be automatically selected.
83 Typical DSL configuration:
96 The provider can be used as argument for "pon" and "poff" commands.
97 You need to install the ppp and ppp-mod-pppoe package. The required kernel modules will be automatically selected.
99 wireless client configuration
100 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102 Example wireless client configuration, secured with WPA2:
104 ---------------------
106 iface wlan0 inet dhcp
110 wireless-security wpa2
111 wireless-passphrase xxxxxx
112 ---------------------
114 You need to install iw and wpa_supplicant packages. For older wireless drivers you
115 need to install wireless-tools instead of iw and use the following variable to choose the right tools:
117 ---------------------
119 ---------------------
121 wireless accesspoint configuration
122 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
124 To configure an access point use following example:
126 ---------------------
128 iface wlan0 inet static
129 address 192.168.40.10
130 netmask 255.255.255.0
135 wireless-security wpa2
136 wireless-passphrase xxxxxx
137 ---------------------
139 You need to install hostapd and iw/wireless-tools packages.
144 If you have a HSO UMTS modem, you can use following to configure internet access:
145 ---------------------
147 iface hso0 inet manual
150 ---------------------
155 For example a configuration on a Linksys AG241 router with integrated DSL modem,
156 you can configure two ATM devices to distinguish between Internet and IPTV traffic:
158 ---------------------
160 iface eth0.1 inet manual
163 iface eth0.8 inet manual
166 iface nas0 inet manual
169 iface nas1 inet manual
174 iface br0 inet manual
175 bridge-ports eth0.1 nas0
178 iface br1 inet manual
179 bridge-ports eth0.8 nas1
180 ---------------------
182 More network setups can be implemented on request.