xenomai: new package, only mercury for now supported
[openadk.git] / docs / network-configuration.txt
blobea869c0bc24685ecf6c7b8bdf2f731cb24eb8962
1 // -*- mode:doc; -*-
2 // vim: set syntax=asciidoc:
4 [[network-configuration]]
5 Network configuration 
6 ~~~~~~~~~~~~~~~~~~~~~
8 loopback devices
9 ^^^^^^^^^^^^^^^^
11 Example for loopback device configuration:
13 ---------------------
14 auto lo
15 iface lo inet loopback
16 ---------------------
18 static network configuration
19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 Example for an ethernet network card:
23 ---------------------
24 auto eth0
25 iface eth0 inet static
26   address 192.168.1.1
27   netmask 255.255.255.0
28   broadcast +
29   gateway 192.168.1.254
30 ---------------------
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:
40 ---------------------
41 auto eth0
42 iface eth0 inet dhcp
43 ---------------------
45 bridge configuration
46 ^^^^^^^^^^^^^^^^^^^^
48 Example for a network bridge with two ethernet network interfaces and an ip address:
50 ---------------------
51 auto br0 
52 iface br0 inet static
53         address 192.168.99.1
54         netmask 255.255.255.0
55         broadcast +
56         bridge-ports eth0 eth1
57 ---------------------
59 Just a bridge without an ip address:
60 ---------------------
61 auto br0 
62 iface br0 inet manual
63          bridge-ports eth0 eth1
64 ---------------------
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:
73 ---------------------
74 auto eth0.8
75 iface eth0.8 inet manual
76 ---------------------
78 You need to install Busybox vconfig applet. The required kernel modules will be automatically selected.
80 PPP over Ethernet
81 ^^^^^^^^^^^^^^^^^
83 Typical DSL configuration:
85 ---------------------
86 auto ppp0
87 iface ppp0 inet ppp
88         use-template pppoe
89         provider isp
90         ppp-mtu 1412
91         ppp-username foo
92         ppp-password bar
93         ppp-device eth1
94 ---------------------
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 ---------------------
105 auto wlan0
106 iface wlan0 inet dhcp
107         wireless-ssid myap
108         wireless-channel 11
109         wireless-mode sta
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 ---------------------
118 wireless-extension 1 
119 ---------------------
121 wireless accesspoint configuration
122 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
124 To configure an access point use following example:
126 ---------------------
127 auto wlan0
128 iface wlan0 inet static
129         address 192.168.40.10
130         netmask 255.255.255.0
131         broadcast +
132         wireless-ssid myap
133         wireless-channel 8
134         wireless-mode ap
135         wireless-security wpa2
136         wireless-passphrase xxxxxx
137 ---------------------
139 You need to install hostapd and iw/wireless-tools packages.
141 hso umts modem
142 ^^^^^^^^^^^^^^
144 If you have a HSO UMTS modem, you can use following to configure internet access:
145 ---------------------
146 auto hso0
147 iface hso0 inet manual
148         pin 1234
149         apn your.apn
150 ---------------------
152 ATM configuration
153 ^^^^^^^^^^^^^^^^^
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 ---------------------
159 auto eth0.1 
160 iface eth0.1 inet manual
162 auto eth0.8
163 iface eth0.8 inet manual
165 auto nas0
166 iface nas0 inet manual
168 auto nas1
169 iface nas1 inet manual
170         atm-vpi 1
171         atm-vci 34
173 auto br0
174 iface br0 inet manual
175         bridge-ports eth0.1 nas0
177 auto br1
178 iface br1 inet manual
179         bridge-ports eth0.8 nas1
180 ---------------------
182 More network setups can be implemented on request.