Release new version 0.19.7
[grml-etc-core.git] / etc / network / interfaces.examples
1 # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
2 # Also check out /usr/share/doc/ifupdown/examples/network-interfaces.gz
3
4 # The loopback interface
5 # automatically added when upgrading
6 auto lo
7 iface lo inet loopback
8
9 # Sample entries:
10 # ===============
11
12 # static entry:
13 # auto eth1
14 # iface eth1 inet static
15 #        address 192.168.0.1
16 #        netmask 255.255.255.0
17 #        network 192.168.0.0
18 #        broadcast 192.168.0.255
19 #        gateway 192.168.0.1
20 #        dns-search foo.example
21 #        dns-nameservers 192.168.0.10 192.168.0.20
22 #
23 # vconfig:
24 # auto eth0.1
25 # iface eth0.1 inet manual
26 #        pre-up vconfig add eth0.1
27 #        up ifconfig eth0 0.0.0.0 promisc up
28 #        post-down vconfig rem eth0.1
29
30 # Ad-hoc WLAN Network:
31 # auto eth1
32 # iface eth1 inet static
33 #        address 192.168.0.1
34 #        netmask 255.255.255.0
35 #        wireless_mode ad-hoc
36 #        wireless_essid foobar
37 #        wireless_channel 11
38
39 # WLAN:
40 # auto eth1
41 # iface eth1 inet dhcp
42 #        wireless_essid   foo
43 #        wireless_nick    bar
44 #        wireless_key     11111111111111111111111111
45 #        wireless_keymode restricted
46 #        wireless_keymode open
47 #        wireless_mode managed
48
49 # DSL Interface
50 # allow-hotplug dsl
51 # iface dsl inet manual
52 #   up ip link set $IFACE up
53 #   up ip -6 addr flush dev $IFACE || true
54 #   down ip link set $IFACE down
55
56 # Mapping - bring up via e.g. 'ifup eth0=dhcp':
57 # iface dhcp inet dhcp
58
59 # Mapping - bring up via e.g.  'ifup -v eth0=home':
60 # auto eth1
61 # iface home inet dhcp
62 #        wireless_essid   foo
63 #        wireless_nick    bar
64 #        wireless_key     11111111111111111111111111
65 #        wireless_keymode restricted
66
67 # More complex mapping-setup:
68 # auto eth0
69 # mapping eth0
70 #       script /etc/network/ping-places.sh
71 #       map 192.168.0.90/24 192.168.0.42 home
72 #       map 129.27.140.238/24 129.27.140.241 spsc
73 #       map 192.168.0.90/24 192.168.0.100 sevian7
74 #       map 192.168.0.90/24 192.168.0.1 work
75 #       map 195.177.251.50/255.255.255.224 195.177.251.33 office
76 #
77 # iface home inet static
78 #       address 192.168.0.90
79 #       netmask 255.255.255.0
80 #       gateway 192.168.0.42
81 #       mtu 1400
82 #
83 #       up cp /etc/apt/sources.list.home /etc/apt/sources.list
84 #       up cp /etc/resolv.conf.home /etc/resolv.conf
85 #
86 # iface spsc inet static
87 #       address 129.27.140.238
88 #       netmask 255.255.255.0
89 #       gateway 129.27.140.1
90 #
91 #       up cp /etc/apt/sources.list.spsc /etc/apt/sources.list
92 #       up cp /etc/resolv.conf.spsc /etc/resolv.conf
93 #
94 # iface work inet static
95 #       address 192.168.0.90
96 #       netmask 255.255.255.0
97 #       gateway 192.168.0.1
98 #
99 #       up cp /etc/resolv.conf.work /etc/resolv.conf
100 #
101 # iface dhcp inet dhcp
102 #
103 # iface office inet dhcp
104 #       up cp /etc/apt/sources.list.office /etc/apt/sources.list
105 #
106 # iface realraum inet static
107 #      wireless_essid graz.funkfeuer.at
108 #      wireless_ap 08:CA:FF:EE:BA:BE
109 #      wireless-mode Ad-Hoc
110 #      address 10.13.0.13
111 #      netmask 255.255.255.224
112 #      gateway 10.13.0.1
113 #      dns-nameservers 83.64.208.23
114 #
115 ## Madwifi - http://madwifi.org/wiki/UserDocs/Distro/Debian/ConfiguringtheMadWifidevice
116 # iface ath0 inet static
117 #      pre-up wlanconfig ath0 create wlandev wifi0 wlanmode ap
118 #      post-down wlanconfig ath0 destroy
119 #      wireless-essid my-essid
120 #
121 # iface home inet dhcp
122 #      wireless-mode Managed
123 #      wireless-essid secret
124 #      wpa-ssid secret
125 #      wpa-psk secret
126 #
127 # iface wpa inet dhcp
128 #      wpa-conf /etc/wpa_supplicant.conf
129 #
130 # iface nat inet static
131 #      address 10.23.42.1
132 #      netmask 255.255.255.0
133 #      up iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
134 #      up echo "1" > /proc/sys/net/ipv4/ip_forward
135 #
136 # iface oldwpa inet dhcp
137 #      wireless-mode Managed
138 #      wireless-essid mikaasus
139 #      pre-up wpa_supplicant -Dwext -iipw -c/etc/wpa_supplicant.conf -B
140 #      down killall wpa_supplicant
141 #
142 # EOF