Ticket #128: interfaces

File interfaces, 1.5 kB (added by anonymous, 2 years ago)
Line 
1 auto lo
2 iface lo inet loopback
3
4 # LAN ports
5 #auto eth0.0
6 #iface eth0.0 inet static
7 #       switch-ports 1 2 3 4 5*
8 #       address 192.168.1.1
9 #       netmask 255.255.255.0
10
11 # Bridging WLAN<->LAN
12 auto eth0.0
13 iface eth0.0 inet manual
14         switch-ports 1 2 3 4 5*
15
16 auto br0
17 iface br0 inet static
18         bridge-ifaces eth0.0 eth2
19         address 172.16.1.20
20         netmask 255.255.255.128
21         gateway 172.16.1.10
22
23 # WAN port
24 auto eth0.1
25 iface eth0.1 inet dhcp
26         switch-ports 0 5
27
28 # WAN port: PPPoE
29 #auto eth0.1
30 #iface eth0.1 inet manual
31 #       switch-ports 0 5
32 #
33 #auto ppp0
34 #iface ppp0 inet ppp
35 #       use-template dsl
36 #       provider dsl
37 #       ppp-username foo
38 #       ppp-password bar
39 #       ppp-device eth0.1
40
41 # UMTS on WRT54G3G devices
42 #iface umts inet ppp
43 #       use-template umts
44 #       provider umts
45 #       ppp-username ""
46 #       ppp-password ""
47 #       ppp-idletime ""
48 #       ppp-device /dev/noz0
49 #       umts-apn ""
50 #       umts-pincode ""
51 #       umts-mode umts_first
52 # Note:
53 # on WRT54G3G you can enable the "watchbutton" tool which send
54 # hotplug events if you press the UMTS-button.
55 # a default hotplug script will disable/enable the interface on
56 # button-press
57
58 # WLAN
59 #auto eth2
60 #iface eth2 inet static
61 #       address 192.168.10.1
62 #       netmask 255.255.255.0
63 #       up ip link set up dev eth2
64 #       up iwconfig eth2 mode master
65 #       up iwconfig eth2 essid FreeWRT
66 #       up iwconfig eth2 channel 11
67
68 # WLAN with WPA
69 auto eth2
70 iface eth2 inet manual
71 #       address 192.168.10.1
72 #       netmask 255.255.255.0
73         wifi-type brcm
74         wifi-country DE
75         wifi-mode ap
76         wifi-akm psk psk2
77         wifi-crypto tkip
78         wifi-ssid MyNet
79         wifi-wpa_psk MySecretKey
80         wifi-macmode 0
81 #       wifi-mac 00:01:02:03:04:05 06:07:08:09:0a:0b