1 |
#sets up the eth0 device |
# /etc/conf.d/net.eth0 - example eth0 network device configuration |
2 |
|
# $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/conf.d/net.eth0,v 1.4 2005-07-02 20:38:57 niro Exp $ |
3 |
|
|
4 |
#loads the device at boot |
# 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="yes" |
ONBOOT="yes" |
8 |
|
|
9 |
#sets static networking |
|
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" |
#NETWORKING="static" |
18 |
|
|
19 |
|
# IP is required to set the address of the interface. |
20 |
#IP="192.168.0.1" |
#IP="192.168.0.1" |
21 |
|
|
22 |
|
# Requiered to configure the netmask. |
23 |
#NETMASK="255.255.255.0" |
#NETMASK="255.255.255.0" |
24 |
|
|
25 |
|
# Required to configure the broadcast address. |
26 |
#BROADCAST="192.168.0.255" |
#BROADCAST="192.168.0.255" |
27 |
|
|
28 |
#sets dhcp networking |
|
29 |
|
|
30 |
|
|
31 |
|
# Dynamic networking configuration example: |
32 |
|
# This method may be used to obtain an address via DHCP. |
33 |
|
|
34 |
|
# Enables the dhcp networking method. |
35 |
NETWORKING="dhcp" |
NETWORKING="dhcp" |
36 |
|
|
37 |
|
# Which dhcp client do you want to use ? |
38 |
DHCP_PROG="/sbin/dhcpcd" |
DHCP_PROG="/sbin/dhcpcd" |
39 |
#timeout after 10 seconds |
|
40 |
|
# DHCP_START allows you to pass additional |
41 |
|
# startup parameters to your dhcp client. |
42 |
|
# Ex: Timeout after 10 seconds |
43 |
DHCP_START="-t 10" |
DHCP_START="-t 10" |
44 |
# -k kills the dhcp-cache at system shutdown |
|
45 |
# -z will not |
# DHCP_STOP allows you to pass additional |
46 |
|
# stop parameters to your dhcp client. |
47 |
|
# Ex: -k kills the dhcp-cache at system shutdown |
48 |
|
# -z will not; keeps the resolv.conf etc. |
49 |
DHCP_STOP="-z" |
DHCP_STOP="-z" |
50 |
|
|
51 |
#Default Gateway Options |
|
52 |
|
|
53 |
|
|
54 |
|
# The GATEWAY variable should contain the default gateway IP address, |
55 |
|
# if one is present. If not, then comment out the variables entirely. |
56 |
|
# GATEWAY_IF defines the interface to bind the default gateway to. |
57 |
#GATEWAY="192.168.0.100" |
#GATEWAY="192.168.0.100" |
58 |
#GATEWAY_IF="eth0" |
#GATEWAY_IF="eth0" |