File: Network.raw.xml

package info (click to toggle)
debian-reference 2.24
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 20,088 kB
  • ctags: 35
  • sloc: xml: 70,510; sh: 616; makefile: 352; perl: 221; sed: 3
file content (3548 lines) | stat: -rw-r--r-- 157,103 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
<?xml version="1.0"?>
<article>
  <articleinfo>
    <title>DebianReference/Network</title>
  </articleinfo>
  <para/>
  <section>
    <title>Do not use Edit(GUI) button.</title>
    <para> </para>
    <para>Copyright 2007, 2008  Osamu Aoki GPL, (Please agree to GPL, GPL2, and any version of GPL which is compatible with DSFG if you update any part of wiki page) </para>
    <para>Generated HTML is at "<ulink url="http://people.debian.org/~osamu/pub/getwiki/html/ch06.en.html">Debian Reference: Chapter 6. Network setup</ulink>". </para>
    <para>I welcome your contributions to update this wiki page. You must follow these rules: </para>
    <itemizedlist>
      <listitem>
        <para>Do not use Edit(GUI) button of <ulink url="/MoinMoin">MoinMoin</ulink>. </para>
      </listitem>
      <listitem>You can update anytime for: <itemizedlist><listitem>grammar errors </listitem><listitem>spelling errors </listitem><listitem>moved URL location </listitem><listitem>package name transition adjustment (emacs23 etc.) </listitem><listitem>clearly broken script. </listitem></itemizedlist></listitem>
      <listitem>Before updating this wiki content: <itemizedlist><listitem><para>Read "<ulink url="http://wiki.debian.org/DebianReference/Test">Guide for contributing to Debian Reference</ulink>". </para></listitem></itemizedlist></listitem>
    </itemizedlist>
    <para/>
  </section>
  <section>
    <title>Network setup</title>
    <para>This section will address <ulink url="http://en.wikipedia.org/wiki/Internet_Protocol_Suite">TCP/IP network</ulink> setup for the mobile PC which moves around different networks. (For the non-mobile PC, the debian-installer should have taken care your network setup and there are almost nothing for us to play with.) </para>
    <para><emphasis role="strong">You should install the <code>resolvconf</code> package for the mobile PC.</emphasis>  This package provides framework to solve conflicts of the host address resolution between different network configuration scripts when network configuration changes.  Read more on <code>/usr/share/doc/resolvconf/README.Debian</code>. </para>
    <para>For the fixed location server machine, you can do without the <code>resolvconf</code> package and keep your system simple. </para>
    <para>In this document, we focus on Debian-specific issues. For a general guide to GNU/Linux networking, read the <ulink url="http://www.tldp.org/LDP/nag2/">Linux Network Administrators Guide</ulink>. </para>
    <para/>
    <section>
      <title>The basic network infrastructure</title>
      <para>Let's review the basic network infrastructure of the modern Debian system. </para>
      <para/>
      <section>
        <title>The domain name</title>
        <para>The naming for the domain name is a tricky one for the normal workstation PC users.  The PC workstation may be mobile one hopping around the network or located behind the NAT firewall inaccessible from the Internet. For such case, you may not want the domain name to be a valid domain name to avoid name collision. </para>
        <para/>
        <para/>
        <para>According to <ulink url="http://tools.ietf.org/html/rfc2606">rfc2606</ulink>, "<code>invalid</code>" seems to be a choice for the <ulink url="http://en.wikipedia.org/wiki/Top-level_domain">top level domain (TLD)</ulink> to construct domain names that are sure to be invalid from the Internet.  </para>
        <para>The <ulink url="http://en.wikipedia.org/wiki/MDNS">mDNS</ulink> network discovery protocol (<ulink url="http://en.wikipedia.org/wiki/Bonjour_(software)">Apple Bonjour / Apple Rendezvous</ulink>, Avahi on Debian) uses <ulink url="http://en.wikipedia.org/wiki/.local">"local"</ulink> as the <ulink url="http://en.wikipedia.org/wiki/Pseudo-top-level_domain">pseudo-top-level domain</ulink>.  <ulink url="http://support.microsoft.com/kb/296250">Microsoft also seem to promote "local" for the TLD of local area network</ulink>.  </para>
        <para>Other popular choices for the invalid TLD seem to be "<code>localdomain</code>", "<code>lan</code>", "<code>localnet</code>", or "<code>home</code>" according to my incoming mail analysis.   </para>
        <para/>
      </section>
      <section>
        <title>The hostname resolution</title>
        <para>The hostname resolution is currently supported by the <ulink url="http://en.wikipedia.org/wiki/Name_Service_Switch">NSS (Name Service Switch)</ulink> mechanism too.  The flow of this resolution is: </para>
        <orderedlist numeration="arabic">
          <listitem>
            <para>The <code>/etc/nsswitch.conf</code> file with stanza like "<code>hosts: files dns</code>" dictates the hostname resolution order. (This replaces the old functionality of the "<code>order</code>" stanza in <code>/etc/host.conf</code>.) </para>
          </listitem>
          <listitem>
            <para>The <code>files</code> method is invoked first.  If the hostname is found in the <code>/etc/hosts</code> file, it returns all valid addresses for it and exits. (The <code>/etc/host.conf</code> file contains "<code>multi on</code>".) </para>
          </listitem>
          <listitem>
            <para>The <code>dns</code> method is invoked.  If the hostname is found by the query to the <ulink url="http://en.wikipedia.org/wiki/Domain_Name_System">Internet Domain Name System (DNS)</ulink> identified by the <code>/etc/resolv.conf</code> file, it returns all valid addresses for it and exits. </para>
          </listitem>
        </orderedlist>
        <para>The <code>/etc/hosts</code> file <ulink url="http://bugs.debian.org/316099">associates IP addresses with hostnames</ulink>: </para>
        <screen><![CDATA[127.0.0.1 localhost
127.0.1.1 <host_name>.<domain_name> <host_name>

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
]]></screen>
        <para>Here the &lt;host_name&gt; in this matches the own hostname defined in the <code>/etc/hostname</code>.  The &lt;domain_name&gt; in this is the <ulink url="http://en.wikipedia.org/wiki/FQDN">fully qualified domain name (FQDN)</ulink> of this host. </para>
        <para><inlinemediaobject><imageobject><imagedata width="16" fileref="/htdocs/rightsidebar/img/icon-info.png" depth="16"/></imageobject><textobject><phrase>{i}</phrase></textobject></inlinemediaobject> I sometimes use bogus domain name for &lt;domain_name&gt;, such as "<code>invalid</code>" in this configuration for the mobile PC. </para>
        <para>The <code>/etc/resolv.conf</code> is a static file if the <code>resolvconf</code> package is not installed.  If installed, it is a symbolic link.  Either way, it contains information that initialize the resolver routines. If the DNS is found at IP="<code>192.168.11.1</code>", it contains: </para>
        <screen><![CDATA[nameserver 192.168.11.1
]]></screen>
        <para>The <code>resolvconf</code> package makes this <code>/etc/resolv.conf</code> into a symbolic link and manages its contents by the hook scripts automatically. </para>
        <para>The hostname resolution via Multicast DNS (using <ulink url="http://en.wikipedia.org/wiki/Zeroconf">Zeroconf</ulink>, aka <ulink url="http://en.wikipedia.org/wiki/Bonjour_(software)">Apple Bonjour / Apple Rendezvous</ulink>) which effectively allows name resolution by common Unix/Linux programs in the ad-hoc mDNS domain "<code>local</code>", can be provided by installing the <code>libnss-mdns</code> package.  The <code>/etc/nsswitch.conf</code> file should have stanza like "<code>hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4</code>" to enable this functionality. </para>
        <para/>
      </section>
      <section>
        <title>The network interface name</title>
        <para>The network interface name, e.g. <code>eth0</code>, is assigned to each hardware in the Linux kernel through the user space configuration mechanism, <code>udev</code> (see: @{@theudevsystem@}@), as it is found.  The network interface name is referred as <emphasis role="strong">physical interface</emphasis> in the manpage of <code>ifup</code>(8) and <code>interfaces</code>(5). </para>
        <para>In order to ensure each network interface to be named persistently for each reboot using <ulink url="http://en.wikipedia.org/wiki/MAC_address">MAC address</ulink> etc., there is a record file "<code>/etc/udev/rules.d/70-persistent-net.rules</code>".  This file is automatically generated by the "<code>/lib/udev/write_net_rules</code>" program, probably run by the "<code>persistent-net-generator.rules</code>" rules file. You can modify it to change naming rule. </para>
        <para><inlinemediaobject><imageobject><imagedata width="15" fileref="/htdocs/rightsidebar/img/attention.png" depth="15"/></imageobject><textobject><phrase>&lt;!&gt;</phrase></textobject></inlinemediaobject> When editing the "<code>/etc/udev/rules.d/70-persistent-net.rules</code>" rules file, you must keep each rule on a single line and the <ulink url="http://en.wikipedia.org/wiki/MAC_address">MAC address</ulink> in lowercase. For example, if you find "Firewire device" and "PCI device" in this file, you probably want to name "PCI device" as <code>eth0</code> and configure it as the primary network interface. </para>
        <para/>
      </section>
      <section>
        <title>The network address range for the LAN</title>
        <para>Let us be reminded of the IPv4 32 bit address ranges in each class reserved for use on the <ulink url="http://en.wikipedia.org/wiki/Local_area_network">local area networks (LANs)</ulink> by <ulink url="http://tools.ietf.org/html/rfc1918">rfc1918</ulink>.  These addresses are guaranteed not to conflict with any addresses on the Internet proper.   </para>
        <table>
          <caption/>
          <tgroup cols="5">
            <colspec colname="xxx1"/>
            <colspec colname="xxx2"/>
            <colspec colname="xxx3"/>
            <colspec colname="xxx4"/>
            <colspec colname="xxx5"/>
            <tbody>
              <row>
                <entry>
                  <para> List of network address ranges. </para>
                </entry>
                <entry>
                  <para> </para>
                </entry>
                <entry>
                  <para> </para>
                </entry>
                <entry>
                  <para> </para>
                </entry>
                <entry>
                  <para> </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <emphasis role="strong">Class</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">network addresses</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">net mask</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">net mask /bits</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong"># of subnets</emphasis>
                  </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> A </para>
                </entry>
                <entry>
                  <para> 10.x.x.x </para>
                </entry>
                <entry>
                  <para> 255.0.0.0 </para>
                </entry>
                <entry>
                  <para> /8 </para>
                </entry>
                <entry>
                  <para> 1 </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> B </para>
                </entry>
                <entry>
                  <para> 172.16.x.x -- 172.31.x.x   </para>
                </entry>
                <entry>
                  <para> 255.255.0.0 </para>
                </entry>
                <entry>
                  <para> /16 </para>
                </entry>
                <entry>
                  <para> 16 </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> C </para>
                </entry>
                <entry>
                  <para> 192.168.0.x -- 192.168.255.x </para>
                </entry>
                <entry>
                  <para> 255.255.255.0 </para>
                </entry>
                <entry>
                  <para>/24 </para>
                </entry>
                <entry>
                  <para> 256 </para>
                </entry>
              </row>
            </tbody>
          </tgroup>
        </table>
        <para><inlinemediaobject><imageobject><imagedata width="15" fileref="/htdocs/rightsidebar/img/idea.png" depth="15"/></imageobject><textobject><phrase>(!)</phrase></textobject></inlinemediaobject> If one of these addresses is assigned to a host, then that host must not access the Internet directly but must access it through a gateway that acts as a proxy for individual services or else does <ulink url="http://en.wikipedia.org/wiki/Network_Address_Translation">Network Address Translation(NAT)</ulink>.  The broadband router usually performs NAT for the consumer LAN environment. </para>
        <para/>
      </section>
      <section>
        <title>The network configuration infrastructure</title>
        <para>The <code>ifupdown</code> package and its associated packages are the de facto standard for the Debian networking infrastructure.  Its configuration file is the <code>/etc/network/interfaces</code> (<emphasis role="strong"><code>/e/n/i</code></emphasis>)file and its typical contents are: </para>
        <screen><![CDATA[auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
]]></screen>
        <para><inlinemediaobject><imageobject><imagedata width="16" fileref="/htdocs/rightsidebar/img/icon-info.png" depth="16"/></imageobject><textobject><phrase>{i}</phrase></textobject></inlinemediaobject> There are independent automatic network configuration tools for mobile desktop users on laptops (see @{@automaticnetworkconfiguration@}@). </para>
        <table>
          <caption/>
          <tgroup cols="5">
            <colspec colname="xxx1"/>
            <colspec colname="xxx2"/>
            <colspec colname="xxx3"/>
            <colspec colname="xxx4"/>
            <colspec colname="xxx5"/>
            <tbody>
              <row>
                <entry>
                  <para> List of network configuration tools. </para>
                </entry>
                <entry>
                  <para> 1 </para>
                </entry>
                <entry>
                  <para> 2 </para>
                </entry>
                <entry>
                  <para> 3 </para>
                </entry>
                <entry>
                  <para> </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <emphasis role="strong">packages</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">popcon</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">size</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">type</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">function</emphasis>
                  </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>ifupdown</code>
                  </para>
                </entry>
                <entry>
                  <para> 35032 </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> config::<ulink url="http://packages.debian.org/search?keywords=ifupdown&amp;searchon=names&amp;exact=1&amp;suite=all&amp;section=all">ifupdown</ulink> </para>
                </entry>
                <entry>
                  <para> Standardized level to bring up and down the network (Debian specific) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>ifplugd</code>
                  </para>
                </entry>
                <entry>
                  <para> 571 </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Manage the wired network automatically </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>ifupdown-extra</code>
                  </para>
                </entry>
                <entry>
                  <para> -- </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Network testing script to enhance "<code>ifupdown</code>" package </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>ifmetric</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para>  , , </para>
                </entry>
                <entry>
                  <para> Set routing metrics for a network interface. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>guessnet</code>
                  </para>
                </entry>
                <entry>
                  <para> 112 </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Mapping script to enhance "<code>ifupdown</code>" package via <emphasis role="strong"><code>/e/n/i</code></emphasis> file </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>ifscheme</code>
                  </para>
                </entry>
                <entry>
                  <para> -- </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Mapping scripts to enhance "<code>ifupdown</code>" package </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>ifupdown-scripts-zg2</code>
                  </para>
                </entry>
                <entry>
                  <para> -- </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Zugschlus' interface scripts for ifupdown's manual method </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>network-manager</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> config::<ulink url="http://projects.gnome.org/NetworkManager/">NetworkManager</ulink> </para>
                </entry>
                <entry>
                  <para><ulink url="/NetworkManager">NetworkManager</ulink> (daemon): Manage the network automatically </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>network-manager-gnome</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para><ulink url="/NetworkManager">NetworkManager</ulink> (GNOME frontend) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>network-manager-kde</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para><ulink url="/NetworkManager">NetworkManager</ulink> (KDE frontend) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>wicd</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> config::<ulink url="http://wicd.sourceforge.net/">wicd</ulink> </para>
                </entry>
                <entry>
                  <para> Wired and wireless network manager </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>iptables</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> config::<ulink url="http://en.wikipedia.org/wiki/Netfilter">Netfilter</ulink> </para>
                </entry>
                <entry>
                  <para> Administration tools for packet filtering and NAT </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>iproute</code>
                  </para>
                </entry>
                <entry>
                  <para> 19172 </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> config::<ulink url="http://www.linuxfoundation.org/en/Net:Iproute2">iproute2</ulink> </para>
                </entry>
                <entry>
                  <para> IPv6 and other advanced network configuration: <code>ip</code>(8), <code>tc</code>(8), etc. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>ifrename</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Rename network interfaces based on various static criteria: <code>ifrename</code>(8) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>ethtool</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Display or change Ethernet device settings: </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>iputils-ping</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> test::<ulink url="http://www.linuxfoundation.org/en/Net:Iproute2">iproute2</ulink> </para>
                </entry>
                <entry>
                  <para> Tools to test network reachability of a remote host by <ulink url="http://en.wikipedia.org/wiki/Hostname">hostname</ulink> or <ulink url="http://en.wikipedia.org/wiki/IP_address">IP address</ulink> </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>iputils-arping</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Tools to test network reachability of a remote host specified by the <ulink url="http://en.wikipedia.org/wiki/Address_Resolution_Protocol">ARP</ulink> address </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>iputils-tracepath</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Tools to trace the network path to a remote host </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>net-tools</code>
                  </para>
                </entry>
                <entry>
                  <para> 36300 </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> config::<ulink url="http://www.linuxfoundation.org/en/Net:Net-tools">net-tools</ulink> </para>
                </entry>
                <entry>
                  <para> The NET-3 networking toolkit (IPv4 network configuration):  <code>ifconfig</code>(8) etc.  </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>inetutils-ping</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> test::<ulink url="http://www.linuxfoundation.org/en/Net:Net-tools">net-tools</ulink> </para>
                </entry>
                <entry>
                  <para> Tools to test network reachability of a remote host by <ulink url="http://en.wikipedia.org/wiki/Hostname">hostname</ulink> or <ulink url="http://en.wikipedia.org/wiki/IP_address">IP address</ulink> (legacy, GNU) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>arping</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Tools to test network reachability of a remote host specified by the <ulink url="http://en.wikipedia.org/wiki/Address_Resolution_Protocol">ARP</ulink> address (legacy) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>traceroute</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Tools to trace the network path to a remote host (legacy, console) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>dhcp3-client</code>
                  </para>
                </entry>
                <entry>
                  <para> 20532 </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> config::low-level </para>
                </entry>
                <entry>
                  <para> DHCP client </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>wpasupplicant</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Client support for WPA and WPA2 (IEEE 802.11i) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>wireless-tools</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Tools for manipulating Linux Wireless Extensions </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>ppp</code>
                  </para>
                </entry>
                <entry>
                  <para> 4638 </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> PPP/PPPoE connection with <code>chat</code> </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>pppoeconf</code>
                  </para>
                </entry>
                <entry>
                  <para> 566 </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> config::helper </para>
                </entry>
                <entry>
                  <para> Configuration helper for PPPoE connection </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>pppconfig</code>
                  </para>
                </entry>
                <entry>
                  <para> 559 </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Configuration helper for plain PPP connection with <code>chat</code> </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>wvdial</code>
                  </para>
                </entry>
                <entry>
                  <para> 224 </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> PPP connection with <code>wvdial</code> with <code>ppp</code>, configuration helper  </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>mtr-tiny</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> test::low-level </para>
                </entry>
                <entry>
                  <para> Tools to trace the network path to a remote host (curses) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>mtr</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Tools to trace the network path to a remote host (curses and GTK+) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>gnome-nettool</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Tools for common network information operations (GNOME) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>nmap</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Network mapper / port scanner (console) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>zenmap</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Network mapper / port scanner (GTK+) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>knmap</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Network mapper / port scanner (KDE) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>tcpdump</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Network traffic analyzer (console) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>wireshark</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Network traffic analyzer (GTK+) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>tshark</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Network traffic analyzer (console) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>tcptrace</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Tool to produce a summarization of the connections from <code>tcpdump</code> output </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>snort</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Flexible network intrusion detection system </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>ntop</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> display network usage in web browser </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>dnsutils</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para>  Network clients provided with <ulink url="http://en.wikipedia.org/wiki/BIND">BIND</ulink>: <code>nslookup</code>(8), <code>nsupdate</code>(8), <code>dig</code>(8)  </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>dlint</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Checks <ulink url="http://en.wikipedia.org/wiki/Domain_Name_System">DNS</ulink> zone information using nameserver lookups </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>dnstracer</code>
                  </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> - </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
                <entry>
                  <para> Tool to trace a chain of <ulink url="http://en.wikipedia.org/wiki/Domain_Name_System">DNS</ulink> servers to the source  </para>
                </entry>
              </row>
            </tbody>
          </tgroup>
        </table>
        <para/>
        <para/>
        <para/>
        <para/>
        <para/>
        <para/>
        <para/>
        <para/>
        <para/>
        <para>There are 2 types of low level networking programs for Linux networking system (see @{@iprouteccommands@}@). </para>
        <itemizedlist>
          <listitem>
            <para>Old <code>net-tools</code> programs (<code>ifconfig</code>(8), ...) are from the Linux NET-3 networking system. Most of these are obsolete now. </para>
          </listitem>
          <listitem>
            <para>New <ulink url="http://www.linuxfoundation.org/en/Net:Iproute2">Linux iproute2</ulink> programs (<code>ip</code>(8), ...) are the current Linux networking system. </para>
          </listitem>
        </itemizedlist>
        <para/>
      </section>
      <section>
        <title>The network device support</title>
        <para>Although most hardware devices are supported by the Debian system, there are some network devices which require <ulink url="http://www.debian.org/social_contract#guidelines">DSFG</ulink> non-free external hardware drivers to support them.  Please see @{@nonfreehardwaredrivers@}@. </para>
        <para/>
      </section>
    </section>
    <section>
      <title>The network connection method</title>
      <para/>
      <para>The typical network connection method and connection path for a PC can be summarized as: </para>
      <table>
        <caption/>
        <tgroup cols="3">
          <colspec colname="xxx1"/>
          <colspec colname="xxx2"/>
          <colspec colname="xxx3"/>
          <tbody>
            <row>
              <entry>
                <para> List of network connection types and connection paths. </para>
              </entry>
              <entry>
                <para> </para>
              </entry>
              <entry>
                <para> </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <emphasis role="strong">PC</emphasis>
                </para>
              </entry>
              <entry>
                <para>
                  <emphasis role="strong">connection method</emphasis>
                </para>
              </entry>
              <entry>
                <para>
                  <emphasis role="strong">connection path</emphasis>
                </para>
              </entry>
            </row>
            <row>
              <entry>
                <para> Serial port (<code>ppp0</code>) </para>
              </entry>
              <entry>
                <para> PPP </para>
              </entry>
              <entry>
                <para> &lt;=&gt; <ulink url="http://en.wikipedia.org/wiki/Modem">modem</ulink> &lt;=&gt; POTS &lt;=&gt; dial-up access point &lt;=&gt; ISP </para>
              </entry>
            </row>
            <row>
              <entry>
                <para> Ethernet port (<code>eth0</code>) </para>
              </entry>
              <entry>
                <para> PPPoE/DHCP/Static </para>
              </entry>
              <entry>
                <para> &lt;=&gt; BB-modem &lt;=&gt; BB service &lt;=&gt; BB access point &lt;=&gt; ISP </para>
              </entry>
            </row>
            <row>
              <entry>
                <para> Ethernet port (<code>eth0</code>) </para>
              </entry>
              <entry>
                <para> DHCP/Static </para>
              </entry>
              <entry>
                <para> &lt;=&gt; LAN &lt;=&gt; BB-router with <ulink url="http://en.wikipedia.org/wiki/Network_address_translation">network address translation (NAT)</ulink> (&lt;=&gt; BB-modem ...) </para>
              </entry>
            </row>
          </tbody>
        </tgroup>
      </table>
      <para>Here is the summary of configuration script for each connection method: </para>
      <table>
        <caption/>
        <tgroup cols="3">
          <colspec colname="xxx1"/>
          <colspec colname="xxx2"/>
          <colspec colname="xxx3"/>
          <tbody>
            <row>
              <entry>
                <para> List of network connection configurations. </para>
              </entry>
              <entry>
                <para> </para>
              </entry>
              <entry>
                <para> </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <emphasis role="strong">connection method</emphasis>
                </para>
              </entry>
              <entry>
                <para>
                  <emphasis role="strong">configuration</emphasis>
                </para>
              </entry>
              <entry>
                <para>
                  <emphasis role="strong">backend package(s)</emphasis>
                </para>
              </entry>
            </row>
            <row>
              <entry>
                <para> PPP </para>
              </entry>
              <entry>
                <para><code>pppconfig</code> to create deterministic chat </para>
              </entry>
              <entry>
                <para><code>pppconfig</code>, <code>ppp</code></para>
              </entry>
            </row>
            <row>
              <entry>
                <para> PPP (alternative) </para>
              </entry>
              <entry>
                <para><code>wvdialconf</code> to create heuristic chat </para>
              </entry>
              <entry>
                <para><code>ppp</code>, <code>wvdial</code></para>
              </entry>
            </row>
            <row>
              <entry>
                <para> PPPoE  </para>
              </entry>
              <entry>
                <para><code>pppoeconf</code> to create deterministic chat </para>
              </entry>
              <entry>
                <para><code>pppoeconf</code>, <code>ppp</code></para>
              </entry>
            </row>
            <row>
              <entry>
                <para> DHCP </para>
              </entry>
              <entry>
                <para> described in <code>/etc/dhcp3/dhclient.conf</code> </para>
              </entry>
              <entry>
                <para>
                  <code>dhcp3-client</code>
                </para>
              </entry>
            </row>
            <row>
              <entry>
                <para> static IP (IPv4) </para>
              </entry>
              <entry>
                <para> described in <emphasis role="strong"><code>/e/n/i</code></emphasis> </para>
              </entry>
              <entry>
                <para>
                  <code>net-tools</code>
                </para>
              </entry>
            </row>
            <row>
              <entry>
                <para> static IP (IPv6) </para>
              </entry>
              <entry>
                <para> described in <emphasis role="strong"><code>/e/n/i</code></emphasis> </para>
              </entry>
              <entry>
                <para>
                  <code>iproute</code>
                </para>
              </entry>
            </row>
          </tbody>
        </tgroup>
      </table>
      <para>The network connection acronyms mean: </para>
      <table>
        <caption/>
        <tgroup cols="2">
          <colspec colname="xxx1"/>
          <colspec colname="xxx2"/>
          <tbody>
            <row>
              <entry>
                <para> List of network connection acronyms. </para>
              </entry>
              <entry>
                <para> </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <emphasis role="strong">acronym</emphasis>
                </para>
              </entry>
              <entry>
                <para>
                  <emphasis role="strong">meaning</emphasis>
                </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <ulink url="http://en.wikipedia.org/wiki/Plain_old_telephone_service">POTS</ulink>
                </para>
              </entry>
              <entry>
                <para> The plain old telephone service </para>
              </entry>
            </row>
            <row>
              <entry>
                <para> BB </para>
              </entry>
              <entry>
                <para> The <ulink url="http://en.wikipedia.org/wiki/Broadband">broadband</ulink> </para>
              </entry>
            </row>
            <row>
              <entry>
                <para> BB-service </para>
              </entry>
              <entry>
                <para> E.g., the digital subscriber line (DSL), the cable TV, or the fiber to the premises (FTTP). </para>
              </entry>
            </row>
            <row>
              <entry>
                <para> BB-modem </para>
              </entry>
              <entry>
                <para> E.g., <ulink url="http://en.wikipedia.org/wiki/DSL_modem">the DSL modem</ulink>, <ulink url="http://en.wikipedia.org/wiki/Cable_modem">the cable modem</ulink>, or <ulink url="http://en.wikipedia.org/wiki/FTTP">the optical network terminal (ONT)</ulink>. </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <ulink url="http://en.wikipedia.org/wiki/Local_area_network">LAN</ulink>
                </para>
              </entry>
              <entry>
                <para> The local area network </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <ulink url="http://en.wikipedia.org/wiki/Wide_area_network">WAN</ulink>
                </para>
              </entry>
              <entry>
                <para> The wide area network </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <ulink url="http://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol">DHCP</ulink>
                </para>
              </entry>
              <entry>
                <para>The dynamic host configuration protocol </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <ulink url="http://en.wikipedia.org/wiki/Point-to-Point_Protocol">PPP</ulink>
                </para>
              </entry>
              <entry>
                <para> The point-to-point protocol </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <ulink url="http://en.wikipedia.org/wiki/Point-to-Point_Protocol_over_Ethernet">PPPoE</ulink>
                </para>
              </entry>
              <entry>
                <para> The point-to-point protocol over Ethernet </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <ulink url="http://en.wikipedia.org/wiki/ISP">ISP</ulink>
                </para>
              </entry>
              <entry>
                <para> The Internet service provider </para>
              </entry>
            </row>
          </tbody>
        </tgroup>
      </table>
      <para><inlinemediaobject><imageobject><imagedata width="15" fileref="/htdocs/rightsidebar/img/idea.png" depth="15"/></imageobject><textobject><phrase>(!)</phrase></textobject></inlinemediaobject> The WAN connection services via cable TV are generally served by DHCP or PPPoE.  The ones by ADSL and FTTP are generally served by PPPoE.  You have to consult your ISP for exact configuration requirements of the WAN connection. </para>
      <para><inlinemediaobject><imageobject><imagedata width="15" fileref="/htdocs/rightsidebar/img/idea.png" depth="15"/></imageobject><textobject><phrase>(!)</phrase></textobject></inlinemediaobject> When BB-router is used to create home LAN environment, PCs on LAN are connected to the WAN via BB-router with <ulink url="http://en.wikipedia.org/wiki/Network_address_translation">network address translation (NAT)</ulink>.  For such case, PC's network interfaces on the LAN are served by static IP or DHCP from the BB-router.  BB-router must be configured to connect the WAN following the instruction by your ISP. </para>
      <para><inlinemediaobject><imageobject><imagedata width="15" fileref="/htdocs/rightsidebar/img/attention.png" depth="15"/></imageobject><textobject><phrase>&lt;!&gt;</phrase></textobject></inlinemediaobject> The connection test method described in this section are meant for testing purposes.  It is not meant to be used directly for the daily network connection.  You are advised to use them via the <code>ifupdown</code> package (see @{@thebasicnetworkctionwithifupdown@}@). </para>
      <para/>
      <section>
        <title>The DHCP connection with the Ethernet</title>
        <para>The typical modern home and small business network, i.e. LAN, are connected to the WAN(Internet) using some consumer grade broadband router.  The LAN behind this router is usually served by the <ulink url="http://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol">dynamic host configuration protocol (DHCP)</ulink> server running on the router. </para>
        <para>Just install the <code>dhcp3-client</code> package for the Ethernet served by the <ulink url="http://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol">dynamic host configuration protocol (DHCP)</ulink>. </para>
        <para/>
      </section>
      <section>
        <title>The static IP connection with the Ethernet</title>
        <para>No special action is needed for the Ethernet served by the static IP. </para>
        <para/>
      </section>
      <section>
        <title>The PPP connection with pppconfig</title>
        <para>The configuration script <code>pppconfig</code> will configure the PPP connection interactively just by selecting: </para>
        <itemizedlist>
          <listitem>the telephone number, </listitem>
          <listitem>the ISP user name,  </listitem>
          <listitem>the ISP password, </listitem>
          <listitem>the port speed, </listitem>
          <listitem>the modem communication port, and </listitem>
          <listitem>the authentication method. </listitem>
        </itemizedlist>
        <para>The configuration files are: </para>
        <table>
          <caption/>
          <tgroup cols="2">
            <colspec colname="xxx1"/>
            <colspec colname="xxx2"/>
            <tbody>
              <row>
                <entry>
                  <para> List of configuration files for the PPP connection with pppconfig. </para>
                </entry>
                <entry>
                  <para> </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <emphasis role="strong">file</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">function</emphasis>
                  </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>/etc/ppp/peers/&lt;isp_name&gt;</code>
                  </para>
                </entry>
                <entry>
                  <para> The <code>pppconfig</code> generated configuration file for <code>pppd</code> specific to &lt;isp_name&gt; </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>/etc/chatscripts/&lt;isp_name&gt;</code>
                  </para>
                </entry>
                <entry>
                  <para> The <code>pppconfig</code> generated configuration file for <code>chat</code> specific to &lt;isp_name&gt; </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>/etc/ppp/options</code>
                  </para>
                </entry>
                <entry>
                  <para> The general execution parameter for <code>pppd</code> </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>/etc/ppp/pap-secret</code>
                  </para>
                </entry>
                <entry>
                  <para> Authentication data for the PAP (still used) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>/etc/ppp/chap-secret</code>
                  </para>
                </entry>
                <entry>
                  <para> Authentication data for the CHAP (more secure) </para>
                </entry>
              </row>
            </tbody>
          </tgroup>
        </table>
        <para><inlinemediaobject><imageobject><imagedata width="15" fileref="/htdocs/rightsidebar/img/attention.png" depth="15"/></imageobject><textobject><phrase>&lt;!&gt;</phrase></textobject></inlinemediaobject> The "&lt;isp_name&gt;" value of "provider" is assumed if <code>pon</code> and <code>poff</code> commands are invoked without arguments. </para>
        <para>You can test configuration using lower level network configuration tools: </para>
        <screen><![CDATA[$ sudo pon <isp_name>
...
$ sudo poff <isp_name>
]]></screen>
        <para>See <code>/usr/share/doc/ppp/README.Debian.gz</code> for more information. </para>
        <para/>
      </section>
      <section>
        <title>The alternative PPP connection with wvdialconf</title>
        <para>A different approach to using <code>pppd</code> is to run it from <code>wvdial</code> which comes in the <code>wvdial</code> package.  Instead of <code>pppd</code> running <code>chat</code> to dial in and negotiate the connection, <code>wvdial</code> does the dialing and initial negotiating and then starts <code>pppd</code> to do the rest.   </para>
        <para>The configuration script <code>wvdialconf</code> will configure the PPP connection interactively just by selecting: </para>
        <itemizedlist>
          <listitem>the telephone number, </listitem>
          <listitem>the ISP user name, and  </listitem>
          <listitem>the ISP password. </listitem>
        </itemizedlist>
        <para>The <code>wvdial</code> succeeds in making the connection in most cases and maintains authentication data list automatically. </para>
        <para>The configuration files are: </para>
        <table>
          <caption/>
          <tgroup cols="2">
            <colspec colname="xxx1"/>
            <colspec colname="xxx2"/>
            <tbody>
              <row>
                <entry>
                  <para> List of configuration files for the PPP connection with wvdialconf. </para>
                </entry>
                <entry>
                  <para> </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <emphasis role="strong">file</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">function</emphasis>
                  </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>/etc/ppp/peers/wvdial</code>
                  </para>
                </entry>
                <entry>
                  <para> The <code>wvdialconf</code> generated configuration file for <code>pppd</code> specific to <code>wvdial</code> </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>/etc/wvdial.conf</code>
                  </para>
                </entry>
                <entry>
                  <para> The <code>wvdialconf</code> generated configuration file </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>/etc/ppp/options</code>
                  </para>
                </entry>
                <entry>
                  <para> The general execution parameter for <code>pppd</code> </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>/etc/ppp/pap-secret</code>
                  </para>
                </entry>
                <entry>
                  <para> Authentication data for the PAP (still used) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>/etc/ppp/chap-secret</code>
                  </para>
                </entry>
                <entry>
                  <para> Authentication data for the CHAP (more secure) </para>
                </entry>
              </row>
            </tbody>
          </tgroup>
        </table>
        <para>You can test configuration using lower level network configuration tools: </para>
        <screen><![CDATA[$ sudo wvdial
...
$ sudo killall wvdial
]]></screen>
        <para>See manpages of wvdial(1), wvdial.conf(5) for more information. </para>
        <para/>
      </section>
      <section>
        <title>The PPPoE connection with pppoeconf</title>
        <para>When your ISP serves you with PPPoE connection and you decide to connect your PC directly to the WAN, the network of your PC must be configured with the PPPoE. The PPPoE stand for PPP over Ethernet. The configuration script <code>pppoeconf</code> will configure the PPPoE connection interactively. </para>
        <para>The configuration files are: </para>
        <table>
          <caption/>
          <tgroup cols="2">
            <colspec colname="xxx1"/>
            <colspec colname="xxx2"/>
            <tbody>
              <row>
                <entry>
                  <para> List of configuration files for the PPPoE connection with pppoeconf. </para>
                </entry>
                <entry>
                  <para> </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <emphasis role="strong">file</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">function</emphasis>
                  </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>/etc/ppp/peers/dsl-provider</code>
                  </para>
                </entry>
                <entry>
                  <para> The <code>pppoeconf</code> generated configuration file for <code>pppd</code> specific to <code>pppoe</code> </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>/etc/ppp/options</code>
                  </para>
                </entry>
                <entry>
                  <para> The general execution parameter for <code>pppd</code> </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>/etc/ppp/pap-secret</code>
                  </para>
                </entry>
                <entry>
                  <para> Authentication data for the PAP (still used) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>/etc/ppp/chap-secret</code>
                  </para>
                </entry>
                <entry>
                  <para> Authentication data for the CHAP (more secure) </para>
                </entry>
              </row>
            </tbody>
          </tgroup>
        </table>
        <para>You can test configuration using lower level network configuration tools: </para>
        <screen><![CDATA[$ sudo /sbin/ifconfig eth0 up
$ sudo pon dsl-provider
...
$ sudo poff dsl-provider
$ sudo /sbin/ifconfig eth0 down
]]></screen>
        <para>See <code>/usr/share/doc/pppoeconf/README.Debian</code> for more information. </para>
        <para/>
      </section>
    </section>
    <section>
      <title>The basic network configuration with ifupdown</title>
      <para>The <code>ifupdown</code> package provides the standardized framework for the high level network configuration in the Debian system. In this section, we learn the basic network configuration with <code>ifupdown</code> with simplified introduction and many typical examples. </para>
      <para/>
      <section>
        <title>The command syntax simplified</title>
        <para>The <code>ifupdown</code> package contains 2 commands: <code>ifup</code>(8) and <code>ifdown</code>(8).  They offer high level network configuration dictated by the configuration file <emphasis role="strong">/e/n/i</emphasis>. </para>
        <table>
          <caption/>
          <tgroup cols="2">
            <colspec colname="xxx1"/>
            <colspec colname="xxx2"/>
            <tbody>
              <row>
                <entry>
                  <para> List of basic network configuration commands with ifupdown. </para>
                </entry>
                <entry>
                  <para> </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <emphasis role="strong">command</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">action</emphasis>
                  </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>ifup eth0</code>
                  </para>
                </entry>
                <entry>
                  <para> To bring up a network interface <code>eth0</code> with the configuration <code>eth0</code> if "<code>iface eth0</code>" stanza exists. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>ifdown eth0</code>
                  </para>
                </entry>
                <entry>
                  <para> To bring down a network interface <code>eth0</code> with the configuration <code>eth0</code> if "<code>iface eth0</code>" stanza exists. </para>
                </entry>
              </row>
            </tbody>
          </tgroup>
        </table>
        <para><inlinemediaobject><imageobject><imagedata width="15" fileref="/htdocs/rightsidebar/img/idea.png" depth="15"/></imageobject><textobject><phrase>(!)</phrase></textobject></inlinemediaobject> There is no command <code>ifupdown</code>. </para>
        <para><inlinemediaobject><imageobject><imagedata width="15" fileref="/htdocs/rightsidebar/img/alert.png" depth="15"/></imageobject><textobject><phrase>/!\</phrase></textobject></inlinemediaobject> Do not use low level configuration tools such as <code>ifconfig</code>(8) and <code>ip</code>(8) commands to configure an interface in <emphasis role="strong">up</emphasis> state. </para>
        <para/>
        <para/>
      </section>
      <section>
        <title>The basic syntax of /etc/network/interfaces</title>
        <para>The key syntax of <code>/etc/network/interfaces</code> (<emphasis role="strong"><code>/e/n/i</code></emphasis> as its acronym in the following text) as explained in the manpage <code>interfaces</code>(5) can be summarized as: </para>
        <table>
          <caption/>
          <tgroup cols="2">
            <colspec colname="xxx1"/>
            <colspec colname="xxx2"/>
            <tbody>
              <row>
                <entry>
                  <para> List of stanzas in <emphasis role="strong"><code>/e/n/i</code></emphasis> </para>
                </entry>
                <entry>
                  <para> </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <emphasis role="strong">stanza</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">meaning</emphasis>
                  </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> "<code>auto &lt;interface_name&gt;</code>" </para>
                </entry>
                <entry>
                  <para> To start interface  &lt;interface_name&gt; upon start of the system.  </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> "<code>allow-auto &lt;interface_name&gt;</code>" </para>
                </entry>
                <entry>
                  <para> , , </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> "<code>allow-hotplug &lt;interface_name&gt;</code>" </para>
                </entry>
                <entry>
                  <para> To start interface &lt;interface_name&gt; when the kernel detects a hotplug event from the interface. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> Lines started with "<code>iface &lt;config_name&gt; ...</code>" </para>
                </entry>
                <entry>
                  <para> To define the network configuration &lt;config_name&gt;.  </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> Lines started with "<code>mapping &lt;interface_name_glob&gt; </code>"</para>
                </entry>
                <entry>
                  <para> To define mapping value of &lt;config_name&gt; for the matching &lt;interface_name&gt;.  </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> A line starting with a hash "<code>#</code>" </para>
                </entry>
                <entry>
                  <para> To be ignored as comments. (end-of-line comments are <emphasis role="strong">not</emphasis> supported) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> A line ending with a backslash "<code>\</code>" </para>
                </entry>
                <entry>
                  <para> To extend the configuration to the next line. </para>
                </entry>
              </row>
            </tbody>
          </tgroup>
        </table>
        <para>Lines started with <emphasis role="strong"><code>iface</code></emphasis> stanza has the following syntax: </para>
        <screen><![CDATA[iface <config_name> <address_family> <method_name>
 <option1> <value1>
 <option2> <value2>
 ...
]]></screen>
        <para>For the basic configuration, the <emphasis role="strong"><code>mapping</code></emphasis> stanza is not used and you use the network interface name as the network configuration name. (See @{@themappingstanza@}@). </para>
        <para/>
      </section>
      <section>
        <title>The loopback network interface</title>
        <para>The following configuration entry in the <emphasis role="strong"><code>/e/n/i</code></emphasis> file brings up the loopback network interface <code>lo</code> upon booting the system (via <emphasis role="strong"><code>auto</code></emphasis> stanza). </para>
        <screen><![CDATA[auto lo
iface lo inet loopback
]]></screen>
        <para>This one always exists in the <emphasis role="strong"><code>/e/n/i</code></emphasis> file. </para>
        <para/>
      </section>
      <section>
        <title>The network interface served by the DHCP</title>
        <para>After prepairing the system by @{@thedhcpconnectionwiththeethernet@}@, the network interface served by the DHCP is configured by creating the configuration entry in the <emphasis role="strong"><code>/e/n/i</code></emphasis> file as: </para>
        <screen><![CDATA[allow-hotplug eth0
iface eth0 inet dhcp
 hostname "mymachine"
]]></screen>
        <para>When the Linux kernel detects the physical interface <code>eth0</code>, the <emphasis role="strong"><code>allow-hotplug</code></emphasis> stanza will cause ifup to bring up the interface and the <emphasis role="strong"><code>iface</code></emphasis> stanza will cause <code>ifup</code> to use DHCP to configure the interface. </para>
        <para/>
      </section>
      <section>
        <title>The network interface with the static IP</title>
        <para>The network interface served by the static IP is configured by creating the configuration entry in the <emphasis role="strong"><code>/e/n/i</code></emphasis> file as, e.g.,: </para>
        <screen><![CDATA[allow-hotplug eth0
iface eth0 inet static
 address 192.168.11.100
 netmask 255.255.255.0
 broadcast 192.168.11.255
 gateway 192.168.11.1
 dns-domain lan
 dns-nameservers 192.168.11.1
]]></screen>
        <para>When the Linux kernel detects the physical interface <code>eth0</code>, the <emphasis role="strong"><code>allow-hotplug</code></emphasis> stanza will cause ifup to bring up the interface and the <emphasis role="strong"><code>iface</code></emphasis> stanza will cause <code>ifup</code> to use the static IP to configure the interface. </para>
        <para>Here, I assumed: </para>
        <itemizedlist>
          <listitem>
            <para>IP address range of the LAN network: <code>192.168.11.0</code> - <code>192.168.11.255</code> </para>
          </listitem>
          <listitem>
            <para>IP address of the gateway: <code>192.168.11.1</code> </para>
          </listitem>
          <listitem>
            <para>IP address of the PC: <code>192.168.11.100</code> </para>
          </listitem>
          <listitem>
            <para>The <code>resolvconf</code> package is installed. </para>
          </listitem>
          <listitem>
            <para>The domain name as "<code>lan</code>". </para>
          </listitem>
          <listitem>
            <para>The DNS server at: <code>192.168.11.1</code> </para>
          </listitem>
        </itemizedlist>
        <para>When the <code>resolvconf</code> package is not installed, DNS related configuration needs to be done manually by editing the <code>/etc/resolv.conf</code> as: </para>
        <screen><![CDATA[nameserver 192.168.11.1 
domain lan
]]></screen>
        <para><inlinemediaobject><imageobject><imagedata width="15" fileref="/htdocs/rightsidebar/img/attention.png" depth="15"/></imageobject><textobject><phrase>&lt;!&gt;</phrase></textobject></inlinemediaobject> The IP addresses used in the above example are not meant to be copied literally.  You have to adjust IP numbers to your actual network configuration. </para>
        <para/>
      </section>
      <section>
        <title>The basics of wireless LAN interface</title>
        <para>The <ulink url="http://en.wikipedia.org/wiki/Wireless_LAN">wireless LAN (WLAN for short)</ulink> provides the fast wireless connectivity through the spread-spectrum communication of unlicensed radio bands based on the set of standards called <ulink url="http://en.wikipedia.org/wiki/IEEE_802.11">IEEE 802.11</ulink>. </para>
        <para>The WLAN interfaces are almost like normal Ethernet interfaces but require some network ID and encryption key data to be provided when they are initialized.  The higher level network tools are exactly the same as the Ethernet except the interface names are a bit different like <code>ath0</code>, <code>wlan0</code>, <code>ath0</code>, <code>wifi0</code>, ... depending on the kernel drivers used. </para>
        <para>Here are some keywords to remember for the WLAN: </para>
        <table>
          <caption/>
          <tgroup cols="3">
            <colspec colname="xxx1"/>
            <colspec colname="xxx2"/>
            <colspec colname="xxx3"/>
            <tbody>
              <row>
                <entry>
                  <para> List of acronyms for WLAN. </para>
                </entry>
                <entry>
                  <para> </para>
                </entry>
                <entry>
                  <para> </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <emphasis role="strong">acronym</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">full word</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">meaning</emphasis>
                  </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> NWID </para>
                </entry>
                <entry>
                  <para> Network ID </para>
                </entry>
                <entry>
                  <para> The 16 bit network ID used by pre-802.11 network. Very much deprecated. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> (E)SSID </para>
                </entry>
                <entry>
                  <para> (Extended) <ulink url="http://en.wikipedia.org/wiki/Service_set_identifier">Service Set Identifier</ulink> </para>
                </entry>
                <entry>
                  <para> The network name of the <ulink url="http://en.wikipedia.org/wiki/Wireless_access_point">Wireless Access Points (APs)</ulink> interconnected to form an integrated <ulink url="http://en.wikipedia.org/wiki/IEEE_802.11">802.11 wireless LAN</ulink>.  Domain ID. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> WEP, (WEP2) </para>
                </entry>
                <entry>
                  <para>
                    <ulink url="http://en.wikipedia.org/wiki/Wired_Equivalent_Privacy">Wired Equivalent Privacy</ulink>
                  </para>
                </entry>
                <entry>
                  <para> The 1st generation 64-bit (128-bit) wireless encryption standard with 40-bit key. Deprecated. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> WPA </para>
                </entry>
                <entry>
                  <para>
                    <ulink url="http://en.wikipedia.org/wiki/Wi-Fi_Protected_Access">Wi-Fi Protected Access</ulink>
                  </para>
                </entry>
                <entry>
                  <para> The 2nd generation wireless encryption standard (most of 802.11i), compatible with WEP. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> WPA2 </para>
                </entry>
                <entry>
                  <para>
                    <ulink url="http://en.wikipedia.org/wiki/IEEE_802.11i">Wi-Fi Protected Access 2</ulink>
                  </para>
                </entry>
                <entry>
                  <para> The 3rd generation wireless encryption standard (full 802.11i), non-compatible with WEP. </para>
                </entry>
              </row>
            </tbody>
          </tgroup>
        </table>
        <para>The actual choice of protocol is usually limited by the wireless router you deploy. </para>
        <para/>
      </section>
      <section>
        <title>The wireless LAN interface with WEP</title>
        <para>You need to install the <code>wireless-tools</code> package to support the WLAN with the old WEP.  (Your consumer grade router may still be using.  Insecure infrastructure but better than nothing.) </para>
        <para><inlinemediaobject><imageobject><imagedata width="15" fileref="/htdocs/rightsidebar/img/attention.png" depth="15"/></imageobject><textobject><phrase>&lt;!&gt;</phrase></textobject></inlinemediaobject> Please note that your network traffic on WLAN may be sniffed by others. </para>
        <para>In case of the <ulink url="http://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol">DHCP</ulink> served IP on WLAN connection, the <emphasis role="strong"><code>/e/n/i</code></emphasis> file entry should be: </para>
        <screen><![CDATA[allow-hotplug eth0
iface eth0 inet dhcp
 wireless-essid Home
 wireless-key1 0123-4567-89ab-cdef
 wireless-key2 12345678
 wireless-key3 s:password
 wireless-defaultkey 2
 wireless-keymode open
]]></screen>
        <para>See more on <code>/usr/share/doc/wireless-tools/README.Debian</code>. </para>
        <para/>
      </section>
      <section>
        <title>The wireless LAN interface with WPA/WPA2</title>
        <para>You need to install the <code>wpasupplicant</code> package to support the WLAN with the new WPA/WPA2. </para>
        <para>In case of the DHCP served IP on WLAN connection, the <emphasis role="strong"><code>/e/n/i</code></emphasis> file entry should be: </para>
        <screen><![CDATA[allow-hotplug ath0
iface ath0 inet dhcp
 wpa-ssid homezone
 # hexadecimal psk is encoded from a plaintext passphrase
 wpa-psk 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
]]></screen>
        <para>See more on <code>/usr/share/doc/wpasupplicant/README.modes.gz</code>. </para>
        <para/>
      </section>
      <section>
        <title>The PPP connection</title>
        <para>You need to configure the PPP connection first as described before (see @{@thepppconnectionwithpppconfig@}@).  Then, add the <emphasis role="strong"><code>/e/n/i</code></emphasis> file entry for the primary PPP device <code>ppp0</code> as: </para>
        <screen><![CDATA[iface ppp0 inet ppp
 provider <isp_name>
]]></screen>
        <para/>
      </section>
      <section>
        <title>The alternative PPP connection</title>
        <para>You need to configure the alternative PPP connection with <code>wvdial</code> first as described before (see @{@thealternativepponwithwvdialconf@}@).  Then, add the <emphasis role="strong"><code>/e/n/i</code></emphasis> file entry for the primary PPP device <code>ppp0</code> as: </para>
        <screen><![CDATA[iface ppp0 inet wvdial
]]></screen>
        <para/>
      </section>
      <section>
        <title>The PPPoE connection</title>
        <para>For PC connected directly to the WAN served by the PPPoE, you need to configure system with the PPPoE connection as described before (see @{@thepppoeconnectionwithpppoeconf@}@).  Then, add the <emphasis role="strong"><code>/e/n/i</code></emphasis> file entry for the primary PPPoE device <code>eth0</code> as: </para>
        <screen><![CDATA[allow-hotplug eth0
iface eth0 inet manual
 pre-up /sbin/ifconfig eth0 up
 up ifup ppp0=dsl
 down ifdown ppp0=dsl
 post-down /sbin/ifconfig eth0 down
# The following is used internally only
iface dsl inet ppp
 provider dsl-provider
]]></screen>
        <para/>
      </section>
      <section>
        <title>The network configuration state of ifupdown</title>
        <para>The <code>/etc/network/run/ifstate</code> file stores the <emphasis role="strong">intended</emphasis> network configuration states for all the currently active network interfaces managed by the <code>ifupdown</code> package are listed. Unfortunately, even if the <code>ifupdown</code> system fails to bring up the interface as intended, the <code>/etc/network/run/ifstate</code> file lists it active. </para>
        <para>The output of the <code>ifconfig</code>(8) command without any arguments or with the interface name as its argument provides the <emphasis role="strong">actual</emphasis> network configuration state.  If the interface does not have the second line as: </para>
        <screen><![CDATA[          inet addr:192.168.11.2  Bcast:192.168.11.255  Mask:255.255.255.0
]]></screen>
        <para>it can not be used as a part of <ulink url="http://en.wikipedia.org/wiki/IPv4">IPV4 network</ulink>. </para>
        <para><inlinemediaobject><imageobject><imagedata width="15" fileref="/htdocs/rightsidebar/img/idea.png" depth="15"/></imageobject><textobject><phrase>(!)</phrase></textobject></inlinemediaobject> For the Ethernet device connected to the PPPoE, the output of the <code>ifconfig</code>(8) command lacks above line. </para>
        <para/>
      </section>
      <section>
        <title>The basic network reconfiguration</title>
        <para>When you try to reconfigure the interface, e.g. <code>eth0</code>, you must disable it first with the "<emphasis role="strong"><code>sudo ifdown eth0</code></emphasis>" command.  This will remove the entry of <code>eth0</code> from the <code>/etc/network/run/ifstate</code> file. (This may result in some error message if <code>eth0</code> is not active or it is configured improperly previously.  So far, it seems to be safe to do this for the simple single user work station at any time.) </para>
        <para>You are now free to rewrite the <emphasis role="strong"><code>/e/n/i</code></emphasis> contents as needed to reconfigure the network interface, <code>eth0</code>. </para>
        <para>Then, you can reactivate <code>eth0</code> with the "<emphasis role="strong"><code>sudo ifup eth0</code></emphasis>" command. </para>
        <para><inlinemediaobject><imageobject><imagedata width="16" fileref="/htdocs/rightsidebar/img/icon-info.png" depth="16"/></imageobject><textobject><phrase>{i}</phrase></textobject></inlinemediaobject> You can (re)initialize the network interface simply by "<emphasis role="strong"><code>sudo ifdown eth0;sudo ifup eth0</code></emphasis>". </para>
        <para/>
      </section>
      <section>
        <title>The ifupdown-extra package</title>
        <para>The <code>ifupdown-extra</code> package provides the easy network connection test for use with the <code>ifupdown</code> package: </para>
        <itemizedlist>
          <listitem>
            <para>the <code>network-test</code>(1) command from the shell, and </para>
          </listitem>
          <listitem>
            <para>the automatic scripts run for each <code>ifup</code> command execution. </para>
          </listitem>
        </itemizedlist>
        <para>The <code>network-test</code> command frees you from the execution of cumbersome low level commands to analyze the network problem. </para>
        <para>The automatic scripts are installed in <code>/etc/network/*/</code> and: </para>
        <itemizedlist>
          <listitem>check the network cable connection, </listitem>
          <listitem>check duplicate use of IP address, </listitem>
          <listitem>
            <para>setup system's static routes based on the <code>/etc/network/routes</code> definition, </para>
          </listitem>
          <listitem>check if network gateway is reachable, and </listitem>
          <listitem>
            <para>record results in the <code>/var/log/syslog</code> file. </para>
          </listitem>
        </itemizedlist>
        <para>This syslog record is quite useful for administration of the network problem on the remote system. </para>
        <para><inlinemediaobject><imageobject><imagedata width="16" fileref="/htdocs/rightsidebar/img/icon-info.png" depth="16"/></imageobject><textobject><phrase>{i}</phrase></textobject></inlinemediaobject> The automatic behavior of the <code>ifupdown-extra</code> package is configurable with the <code>/etc/default/network-test</code> . Some of these automatic checks slow down the system bootup a little bit since it takes some time to listen for <ulink url="http://en.wikipedia.org/wiki/Address_Resolution_Protocol">ARP</ulink> replies. </para>
        <para/>
      </section>
    </section>
    <section>
      <title>The advanced network configuration with ifupdown</title>
      <para>The functionality of the <code>ifupdown</code> package can be improved beyond what was described in @{@thebasicnetworkctionwithifupdown@}@ with the advanced knowledge.   </para>
      <para>The functionalities described here are completely optional.  I, being lazy and minimalist, rarely bother to use these. </para>
      <para><inlinemediaobject><imageobject><imagedata width="15" fileref="/htdocs/rightsidebar/img/attention.png" depth="15"/></imageobject><textobject><phrase>&lt;!&gt;</phrase></textobject></inlinemediaobject> If you could not set up network connection by information in @{@thebasicnetworkctionwithifupdown@}@, you will make situation worse by using information below. </para>
      <para/>
      <section>
        <title>The ifplugd</title>
        <para>The <code>ifplugd</code> package is older automatic network configuration tool which can manage only Ethernet connections. This solves unplugged/replugged Ethernet cable issues for mobile PC etc..   If you have <ulink url="http://en.wikipedia.org/wiki/NetworkManager">NetworkManager</ulink> or <ulink url="http://en.wikipedia.org/wiki/Wicd_(Linux_Network_Manager)">Wicd</ulink> (see @{@automaticnetworkconfiguration@}@) installled, you do not need this package. </para>
        <para>This package runs <ulink url="http://en.wikipedia.org/wiki/Daemon_(computer_software)">daemon</ulink> and replaces <emphasis role="strong">auto</emphasis> or <emphasis role="strong">allow-hotplug</emphasis> functionalities (see @{@listofstanzasineni@}@) and starts interfaces upon their connection to the network.   </para>
        <para>Here is how to use the <code>ifplugd</code> package for the internal Ethernet port, e.g. <code>eth0</code>: </para>
        <itemizedlist>
          <listitem>
            <para>Remove stanza in <emphasis role="strong"><code>/e/n/i</code></emphasis>: "<code>auto eth0</code>" or "<code>allow-hotplug eth0</code>", </para>
          </listitem>
          <listitem>
            <para>Keep stanza in <emphasis role="strong"><code>/e/n/i</code></emphasis>: "<code>iface eth0 inet ...</code>" and "<code>mapping ...</code>", </para>
          </listitem>
          <listitem>
            <para>Install the <code>ifplugd</code> package, </para>
          </listitem>
          <listitem>
            <para>Run "<code>sudo dpkg-reconfigure ifplugd</code>", and </para>
          </listitem>
          <listitem>
            <para>Put <code>eth0</code> as the "static interfaces to be watched by ifplugd". </para>
          </listitem>
        </itemizedlist>
        <para>Now, the network reconfiguration works as you desire: </para>
        <itemizedlist>
          <listitem>Upon power-on or upon hardware discovery, the interface is not brought up by itself. <itemizedlist><listitem>Quick boot process without the long DHCP timeout. </listitem><listitem>No funny activated interface without proper IPv4 address (see @{@thenetworkconfignstateofifupdown@}@). </listitem></itemizedlist></listitem>
          <listitem>Upon finding the Ethernet cable, the interface is brought up.  </listitem>
          <listitem>Upon some time after unplugging the Ethernet cable, the interface is brought down automatically.   </listitem>
          <listitem>Upon plugging in another Ethernet cable, the interface will be brought up under the new network environment. </listitem>
        </itemizedlist>
        <para><inlinemediaobject><imageobject><imagedata width="16" fileref="/htdocs/rightsidebar/img/icon-info.png" depth="16"/></imageobject><textobject><phrase>{i}</phrase></textobject></inlinemediaobject> The arguments for the <code>ifplugd</code>(8) command can set its behaviors such as the delay for reconfiguring interfaces. </para>
        <para/>
        <para/>
        <para/>
      </section>
      <section>
        <title>The ifmetric</title>
        <para>The <code>ifmeric</code> package enables us to manipulate metrics of routes a posteriori even for DHCP. </para>
        <para>The following will set the <code>eth0</code> interface preferred over the <code>wlan0</code> interface: </para>
        <itemizedlist>
          <listitem>
            <para>Install the <code>ifmetric</code> package, and </para>
          </listitem>
          <listitem>
            <para>Add an option line with "<code>metric 0</code>" just below the "<code>iface eth0 inet dhcp</code>" line. </para>
          </listitem>
          <listitem>
            <para>Add an option line with "<code>metric 1</code>" just below the "<code>iface wlan0 inet dhcp</code>" line. </para>
          </listitem>
        </itemizedlist>
        <para>The metric 0 means the highest priority route and is the default one.  The larger metric value means lower priority routes. The IP address of the active interface with the lowest metric value becomes the originating one. See <code>ifmetric</code>(8). </para>
        <para/>
      </section>
      <section>
        <title>The virtual interface</title>
        <para>A single physical Ethernet interface can be configured as multiple virtual interfaces with different IP addresses.  Usually the purpose is to connect an interface to several IP subnetworks.  For example, IP address based virtual web hosting by a single network interface is one such application. </para>
        <para>For example, let's suppose that </para>
        <itemizedlist>
          <listitem>a single Ethernet interface on your host is connected to a Ethernet hub (not to the broadband router), </listitem>
          <listitem>the Ethernet hub is connected to both the Internet and LAN network, </listitem>
          <listitem>the Internet and LAN network by a single Ethernet interface with the Ethernet hub, </listitem>
          <listitem>
            <para>the LAN network uses subnet <code>192.168.0.x/24</code>, </para>
          </listitem>
          <listitem>
            <para>your host uses DHCP served IP address with the physical interface <code>eth0</code> for the Internet, and </para>
          </listitem>
          <listitem>
            <para>your host uses <code>192.168.0.1</code> with the virtual interface <code>eth0:0</code> for the LAN, </para>
          </listitem>
        </itemizedlist>
        <para>then following stanzas in <emphasis role="strong"><code>/e/n/i</code></emphasis> will configure your network: </para>
        <screen><![CDATA[iface eth0 inet dhcp
 metric 0
iface eth0:0 inet static
 address 192.168.0.1
 netmask 255.255.255.0
 network 192.168.0.0
 broadcast 192.168.0.255
 metric 1
]]></screen>
        <para><inlinemediaobject><imageobject><imagedata width="15" fileref="/htdocs/rightsidebar/img/attention.png" depth="15"/></imageobject><textobject><phrase>&lt;!&gt;</phrase></textobject></inlinemediaobject> Although this configuration example with <ulink url="http://en.wikipedia.org/wiki/Network_address_translation">network address translation (NAT)</ulink> using <ulink url="http://en.wikipedia.org/wiki/Netfilter">netfilter/iptables</ulink> (see @{@netfilter@}@) can provide cheap router for the LAN with only single interface, there is no real firewall capability with such set up.  You should use 2 physical interfaces with NAT to secure the local network from Internet. </para>
        <para/>
      </section>
      <section>
        <title>The advanced command syntax</title>
        <para>The <code>ifupdown</code> package offers advanced network configuration using the  <emphasis role="strong">network configuration</emphasis> name and the <emphasis role="strong">network interface</emphasis> name.  I use slightly different terminology from one used in the manpage of <code>ifup</code>(8) and <code>interfaces</code>(5). </para>
        <table>
          <caption/>
          <tgroup cols="4">
            <colspec colname="xxx1"/>
            <colspec colname="xxx2"/>
            <colspec colname="xxx3"/>
            <colspec colname="xxx4"/>
            <tbody>
              <row>
                <entry>
                  <para> List of terminology for network devices. </para>
                </entry>
                <entry>
                  <para> </para>
                </entry>
                <entry>
                  <para> </para>
                </entry>
                <entry>
                  <para> </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <emphasis role="strong">manpage terminology</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">my terminology</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">explanation</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">examples in the following text</emphasis>
                  </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para><emphasis role="strong">physical interface</emphasis> name </para>
                </entry>
                <entry>
                  <para><emphasis role="strong">network interface</emphasis> name </para>
                </entry>
                <entry>
                  <para> A name given by the Linux kernel (using <code>udev</code> mechanism). </para>
                </entry>
                <entry>
                  <para><code>lo</code>, <code>eth0</code>, <code>&lt;interface_name&gt;</code></para>
                </entry>
              </row>
              <row>
                <entry>
                  <para><emphasis role="strong">logical interface</emphasis> name </para>
                </entry>
                <entry>
                  <para><emphasis role="strong">network configuration</emphasis> name </para>
                </entry>
                <entry>
                  <para> A name token following <emphasis role="strong"><code>iface</code></emphasis> in the <emphasis role="strong"><code>/e/n/i</code></emphasis>. </para>
                </entry>
                <entry>
                  <para><code>config1</code>, <code>config2</code>, <code>&lt;config_name&gt;</code></para>
                </entry>
              </row>
            </tbody>
          </tgroup>
        </table>
        <para>Basic network configuration commands in @{@thebasicsyntaxofetworkinterfaces@}@ require the <emphasis role="strong">network configuration</emphasis> name token of the <emphasis role="strong"><code>iface</code></emphasis> stanza to match the <emphasis role="strong">network interface</emphasis> name in the <emphasis role="strong"><code>/e/n/i</code></emphasis>. </para>
        <para>Advanced network configuration commands enables separation of the <emphasis role="strong">network configuration</emphasis> name and the <emphasis role="strong">network interface</emphasis> name in the <emphasis role="strong"><code>/e/n/i</code></emphasis>: </para>
        <table>
          <caption/>
          <tgroup cols="2">
            <colspec colname="xxx1"/>
            <colspec colname="xxx2"/>
            <tbody>
              <row>
                <entry>
                  <para> List of advanced network configuration commands with ifupdown. </para>
                </entry>
                <entry>
                  <para> </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <emphasis role="strong">command</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">action</emphasis>
                  </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>ifup eth0=config1</code>
                  </para>
                </entry>
                <entry>
                  <para> To bring up a network interface <code>eth0</code> with the configuration <code>config1</code>. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>ifdown eth0=config1</code>
                  </para>
                </entry>
                <entry>
                  <para> To bring down a network interface <code>eth0</code> with the configuration <code>config1</code>. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>ifup eth0</code>
                  </para>
                </entry>
                <entry>
                  <para> To bring up a network interface <code>eth0</code> with the configuration selected by <emphasis role="strong"><code>mapping</code></emphasis> stanza. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>ifdown eth0</code>
                  </para>
                </entry>
                <entry>
                  <para> To bring down a network interface <code>eth0</code> with the configuration selected by <emphasis role="strong"><code>mapping</code></emphasis> stanza. </para>
                </entry>
              </row>
            </tbody>
          </tgroup>
        </table>
        <para/>
      </section>
      <section>
        <title>The mapping stanza</title>
        <para>We skipped explaining the <emphasis role="strong"><code>mapping</code></emphasis> stanza in the <emphasis role="strong"><code>/e/n/i</code></emphasis> in @{@thebasicsyntaxofetworkinterfaces@}@ to avoid complication.  This stanza has the following syntax: </para>
        <screen><![CDATA[mapping <interface_name_glob>
 script <script_name>
 map <script_input1>
 map <script_input2>
 map ...
]]></screen>
        <para>This provides advanced feature to the <emphasis role="strong"><code>/e/n/i</code></emphasis> file by automating the choice of the configuration with the mapping script specified by <code>&lt;script_name&gt;</code>. </para>
        <para>When the "<code>&lt;interface_name_glob&gt;</code>" matches "<code>eth0</code>", the execution of </para>
        <screen><![CDATA[$ sudo ifup eth0
]]></screen>
        <para>will produce the execution of: </para>
        <para/>
        <para/>
        <screen><![CDATA[$ sudo ifup eth0=$(echo -e '<script_input1> \n <script_input2> \n ...' | <script_name> eth0)
]]></screen>
        <para>to configure <code>eth0</code> automatically. Here, lines with "<code>map</code>" are optional and can be repeated. </para>
        <para><inlinemediaobject><imageobject><imagedata width="15" fileref="/htdocs/rightsidebar/img/idea.png" depth="15"/></imageobject><textobject><phrase>(!)</phrase></textobject></inlinemediaobject> The glob for <emphasis role="strong"><code>mapping</code></emphasis> stanza works like shell file name glob. </para>
        <para/>
      </section>
      <section>
        <title>The manually switchable network configuration</title>
        <para>Here is how to switch manually among several network configurations without rewriting the <emphasis role="strong"><code>/e/n/i</code></emphasis> file as in @{@thebasicnetworkreconfiguration@}@ . </para>
        <para>For all the network configuration you need to access, you create a single <emphasis role="strong"><code>/e/n/i</code></emphasis> file, e.g,: </para>
        <screen><![CDATA[auto lo
iface lo inet loopback

iface config1 inet dhcp
 hostname "mymachine"

iface config2 inet static
 address 192.168.11.100
 netmask 255.255.255.0
 broadcast 192.168.11.255
 gateway 192.168.11.1
 dns-domain lan
 dns-nameservers 192.168.11.1

iface pppoe inet manual
 pre-up /sbin/ifconfig eth0 up
 up ifup ppp0=dsl
 down ifdown ppp0=dsl
 post-down /sbin/ifconfig eth0 down

# The following is used internally only
iface dsl inet ppp
 provider dsl-provider

iface pots inet ppp
 provider provider
]]></screen>
        <para>Please note the <emphasis role="strong">network configuration name</emphasis> which is the token after <emphasis role="strong"><code>iface</code></emphasis> does not use the token for the <emphasis role="strong">network interface name</emphasis>.  Also, there are no <emphasis role="strong"><code>auto</code></emphasis> stanza nor <emphasis role="strong"><code>allow-hotplug</code></emphasis> stanza to start the network interface <code>eth0</code> automatically upon events. </para>
        <para>Now you are ready to switch the network configuration. </para>
        <para>Let's move your PC to a LAN served by the DHCP.  You bring up the <emphasis role="strong">network interface</emphasis> (the physical interface) <code>eth0</code> by assigning  the <emphasis role="strong">network configuration</emphasis> name (the logical interface name) <code>config1</code> to it: </para>
        <screen><![CDATA[$ sudo ifup eth0=config1
Password:
...
]]></screen>
        <para>The interface <code>eth0</code> is up, configured by DHCP and connected to LAN. </para>
        <screen><![CDATA[$ sudo ifdown eth0=config1
...
]]></screen>
        <para>The interface <code>eth0</code> is down and disconnected from LAN. </para>
        <para>Let's move your PC to a LAN served by the static IP.  You bring up the <emphasis role="strong">network interface</emphasis> <code>eth0</code> by assigning the <emphasis role="strong">network configuration</emphasis> name <code>config2</code> to it: </para>
        <screen><![CDATA[$ sudo ifup eth0=config2
...
]]></screen>
        <para>The interface <code>eth0</code> is up, configured with static IP and connected to LAN. The additional parameters given as <code>dns-*</code> configures <code>/etc/resolv.conf</code> contents.  This <code>/etc/resolv.conf</code> is better manged if the <code>resolvconf</code> package is installed. </para>
        <screen><![CDATA[$ sudo ifdown eth0=config2
...
]]></screen>
        <para>The interface <code>eth0</code> is down and disconnected from LAN, again. </para>
        <para>Let's move your PC directly connected to BB-modem connected to the PPPoE served service.  You bring up the <emphasis role="strong">network interface</emphasis> <code>eth0</code> by assigning the <emphasis role="strong">network configuration</emphasis> name <code>pppoe</code> to it: </para>
        <screen><![CDATA[$ sudo ifup eth0=pppoe
...
]]></screen>
        <para>The interface <code>eth0</code> is up, configured with PPPoE connection directly to the ISP. </para>
        <screen><![CDATA[$ sudo ifdown eth0=pppoe
...
]]></screen>
        <para>The interface <code>eth0</code> is down and disconnected, again. </para>
        <para>Let's move your PC to a location without LAN or BB-modem but with POTS and modem.  You bring up the <emphasis role="strong">network interface</emphasis> <code>ppp0</code> by assigning the <emphasis role="strong">network configuration</emphasis> name <code>pots</code> to it: </para>
        <screen><![CDATA[$ sudo ifup ppp0=pots
...
]]></screen>
        <para>The interface <code>ppp0</code> is up and connected to the Internet with PPP. </para>
        <screen><![CDATA[$ sudo ifdown ppp0=pots
...
]]></screen>
        <para>The interface <code>ppp0</code> is down and disconnected from the Internet. </para>
        <para>You should check the <code>/etc/network/run/ifstate</code> file for the current network configuration state of the <code>ifupdown</code> system. </para>
        <para><inlinemediaobject><imageobject><imagedata width="15" fileref="/htdocs/rightsidebar/img/alert.png" depth="15"/></imageobject><textobject><phrase>/!\</phrase></textobject></inlinemediaobject> You may need to adjust numbers at the end of <code>eth*</code>, <code>ppp*</code>, etc. if you have multiple network interfaces. </para>
        <para/>
      </section>
      <section>
        <title>Scripting with the ifupdown</title>
        <para>The <code>ifupdown</code> system automatically runs scripts installed in <code>/etc/network/*/</code> while exporting  environment variables to scripts: </para>
        <table>
          <caption/>
          <tgroup cols="1">
            <colspec colname="xxx1"/>
            <tbody>
              <row>
                <entry>
                  <para> List of environment variables passed by the ifupdown system </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <emphasis role="strong">environment variable</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">value passed</emphasis>
                  </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>IFACE</code>
                  </para>
                </entry>
                <entry>
                  <para> physical name (interface name) of the interface being processed. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>LOGICAL</code>
                  </para>
                </entry>
                <entry>
                  <para> logical name (configuration name) of the interface being processed. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>ADDRFAM</code>
                  </para>
                </entry>
                <entry>
                  <para> address family of the interface. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>METHOD</code>
                  </para>
                </entry>
                <entry>
                  <para> method of the interface. (e.g., "static") </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>MODE</code>
                  </para>
                </entry>
                <entry>
                  <para> "start" if run from <code>ifup</code>, "stop" if run from <code>ifdown</code>. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>PHASE</code>
                  </para>
                </entry>
                <entry>
                  <para> as per MODE, but with finer granularity, distinguishing the pre-up, post-up, pre-down and post-down phases. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>VERBOSITY</code>
                  </para>
                </entry>
                <entry>
                  <para> indicates whether "<code>--verbose</code>" was used; set to 1 if so, 0 if not. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>PATH</code>
                  </para>
                </entry>
                <entry>
                  <para> the command search path: <code>/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin</code> </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>IF_&lt;OPTION&gt;</code>
                  </para>
                </entry>
                <entry>
                  <para> the value for the corresponding option under the <emphasis role="strong"><code>iface</code></emphasis> stanza. </para>
                </entry>
              </row>
            </tbody>
          </tgroup>
        </table>
        <para>Here, each environment variable name, <code>IF_&lt;OPTION&gt;</code>, is created from the name for the corresponding option by prepending "<code>IF_</code>", converting the case to the upper case, replacing hyphens to underscores, and discarding non-alphanumeric characters.   </para>
        <para>The <code>ifupdown-extra</code> package (see @{@theifupdownextrapackage@}@) uses these environment variables to extend the functionality of the <code>ifupdown</code> package.  The <code>ifmetric</code> package (see @{@theifmetric@}@) installs the <code>/etc/network/if-up.d/ifmetric</code> script which sets the metric via the <code>IF_METRIC</code> variable.  The <code>guessnet</code> package (see @{@mappingwithguessnet@}@), which provides simple and powerful framework for the auto-selection of the network configuration via the mapping mechanism, also uses these. </para>
        <para><inlinemediaobject><imageobject><imagedata width="15" fileref="/htdocs/rightsidebar/img/idea.png" depth="15"/></imageobject><textobject><phrase>(!)</phrase></textobject></inlinemediaobject> For more specific examples of custom network configuration scripts using these environment variables, you should check example scripts in <code>/usr/share/doc/ifupdown/examples/*</code> and scripts used in the <code>ifscheme</code> and <code>ifupdown-scripts-zg2</code> packages.  These additional scripts have some overlaps of functinalities with the basic <code>ifupdown-extra</code> and <code>guessnet</code> packages.  If you install these additional scripts, you should customize these scripts to avoid interferences. </para>
        <para/>
      </section>
      <section>
        <title>Mapping with guessnet</title>
        <para>Instead of manually choosing configuration as described in @{@themanuallyswitcorkconfiguration@}@, you can use the mapping mechanism described in @{@themappingstanza@}@ to select network configuration automatically with custom scripts. </para>
        <para>The <code>guessnet-ifupdown</code>(8) command provided by the <code>guessnet</code> package is designed to be used as a mapping script and provides powerful framework to enhance the <code>ifupdown</code> system. </para>
        <itemizedlist>
          <listitem>
            <para>you list test condition as the value for <emphasis role="strong"><code>guessnet</code></emphasis> options for each network configuration under <emphasis role="strong"><code>iface</code></emphasis> stanza. </para>
          </listitem>
          <listitem>
            <para>mapping will chose the <emphasis role="strong"><code>iface</code></emphasis> with first non-ERROR result as the network configuration. </para>
          </listitem>
        </itemizedlist>
        <para>This dual usage of the <emphasis role="strong"><code>/e/n/i</code></emphasis> file by the mapping script, <code>guessnet-ifupdown</code>, and the original network configuration infrastructure, <code>ifupdown</code>, does not cause negative impacts since <emphasis role="strong"><code>guessnet</code></emphasis> options only export extra environment variables to scripts run by the <code>ifupdown</code> system.  See details in <code>guessnet-ifupdown</code>(8). </para>
        <para><inlinemediaobject><imageobject><imagedata width="15" fileref="/htdocs/rightsidebar/img/idea.png" depth="15"/></imageobject><textobject><phrase>(!)</phrase></textobject></inlinemediaobject> When multiple <emphasis role="strong"><code>guessnet</code></emphasis> option lines are required in <emphasis role="strong"><code>/e/n/i</code></emphasis>, use option lines started with <emphasis role="strong"><code>guessnet1</code></emphasis>, <emphasis role="strong"><code>guessnet2</code></emphasis>, and so on, since the <code>ifupdown</code> package does not allow starting strings of option lines to be repeated. </para>
        <para/>
      </section>
    </section>
    <section>
      <title>The network configuration for desktop</title>
      <para/>
      <section>
        <title>Automatic network configuration</title>
        <para>There are independent automatic network configuration tools, such as  <ulink url="http://en.wikipedia.org/wiki/NetworkManager">NetworkManager (NM)</ulink> (<code>network-manager</code> and associated packages) and <ulink url="http://en.wikipedia.org/wiki/Wicd_(Linux_Network_Manager)">Wicd</ulink> (<code>wicd</code> package) which manage network connection via <ulink url="http://en.wikipedia.org/wiki/Daemon_(computer_software)">daemon</ulink> independen of the <code>ifupdown</code> package. They allow easy management of wireless connections with nice GUI user interfaces. </para>
        <para><inlinemediaobject><imageobject><imagedata width="15" fileref="/htdocs/rightsidebar/img/attention.png" depth="15"/></imageobject><textobject><phrase>&lt;!&gt;</phrase></textobject></inlinemediaobject> These automatic network configuration tools are aimed primarily for mobile desktop users on laptops and is not intended for usage on servers. </para>
        <para>The configuration of NM is described in <code>/usr/share/doc/network-manager/README.Debian</code>.  Essentially: </para>
        <orderedlist numeration="arabic">
          <listitem>
            <para>Make desktop user, e.g. <code>foo</code>, belong to group "<code>netdev</code>". </para>
            <itemizedlist>
              <listitem>
                <para>"<code>sudo adduser foo netdev</code>" </para>
              </listitem>
            </itemizedlist>
          </listitem>
          <listitem>
            <para>Keep configuration of <emphasis role="strong"><code>/e/n/i</code></emphasis> as simple as: </para>
            <screen><![CDATA[auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
]]></screen>
          </listitem>
          <listitem>Restart NM. <itemizedlist><listitem><para>"<code>sudo /etc/init.d/network-manager restart</code>" </para></listitem></itemizedlist></listitem>
        </orderedlist>
        <para><inlinemediaobject><imageobject><imagedata width="15" fileref="/htdocs/rightsidebar/img/idea.png" depth="15"/></imageobject><textobject><phrase>(!)</phrase></textobject></inlinemediaobject> Only interfaces which are <emphasis role="strong">not</emphasis> listed in <emphasis role="strong"><code>/e/n/i</code></emphasis> or which have been configured with "<code>auto ...</code>" or "<code>allow-hotplug ...</code>" and "<code>iface ... inet dhcp</code>" (with no other options) are managed by NM to avoid conflict with <code>ifupdown</code>. </para>
        <para><inlinemediaobject><imageobject><imagedata width="15" fileref="/htdocs/rightsidebar/img/attention.png" depth="15"/></imageobject><textobject><phrase>&lt;!&gt;</phrase></textobject></inlinemediaobject> NM may not be compatible with esoteric configurations of <code>ifupdown</code> in <emphasis role="strong"><code>/e/n/i</code></emphasis> such as ones described below.  Having even "<code>hostname</code>" stanza for DHCP controlled interface as described in @{@thenetworkinterfaceservedbythedhcp@}@ caused NM to ignore such interface in <code>lenny</code>. Check <ulink url="http://bugs.debian.org/cgi-bin/pkgreport.cgi?package=network-manager">BTS of network-manager</ulink> for current issues and limitations of NM. </para>
        <para>The configuration of <ulink url="http://en.wikipedia.org/wiki/Wicd_(Linux_Network_Manager)">Wicd</ulink> is described in <code>/usr/share/doc/wicd/README.Debian</code>.  Essentially: </para>
        <orderedlist numeration="arabic">
          <listitem>
            <para>Make configuration in <emphasis role="strong"><code>/e/n/i</code></emphasis> only as: </para>
            <screen><![CDATA[auto lo
iface lo inet loopback
]]></screen>
          </listitem>
        </orderedlist>
        <para/>
      </section>
      <section>
        <title>GUI network configuration tools</title>
        <para>The capability of default GUI network configuration tools for each desktop tends to be limited to basic configurations such as static IP or DHCP.  They actually overwrite contents of <emphasis role="strong"><code>/e/n/i</code></emphasis> file behind you. Please check how they change <emphasis role="strong">e/n/i</emphasis> file by yourself. </para>
        <para><inlinemediaobject><imageobject><imagedata width="15" fileref="/htdocs/rightsidebar/img/attention.png" depth="15"/></imageobject><textobject><phrase>&lt;!&gt;</phrase></textobject></inlinemediaobject> They may not understand complicated advanced configuration done manually in <emphasis role="strong"><code>/e/n/i</code></emphasis> file. </para>
        <para/>
      </section>
    </section>
    <section>
      <title>The low level network configuration</title>
      <para/>
      <section>
        <title>Iproute2 commands</title>
        <para><ulink url="http://www.linuxfoundation.org/en/Net:Iproute2">Iproute2</ulink> commands offer complete low-level network configuration capabilities. Here is a translation table from obsolete <ulink url="http://www.linuxfoundation.org/en/Net:Net-tools">net-tools</ulink> commands to new <ulink url="http://www.linuxfoundation.org/en/Net:Iproute2">iproute2</ulink> commands. </para>
        <table>
          <caption/>
          <tgroup cols="1">
            <colspec colname="xxx1"/>
            <tbody>
              <row>
                <entry>
                  <para> Translation table from obsolete <code>net-tools</code> commands to new <code>iproute2</code> commands. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <emphasis role="strong">net-tools</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">iproute2</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">manipulation</emphasis>
                  </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para><code>arp</code>(8) </para>
                </entry>
                <entry>
                  <para>
                    <code>ip neigh</code>
                  </para>
                </entry>
                <entry>
                  <para> ARP or NDISC cache entry. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para><code>ifconfig</code>(8) </para>
                </entry>
                <entry>
                  <para>
                    <code>ip addr</code>
                  </para>
                </entry>
                <entry>
                  <para> protocol (IP or IPv6) address on a device. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>ipmaddr</code>
                  </para>
                </entry>
                <entry>
                  <para>
                    <code>ip maddr</code>
                  </para>
                </entry>
                <entry>
                  <para> multicast address. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <code>iptunnel</code>
                  </para>
                </entry>
                <entry>
                  <para>
                    <code>ip tunnel</code>
                  </para>
                </entry>
                <entry>
                  <para> tunnel over IP. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para><code>route</code>(8) </para>
                </entry>
                <entry>
                  <para>
                    <code>ip route</code>
                  </para>
                </entry>
                <entry>
                  <para> routing table entry. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para><code>nameif</code>(8) </para>
                </entry>
                <entry>
                  <para><code>ifrename</code>(8) </para>
                </entry>
                <entry>
                  <para> name network interfaces based on MAC addresses. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para><code>mii-tool</code>(8) </para>
                </entry>
                <entry>
                  <para><code>ethtool</code>(8) </para>
                </entry>
                <entry>
                  <para> Ethernet device settings. </para>
                </entry>
              </row>
            </tbody>
          </tgroup>
        </table>
        <para>See <code>ip</code>(8) and <ulink url="http://www.policyrouting.org/iproute2.doc.html">IPROUTE2 Utility Suite Howto</ulink>. </para>
        <para/>
      </section>
      <section>
        <title>Safe lower level network operations</title>
        <para>You may use the lower level network commands as follows safely since they do not change network configuration: </para>
        <table>
          <caption/>
          <tgroup cols="2">
            <colspec colname="xxx1"/>
            <colspec colname="xxx2"/>
            <tbody>
              <row>
                <entry>
                  <para> List of lower level network commands. </para>
                </entry>
                <entry>
                  <para> </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <emphasis role="strong">command</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">effects</emphasis>
                  </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> "<code>ifconfig</code>" without arguments </para>
                </entry>
                <entry>
                  <para> displays the status of active interfaces (IPv4) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> "<code>route -n</code>" </para>
                </entry>
                <entry>
                  <para> display all the routing table in numerical addresses (IPv4) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> "<code>arp</code>" without arguments </para>
                </entry>
                <entry>
                  <para> displays the current content of the <ulink url="http://en.wikipedia.org/wiki/Address_Resolution_Protocol">ARP</ulink> cache tables (IPv4) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> "<code>ip link show</code>" </para>
                </entry>
                <entry>
                  <para> displays the link status of active interfaces (IPv4/v6) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> "<code>ip addr show</code>" </para>
                </entry>
                <entry>
                  <para> displays the link and address status of active interfaces (IPv4/v6) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> "<code>ip route show</code>" </para>
                </entry>
                <entry>
                  <para> displays the routing table (IPv4/v6) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> "<code>ip neigh</code>" </para>
                </entry>
                <entry>
                  <para> displays the current content of the <ulink url="http://en.wikipedia.org/wiki/Address_Resolution_Protocol">ARP</ulink> cache tables (IPv4/v6) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> "<code>plog</code>" </para>
                </entry>
                <entry>
                  <para> display ppp daemon log </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> "<code>ping yahoo.com</code>" </para>
                </entry>
                <entry>
                  <para> check Internet connection to yahoo.com </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> "<code>whois yahoo.com</code>" </para>
                </entry>
                <entry>
                  <para> check who registered yahoo.com in the domains database </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> "<code>tracepath yahoo.com</code>" </para>
                </entry>
                <entry>
                  <para> trace Internet connection to <code>yahoo.com</code> </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> "<code>traceroute yahoo.com</code>" </para>
                </entry>
                <entry>
                  <para> trace Internet connection to <code>yahoo.com</code> </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> "<code>dig [@dns-server.com] example.com [{a|mx|any}]</code>" </para>
                </entry>
                <entry>
                  <para> check example.com DNS records by <code>dns-server.com</code> for a {a|mx|any} record </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> "<code>iptables -L -n</code>" </para>
                </entry>
                <entry>
                  <para> check packet filter </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> "<code>netstat -a</code>" </para>
                </entry>
                <entry>
                  <para> find all open ports </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> "<code>netstat -l --inet</code>" </para>
                </entry>
                <entry>
                  <para> find listening ports </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> "<code>netstat -ln --tcp</code>" </para>
                </entry>
                <entry>
                  <para> find listening TCP ports (numeric) </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> "<code>dlint example.com</code>" </para>
                </entry>
                <entry>
                  <para> check DNS zone information of <code>examle.org</code> </para>
                </entry>
              </row>
            </tbody>
          </tgroup>
        </table>
        <para><inlinemediaobject><imageobject><imagedata width="16" fileref="/htdocs/rightsidebar/img/icon-info.png" depth="16"/></imageobject><textobject><phrase>{i}</phrase></textobject></inlinemediaobject> Some of these lower level network configuration tools reside in <code>/sbin/</code>.  You may need to issue full command path such as <code>/sbin/ifconfig</code> or add <code>/sbin</code> to the <code>PATH</code> list in your <code>~/.bashrc</code>. </para>
        <para/>
      </section>
    </section>
    <section>
      <title>Network optimization</title>
      <para>Generic network optimization is beyond the scope of this documentation.  I will touch only subjects pertinent to the consumer grade connection. </para>
      <table>
        <caption/>
        <tgroup cols="4">
          <colspec colname="xxx1"/>
          <colspec colname="xxx2"/>
          <colspec colname="xxx3"/>
          <colspec colname="xxx4"/>
          <tbody>
            <row>
              <entry>
                <para> List of network optimization tools. </para>
              </entry>
              <entry>
                <para> 1 </para>
              </entry>
              <entry>
                <para> 2 </para>
              </entry>
              <entry>
                <para> 3 </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <emphasis role="strong">packages</emphasis>
                </para>
              </entry>
              <entry>
                <para>
                  <emphasis role="strong">popcon</emphasis>
                </para>
              </entry>
              <entry>
                <para>
                  <emphasis role="strong">size</emphasis>
                </para>
              </entry>
              <entry>
                <para>
                  <emphasis role="strong">description</emphasis>
                </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <code>iftop</code>
                </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> displays bandwidth usage information on an network interface </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <code>iperf</code>
                </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> Internet Protocol bandwidth measuring tool </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <code>apt-spy</code>
                </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> writes a sources.list file based on bandwidth tests </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <code>ifstat</code>
                </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para><ulink url="/InterFace">InterFace</ulink> STATistics Monitoring </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <code>bmon</code>
                </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> portable bandwidth monitor and rate estimator </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <code>ethstatus</code>
                </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> script that quickly measures network device throughput </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <code>bing</code>
                </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> Empirical stochastic bandwidth tester </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <code>bwm-ng</code>
                </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> small and simple console-based bandwidth monitor </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <code>ethstats</code>
                </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> console-based Ethernet statistics monitor </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <code>ipfm</code>
                </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> a bandwidth analysis tool </para>
              </entry>
            </row>
          </tbody>
        </tgroup>
      </table>
      <para/>
      <para/>
      <para/>
      <para/>
      <para/>
      <para/>
      <para/>
      <para/>
      <para/>
      <para/>
      <para/>
      <para/>
      <section>
        <title>Finding optimal MTU</title>
        <para>The <ulink url="http://en.wikipedia.org/wiki/Maximum_transmission_unit">Maximum Transmission Unit (MTU)</ulink> value can be determined experimentally with <code>ping</code>(8) with "<code>-M do</code>" option which sends ICMP packets with data size starting from 1500 (with offset of 28 bytes for the IP+ICMP header) and finding the largest size without IP fragmentation. For example: </para>
        <screen><![CDATA[$ ping -c 1 -s $((1500-28)) -M do www.debian.org
PING www.debian.org (194.109.137.218) 1472(1500) bytes of data.
From 192.168.11.2 icmp_seq=1 Frag needed and DF set (mtu = 1454)

--- www.debian.org ping statistics ---
0 packets transmitted, 0 received, +1 errors
]]></screen>
        <itemizedlist>
          <listitem>... try 1454 instead of 1500 </listitem>
          <listitem>
            <para>The <code>ping</code>(8) command succeed </para>
          </listitem>
        </itemizedlist>
        <para>This process is <ulink url="http://en.wikipedia.org/wiki/Path_MTU_discovery">Path MTU (PMTU) discovery</ulink> (<ulink url="http://tools.ietf.org/html/rfc1191">RFC1191</ulink>)and the <code>tracepath</code>(8) command can automate this.   </para>
        <para><inlinemediaobject><imageobject><imagedata width="16" fileref="/htdocs/rightsidebar/img/icon-info.png" depth="16"/></imageobject><textobject><phrase>{i}</phrase></textobject></inlinemediaobject> The above example with PMTU value of 1454 is for my previous FTTH provider which used <ulink url="http://en.wikipedia.org/wiki/Asynchronous_Transfer_Mode">Asynchronous Transfer Mode</ulink> (ATM) as its backbone network and served its clients with the <ulink url="http://en.wikipedia.org/wiki/Point-to-Point_Protocol_over_Ethernet">PPPoE</ulink>.  The actual PMTU value depends on your environment, e.g., 1500 for the my new FTTH provider. </para>
        <table>
          <caption/>
          <tgroup cols="3">
            <colspec colname="xxx1"/>
            <colspec colname="xxx2"/>
            <colspec colname="xxx3"/>
            <tbody>
              <row>
                <entry>
                  <para> Basic guide lines of the optimal MTU value </para>
                </entry>
                <entry>
                  <para> </para>
                </entry>
                <entry>
                  <para> </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para>
                    <emphasis role="strong">network environment</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">MTU</emphasis>
                  </para>
                </entry>
                <entry>
                  <para>
                    <emphasis role="strong">rationale</emphasis>
                  </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> Dial-up link (IP: PPP)</para>
                </entry>
                <entry>
                  <para> 576 </para>
                </entry>
                <entry>
                  <para> standard </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> Ethernet link (IP: DHCP or fixed) </para>
                </entry>
                <entry>
                  <para> 1500 </para>
                </entry>
                <entry>
                  <para> standard and default </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> Ethernet link (IP: PPPoE) </para>
                </entry>
                <entry>
                  <para> 1492 (=1500-8) </para>
                </entry>
                <entry>
                  <para> 2 bytes for PPP header and 6 bytes for PPPoE header </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> Ethernet link (ISP's backbone: ATM, IP: DHCP or fixed) </para>
                </entry>
                <entry>
                  <para> 1462 (=48*31-18-8) </para>
                </entry>
                <entry>
                  <para> author's speculation: 18 for Ethernet header, 8 for SAR trailer. </para>
                </entry>
              </row>
              <row>
                <entry>
                  <para> Ethernet link (ISP's backbone: ATM, IP: PPPoE) </para>
                </entry>
                <entry>
                  <para> 1454 (=48*31-8-18-8) </para>
                </entry>
                <entry>
                  <para> see "<ulink url="http://www.mynetwatchman.com/kb/ADSL/pppoemtu.htm">Optimal MTU configuration for PPPoE ADSL Connections</ulink>" for rationale. </para>
                </entry>
              </row>
            </tbody>
          </tgroup>
        </table>
        <para>In addtion to these basic guide lines, you should know: </para>
        <itemizedlist>
          <listitem>
            <para>Any use of tunneling methods (<ulink url="http://en.wikipedia.org/wiki/Virtual_private_network">VPN</ulink> etc.) may reduce optimal MTU further by their overheads. </para>
          </listitem>
          <listitem>The MTU value should not exceed the experimentally determined PMTU value. </listitem>
          <listitem>The bigger MTU value is generally better when other limitations are met. </listitem>
        </itemizedlist>
        <para/>
      </section>
      <section>
        <title>Setting MTU</title>
        <para>Here are examples for setting the MTU value from its default 1500 to 1454. </para>
        <para>For the DHCP (see @{@thenetworkinterfeservedbythedhcp@}@), you can replace pertinent <emphasis role="strong"><code>iface</code></emphasis> stanza lines in the <emphasis role="strong"><code>/e/n/i</code></emphasis> with, e.g.,: </para>
        <screen><![CDATA[iface eth0 inet dhcp
 hostname "mymachine"
 pre-up /sbin/ifconfig $IFACE mtu 1454
]]></screen>
        <para> </para>
        <para>For the static IP (see @{@thenetworkinterfewiththestaticip@}@), you can replace pertinent <emphasis role="strong"><code>iface</code></emphasis> stanza lines in the <emphasis role="strong"><code>/e/n/i</code></emphasis> with, e.g.,: </para>
        <screen><![CDATA[iface eth0 inet static
 address 192.168.11.100
 netmask 255.255.255.0
 broadcast 192.168.11.255
 gateway 192.168.11.1
 mtu 1454
 dns-domain lan
 dns-nameservers 192.168.11.1
]]></screen>
        <para> </para>
        <para>For the direct PPPoE (see @{@thepppoeconnectionwithpppoeconf@}@), you can replace pertinent <emphasis role="strong"><code>mtu</code></emphasis> line in the <code>/etc/ppp/peers/dsl-provider</code> with: </para>
        <screen><![CDATA[mtu 1454
]]></screen>
        <para>The <ulink url="http://en.wikipedia.org/wiki/Maximum_segment_size">maximum segment size</ulink> (MSS) is used as an alternative measure of packet size.  The relationship between MSS and MTU are: </para>
        <itemizedlist>
          <listitem>MSS = MTU - 40 for IPv4 </listitem>
          <listitem>MSS = MTU - 60 for IPv6 </listitem>
        </itemizedlist>
        <para><inlinemediaobject><imageobject><imagedata width="15" fileref="/htdocs/rightsidebar/img/idea.png" depth="15"/></imageobject><textobject><phrase>(!)</phrase></textobject></inlinemediaobject> The <code>iptables</code>(8) (see @{@netfilter@}@) based optimization can clamp packet size by the MSS and is useful for the router. </para>
        <para/>
      </section>
      <section>
        <title>WAN TCP optimization</title>
        <para>The TCP throughput can be maximized by adjusting TCP buffer size parameters as described in "<ulink url="http://dsd.lbl.gov/TCP-tuning/">TCP Tuning Guide</ulink>" and "<ulink url="http://en.wikipedia.org/wiki/TCP_tuning">TCP tuning</ulink>"  for the modern high-bandwidth and high-latency WAN.  So far, the current Debian default settings serve well even for my LAN connected by the fast 100M bps FTTP service. </para>
        <para/>
      </section>
    </section>
    <section>
      <title>Netfilter</title>
      <para><ulink url="http://en.wikipedia.org/wiki/Netfilter">Netfilter</ulink> provides infrastructure for <ulink url="http://en.wikipedia.org/wiki/Stateful_firewall">stateful firewall</ulink> and <ulink url="http://en.wikipedia.org/wiki/Network_address_translation">network address translation (NAT)</ulink> with <ulink url="http://en.wikipedia.org/wiki/Linux_kernel">Linux kernel</ulink> modules (see @{@thekernelmoduleinitialization@}@).   </para>
      <table>
        <caption/>
        <tgroup cols="4">
          <colspec colname="xxx1"/>
          <colspec colname="xxx2"/>
          <colspec colname="xxx3"/>
          <colspec colname="xxx4"/>
          <tbody>
            <row>
              <entry>
                <para> List of firewall tools. </para>
              </entry>
              <entry>
                <para> 1 </para>
              </entry>
              <entry>
                <para> 2 </para>
              </entry>
              <entry>
                <para> 3 </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <emphasis role="strong">packages</emphasis>
                </para>
              </entry>
              <entry>
                <para>
                  <emphasis role="strong">popcon</emphasis>
                </para>
              </entry>
              <entry>
                <para>
                  <emphasis role="strong">size</emphasis>
                </para>
              </entry>
              <entry>
                <para>
                  <emphasis role="strong">description</emphasis>
                </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <code>iptables</code>
                </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> administration tools for <ulink url="http://en.wikipedia.org/wiki/Netfilter">netfilter</ulink> </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <code>iptstate</code>
                </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> Tool to continuously monitor <ulink url="http://en.wikipedia.org/wiki/Netfilter">netfilter</ulink> state. (similar to <code>top</code>(1)) </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <code>shorewall</code>
                </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para><ulink url="http://en.wikipedia.org/wiki/Shorewall">Shoreline Firewall</ulink>, <ulink url="http://en.wikipedia.org/wiki/Netfilter">netfilter</ulink> configuration file generator (recommended for <code>etch</code>) </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <code>shorewall-perl</code>
                </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para><ulink url="http://en.wikipedia.org/wiki/Shorewall">Shoreline Firewall</ulink>, <ulink url="http://en.wikipedia.org/wiki/Netfilter">netfilter</ulink> configuration file generator (Perl-based, recommended for <code>lenny</code>) </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <code>shorewall-shell</code>
                </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para><ulink url="http://en.wikipedia.org/wiki/Shorewall">Shoreline Firewall</ulink>, <ulink url="http://en.wikipedia.org/wiki/Netfilter">netfilter</ulink> configuration file generator (shell-based, alternative for <code>lenny</code>) </para>
              </entry>
            </row>
            <row>
              <entry>
                <para>
                  <code>ipmasq</code>
                </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> - </para>
              </entry>
              <entry>
                <para> Simple set of init script to configure <ulink url="http://en.wikipedia.org/wiki/Netfilter">netfilter</ulink> (old) </para>
              </entry>
            </row>
          </tbody>
        </tgroup>
      </table>
      <para>Main user space program of <ulink url="http://en.wikipedia.org/wiki/Netfilter">netfilter</ulink> is <code>iptables</code>(8).  You can manually configure <ulink url="http://en.wikipedia.org/wiki/Netfilter">netfilter</ulink> interactively from shell, save its state with <code>iptables-save</code>(8), and restore it via init script with <code>iptables-restore</code>(8) upon system reboot. </para>
      <para>Configuration helper scripts such as <ulink url="http://en.wikipedia.org/wiki/Shorewall">shorewall</ulink> ease this process. </para>
      <para>See documentation at <ulink url="http://www.netfilter.org/documentation/">http://www.netfilter.org/documentation/</ulink> (or in <code>/usr/share/doc/iptables/html/</code>):  </para>
      <itemizedlist>
        <listitem>
          <para>
            <ulink url="http://www.netfilter.org/documentation/HOWTO//networking-concepts-HOWTO.html">Linux Networking-concepts HOWTO</ulink>
          </para>
        </listitem>
        <listitem>
          <para>
            <ulink url="http://www.netfilter.org/documentation/HOWTO//packet-filtering-HOWTO.html">Linux 2.4 Packet Filtering HOWTO</ulink>
          </para>
        </listitem>
        <listitem>
          <para>
            <ulink url="http://www.netfilter.org/documentation/HOWTO/NAT-HOWTO.html">Linux 2.4 NAT HOWTO</ulink>
          </para>
        </listitem>
      </itemizedlist>
      <para><inlinemediaobject><imageobject><imagedata width="16" fileref="/htdocs/rightsidebar/img/icon-info.png" depth="16"/></imageobject><textobject><phrase>{i}</phrase></textobject></inlinemediaobject> Although these were written for Linux <emphasis role="strong">2.4</emphasis>, both <code>iptables</code>(8) command and netfilter kernel function apply for current Linux <emphasis role="strong">2.6</emphasis>. </para>
    </section>
  </section>
</article>