1 # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
2 # Also check out /usr/share/doc/ifupdown/examples/network-interfaces.gz
4 # The loopback interface
5 # automatically added when upgrading
14 # iface eth1 inet static
16 # netmask 255.255.255.0
18 # broadcast 192.168.0.255
20 # dns-search foo.example
21 # dns-nameservers 192.168.0.10 192.168.0.20
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
30 # Ad-hoc WLAN Network:
32 # iface eth1 inet static
34 # netmask 255.255.255.0
35 # wireless_mode ad-hoc
36 # wireless_essid foobar
41 # iface eth1 inet dhcp
44 # wireless_key 11111111111111111111111111
45 # wireless_keymode restricted
46 # wireless_keymode open
47 # wireless_mode managed
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
56 # Mapping - bring up via e.g. 'ifup eth0=dhcp':
57 # iface dhcp inet dhcp
59 # Mapping - bring up via e.g. 'ifup -v eth0=home':
61 # iface home inet dhcp
64 # wireless_key 11111111111111111111111111
65 # wireless_keymode restricted
67 # More complex mapping-setup:
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
77 # iface home inet static
78 # address 192.168.0.90
79 # netmask 255.255.255.0
80 # gateway 192.168.0.42
83 # up cp /etc/apt/sources.list.home /etc/apt/sources.list
84 # up cp /etc/resolv.conf.home /etc/resolv.conf
86 # iface spsc inet static
87 # address 129.27.140.238
88 # netmask 255.255.255.0
89 # gateway 129.27.140.1
91 # up cp /etc/apt/sources.list.spsc /etc/apt/sources.list
92 # up cp /etc/resolv.conf.spsc /etc/resolv.conf
94 # iface work inet static
95 # address 192.168.0.90
96 # netmask 255.255.255.0
99 # up cp /etc/resolv.conf.work /etc/resolv.conf
101 # iface dhcp inet dhcp
103 # iface office inet dhcp
104 # up cp /etc/apt/sources.list.office /etc/apt/sources.list
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
111 # netmask 255.255.255.224
113 # dns-nameservers 83.64.208.23
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
121 # iface home inet dhcp
122 # wireless-mode Managed
123 # wireless-essid secret
127 # iface wpa inet dhcp
128 # wpa-conf /etc/wpa_supplicant.conf
130 # iface nat inet static
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
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