Contents of /trunk/initscripts/common/conf.d/net.sample
Parent Directory | Revision Log
Revision 2911 -
(show annotations)
(download)
Thu Nov 26 14:14:05 2015 UTC (8 years, 5 months ago) by niro
File size: 3702 byte(s)
Thu Nov 26 14:14:05 2015 UTC (8 years, 5 months ago) by niro
File size: 3702 byte(s)
-added point-to-point network support
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 | # wich freqency shall be used |
79 | #WIRELESS_FREQUENCY |
80 | # wireless operation mode (managed=infrastructe, ad-hoc, master=ap) |
81 | #WIRELESS_MODE |
82 | # nickname of the wireless node |
83 | #WIRELESS_NICK |
84 | # which authentification mode shall be used (wep,wpa,wpa2,off) |
85 | #WIRELESS_AUTH_MODE |
86 | # Encryption key length, 64=WEP64, 128=WEP128, 256=WEP256 |
87 | #WIRELESS_KEY_LENGTH |
88 | # Encryption key in hex (or use ascii key, WEP only) |
89 | #WIRELESS_KEY |
90 | # Encryption key in ascii (or use hex key, for WEP+WPA) |
91 | #WIRELESS_KEY_ASCII |
92 | # driver used for wpa_supplicant (scripts defaults to wext) |
93 | # to see all possible drivers, run 'wpa_supplicant --help' |
94 | #WIRELESS_WPA_DRIVER=wext |
95 | |
96 | |
97 | # |
98 | # Setup Bridges |
99 | # |
100 | # Note: to setup a bridge this file must be called net.br[0-9] |
101 | # |
102 | # Interfaces to which the bridge shall point to |
103 | # It is possible to use more than one |
104 | #BRIDGE_INTERFACES="eth0 eth1" |
105 | # Enables or disables Spanning Tree |
106 | # Possible values are 'on' and 'off' |
107 | #BRIDGE_STP="on" |
108 | # Sets ageing time |
109 | #BRIDGE_AGEING_TIME |
110 | # Sets bridge priority |
111 | #BRIDGE_PRIORITY |
112 | # Sets bridge forwarde delay time |
113 | #BRIDGE_FORWARD_DELAY |
114 | # Sets hello time |
115 | #BRIDGE_HELLO_TIME |
116 | # Sets max message age |
117 | #BRIDGE_MAX_MESSAGE_AGE |
118 | # Sets path cost for a configured bridge port/interface |
119 | # It is possible to use more than one |
120 | # e.g. port1=cost1 port2=cost2 |
121 | #BRIDGE_PATH_COST="eth0=12 eth2=9" |
122 | # Sets port priority for a configured bridge port/interface |
123 | # It is possible to use more than one |
124 | # e.g. port1=prio1 port2=prio2 |
125 | #BRIDGE_PORT_PRIORITY="eth0=1 eth2=3" |
126 | # |
127 | # Networking for the bridge can be configured as normal |
128 | # A static example: |
129 | #NETWORKING="static" |
130 | #IP="192.168.0.1" |
131 | #NETMASK="255.255.255.0" |
132 | #BROADCAST="192.168.0.255" |