Magellan Linux

Contents of /trunk/initscripts/common/conf.d/net.sample

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2998 - (show annotations) (download)
Thu Oct 13 15:07:14 2016 UTC (7 years, 6 months ago) by niro
File size: 3786 byte(s)
-make ssid scanning auto configurable and use nl80211 instead of wext as default driver
1 # /etc/conf.d/net.eth0 - example eth0 network device configuration
2 # $Id$
3
4 # Enable this device automatically on system boot.
5 # If set to anything but ?yes? the NIC will be ignored by
6 # the network script and not be brought up.
7 ONBOOT="no"
8
9
10
11
12 # Static networking configuration example:
13 # This method may be used to define ethernet interfaces with
14 # statically allocated IPv4 addresses.
15
16 # NETWORKING defines which method is used [static|dhcp].
17 #NETWORKING="static"
18
19 # IP is required to set the address of the interface.
20 #IP="192.168.0.1"
21
22 # Requiered to configure the netmask.
23 #NETMASK="255.255.255.0"
24
25 # Required to configure the broadcast address.
26 #BROADCAST="192.168.0.255"
27
28 # Adds an Point-to-Point route to a external host (static networking only)
29 # This enables the point-to-point mode of an interface, meaning that it is
30 # a direct link between two machines with nobody else listening on it.
31 # POINTOPOINT="192.168.242.1"
32
33
34
35
36 # Dynamic networking configuration example:
37 # This method may be used to obtain an address via DHCP.
38
39 # Enables the dhcp networking method.
40 NETWORKING="dhcp"
41
42 # Which dhcp client do you want to use ?
43 DHCP_PROG="/sbin/dhcpcd"
44
45 # DHCP_START allows you to pass additional
46 # startup parameters to your dhcp client.
47 # Ex: Timeout after 10 seconds
48 DHCP_START="-t 10"
49
50 # DHCP_STOP allows you to pass additional
51 # stop parameters to your dhcp client.
52 # Ex: -k kills the dhcp-cache at system shutdown
53 # -z will not; keeps the resolv.conf etc.
54 DHCP_STOP="-k"
55
56
57
58
59 # The GATEWAY variable should contain the default gateway IP address,
60 # if one is present. If not, then comment out the variables entirely.
61 #GATEWAY="192.168.0.100"
62
63
64 # The NAMESERVER variable should contain a list of DNS-servers,
65 # if there are some present. This also overrides the DHCP-settings.
66 #NAMESERVER="192.168.0.100 192.168.0.101"
67
68
69 #
70 # Wireless networking extensions (see man iwconfig(8) for more details)
71 #
72 # transfer rate 11M, 54M
73 #WIRELESS_BITRATE
74 # which channel shall be used [1-14] (use this or frequency)
75 #WIRELESS_CHANNEL
76 # network SSID
77 #WIRELESS_ESSID
78 # scan for hidden ssids (0=disabled, 1=enabled)
79 #WIRELESS_SCAN_HIDDEN_ESSID=0
80 # wich freqency shall be used
81 #WIRELESS_FREQUENCY
82 # wireless operation mode (managed=infrastructe, ad-hoc, master=ap)
83 #WIRELESS_MODE
84 # nickname of the wireless node
85 #WIRELESS_NICK
86 # which authentification mode shall be used (wep,wpa,wpa2,off)
87 #WIRELESS_AUTH_MODE
88 # Encryption key length, 64=WEP64, 128=WEP128, 256=WEP256
89 #WIRELESS_KEY_LENGTH
90 # Encryption key in hex (or use ascii key, WEP only)
91 #WIRELESS_KEY
92 # Encryption key in ascii (or use hex key, for WEP+WPA)
93 #WIRELESS_KEY_ASCII
94 # driver used for wpa_supplicant (scripts defaults to nl80211)
95 # to see all possible drivers, run 'wpa_supplicant --help'
96 #WIRELESS_WPA_DRIVER=nl80211
97
98
99 #
100 # Setup Bridges
101 #
102 # Note: to setup a bridge this file must be called net.br[0-9]
103 #
104 # Interfaces to which the bridge shall point to
105 # It is possible to use more than one
106 #BRIDGE_INTERFACES="eth0 eth1"
107 # Enables or disables Spanning Tree
108 # Possible values are 'on' and 'off'
109 #BRIDGE_STP="on"
110 # Sets ageing time
111 #BRIDGE_AGEING_TIME
112 # Sets bridge priority
113 #BRIDGE_PRIORITY
114 # Sets bridge forwarde delay time
115 #BRIDGE_FORWARD_DELAY
116 # Sets hello time
117 #BRIDGE_HELLO_TIME
118 # Sets max message age
119 #BRIDGE_MAX_MESSAGE_AGE
120 # Sets path cost for a configured bridge port/interface
121 # It is possible to use more than one
122 # e.g. port1=cost1 port2=cost2
123 #BRIDGE_PATH_COST="eth0=12 eth2=9"
124 # Sets port priority for a configured bridge port/interface
125 # It is possible to use more than one
126 # e.g. port1=prio1 port2=prio2
127 #BRIDGE_PORT_PRIORITY="eth0=1 eth2=3"
128 #
129 # Networking for the bridge can be configured as normal
130 # A static example:
131 #NETWORKING="static"
132 #IP="192.168.0.1"
133 #NETMASK="255.255.255.0"
134 #BROADCAST="192.168.0.255"